ubuntucommunity.s3.us-east-2.amazonaws.com Open in urlscan Pro
52.219.109.74  Public Scan

Submitted URL: http://ubuntucommunity.s3.us-east-2.amazonaws.com/assets/chunk.2a7dad937b4a1f52dffa.d41d8cd9.br.js
Effective URL: https://ubuntucommunity.s3.us-east-2.amazonaws.com/assets/chunk.2a7dad937b4a1f52dffa.d41d8cd9.br.js
Submission: On April 03 via manual from PL — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

/*! For license information please see chunk.2a7dad937b4a1f52dffa.d41d8cd9.js.LICENSE.txt */
(self.webpackChunkdiscourse=self.webpackChunkdiscourse||[]).push([[835],{56773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"HT+YS/7L",block:'[[[1,[28,[35,0],["about-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n\\n      "],[10,"ul"],[14,0,"nav-pills"],[12],[1,"\\n        "],[10,"li"],[14,0,"nav-item-about"],[12],[8,[39,1],[[24,0,"active"]],[["@route"],["about"]],[["default"],[[[[1,[28,[35,2],["about.simple_title"],null]]],[]]]]],[13],[1,"\\n"],[41,[30,0,["faqOverridden"]],[[[1,"          "],[10,"li"],[14,0,"nav-item-guidelines"],[12],[8,[39,1],null,[["@route"],["guidelines"]],[["default"],[[[[1,[28,[35,2],["guidelines"],null]]],[]]]]],[13],[1,"\\n          "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,1],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,2],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"li"],[14,0,"nav-item-faq"],[12],[8,[39,1],null,[["@route"],["faq"]],[["default"],[[[[1,[28,[35,2],["faq"],null]]],[]]]]],[13],[1,"\\n"]],[]]],[41,[30,0,["site","tos_url"]],[[[1,"          "],[10,"li"],[14,0,"nav-item-tos"],[12],[8,[39,1],null,[["@route"],["tos"]],[["default"],[[[[1,[28,[35,2],["tos"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["site","privacy_policy_url"]],[[[1,"          "],[10,"li"],[14,0,"nav-item-privacy"],[12],[8,[39,1],null,[["@route"],["privacy"]],[["default"],[[[[1,[28,[35,2],["privacy"],null]]],[]]]]],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n      "],[10,"section"],[14,0,"about description"],[12],[1,"\\n        "],[10,"h2"],[12],[1,[28,[35,2],["about.title"],[["title"],[[30,0,["model","title"]]]]]],[13],[1,"\\n        "],[10,2],[12],[1,[30,0,["model","description"]]],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["about-after-description","section",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["model","admins"]],[[[1,"        "],[10,"section"],[14,0,"about admins"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["users"],null]],[1," "],[1,[28,[35,2],["about.our_admins"],null]],[13],[1,"\\n          "],[10,0],[14,0,"users"],[12],[1,"\\n            "],[8,[39,7],null,[["@users"],[[30,0,["model","admins"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["about-after-admins","section",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["model","moderators"]],[[[1,"        "],[10,"section"],[14,0,"about moderators"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["users"],null]],[1," "],[1,[28,[35,2],["about.our_moderators"],null]],[13],[1,"\\n          "],[10,0],[14,0,"users"],[12],[1,"\\n            "],[8,[39,7],null,[["@users"],[[30,0,["model","moderators"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["about-after-moderators","section",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["model","category_moderators","length"]],[[[42,[28,[37,9],[[28,[37,9],[[30,0,["model","category_moderators"]]],null]],null],null,[[[1,"          "],[10,"section"],[15,0,[29,["about category-moderators moderators-",[30,1,["category","slug"]]]]],[12],[1,"\\n            "],[10,"h3"],[12],[1,[28,[35,10],[[30,1,["category"]]],null]],[1,[28,[35,2],["about.moderators"],null]],[13],[1,"\\n            "],[10,0],[14,0,"users"],[12],[1,"\\n              "],[8,[39,7],null,[["@users"],[[30,1,["moderators"]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null]],[]],null],[41,[30,0,["model","can_see_about_stats"]],[[[1,"        "],[10,"section"],[14,0,"about stats"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["far-chart-bar"],null]],[1," "],[1,[28,[35,2],["about.stats"],null]],[13],[1,"\\n          "],[10,"table"],[14,0,"table"],[12],[1,"\\n            "],[10,"thead"],[12],[1,"\\n              "],[10,"tr"],[12],[1,"\\n                "],[10,"th"],[12],[1,"\\n                "],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.last_day"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.last_7_days"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.last_30_days"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,2],["about.stat.all_time"],null]],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,"tbody"],[12],[1,"\\n              "],[10,"tr"],[14,0,"about-topic-count"],[12],[1,"\\n                "],[10,"td"],[14,0,"title"],[12],[1,[28,[35,2],["about.topic_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","topics_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-post-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.post_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","posts_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-user-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.user_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","users_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-active-user-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.active_user_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","active_users_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","active_users_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","active_users_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,"—"],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,"tr"],[14,0,"about-like-count"],[12],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,2],["about.like_count"],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_last_day"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_7_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_30_days"]]],null]],[13],[1,"\\n                "],[10,"td"],[12],[1,[28,[35,11],[[30,0,["model","stats","likes_count"]]],null]],[13],[1,"\\n              "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["site","displayed_about_plugin_stat_groups"]]],null]],null],null,[[[1,"                "],[10,"tr"],[15,0,[28,[37,12],["about-",[30,2],"-count"],null]],[12],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,2],[[28,[37,12],["about.",[30,2],"_count"],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_last_day"],null]],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_7_days"],null]],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_30_days"],null]],null]],null]],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,11],[[28,[37,13],[[30,0,["model","stats"]],[28,[37,12],[[30,2],"_count"],null]],null]],null]],[13],[1,"\\n                "],[13],[1,"\\n"]],[2]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["contactInfo"]],[[[1,"        "],[10,"section"],[14,0,"about contact"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,6],["envelope"],null]],[1," "],[1,[28,[35,2],["about.contact"],null]],[13],[1,"\\n          "],[10,2],[12],[1,[28,[35,14],[[30,0,["contactInfo"]]],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["cm","statGroupName"],false,["body-class","link-to","i18n","if","plugin-outlet","hash","d-icon","about-page-users","each","-track-array","category-link","number","concat","get","html-safe"]]',moduleName:"discourse/templates/about.hbs",isStrictMode:!1})},4363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"VPE1a6+E",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n  "],[10,0],[14,0,"account-created"],[12],[1,"\\n    "],[46,[28,[37,1],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["component","-outlet"]]',moduleName:"discourse/templates/account-created.hbs",isStrictMode:!1})},32433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"PZO8Nq3J",block:'[[[10,0],[14,0,"ac-message"],[12],[1,"\\n  "],[8,[39,0],null,[["@email","@updateNewEmail"],[[30,0,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"activation-controls"],[12],[1,"\\n  "],[8,[39,1],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n  "],[8,[39,1],[[24,0,"edit-cancel"]],[["@action","@label"],[[30,0,["cancel"]],"cancel"]],null],[1,"\\n"],[13]],[],false,["activation-email-form","d-button"]]',moduleName:"discourse/templates/account-created/edit-email.hbs",isStrictMode:!1})},71344:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"sYMQgSZu",block:'[[[1,[28,[35,0],["account-activation-page"],null]],[1,"\\n"],[10,0],[14,0,"container invites-show"],[12],[1,"\\n  "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n    "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,0,["welcomeTitle"]]],[13],[1,"\\n    "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"ac-page"],[12],[1,"\\n    "],[10,0],[14,0,"two-col"],[12],[1,"\\n      "],[10,0],[14,0,"col-image"],[12],[1,"\\n        "],[10,"img"],[15,"src",[30,0,["envelopeImageUrl"]]],[14,"alt",""],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"col-form"],[12],[1,"\\n        "],[10,0],[14,0,"success-info"],[12],[1,"\\n          "],[1,[28,[35,1],[[30,0,["accountCreated","message"]]],null]],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["accountCreated","show_controls"]],[[[1,"          "],[8,[39,3],null,[["@sendActivationEmail","@editActivationEmail"],[[28,[37,4],[[30,0],"sendActivationEmail"],null],[28,[37,4],[[30,0],"editActivationEmail"],null]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["body-class","html-safe","if","activation-controls","action"]]',moduleName:"discourse/templates/account-created/index.hbs",isStrictMode:!1})},72415:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"7iSEQUMF",block:'[[[10,0],[14,0,"ac-message"],[12],[1,"\\n"],[41,[30,0,["email"]],[[[1,"    "],[1,[28,[35,1],[[28,[37,2],["login.sent_activation_email_again"],[["currentEmail"],[[30,0,["email"]]]]]],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,2],["login.sent_activation_email_again_generic"],null]],[1,"\\n"]],[]]],[13]],[],false,["if","html-safe","i18n"]]',moduleName:"discourse/templates/account-created/resent.hbs",isStrictMode:!1})},51660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"X0voTLXt",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,3],[14,6,"#main-container"],[14,1,"skip-link"],[12],[1,[28,[35,1],["skip_to_main_content"],null]],[13],[1,"\\n  "],[8,[39,2],null,null,null],[1,"\\n  "],[8,[39,3],null,null,null],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["above-site-header","div",[28,[37,5],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showSiteHeader"]],[[[1,"    "],[8,[39,7],null,[["@canSignUp","@showCreateAccount","@showLogin","@showKeyboard","@toggleMobileView","@logout","@sidebarEnabled","@navigationMenuQueryParamOverride","@showSidebar","@toggleSidebar"],[[30,0,["canSignUp"]],[28,[37,8],["showCreateAccount"],null],[28,[37,8],["showLogin"],null],[28,[37,8],["showKeyboardShortcutsHelp"],null],[28,[37,8],["toggleMobileView"],null],[28,[37,8],["logout"],null],[30,0,["sidebarEnabled"]],[30,0,["navigationMenuQueryParamOverride"]],[30,0,["showSidebar"]],[28,[37,9],[[30,0],"toggleSidebar"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,10],null,null,null],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_offline_indicator"]],[[[1,"    "],[8,[39,11],null,null,null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["below-site-header","div",[28,[37,5],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n\\n  "],[10,0],[14,1,"main-outlet-wrapper"],[14,0,"wrap"],[14,"role","main"],[12],[1,"\\n\\n    "],[10,0],[14,0,"sidebar-wrapper"],[12],[1,"\\n"],[41,[28,[37,12],[[30,0,["sidebarEnabled"]],[30,0,["showSidebar"]]],null],[[[1,"        "],[8,[39,13],null,[["@toggleSidebar"],[[28,[37,9],[[30,0],"toggleSidebar"],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[8,[39,14],null,null,null],[1,"\\n\\n    "],[8,[39,4],null,[["@name"],["before-main-outlet"]],null],[1,"\\n\\n    "],[10,0],[14,1,"main-outlet"],[12],[1,"\\n      "],[8,[39,4],null,[["@name","@connectorTagName"],["above-main-container","div"]],null],[1,"\\n      "],[10,0],[14,0,"container"],[14,1,"main-container"],[12],[1,"\\n"],[41,[30,0,["showTop"]],[[[1,"          "],[8,[39,15],null,[["@name"],["top"]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[39,16],null,null,null],[1,"\\n        "],[8,[39,17],null,null,null],[1,"\\n        "],[8,[39,18],null,null,null],[1,"\\n        "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["top-notices","div",[28,[37,5],null,[["currentPath"],[[30,0,["router","_router","currentPath"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[46,[28,[37,20],null,null],null,null,null],[1,"\\n\\n      "],[8,[39,21],null,null,null],[1,"\\n      "],[8,[39,4],null,[["@name","@outletArgs"],["main-outlet-bottom",[28,[37,5],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@name"],["after-main-outlet"]],null],[1,"\\n\\n  "],[13],[1,"\\n\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["above-footer","div",[28,[37,5],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n"],[41,[30,0,["showFooter"]],[[[1,"    "],[8,[39,15],null,[["@name","@triggerAppEvent","@classNames"],["footer","true","custom-footer-content"]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["below-footer","div",[28,[37,5],null,[["showFooter"],[[30,0,["showFooter"]]]]]]],null],[1,"\\n\\n  "],[8,[39,22],null,null,null],[1,"\\n  "],[8,[39,23],null,null,null],[1,"\\n  "],[8,[39,24],null,null,null],[1,"\\n  "],[8,[39,25],null,null,null],[1,"\\n  "],[8,[39,26],null,null,null],[1,"\\n  "],[8,[39,27],null,null,null],[1,"\\n\\n"],[41,[30,0,["showFooterNav"]],[[[1,"    "],[8,[39,28],null,null,null],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[8,[39,29],null,null,null],[1,"\\n"],[8,[39,30],null,null,null],[1,"\\n"],[8,[39,31],null,null,null]],[],false,["discourse-root","i18n","d-document","page-loading-slider","plugin-outlet","hash","if","site-header","route-action","action","software-update-prompt","offline-indicator","and","sidebar","loading-slider-fallback-spinner","custom-html","notification-consent-banner","pwa-install-banner","global-notice","component","-outlet","card-container","d-lightbox","modal-container","dialog-holder","topic-entrance","composer-container","render-glimmer-container","footer-nav","d-inline-menu","d-inline-tooltip","d-toasts"]]',moduleName:"discourse/templates/application.hbs",isStrictMode:!1})},19644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"NKFqRQYT",block:'[[[1,[28,[35,0],["badges-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,0],[14,0,"container badges"],[12],[1,"\\n    "],[10,"h1"],[12],[1,[28,[35,1],["badges.title"],null]],[13],[1,"\\n\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,2],null,[["@name","@connectorTagName"],["below-badges-title","div"]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"badge-groups"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["badgeGroups"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"badge-grouping"],[12],[1,"\\n          "],[10,0],[14,0,"title"],[12],[1,"\\n            "],[10,"h2"],[12],[1,[30,1,["badgeGrouping","displayName"]]],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,1,["badges"]]],null]],null],null,[[[1,"              "],[8,[39,5],null,[["@badge","@username"],[[30,2],[30,0,["currentUser","username"]]]],null],[1,"\\n"]],[2]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["bg","b"],false,["body-class","i18n","plugin-outlet","each","-track-array","badge-card"]]',moduleName:"discourse/templates/badges/index.hbs",isStrictMode:!1})},42435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"tGlGIB/N",block:'[[[41,[30,0,["canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[15,0,[29,["container show-badge ",[30,0,["model","slug"]]]]],[12],[1,"\\n  "],[10,"h1"],[12],[1,"\\n    "],[8,[39,2],null,[["@route"],["badges.index"]],[["default"],[[[[1,[28,[35,3],["badges.title"],null]]],[]]]]],[1,"\\n    /\\n    "],[1,[30,0,["model","name"]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"show-badge-details"],[12],[1,"\\n    "],[8,[39,4],null,[["@badge","@size","@count"],[[30,0,["model"]],"large",[30,0,["userBadges","grant_count"]]]],null],[1,"\\n    "],[10,0],[15,0,[29,["badge-grant-info ",[52,[30,0,["hiddenSetTitle"]],"","hidden"]]]],[12],[1,"\\n      "],[10,0],[12],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1,"          "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n            "],[1,[28,[35,3],["badges.allow_title"],null]],[1,"\\n            "],[8,[39,5],[[24,0,"btn-default pad-left"]],[["@action","@icon"],[[30,0,["toggleSetUserTitle"]],"pencil-alt"]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","multiple_grant"]],[[[1,"          "],[10,0],[14,0,"grant-info-item"],[12],[1,"\\n            "],[1,[28,[35,3],["badges.multiple_grant"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["canSelectTitle"]],[[[1,"      "],[10,0],[15,0,[29,["badge-set-title ",[52,[30,0,["hiddenSetTitle"]],"hidden",""]]]],[12],[1,"\\n        "],[8,[39,6],null,[["@selectableUserBadges"],[[30,0,["selectableUserBadges"]]]],null],[1,"\\n        "],[8,[39,5],[[24,0,"btn-default close-btn"]],[["@action","@label"],[[30,0,["toggleSetUserTitle"]],"close"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["userBadges"]],[[[1,"    "],[10,0],[15,0,[29,["user-badges ",[30,0,["model","slug"]]]]],[12],[1,"\\n      "],[8,[39,7],null,[["@selector","@action"],[".badge-info",[28,[37,8],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"badges-granted"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["userBadges"]]],null]],null],null,[[[1,"            "],[8,[39,11],[[24,0,"badge-info"]],[["@user","@size","@date"],[[30,1,["user"]],"medium",[30,1,["granted_at"]]]],[["default"],[[[[1,"\\n              "],[10,0],[14,0,"granted-on"],[12],[1,"\\n                "],[1,[28,[35,12],[[28,[37,3],["badges.granted_on"],[["date"],[[28,[37,13],[[30,1,["granted_at"]]],null]]]]],null]],[1,"\\n              "],[13],[1,"\\n\\n"],[41,[30,1,["post_number"]],[[[1,"                "],[10,3],[14,0,"post-link"],[15,6,[29,[[30,1,["topic","url"]],"/",[30,1,["post_number"]]]]],[12],[1,[28,[35,12],[[30,1,["topic","fancyTitle"]]],null]],[13],[1,"\\n"]],[]],null],[1,"            "]],[]]]]],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n"],[41,[51,[30,0,["canLoadMore"]]],[[[41,[30,0,["canShowOthers"]],[[[1,"          "],[10,0],[12],[1,"\\n            "],[10,3],[14,1,"show-others-with-badge-link"],[15,6,[30,0,["model","url"]]],[14,0,"btn btn-default"],[12],[1,[28,[35,3],["badges.others_count"],[["count"],[[30,0,["othersCount"]]]]]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[8,[39,15],null,[["@condition"],[[30,0,["canLoadMore"]]]],null],[1,"\\n"]],[]],null],[13]],["ub"],false,["if","hide-application-footer","link-to","i18n","badge-card","d-button","badge-title","load-more","action","each","-track-array","user-info","html-safe","format-date","unless","conditional-loading-spinner"]]',moduleName:"discourse/templates/badges/show.hbs",isStrictMode:!1})},69298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"FSYTAsWs",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1,"  "],[8,[39,4],[[24,0,"btn-primary"]],[["@label","@icon","@action"],["footer_nav.share","link",[30,0,["shareModal"]]]],null],[1,"\\n"]],[]],null]],[],false,["composer-tip-close-button","fn","html-safe","if","d-button"]]',moduleName:"discourse/templates/composer/dominating-topic.hbs",isStrictMode:!1})},15807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"bSe00HVY",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[41,[30,0,["message","title"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["message","title"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,3],[[30,0,["message","body"]]],null]]],[],false,["composer-tip-close-button","fn","if","html-safe"]]',moduleName:"discourse/templates/composer/education.hbs",isStrictMode:!1})},21155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"WboXcjLd",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n\\n"],[8,[39,3],[[24,0,"btn-primary"]],[["@label","@icon","@action"],["user.private_message","envelope",[28,[37,1],[[30,0,["switchPM"]],[30,0,["message"]]],null]]],null]],[],false,["composer-tip-close-button","fn","html-safe","d-button"]]',moduleName:"discourse/templates/composer/get-a-room.hbs",isStrictMode:!1})},80698:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"78kqa78/",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[10,2],[12],[1,"\\n  "],[1,[28,[35,2],[[30,0,["message","body"]]],null]],[1,"\\n"],[13]],[],false,["composer-tip-close-button","fn","html-safe"]]',moduleName:"discourse/templates/composer/group-mentioned.hbs",isStrictMode:!1})},24914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"PXC29QHC",block:'[[[8,[39,0],null,[["@action"],[[28,[37,1],[[30,0,["closeMessage"]],[30,0,["message"]]],null]]],null],[1,"\\n\\n"],[10,"h3"],[12],[1,[28,[35,2],["composer.similar_topics"],null]],[13],[1,"\\n\\n"],[10,"ul"],[14,0,"topics"],[12],[1,"\\n  "],[8,[39,3],null,[["@widget","@args"],["search-result-topic",[28,[37,4],null,[["results"],[[30,0,["message","similarTopics"]]]]]]],null],[1,"\\n"],[13]],[],false,["composer-tip-close-button","fn","i18n","mount-widget","hash"]]',moduleName:"discourse/templates/composer/similar-topics.hbs",isStrictMode:!1})},30293:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"bJqk0xpQ",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n  "],[10,0],[14,0,"confirm-new-email"],[12],[1,"\\n    "],[10,"h2"],[12],[1,[28,[35,0],["user.change_email.title"],null]],[13],[1,"\\n    "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1,"        "],[1,[28,[35,0],["user.change_email.authorizing_new.description"],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,0],["user.change_email.authorizing_new.description_add"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,2],[12],[1,[30,0,["model","new_email"]]],[13],[1,"\\n    "],[8,[39,2],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[37,0],["user.change_email.confirm"],null],[30,0,["confirm"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","if","d-button"]]',moduleName:"discourse/templates/confirm-new-email.hbs",isStrictMode:!1})},5483:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Z/XnDROi",block:'[[[10,0],[14,1,"simple-container"],[12],[1,"\\n  "],[10,0],[14,0,"confirm-old-email"],[12],[1,"\\n    "],[10,"h2"],[12],[1,[28,[35,0],["user.change_email.authorizing_old.title"],null]],[13],[1,"\\n    "],[10,2],[12],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1,"        "],[1,[28,[35,0],["user.change_email.authorizing_old.description"],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,0],["user.change_email.authorizing_old.description_add"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n"],[41,[30,0,["model","old_email"]],[[[1,"      "],[10,2],[12],[1,"\\n        "],[1,[28,[35,0],["user.change_email.authorizing_old.old_email"],[["email"],[[30,0,["model","old_email"]]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,0],["user.change_email.authorizing_old.new_email"],[["email"],[[30,0,["model","new_email"]]]]]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],[[24,0,"btn-primary"]],[["@translatedLabel","@action"],[[28,[37,0],["user.change_email.confirm"],null],[30,0,["confirm"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","if","d-button"]]',moduleName:"discourse/templates/confirm-old-email.hbs",isStrictMode:!1})},58673:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"jjURmk02",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["navigation","list"],[[[[1,"\\n    "],[8,[39,1],null,[["@showCategoryAdmin","@canCreateTopic","@createTopic","@filterType"],[[30,0,["model","can_create_category"]],[30,0,["model","can_create_topic"]],[30,0,["createTopic"]],"categories"]],null],[1,"\\n  "]],[]],[[[1,"\\n\\n    "],[1,[28,[35,2],["categories-list"],null]],[1,"\\n\\n    "],[10,0],[14,0,"contents"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["topicTrackingState","hasIncoming"]],[30,0,["isCategoriesRoute"]]],null],[[[1,"        "],[10,0],[15,0,[28,[37,5],["show-more",[52,[30,0,["hasTopics"]],"has-topics"]],null]],[12],[1,"\\n          "],[11,0],[24,"role","button"],[24,0,"alert alert-info clickable"],[4,[38,6],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n            "],[8,[39,7],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,8],null,[["@categories","@topics","@parentCategory","@loadMore","@loadingMore"],[[30,0,["model","categories"]],[30,0,["model","topics"]],[30,0,["model","parentCategory"]],[30,0,["model","loadMore"]],[30,0,["model","isLoading"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["below-discovery-categories","div",[28,[37,10],null,[["categories","topics"],[[30,0,["model","categories"]],[30,0,["model","topics"]]]]]]],null],[1,"\\n  "]],[]]]]]],[],false,["discovery/layout","discovery/navigation","body-class","if","and","concat-class","on","count-i18n","discovery/categories-display","plugin-outlet","hash"]]',moduleName:"discourse/templates/discovery/categories.hbs",isStrictMode:!1})},57548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"khlC2AqX",block:'[[[8,[39,0],null,[["@model"],[[30,0,["model"]]]],[["navigation","list"],[[[[1,"\\n    "],[8,[39,1],null,[["@queryString","@updateTopicsListQueryParams"],[[30,0,["q"]],[30,0,["updateTopicsListQueryParams"]]]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,2],null,[["@period","@expandAllPinned","@expandAllGloballyPinned","@model","@canBulkSelect","@bulkSelectHelper"],[[30,0,["period"]],[30,0,["expandAllPinned"]],[30,0,["expandAllGloballyPinned"]],[30,0,["model"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]]]],null],[1,"\\n  "]],[]]]]]],[],false,["discovery/layout","discovery/filter-navigation","discovery/topics"]]',moduleName:"discourse/templates/discovery/filter.hbs",isStrictMode:!1})},11209:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"BSGQzo9w",block:'[[[8,[39,0],null,[["@model","@createTopicDisabled"],[[30,0,["model"]],[30,0,["createTopicDisabled"]]]],[["navigation","header","list"],[[[[1,"\\n    "],[8,[39,1],null,[["@category","@tag","@additionalTags","@filterType","@noSubcategories","@canBulkSelect","@bulkSelectHelper","@createTopic","@createTopicDisabled","@canCreateTopicOnTag","@toggleTagInfo","@tagNotification"],[[30,0,["model","category"]],[30,0,["model","tag"]],[30,0,["model","additionalTags"]],[30,0,["model","filterType"]],[30,0,["model","noSubcategories"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["createTopic"]],[30,0,["createTopicDisabled"]],[30,0,["model","canCreateTopicOnTag"]],[30,0,["toggleTagInfo"]],[30,0,["model","tagNotification"]]]],null],[1,"\\n  "]],[]],[[[1,"\\n"],[41,[30,0,["model","subcategoryList"]],[[[1,"      "],[8,[39,3],null,[["@categories","@parentCategory"],[[30,0,["model","subcategoryList","categories"]],[30,0,["model","subcategoryList","parentCategory"]]]],null],[1,"\\n"]],[]],null],[41,[28,[37,4],[[30,0,["showTagInfo"]],[30,0,["model","tag"]]],null],[[[1,"      "],[8,[39,5],null,[["@tag","@list"],[[30,0,["model","tag"]],[30,0,["model","list"]]]],null],[1,"\\n"]],[]],null],[1,"  "]],[]],[[[1,"\\n    "],[8,[39,6],null,[["@period","@changePeriod","@model","@canBulkSelect","@bulkSelectHelper","@showDismissRead","@showResetNew","@category","@tag","@changeSort","@changeNewListSubset"],[[30,0,["model","list","for_period"]],[30,0,["changePeriod"]],[30,0,["model","list"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["showDismissRead"]],[30,0,["showResetNew"]],[30,0,["model","category"]],[30,0,["model","tag"]],[30,0,["changeSort"]],[30,0,["changeNewListSubset"]]]],null],[1,"\\n  "]],[]]]]]],[],false,["discovery/layout","discovery/navigation","if","discovery/categories-display","and","tag-info","discovery/topics"]]',moduleName:"discourse/templates/discovery/list.hbs",isStrictMode:!1})},81988:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Vo4wGw+M",block:'[[[10,0],[15,0,[29,["edit-category ",[52,[30,0,["expandedMenu"]],"expanded-menu"]]]],[12],[1,"\\n  "],[10,0],[14,0,"edit-category-title-bar"],[12],[1,"\\n    "],[10,0],[14,0,"edit-category-title"],[12],[1,"\\n      "],[10,"h2"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"],[41,[30,0,["model","id"]],[[[1,"        "],[8,[39,1],null,[["@categories","@category","@noSubcategories","@editingCategory","@editingCategoryTab"],[[30,0,["site","categoriesList"]],[30,0,["model"]],[30,0,["model","noSubcategories"]],true,[30,0,["selectedTab"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[51,[30,0,["mobileView"]]],[[[41,[30,0,["model","id"]],[[[1,"        "],[8,[39,3],[[24,0,"category-back"]],[["@action","@label","@icon"],[[28,[37,4],[[30,0],"goBack"],null],"category.back","caret-left"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"edit-category-nav"],[12],[1,"\\n    "],[10,"ul"],[14,0,"nav nav-stacked"],[12],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"general"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"security"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"settings"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"images"]],null],[1,"\\n      "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"topic-template"]],null],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"        "],[8,[39,5],null,[["@panels","@selectedTab","@params","@tab"],[[30,0,["panels"]],[30,0,["selectedTab"]],[30,0,["parentParams"]],"tags"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"edit-category-content"],[12],[1,"\\n    "],[10,"h3"],[12],[1,[30,0,["selectedTabTitle"]]],[13],[1,"\\n\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["panels"]]],null]],null],null,[[[1,"      "],[46,[30,1],null,[["selectedTab","category","registerValidator"],[[30,0,["selectedTab"]],[30,0,["model"]],[28,[37,4],[[30,0],"registerValidator"],null]]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["showDeleteReason"]],[[[1,"    "],[10,0],[14,0,"edit-category-delete-warning"],[12],[1,"\\n      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,9],[[30,0,["model","cannot_delete_reason"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"edit-category-footer"],[12],[1,"\\n    "],[8,[39,3],[[24,1,"save-category"],[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["disabled"]],[28,[37,4],[[30,0],"saveCategory"],null],[30,0,["saveLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","can_delete"]],[[[1,"      "],[8,[39,3],[[24,0,"btn-danger"]],[["@disabled","@action","@icon","@label"],[[30,0,["deleteDisabled"]],[28,[37,4],[[30,0],"deleteCategory"],null],"far-trash-alt","category.delete"]],null],[1,"\\n"]],[]],[[[41,[30,0,["model","id"]],[[[1,"      "],[10,0],[14,0,"disable-info"],[12],[1,"\\n        "],[8,[39,3],[[24,0,"btn-default"]],[["@disabled","@action","@icon","@label"],[[30,0,["deleteDisabled"]],[28,[37,4],[[30,0],"toggleDeleteTooltip"],null],"question-circle","category.delete"]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["tab"],false,["if","bread-crumbs","unless","d-button","action","edit-category-tab","each","-track-array","component","html-safe"]]',moduleName:"discourse/templates/edit-category-tabs.hbs",isStrictMode:!1})},5137:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Ytj9qRIa",block:'[[[10,0],[14,0,"container email-login clearfix"],[12],[1,"\\n  "],[10,0],[14,0,"content-wrapper"],[12],[1,"\\n    "],[10,0],[14,0,"image-wrapper"],[12],[1,"\\n      "],[10,"img"],[15,"src",[30,0,["lockImageUrl"]]],[14,0,"password-reset-img"],[14,"alt",""],[12],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["model","error"]],[[[1,"        "],[10,0],[14,0,"error-info"],[12],[1,"\\n          "],[1,[28,[35,1],[[30,0,["model","error"]]],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_login"]],[[[1,"        "],[10,0],[14,0,"email-login-form"],[12],[1,"\\n"],[41,[30,0,["secondFactorRequired"]],[[[41,[30,0,["model","security_key_required"]],[[[1,"              "],[8,[39,2],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,0,["model","allowed_credential_ids"]],[30,0,["model","security_key_challenge"]],[30,0,["model","security_key_required"]],false,[30,0,["secondFactorMethod"]],[30,0,["secondFactorRequired"]],[28,[37,3],[[30,0],"authenticateSecurityKey"],null]]],null],[1,"\\n"]],[]],[[[1,"              "],[8,[39,4],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["model","backup_codes_enabled"]],true]],[["default"],[[[[1,"\\n                "],[8,[39,5],null,[["@value","@secondFactorMethod","@backupEnabled"],[[30,0,["secondFactorToken"]],[30,0,["secondFactorMethod"]],[30,0,["backupEnabled"]]]],null],[1,"\\n              "]],[]]]]],[1,"\\n"]],[]]]],[]],[[[1,"            "],[10,"h2"],[12],[1,[28,[35,6],["email_login.confirm_title"],[["site_name"],[[30,0,["siteSettings","title"]]]]]],[13],[1,"\\n            "],[10,2],[12],[1,[28,[35,6],["email_login.logging_in_as"],[["email"],[[30,0,["model","token_email"]]]]]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["model","security_key_required"]]],[[[1,"            "],[8,[39,8],[[24,0,"btn-primary"],[24,4,"submit"]],[["@label","@action"],["email_login.confirm_button",[28,[37,3],[[30,0],"finishLogin"],null]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["if","html-safe","security-key-form","action","second-factor-form","second-factor-input","i18n","unless","d-button"]]',moduleName:"discourse/templates/email-login.hbs",isStrictMode:!1})},59341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"sMHXrp22",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["errorHtml"]],[30,0,["isForbidden"]]],null],[[[1,"    "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,2],[[30,0,["errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"error-page"],[12],[1,"\\n      "],[10,0],[14,0,"face"],[12],[1,":("],[13],[1,"\\n      "],[10,0],[14,0,"reason"],[12],[1,[30,0,["reason"]]],[13],[1,"\\n"],[41,[30,0,["requestUrl"]],[[[1,"        "],[10,0],[14,0,"url"],[12],[1,"\\n          "],[1,[28,[35,3],["errors.prev_page"],null]],[1,"\\n          "],[10,3],[15,6,[30,0,["requestUrl"]]],[14,"data-auto-route","true"],[12],[1,[30,0,["requestUrl"]]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,0,["networkFixed"]],[[[1,"          "],[1,[28,[35,4],["check-circle"],null]],[1,"\\n"]],[]],null],[1,"\\n        "],[1,[30,0,["desc"]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"buttons"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["enabledButtons"]]],null]],null],null,[[[1,"          "],[8,[39,7],[[16,0,[30,1,["classes"]]]],[["@icon","@action","@label"],[[30,1,["icon"]],[30,1,["action"]],[30,1,["key"]]]],null],[1,"\\n"]],[1]],null],[1,"        "],[8,[39,8],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],["buttonData"],false,["if","and","html-safe","i18n","d-icon","each","-track-array","d-button","conditional-loading-spinner"]]',moduleName:"discourse/templates/exception.hbs",isStrictMode:!1})},55069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"sCzSm9nP",block:'[[[1,[28,[35,0],[[28,[37,1],["static-",[30,0,["model","path"]]],null]],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n  "],[8,[39,2],null,null,[["default"],[[[[1,"\\n    "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n      "],[8,[39,3],null,[["@name"],["above-static"]],null],[1,"\\n      "],[1,[28,[35,4],[[30,0,["model","html"]]],null]],[1,"\\n      "],[8,[39,3],null,[["@name"],["below-static"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],[],false,["body-class","concat","watch-read","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/faq.hbs",isStrictMode:!1})},67141:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"AJa7HQb4",block:'[[[41,[30,0,["loading"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["search-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"search-container"],[12],[1,"\\n  "],[8,[39,3],[[24,0,"hidden"]],[["@name","@tag"],["full-page-search",[30,0,["searchTerm"]]]],null],[1,"\\n\\n  "],[10,0],[14,0,"search-header"],[14,"role","search"],[12],[1,"\\n    "],[10,"h1"],[14,0,"search-page-heading"],[12],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1,"        "],[10,0],[14,0,"result-count"],[14,1,"search-result-count"],[14,"aria-live","polite"],[12],[1,"\\n          "],[1,[28,[35,4],[[30,0,["resultCountLabel"]]],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,5],["search.full_page_title"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"search-bar"],[12],[1,"\\n      "],[8,[39,6],[[24,0,"full-page-search search no-blur search-query"]],[["@value","@aria-label","@enter","@hasAutofocus","@aria-controls"],[[30,0,["searchTerm"]],[28,[37,5],["search.search_term_label"],null],[28,[37,7],[[30,0],"search",[28,[37,8],null,[["collapseFilters"],[true]]]],null],[30,0,["hasAutofocus"]],"search-result-count"]],null],[1,"\\n      "],[8,[39,9],null,[["@id","@value","@content","@onChange","@options"],["search-type",[30,0,["search_type"]],[30,0,["searchTypes"]],[28,[37,7],[[30,0],[28,[37,10],[[30,0,["search_type"]]],null]],null],[28,[37,8],null,[["castInteger"],[true]]]]],null],[1,"\\n      "],[8,[39,11],[[24,0,"btn-primary search-cta"]],[["@action","@icon","@label","@ariaLabel","@disabled"],[[28,[37,12],[[28,[37,7],[[30,0],"search"],null],[28,[37,8],null,[["collapseFilters"],[true]]]],null],"search","search.search_button","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["usingDefaultSearchType"]],[[[41,[30,0,["context"]],[[[1,"        "],[10,0],[14,0,"search-context"],[12],[1,"\\n          "],[10,"label"],[12],[1,"\\n            "],[8,[39,13],[[24,3,"searchContext"]],[["@type","@checked"],["checkbox",[30,0,["searchContextEnabled"]]]],null],[1,"\\n            "],[1,[30,0,["searchContextDescription"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"search-filters"],[12],[1,"\\n        "],[8,[39,14],null,[["@searchTerm","@onChangeSearchTerm","@search","@searchButtonDisabled","@expandFilters"],[[28,[37,15],[[30,0,["searchTerm"]]],null],[28,[37,7],[[30,0],[28,[37,10],[[30,0,["searchTerm"]]],null]],null],[28,[37,7],[[30,0],"search",[28,[37,8],null,[["collapseFilters"],[true]]]],null],[30,0,["searchButtonDisabled"]],[30,0,["expandFilters"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"search-notice"],[12],[1,"\\n"],[41,[30,0,["invalidSearch"]],[[[1,"        "],[10,0],[14,0,"fps-invalid"],[12],[1,"\\n          "],[1,[28,[35,5],["search.too_short"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"search-advanced"],[12],[1,"\\n    "],[8,[39,16],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-header","div",[28,[37,8],null,[["search","type","model","addSearchResults"],[[30,0,["searchTerm"]],[30,0,["search_type"]],[30,0,["model"]],[30,0,["addSearchResults"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["usingDefaultSearchType"]],[[[1,"        "],[10,0],[15,0,[30,0,["searchInfoClassNames"]]],[14,"role","region"],[15,"ariaLabel",[28,[37,5],["search.sort_or_bulk_actions"],null]],[12],[1,"\\n"],[41,[30,0,["canBulkSelect"]],[[[1,"            "],[8,[39,11],[[24,0,"btn-default bulk-select"]],[["@icon","@title","@action"],["list","topics.bulk.toggle",[28,[37,7],[[30,0],"toggleBulkSelect"],null]]],null],[1,"\\n"],[41,[30,0,["selected"]],[[[1,"              "],[8,[39,11],[[24,0,"btn-default bulk-select-btn"]],[["@selected","@action","@icon"],[[30,0,["selected"]],[28,[37,7],[[30,0],"showBulkActions"],null],"wrench"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[41,[30,0,["hasUnselectedResults"]],[[[1,"              "],[8,[39,11],[[24,0,"btn-default"]],[["@icon","@action","@label"],["check-square",[28,[37,7],[[30,0],"selectAll"],null],"search.select_all"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasSelection"]],[[[1,"              "],[8,[39,11],[[24,0,"btn-default"]],[["@icon","@action","@label"],["far-square",[28,[37,7],[[30,0],"clearAll"],null],"search.clear_all"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n          "],[10,0],[14,0,"sort-by inline-form"],[12],[1,"\\n            "],[10,"label"],[12],[1,"\\n              "],[1,[28,[35,5],["search.sort_by"],null]],[1,"\\n            "],[13],[1,"\\n            "],[8,[39,9],null,[["@value","@content","@onChange","@id","@options"],[[30,0,["sortOrder"]],[30,0,["sortOrders"]],[30,0,["setSortOrder"]],"search-sort-by",[28,[37,8],null,[["castInteger"],[true]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,16],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-below-search-info","div",[28,[37,8],null,[["search"],[[30,0,["searchTerm"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["searching"]],[[[1,"      "],[1,[28,[35,17],null,[["size"],["medium"]]]],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"search-results"],[14,"role","region"],[12],[1,"\\n        "],[8,[39,18],null,[["@selector","@action"],[".fps-result",[28,[37,7],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n"],[41,[28,[37,19],[[30,0,["usingDefaultSearchType"]],[30,0,["customSearchType"]]],null],[[[1,"            "],[8,[39,20],null,[["@posts","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,0,["searchResultPosts"]],[30,0,["bulkSelectEnabled"]],[30,0,["selected"]],[30,0,["highlightQuery"]],[30,0,["model","grouped_search_result","search_log_id"]]]],null],[1,"\\n\\n            "],[8,[39,21],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["error"]],[[[1,"                "],[10,0],[14,0,"warning"],[12],[1,"\\n                  "],[1,[30,0,["error"]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["hasResults"]]],[[[41,[30,0,["searchActive"]],[[[1,"                  "],[10,"h3"],[12],[1,[28,[35,5],["search.no_results"],null]],[13],[1,"\\n\\n"],[41,[30,0,["showSuggestion"]],[[[1,"                    "],[10,0],[14,0,"no-results-suggestion"],[12],[1,"\\n                      "],[1,[28,[35,5],["search.cant_find"],null]],[1,"\\n"],[41,[30,0,["canCreateTopic"]],[[[1,"                        "],[11,3],[24,6,""],[4,[38,23],["click",[28,[37,12],[[30,0,["createTopic"]],[30,0,["searchTerm"]]],null]],null],[12],[1,[28,[35,5],["search.start_new_topic"],null]],[13],[1,"\\n"],[41,[51,[30,0,["siteSettings","login_required"]]],[[[1,"                          "],[1,[28,[35,5],["search.or_search_google"],null]],[1,"\\n"]],[]],null]],[]],[[[1,"                        "],[1,[28,[35,5],["search.search_google"],null]],[1,"\\n"]],[]]],[1,"                    "],[13],[1,"\\n\\n                    "],[8,[39,24],null,[["@searchTerm"],[[30,0,["searchTerm"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["hasResults"]],[[[1,"                "],[10,"h3"],[14,0,"search-footer"],[12],[1,"\\n"],[41,[30,0,["model","grouped_search_result","more_full_page_results"]],[[[41,[30,0,["isLastPage"]],[[[1,"                      "],[1,[28,[35,5],["search.more_results"],null]],[1,"\\n"]],[]],null]],[]],[[[1,"                    "],[1,[28,[35,5],["search.no_more_results"],null]],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "]],[]]]]],[1,"\\n"]],[]],[[[1,"            "],[8,[39,21],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["hasResults"]],[[[41,[30,0,["model","categories","length"]],[[[1,"                  "],[10,"h4"],[14,0,"category-heading"],[12],[1,"\\n                    "],[1,[28,[35,5],["search.categories"],null]],[1,"\\n                  "],[13],[1,"\\n                  "],[10,0],[14,0,"category-items"],[12],[1,"\\n"],[42,[28,[37,26],[[28,[37,26],[[30,0,["model","categories"]]],null]],null],null,[[[1,"                      "],[1,[28,[35,27],[[30,1]],[["extraClasses"],["fps-category-item"]]]],[1,"\\n"]],[1]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","tags","length"]],[[[1,"                  "],[10,"h4"],[14,0,"tag-heading"],[12],[1,"\\n                    "],[1,[28,[35,5],["search.tags"],null]],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[10,0],[14,0,"tag-items"],[12],[1,"\\n"],[42,[28,[37,26],[[28,[37,26],[[30,0,["model","tags"]]],null]],null],null,[[[1,"                      "],[10,0],[14,0,"fps-tag-item"],[12],[1,"\\n                        "],[10,3],[15,6,[30,2,["url"]]],[12],[1,"\\n                          "],[1,[30,2,["id"]]],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n"]],[2]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","users"]],[[[1,"                  "],[10,0],[14,0,"user-items"],[12],[1,"\\n"],[42,[28,[37,26],[[28,[37,26],[[30,0,["model","users"]]],null]],null],null,[[[1,"                      "],[8,[39,28],[[24,0,"fps-user-item"]],[["@user"],[[30,3]]],[["default"],[[[[1,"\\n                        "],[1,[28,[35,29],[[30,3]],[["imageSize"],["large"]]]],[1,"\\n\\n                        "],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[30,3,["name"]],[[[1,"                            "],[10,1],[14,0,"name"],[12],[1,"\\n                              "],[1,[30,3,["name"]]],[1,"\\n                            "],[13],[1,"\\n"]],[]],null],[1,"\\n                          "],[10,1],[14,0,"username"],[12],[1,"\\n                            "],[1,[30,3,["username"]]],[1,"\\n                          "],[13],[1,"\\n                        "],[13],[1,"\\n                      "]],[]]]]],[1,"\\n"]],[3]],null],[1,"                  "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["searchActive"]],[[[1,"                  "],[10,"h3"],[12],[1,[28,[35,5],["search.no_results"],null]],[13],[1,"\\n"]],[]],null]],[]]],[1,"            "]],[]]]]],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["category","tag","user"],false,["if","hide-application-footer","body-class","scroll-tracker","html-safe","i18n","search-text-field","action","hash","combo-box","mut","d-button","fn","input","search-advanced-options","readonly","plugin-outlet","loading-spinner","load-more","or","search-result-entries","conditional-loading-spinner","unless","on","google-search","each","-track-array","category-link","user-link","avatar"]]',moduleName:"discourse/templates/full-page-search.hbs",isStrictMode:!1})},35170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"V34KfL9I",block:'[[[41,[30,0,["canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,2],null,[["@selector","@action"],[".user-stream-item",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"user-stream"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["model"]]],null]],null],null,[[[1,"      "],[8,[39,6],null,[["@post"],[[30,1]]],null],[1,"\\n"]],[1]],[[[1,"      "],[10,0],[12],[1,[28,[35,7],[[30,0,["emptyText"]]],null]],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[8,[39,8],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]]]]]],["post"],false,["if","hide-application-footer","load-more","action","each","-track-array","group-post","i18n","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-posts.hbs",isStrictMode:!1})},84107:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"O/nvKT0F",block:'[[[8,[39,0],[[24,0,"paginated-topics-list"]],[["@selector","@action"],[".paginated-topics-list .topic-list tr",[28,[37,1],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@topicList","@showPosters"],[[30,0,["model"]],true]],null],[1,"\\n  "],[8,[39,3],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]]]]]],[],false,["load-more","action","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-activity-topics.hbs",isStrictMode:!1})},21270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"nuDNVygH",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["canLoadMore"]]],null],[[[1,"  "],[1,[34,2]],[1,"\\n"]],[]],null],[1,"\\n"],[10,"section"],[14,0,"user-content"],[12],[1,"\\n  "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1,"      "],[8,[39,3],[[24,0,"bulk-select"]],[["@icon","@action","@title"],["list",[30,0,["toggleBulkSelect"]],"topics.bulk.toggle"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1,"      "],[8,[39,4],[[24,0,"group-username-filter no-blur"]],[["@value","@placeholderKey","@autocomplete"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]],"off"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1,"        "],[10,1],[14,0,"bulk-select-buttons-wrap"],[12],[1,"\\n"],[41,[30,0,["bulkSelection"]],[[[1,"            "],[8,[39,5],null,[["@bulkSelection","@canAdminGroup","@canEditGroup","@onChange"],[[30,0,["bulkSelection"]],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,6],[[30,0],"actOnSelection",[30,0,["bulkSelection"]]],null]]],null],[1,"\\n\\n            "],[8,[39,3],[[24,0,"bulk-select-clear"]],[["@action","@label","@icon"],[[30,0,["bulkClearAll"]],"topics.bulk.clear_all","far-square"]],null],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,3],[[24,0,"bulk-select-all"]],[["@action","@label","@icon"],[[30,0,["bulkSelectAll"]],"topics.bulk.select_all","check-square"]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"group-members-manage"],[12],[1,"\\n        "],[8,[39,3],[[24,0,"btn-default group-members-add"]],[["@icon","@action","@label"],["plus",[28,[37,7],["showAddMembersModal"],null],"groups.manage.add_members"]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1,"          "],[8,[39,3],[[24,0,"btn-default group-members-invite"]],[["@icon","@action","@label"],["plus",[28,[37,7],["showInviteModal"],null],"groups.manage.invite_members"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["hasMembers"]],[[[1,"    "],[8,[39,8],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,6],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n      "],[8,[39,9],null,[["@className"],[[29,["group-members\\n          ",[52,[30,0,["isBulk"]],"sticky-header",""],"\\n          ",[52,[30,0,["canManageGroup"]],"group-members--can-manage",""]]]]],[["header","body"],[[[[1,"\\n          "],[8,[39,10],[[24,0,"directory-table__column-header--username username"]],[["@order","@asc","@field","@labelKey","@automatic","@colspan"],[[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true,"2"]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"            "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--can-manage"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,11],null,[["@name","@outletArgs"],["group-index-table-header-after-username",[28,[37,12],null,[["group","asc","order"],[[30,0,["model"]],[30,0,["asc"]],[30,0,["order"]]]]]]],null],[1,"\\n\\n          "],[8,[39,10],[[24,0,"directory-table__column-header--added"]],[["@order","@asc","@field","@labelKey","@automatic"],[[30,0,["order"]],[30,0,["asc"]],"added_at","groups.member_added",true]],null],[1,"\\n          "],[8,[39,10],[[24,0,"directory-table__column-header--last-posted"]],[["@order","@asc","@field","@labelKey","@automatic"],[[30,0,["order"]],[30,0,["asc"]],"last_posted_at","last_post",true]],null],[1,"\\n          "],[8,[39,10],[[24,0,"directory-table__column-header--last-seen"]],[["@order","@asc","@field","@labelKey","@automatic"],[[30,0,["order"]],[30,0,["asc"]],"last_seen_at","last_seen",true]],null],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"            "],[10,0],[14,0,"directory-table__column-header directory-table__column-header--member-settings"],[12],[13],[1,"\\n"]],[]],null],[1,"        "]],[]],[[[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["model","members"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n              "],[10,0],[14,0,"directory-table__cell directory-table__cell--username group-member"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[41,[30,0,["isBulk"]],[[[1,"                    "],[8,[39,15],[[24,0,"bulk-select"],[4,[38,16],["click",[28,[37,6],[[30,0],"selectMember",[30,1]],null]],null]],[["@type"],["checkbox"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"                "],[8,[39,17],null,[["@user","@skipName","@showStatus","@showStatusTooltip"],[[30,1],[30,0,["skipName"]],true,true]],null],[1,"\\n              "],[13],[1,"\\n\\n"],[41,[30,0,["canManageGroup"]],[[[1,"                "],[10,0],[14,0,"directory-table__cell directory-table__cell--can-manage group-owner"],[12],[1,"\\n"],[41,[28,[37,1],[[30,1,["owner"]],[30,1,["primary"]]],null],[[[1,"                    "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                      "],[10,1],[12],[1,[28,[35,18],["groups.members.status"],null]],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                  "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n"],[41,[30,1,["owner"]],[[[1,"                      "],[1,[28,[35,19],["shield-alt"],null]],[1,"\\n                      "],[1,[28,[35,18],["groups.members.owner"],null]],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[41,[30,1,["primary"]],[[[1,"                      "],[1,[28,[35,18],["groups.members.primary"],null]],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[8,[39,11],null,[["@name","@outletArgs"],["group-index-table-row-after-username",[28,[37,12],null,[["member"],[[30,1]]]]]],null],[1,"\\n\\n              "],[10,0],[14,0,"directory-table__cell directory-table__cell--added"],[12],[1,"\\n                "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,18],["groups.member_added"],null]],[13],[1,"\\n                "],[13],[1,"\\n                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[28,[35,20],[[30,1,["added_at"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_posted_at"]]],"--empty"],"\\n                  directory-table__cell--last-posted"]]],[12],[1,"\\n"],[41,[30,1,["last_posted_at"]],[[[1,"                  "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                    "],[10,1],[12],[1,[28,[35,18],["last_post"],null]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[28,[35,20],[[30,1,["last_posted_at"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[15,0,[29,["directory-table__cell",[52,[51,[30,1,["last_seen_at"]]],"--empty"],"\\n                  directory-table__cell--last-seen"]]],[12],[1,"\\n"],[41,[30,1,["last_seen_at"]],[[[1,"                  "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                    "],[10,1],[12],[1,[28,[35,18],["last_seen"],null]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[28,[35,20],[[30,1,["last_seen_at"]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,0,["canManageGroup"]],[[[1,"                "],[10,0],[14,0,"directory-table__cell directory-table__cell--member-settings member-settings"],[12],[1,"\\n                  "],[8,[39,22],null,[["@member","@canAdminGroup","@canEditGroup","@onChange"],[[30,1],[30,0,["model","can_admin_group"]],[30,0,["model","can_edit_group"]],[28,[37,6],[[30,0],"actOnGroup",[30,1]],null]]],null],[1,"\\n"],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[1]],null],[1,"        "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,23],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,"br"],[12],[13],[1,"\\n    "],[10,0],[12],[1,[28,[35,18],[[30,0,["emptyMessageKey"]]],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","or","hide-application-footer","d-button","text-field","bulk-group-member-dropdown","action","route-action","load-more","responsive-table","table-header-toggle","plugin-outlet","hash","each","-track-array","input","on","user-info","i18n","d-icon","bound-date","unless","group-member-dropdown","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-index.hbs",isStrictMode:!1})},40606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Gsyedb4U",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["canLoadMore"]]],null],[[[1,"  "],[1,[34,2]],[1,"\\n"]],[]],null],[1,"\\n"],[10,"section"],[14,0,"user-content"],[12],[1,"\\n  "],[10,0],[14,0,"group-members-actions"],[12],[1,"\\n    "],[8,[39,3],[[24,0,"group-username-filter no-blur"]],[["@value","@placeholderKey"],[[30,0,["filterInput"]],[30,0,["filterPlaceholder"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["hasRequesters"]],[[[1,"    "],[8,[39,4],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,5],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n      "],[8,[39,6],null,[["@className"],["group-members group-members__requests"]],[["header","body"],[[[[1,"\\n          "],[8,[39,7],[[24,0,"username"]],[["@order","@asc","@field","@labelKey","@automatic"],[[30,0,["order"]],[30,0,["asc"]],"username_lower","username",true]],null],[1,"\\n          "],[8,[39,7],null,[["@order","@asc","@field","@labelKey","@automatic"],[[30,0,["order"]],[30,0,["asc"]],"requested_at","groups.member_requested",true]],null],[1,"\\n          "],[10,0],[14,0,"directory-table__column-header group-request-reason__column-header"],[12],[1,[28,[35,8],["groups.requests.reason"],null]],[13],[1,"\\n          "],[10,0],[14,0,"directory-table__column-header"],[12],[13],[1,"\\n        "]],[]],[[[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["model","requesters"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"directory-table__row"],[12],[1,"\\n              "],[10,0],[14,0,"directory-table__cell group-member"],[12],[1,"\\n                "],[8,[39,11],null,[["@user","@skipName"],[[30,1],[30,0,["skipName"]]]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n                "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,8],["groups.member_requested"],null]],[13],[1,"\\n                "],[13],[1,"\\n                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,12],[[30,1,["requested_at"]]],null]],[13],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"directory-table__cell group-request-reason__content"],[12],[1,"\\n                "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n                  "],[10,1],[12],[1,[28,[35,8],["groups.requests.reason"],null]],[13],[1,"\\n                "],[13],[1,"\\n                "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n                  "],[1,[30,1,["reason"]]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"directory-table__cell group-accept-deny-buttons"],[12],[1,"\\n"],[41,[30,1,["request_undone"]],[[[1,"                  "],[1,[28,[35,8],["groups.requests.undone"],null]],[1,"\\n"]],[]],[[[41,[30,1,["request_accepted"]],[[[1,"                  "],[1,[28,[35,8],["groups.requests.accepted"],null]],[1,"\\n                  "],[8,[39,13],null,[["@action","@label"],[[28,[37,14],[[28,[37,5],[[30,0],"undoAcceptRequest"],null],[30,1]],null],"groups.requests.undo"]],null],[1,"\\n"]],[]],[[[41,[30,1,["request_denied"]],[[[1,"                  "],[1,[28,[35,8],["groups.requests.denied"],null]],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,13],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,14],[[28,[37,5],[[30,0],"acceptRequest"],null],[30,1]],null],"groups.requests.accept"]],null],[1,"\\n                  "],[8,[39,13],[[24,0,"btn-danger"]],[["@action","@label"],[[28,[37,14],[[28,[37,5],[[30,0],"denyRequest"],null],[30,1]],null],"groups.requests.deny"]],null],[1,"\\n                "]],[]]]],[]]]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,15],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[12],[1,[28,[35,8],["groups.empty.requests"],null]],[13],[1,"\\n"]],[]]],[13]],["m"],false,["if","or","hide-application-footer","text-field","load-more","action","responsive-table","table-header-toggle","i18n","each","-track-array","user-info","bound-date","d-button","fn","conditional-loading-spinner"]]',moduleName:"discourse/templates/group-requests.hbs",isStrictMode:!1})},45853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"P0eVtkdY",block:'[[[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["before-group-container","div",[28,[37,1],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[15,0,[29,["container group group-",[30,0,["model","name"]]]]],[12],[1,"\\n"],[41,[30,0,["showTooltip"]],[[[1,"    "],[10,0],[14,0,"group-delete-tooltip"],[12],[1,"\\n      "],[10,2],[12],[1,[28,[35,3],["admin.groups.delete_automatic_group"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"group-details-container"],[12],[1,"\\n    "],[10,0],[14,0,"group-info"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]],[30,0,["model","flair_bg_color"]]],null],[[[1,"        "],[10,0],[14,0,"group-avatar-flair"],[12],[1,"\\n          "],[8,[39,5],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[28,[37,4],[[30,0,["model","flair_icon"]],[30,0,["model","flair_url"]]],null],[30,0,["model","flair_bg_color"]],[30,0,["model","flair_color"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"group-info-names"],[12],[1,"\\n        "],[10,1],[14,0,"group-info-name"],[12],[1,[30,0,["groupName"]]],[13],[1,"\\n\\n        "],[41,[30,0,["model","full_name"]],[[[10,0],[14,0,"group-info-full-name"],[12],[1,[30,0,["model","name"]]],[13]],[]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"group-details-button"],[12],[1,"\\n        "],[8,[39,6],null,[["@tagName","@model","@showLogin"],["",[30,0,["model"]],[28,[37,7],["showLogin"],null]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","admin"]],[[[41,[30,0,["model","automatic"]],[[[1,"            "],[8,[39,8],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[30,0,["toggleDeleteTooltip"]],"question-circle","admin.groups.delete"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,8],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[30,0,["destroyGroup"]],[30,0,["destroying"]],"trash-alt","admin.groups.delete"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["displayGroupMessageButton"]],[[[1,"          "],[8,[39,8],[[24,0,"btn-primary group-message-button"]],[["@action","@icon","@label"],[[30,0,["messageGroup"]],"envelope","groups.message"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["group-details-after","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["model","bio_cooked"]],[[[1,"      "],[10,"hr"],[12],[13],[1,"\\n\\n      "],[10,0],[14,0,"group-bio"],[12],[1,"\\n        "],[10,2],[12],[1,[28,[35,9],[[30,0,["model","bio_cooked"]]],null]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-content-wrapper"],[12],[1,"\\n    "],[10,"section"],[14,0,"user-primary-navigation"],[12],[1,"\\n      "],[10,0],[14,0,"container"],[12],[1,"\\n        "],[8,[39,10],null,[["@group","@currentPath","@tabs"],[[30,0,["model"]],[30,0,["currentPath"]],[30,0,["tabs"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[46,[28,[37,12],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","if","i18n","or","avatar-flair","group-membership-button","route-action","d-button","html-safe","group-navigation","component","-outlet"]]',moduleName:"discourse/templates/group.hbs",isStrictMode:!1})},9980:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Z1wyACOI",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n  "],[8,[39,0],[[24,0,"activity-nav"]],[["@desktopClass"],["action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","can_see_members"]],[[[1,"      "],[8,[39,2],null,[["@filter","@categoryId"],["posts",[30,0,["category_id"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@filter","@categoryId"],["topics",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","enable_mentions"]],[[[1,"      "],[8,[39,2],null,[["@filter","@categoryId"],["mentions",[30,0,["category_id"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,3],null,[["@name","@connectorTagName"],["group-activity-bottom","li"]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,5],null,null],null,null,null],[1,"\\n"],[13]],[],false,["mobile-nav","if","group-activity-filter","plugin-outlet","component","-outlet"]]',moduleName:"discourse/templates/group/activity.hbs",isStrictMode:!1})},44949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"dSC7p3tc",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n  "],[8,[39,0],[[24,0,"activity-nav"]],[["@desktopClass"],["action-list activity-list nav-stacked"]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["tabs"]]],null]],null],null,[[[1,"      "],[10,"li"],[12],[1,"\\n        "],[8,[39,3],null,[["@route","@model"],[[30,1,["route"]],[30,0,["model","name"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,4],[[30,1,["title"]]],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[1]],null],[1,"  "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n"],[13]],["tab"],false,["mobile-nav","each","-track-array","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/manage.hbs",isStrictMode:!1})},17312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"VkBueYjz",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["groups.manage.categories.long_title"],null]],[13],[1,"\\n    "],[10,0],[12],[1,[28,[35,0],["groups.manage.categories.description"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","watchingCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.watched_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-tracking"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","trackingCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","trackingCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.tracked_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching-first"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","watchingFirstPostCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","watchingFirstPostCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.watching_first_post_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-regular"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","regularCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","regularCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.regular_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-muted"],null]],[1,"\\n      "],[1,[28,[35,0],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n    "],[8,[39,2],null,[["@categories","@blockedCategories","@onChange"],[[30,0,["model","mutedCategories"]],[30,0,["selectedCategories"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","mutedCategories"]]],null]],null]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.categories.muted_categories_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["i18n","d-icon","category-selector","action","mut","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/categories.hbs",isStrictMode:!1})},74147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"RpCq8iTK",block:'[[[8,[39,0],null,[["@group"],[[30,0,["model"]]]],null]],[],false,["group-manage-email-settings"]]',moduleName:"discourse/templates/group/manage/email.hbs",isStrictMode:!1})},48718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"1DmEzFPn",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n  "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["groups-form-interaction-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/interaction.hbs",isStrictMode:!1})},65172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"0nDseQQa",block:'[[[41,[51,[30,0,["model","all_loaded"]]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","logs"]],[[[1,"  "],[10,0],[14,0,"group-manage-logs-controls"],[12],[1,"\\n    "],[8,[39,3],null,[["@clearFilter","@value","@type"],[[28,[37,4],[[30,0],"clearFilter"],null],[30,0,["filters","action"]],"action"]],null],[1,"\\n    "],[8,[39,3],null,[["@clearFilter","@value","@type"],[[28,[37,4],[[30,0],"clearFilter"],null],[30,0,["filters","acting_user"]],"acting_user"]],null],[1,"\\n    "],[8,[39,3],null,[["@clearFilter","@value","@type"],[[28,[37,4],[[30,0],"clearFilter"],null],[30,0,["filters","target_user"]],"target_user"]],null],[1,"\\n    "],[8,[39,3],null,[["@clearFilter","@value","@type"],[[28,[37,4],[[30,0],"clearFilter"],null],[30,0,["filters","subject"]],"subject"]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@selector","@action"],[".group-manage-logs .group-manage-logs-row",[28,[37,4],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[10,"table"],[14,0,"group-manage-logs"],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,6],["groups.manage.logs.action"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,6],["groups.manage.logs.acting_user"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,6],["groups.manage.logs.target_user"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,6],["groups.manage.logs.subject"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,6],["groups.manage.logs.when"],null]],[13],[1,"\\n        "],[10,"th"],[12],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","logs"]]],null]],null],null,[[[1,"          "],[8,[39,9],null,[["@log","@filters"],[[30,1],[30,0,["filters"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[10,0],[12],[1,[28,[35,6],["groups.empty.logs"],null]],[13],[1,"\\n"]],[]]]],["logItem"],false,["unless","hide-application-footer","if","group-manage-logs-filter","action","load-more","i18n","each","-track-array","group-manage-logs-row","conditional-loading-spinner"]]',moduleName:"discourse/templates/group/manage/logs.hbs",isStrictMode:!1})},56488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"1jAIzYSl",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n  "],[8,[39,0],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[8,[39,1],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["groups-form-membership-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/membership.hbs",isStrictMode:!1})},85503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"0wrlwvoi",block:'[[[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n  "],[8,[39,0],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n  "],[8,[39,1],null,[["@model","@saving"],[[30,0,["model"]],[30,0,["saving"]]]],null],[1,"\\n"],[13]],[],false,["groups-form-profile-fields","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/profile.hbs",isStrictMode:!1})},79e3:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"UfNMkmI9",block:'[[[10,"form"],[14,0,"groups-form form-vertical groups-notifications-form"],[12],[1,"\\n\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["before-manage-group-tags","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["groups.manage.tags.long_title"],null]],[13],[1,"\\n    "],[10,0],[12],[1,[28,[35,2],["groups.manage.tags.description"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-watching"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.watching.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.watched_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-tracking"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.tracking.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","tracking_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.tracked_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-watching-first"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.watching_first_post.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","watching_first_post_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.watching_first_post_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-regular"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.regular.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","regular_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.regular_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["d-muted"],null]],[1,"\\n      "],[1,[28,[35,2],["groups.notifications.muted.title"],null]],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@tags","@blacklist","@everyTag","@unlimitedTagCount","@options"],[[30,0,["model","muted_tags"]],[30,0,["selectedTags"]],true,true,[28,[37,1],null,[["allowAny"],[false]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,2],["groups.manage.tags.muted_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","i18n","d-icon","tag-chooser","group-manage-save-button"]]',moduleName:"discourse/templates/group/manage/tags.hbs",isStrictMode:!1})},31803:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"ZZAGBnv9",block:'[[[10,"section"],[14,0,"user-secondary-navigation"],[12],[1,"\\n  "],[8,[39,0],[[24,0,"messages-nav"]],[["@desktopClass"],["nav-stacked action-list"]],[["default"],[[[[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,1],null,[["@route","@model"],["group.messages.inbox",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,2],["user.messages.inbox"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,1],null,[["@route","@model"],["group.messages.archive",[30,0,["model","name"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,2],["user.messages.archive"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,4],null,null],null,null,null],[1,"\\n"],[13]],[],false,["mobile-nav","link-to","i18n","component","-outlet"]]',moduleName:"discourse/templates/group/messages.hbs",isStrictMode:!1})},1804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"1L1yCrHV",block:'[[[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n"],[41,[30,0,["model","permissions"]],[[[1,"    "],[10,"label"],[14,0,"group-category-permissions-desc"],[12],[1,"\\n      "],[1,[28,[35,1],["groups.permissions.description"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"table"],[14,0,"group-category-permissions"],[12],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["model","permissions"]]],null]],null],null,[[[1,"          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,4],[[30,1,["category"]]],null]],[13],[1,"\\n            "],[10,"td"],[12],[1,[30,1,["description"]]],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,1],["groups.permissions.none"],null]],[1,"\\n"]],[]]],[13]],["permission"],false,["if","i18n","each","-track-array","category-link"]]',moduleName:"discourse/templates/group/permissions.hbs",isStrictMode:!1})},45464:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"WPR935JF",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["groups","canLoadMore"]]],null],[[[1,"  "],[1,[34,2]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,3],["groups-page"],null]],[1,"\\n\\n"],[8,[39,4],null,[["@name","@connectorTagName"],["before-groups-index-container","div"]],null],[1,"\\n\\n"],[10,"section"],[14,0,"container groups-index"],[12],[1,"\\n  "],[10,0],[14,0,"groups-header"],[12],[1,"\\n"],[41,[30,0,["currentUser","can_create_group"]],[[[1,"      "],[8,[39,5],[[24,0,"btn-default groups-header-new pull-right"]],[["@action","@icon","@label"],[[30,0,["new"]],"plus","admin.groups.new.title"]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"groups-header-filters"],[12],[1,"\\n      "],[8,[39,6],[[16,"placeholder",[28,[37,7],["groups.index.all"],null]],[24,0,"groups-header-filters-name no-blur"],[16,"aria-description",[28,[37,7],["groups.index.search_results"],null]],[4,[38,9],["input",[28,[37,10],[[30,0],"onFilterChanged"],[["value"],["target.value"]]]],null]],[["@value","@type"],[[28,[37,8],[[30,0,["filter"]]],null],"search"]],null],[1,"\\n\\n      "],[8,[39,11],[[24,0,"groups-header-filters-type"]],[["@value","@content","@onChange","@options"],[[30,0,["type"]],[30,0,["types"]],[28,[37,10],[[30,0],[28,[37,12],[[30,0,["type"]]],null]],null],[28,[37,13],null,[["clearable","none"],[true,"groups.index.filter"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,14],null,[["@condition"],[[30,0,["isLoading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["groups"]],[[[1,"      "],[8,[39,15],null,[["@selector","@action"],[".groups-boxes .group-box",[28,[37,10],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"container"],[12],[1,"\\n          "],[10,0],[14,0,"groups-boxes"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["groups"]]],null]],null],null,[[[1,"              "],[8,[39,18],[[24,0,"group-box"],[16,"data-group-name",[30,1,["name"]]]],[["@route","@model"],["group.members",[30,1,["name"]]]],[["default"],[[[[1,"\\n                "],[10,0],[14,0,"group-box-inner"],[12],[1,"\\n                  "],[10,0],[14,0,"group-info-wrapper"],[12],[1,"\\n"],[41,[30,1,["flair_url"]],[[[1,"                      "],[10,1],[14,0,"group-avatar-flair"],[12],[1,"\\n                        "],[8,[39,19],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["name"]],[30,1,["flair_url"]],[30,1,["flair_bg_color"]],[30,1,["flair_color"]]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[]],null],[1,"\\n                    "],[10,1],[14,0,"group-info"],[12],[1,"\\n                      "],[8,[39,20],null,[["@group"],[[30,1]]],null],[1,"\\n                      "],[10,0],[14,0,"group-user-count"],[12],[1,[28,[35,21],["user"],null]],[1,[30,1,["user_count"]]],[13],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[10,0],[14,0,"group-description"],[12],[1,[28,[35,22],[[30,1,["bio_excerpt"]]],null]],[13],[1,"\\n\\n                  "],[10,0],[14,0,"group-membership"],[12],[1,"\\n                    "],[8,[39,23],null,[["@tagName","@model","@showLogin"],["",[30,1],[28,[37,24],["showLogin"],null]]],[["default"],[[[[1,"\\n"],[41,[30,1,["is_group_owner"]],[[[1,"                        "],[10,1],[14,0,"is-group-owner"],[12],[1,"\\n                          "],[1,[28,[35,21],["shield-alt"],null]],[1,"\\n                          "],[1,[28,[35,7],["groups.index.is_group_owner"],null]],[1,"\\n                        "],[13],[1,"\\n"]],[]],[[[41,[30,1,["is_group_user"]],[[[1,"                        "],[10,1],[14,0,"is-group-member"],[12],[1,"\\n                          "],[1,[28,[35,21],["check"],null]],[1,"\\n                          "],[1,[28,[35,7],["groups.index.is_group_user"],null]],[1,"\\n                        "],[13],[1,"\\n"]],[]],[[[41,[30,1,["public_admission"]],[[[1,"                        "],[1,[28,[35,7],["groups.index.public"],null]],[1,"\\n"]],[]],[[[41,[30,1,["isPrivate"]],[[[1,"                        "],[1,[28,[35,21],["far-eye-slash"],null]],[1,"\\n                        "],[1,[28,[35,7],["groups.index.private"],null]],[1,"\\n"]],[]],[[[41,[30,1,["automatic"]],[[[1,"                          "],[1,[28,[35,7],["groups.index.automatic"],null]],[1,"\\n"]],[]],[[[1,"                          "],[1,[28,[35,21],["ban"],null]],[1,"\\n                          "],[1,[28,[35,7],["groups.index.closed"],null]],[1,"\\n"]],[]]],[1,"                      "]],[]]]],[]]]],[]]]],[]]],[1,"                    "]],[]]]]],[1,"\\n\\n                    "],[10,1],[12],[1,"\\n                      "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["group-index-box-after","div",[28,[37,13],null,[["model"],[[30,1]]]]]],null],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n              "]],[]]]]],[1,"\\n"]],[1]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[39,14],null,[["@condition"],[[30,0,["groups","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,2],[14,"role","status"],[12],[1,[28,[35,7],["groups.index.empty"],null]],[13],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,[["@name","@connectorTagName"],["after-groups-index-container","div"]],null]],["group"],false,["if","or","hide-application-footer","body-class","plugin-outlet","d-button","input","i18n","readonly","on","action","combo-box","mut","hash","conditional-loading-spinner","load-more","each","-track-array","link-to","avatar-flair","groups-info","d-icon","html-safe","group-membership-button","route-action"]]',moduleName:"discourse/templates/groups/index.hbs",isStrictMode:!1})},78927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"nPd13wYJ",block:'[[[1,[28,[35,0],["groups-new-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h1"],[12],[1,[28,[35,1],["admin.groups.new.title"],null]],[13],[1,"\\n\\n  "],[10,"hr"],[12],[13],[1,"\\n\\n  "],[10,"form"],[14,0,"groups-form form-vertical"],[12],[1,"\\n    "],[8,[39,2],null,[["@model","@disableSave"],[[30,0,["model"]],[30,0,["saving"]]]],[["default"],[[[[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[14,"for","owner-selector"],[12],[1,[28,[35,1],["admin.groups.add_owners"],null]],[13],[1,"\\n\\n        "],[8,[39,3],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["owner-selector",[30,0,["splitOwnerUsernames"]],[28,[37,4],[[30,0],"updateOwnerUsernames"],null],[28,[37,5],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[14,"for","member-selector"],[12],[1,[28,[35,1],["groups.members.title"],null]],[13],[1,"\\n\\n        "],[8,[39,3],[[24,0,"input-xxlarge"]],[["@id","@value","@onChange","@options"],["member-selector",[30,0,["splitUsernames"]],[28,[37,4],[[30,0],"updateUsernames"],null],[28,[37,5],null,[["filterPlaceholder"],["groups.selector_placeholder"]]]]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,6],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n    "],[8,[39,7],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n      "],[8,[39,8],[[24,0,"btn-primary group-form-save"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,0,["save"]],[30,0,["saving"]],"admin.groups.new.create"]],null],[1,"\\n\\n      "],[8,[39,9],null,[["@route"],["groups"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["cancel"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["body-class","i18n","groups-form-profile-fields","email-group-user-chooser","action","hash","groups-form-membership-fields","groups-form-interaction-fields","d-button","link-to"]]',moduleName:"discourse/templates/groups/new.hbs",isStrictMode:!1})},87526:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"4/3+QeFR",block:"[[],[],false,[]]",moduleName:"discourse/templates/hide-modal.hbs",isStrictMode:!1})},59239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"dFjK5FDi",block:'[[[46,[28,[37,1],null,null],null,null,null]],[],false,["component","-outlet"]]',moduleName:"discourse/templates/invites.hbs",isStrictMode:!1})},91900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"sbrvLmaR",block:'[[[1,[28,[35,0],["invite-page"],null]],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,0],[14,0,"container invites-show clearfix"],[12],[1,"\\n    "],[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n      "],[10,"h1"],[14,0,"login-title"],[12],[1,[30,0,["welcomeTitle"]]],[13],[1,"\\n      "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n"],[41,[51,[30,0,["successMessage"]]],[[[1,"        "],[10,2],[14,0,"login-subheader"],[12],[1,[30,0,["subheaderMessage"]]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[15,0,[52,[30,0,["successMessage"]],"invite-success","invite-form"]],[12],[1,"\\n      "],[10,0],[14,0,"two-col"],[12],[1,"\\n        "],[10,0],[14,0,"col-image"],[12],[1,"\\n          "],[10,"img"],[15,"src",[30,0,["inviteImageUrl"]]],[14,"alt",""],[12],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"col-form"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1,"            "],[10,0],[14,0,"success-info"],[12],[1,"\\n              "],[10,2],[12],[1,[28,[35,3],[[30,0,["successMessage"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[10,2],[12],[1,[28,[35,4],["invites.invited_by"],null]],[13],[1,"\\n            "],[10,2],[12],[8,[39,5],null,[["@user"],[[30,0,["invitedBy"]]]],null],[13],[1,"\\n\\n"],[41,[30,0,["associateHtml"]],[[[1,"              "],[10,2],[14,0,"create-account-associate-link"],[12],[1,"\\n                "],[1,[28,[35,3],[[30,0,["associateHtml"]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["isInviteLink"]]],[[[1,"              "],[10,2],[14,0,"email-message"],[12],[1,"\\n                "],[1,[28,[35,3],[[30,0,["yourEmailMessage"]]],null]],[1,"\\n"],[41,[30,0,["showSocialLoginAvailable"]],[[[1,"                  "],[1,[28,[35,4],["invites.social_login_available"],null]],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["externalAuthsOnly"]],[[[41,[30,0,["authOptions"]],[[[41,[51,[30,0,["isInviteLink"]]],[[[1,"                  "],[8,[39,6],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"                "],[8,[39,7],null,[["@externalLogin","@context"],[[28,[37,8],[[30,0],"externalLogin"],null],"invite"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["discourseConnectEnabled"]],[[[1,"              "],[10,3],[14,0,"btn btn-primary discourse-connect raw-link"],[15,6,[30,0,["ssoPath"]]],[12],[1,"\\n                "],[1,[28,[35,4],["continue"],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["shouldDisplayForm"]],[[[1,"              "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["isInviteLink"]],[[[1,"                  "],[10,0],[14,0,"input email-input input-group"],[12],[1,"\\n                    "],[8,[39,9],[[24,1,"new-account-email"],[24,3,"email"],[16,0,[28,[37,10],[[30,0,["email"]]],null]],[24,"autofocus","autofocus"],[16,"disabled",[30,0,["externalAuthsOnly"]]]],[["@type","@value"],["email",[30,0,["email"]]]],null],[1,"\\n                    "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n                      "],[1,[28,[35,4],["user.email.title"],null]],[1,"\\n                      "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n                    "],[13],[1,"\\n                    "],[8,[39,6],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n                    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.email.instructions"],null]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[14,0,"input username-input input-group"],[12],[1,"\\n                  "],[8,[39,9],[[16,0,[28,[37,10],[[30,0,["accountUsername"]]],null]],[24,1,"new-account-username"],[24,3,"username"],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"autocomplete","off"]],[["@value"],[[30,0,["accountUsername"]]]],null],[1,"\\n                  "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n                    "],[1,[28,[35,4],["user.username.title"],null]],[1,"\\n                    "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n                  "],[13],[1,"\\n                  "],[8,[39,6],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n                  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.username.instructions"],null]],[13],[1,"\\n                "],[13],[1,"\\n\\n"],[41,[30,0,["fullnameRequired"]],[[[1,"                  "],[10,0],[14,0,"input name-input input-group"],[12],[1,"\\n                    "],[8,[39,9],[[16,0,[28,[37,10],[[30,0,["accountName"]]],null]],[24,1,"new-account-name"],[24,3,"name"]],[["@value"],[[30,0,["accountName"]]]],null],[1,"\\n                    "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,"\\n                      "],[1,[28,[35,4],["invites.name_label"],null]],[1,"\\n"],[41,[30,0,["siteSettings","full_name_required"]],[[[1,"                        "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"                    "],[13],[1,"\\n                    "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["nameInstructions"]]],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["externalAuthsOnly"]]],[[[1,"                  "],[10,0],[14,0,"input password-input input-group"],[12],[1,"\\n                    "],[8,[39,11],[[16,0,[28,[37,10],[[30,0,["accountPassword"]]],null]]],[["@value","@type","@id","@capsLockOn"],[[30,0,["accountPassword"]],[52,[30,0,["maskPassword"]],"password","text"],"new-account-password",[30,0,["capsLockOn"]]]],null],[1,"\\n                    "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n                      "],[1,[28,[35,4],["invites.password_label"],null]],[1,"\\n                      "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n                    "],[13],[1,"\\n                    "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n                      "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n                        "],[8,[39,6],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n                        "],[10,1],[14,0,"more-info"],[12],[1,[30,0,["passwordInstructions"]]],[13],[1,"\\n                        "],[10,0],[15,0,[29,["caps-lock-warning\\n                            ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n                          "],[1,[28,[35,12],["exclamation-triangle"],null]],[1,"\\n                          "],[1,[28,[35,4],["login.caps_lock_warning"],null]],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[8,[39,13],null,[["@maskPassword","@togglePasswordMask","@parentController"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]],"invites-show"]],null],[1,"\\n                    "],[13],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["userFields"]],[[[1,"                  "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,15],[[28,[37,15],[[30,0,["userFields"]]],null]],null],null,[[[1,"                      "],[10,0],[14,0,"input-group"],[12],[1,"\\n                        "],[8,[39,16],[[16,0,[28,[37,10],[[30,1,["value"]]],null]]],[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n                      "],[13],[1,"\\n"]],[1]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[14,0,"invitation-cta"],[12],[1,"\\n                  "],[8,[39,17],[[24,0,"btn-primary invitation-cta__accept"],[24,4,"submit"]],[["@action","@disabled","@label"],[[28,[37,8],[[30,0],"submit"],null],[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n                  "],[10,0],[14,0,"invitation-cta__info"],[12],[1,"\\n                    "],[10,1],[14,0,"invitation-cta__signed-up"],[12],[1,[28,[35,4],["login.previous_sign_up"],null]],[13],[1,"\\n                    "],[8,[39,17],[[24,0,"btn-flat invitation-cta__sign-in"]],[["@action","@label"],[[28,[37,18],["showLogin"],null],"log_in"]],null],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n\\n                "],[10,0],[14,0,"disclaimer"],[12],[1,"\\n                  "],[1,[28,[35,3],[[30,0,["disclaimerHtml"]]],null]],[1,"\\n                "],[13],[1,"\\n\\n"],[41,[30,0,["errorMessage"]],[[[1,"                  "],[10,"br"],[12],[13],[10,"br"],[12],[13],[1,"\\n                  "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["existingUserRedeeming"]],[[[41,[30,0,["existingUserCanRedeem"]],[[[1,"                "],[8,[39,17],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@disabled","@label"],[[28,[37,8],[[30,0],"submit"],null],[30,0,["submitDisabled"]],"invites.accept_invite"]],null],[1,"\\n"]],[]],[[[1,"                "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["existingUserCanRedeemError"]]],[13],[1,"\\n"]],[]]]],[]],null]],[]]],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["f"],false,["body-class","unless","if","html-safe","i18n","user-info","input-tip","login-buttons","action","input","value-entered","password-field","d-icon","toggle-password-mask","each","-track-array","user-field","d-button","route-action"]]',moduleName:"discourse/templates/invites/show.hbs",isStrictMode:!1})},66795:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"UFkU87yJ",block:'[[[1,[34,0]],[1,"\\n"],[1,[34,1]]],[],false,["loading-spinner","hide-application-footer"]]',moduleName:"discourse/templates/loading.hbs",isStrictMode:!1})},64530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"2tsWWimX",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[10,"h2"],[12],[1,[28,[35,0],["login.to_continue"],null]],[13],[1,"\\n\\n  "],[10,2],[14,5,"margin-top: 1em"],[12],[1,[28,[35,0],["login.preferences"],null]],[13],[1,"\\n\\n  "],[8,[39,1],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,2],["showLogin"],null],"log_in"]],null],[1,"\\n"],[13]],[],false,["i18n","d-button","route-action"]]',moduleName:"discourse/templates/login-preferences.hbs",isStrictMode:!1})},70530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"RexmQ7m9",block:'[[[1,[28,[35,0],["static-login"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n  "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n    "],[10,0],[14,0,"login-welcome"],[12],[1,"\\n      "],[8,[39,1],null,[["@name","@outletArgs"],["above-login",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[8,[39,1],null,[["@name"],["above-static"]],null],[1,"\\n\\n      "],[10,0],[14,0,"login-content"],[12],[1,"\\n        "],[1,[28,[35,3],[[30,0,["model","html"]]],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,1],null,[["@name"],["below-static"]],null],[1,"\\n      "],[8,[39,1],null,[["@name","@outletArgs"],["below-login",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n      "],[10,0],[14,0,"body-page-button-container"],[12],[1,"\\n"],[41,[30,0,["application","canSignUp"]],[[[1,"          "],[8,[39,5],[[24,0,"btn-primary sign-up-button"]],[["@action","@label"],[[28,[37,6],["showCreateAccount"],null],"sign_up"]],null],[1,"\\n"]],[]],null],[1,"\\n        "],[8,[39,5],[[24,0,"btn-primary login-button"]],[["@action","@icon","@label"],[[28,[37,6],["showLogin"],null],"user","log_in"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","hash","html-safe","if","d-button","route-action"]]',moduleName:"discourse/templates/login.hbs",isStrictMode:!1})},58067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"pdomExhe",block:'[[[41,[30,0,["categories"]],[[[41,[30,0,["filteredCategories"]],[[[1,"    "],[10,0],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["filteredCategories"]]],null]],null],null,[[[1,"        "],[8,[39,3],null,[["@category","@showTopics"],[[30,1],[30,0,["showTopics"]]]],null],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["mutedCategories"]],[[[1,"    "],[10,0],[14,0,"muted-categories"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"muted-categories-link"],[4,[38,4],["click",[30,0,["toggleShowMuted"]]],null],[12],[1,"\\n        "],[10,"h3"],[14,0,"muted-categories-heading"],[12],[1,[28,[35,5],["categories.muted"],null]],[13],[1,"\\n"],[41,[30,0,["mutedToggleIcon"]],[[[1,"          "],[1,[28,[35,6],[[30,0,["mutedToggleIcon"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[15,0,[29,["category-list\\n          ",[52,[30,0,["showTopics"]],"with-topics"],"\\n          ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["mutedCategories"]]],null]],null],null,[[[1,"          "],[8,[39,3],null,[["@category","@showTopics","@listType"],[[30,2],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null]],["c","c"],false,["if","each","-track-array","parent-category-row","on","i18n","d-icon","unless"]]',moduleName:"discourse/templates/mobile/components/categories-only.hbs",isStrictMode:!1})},80507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"R3z5M8j9",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-above-each-category",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n  "],[10,0],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,5,[28,[37,3],[[30,0,["category","color"]]],null]],[15,0,[29,["category-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n    "],[10,"table"],[14,0,"topic-list"],[12],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[14,0,"main-link"],[12],[1,"\\n            "],[8,[39,5],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1,"          "],[10,"tr"],[14,0,"category-description"],[12],[1,"\\n            "],[10,"td"],[14,"colspan","3"],[12],[1,"\\n              "],[1,[28,[35,6],[[30,0,["category","description_excerpt"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,["category","topics"]]],null]],null],null,[[[1,"              "],[8,[39,9],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[1]],null]],[]],null]],[]],null],[41,[30,0,["category","isGrandParent"]],[[[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"            "],[8,[39,10],null,[["@category","@listType"],[[30,2],[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[30,0,["category","subcategories"]],[[[1,"          "],[10,"tr"],[14,0,"subcategories-list"],[12],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"                  "],[8,[39,11],null,[["@category","@listType"],[[30,3],[30,0,["listType"]]]],null],[1,"\\n"]],[3]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "]],[]],null]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"footer"],[14,0,"clearfix category-topics-count"],[12],[1,"\\n      "],[10,0],[14,0,"category-stat"],[12],[1,"\\n        "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n          "],[1,[28,[35,6],[[30,0,["category","statTotal"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[51,[30,0,["category","pickAll"]]],[[[1,"        "],[10,0],[14,0,"category-stat"],[12],[1,"\\n          "],[10,3],[15,6,[30,0,["category","url"]]],[12],[1,"\\n            "],[1,[28,[35,6],[[30,0,["category","stat"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["t","subcategory","subcategory"],false,["unless","plugin-outlet","hash","border-color","if","category-title-link","html-safe","each","-track-array","mobile-category-topic","sub-category-row","sub-category-item"]]',moduleName:"discourse/templates/mobile/components/parent-category-row.hbs",isStrictMode:!1})},58344:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Vp+8lcfr",block:'[[[41,[51,[30,0,["isMuted"]]],[[[1,"  "],[1,[28,[35,1],[[30,0,["category"]]],null]],[1,"\\n"]],[]],null]],[],false,["unless","category-link"]]',moduleName:"discourse/templates/mobile/components/sub-category-item.hbs",isStrictMode:!1})},4788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Os5z+gIw",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,5,[28,[37,1],[[30,0,["category","color"]]],null]],[15,0,[29,["subcategory-list-item category ",[52,[30,0,["isMuted"]],"muted"]]]],[12],[1,"\\n    "],[10,"td"],[12],[1,"\\n      "],[8,[39,3],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n      "],[10,0],[14,0,"subcategories-list"],[12],[1,"\\n"],[41,[30,0,["category","subcategories"]],[[[1,"          "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"              "],[8,[39,6],null,[["@category","@listType"],[[30,1],[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["subcategory"],false,["unless","border-color","if","category-title-link","each","-track-array","sub-category-item"]]',moduleName:"discourse/templates/mobile/components/sub-category-row.hbs",isStrictMode:!1})},72292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"/niEzydL",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n    "],[10,0],[14,0,"parent-category"],[12],[1,"\\n      "],[8,[39,2],null,[["@category"],[[30,1]]],null],[1,"\\n      "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,3],[[30,1,["stat"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"        "],[8,[39,4],null,[["@category","@showTopics"],[[30,2],true]],null],[1,"\\n"]],[2]],[[[1,"        "],[8,[39,4],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["category","subCategory"],false,["each","-track-array","category-title-link","html-safe","parent-category-row"]]',moduleName:"discourse/templates/mobile/components/subcategories-with-featured-topics.hbs",isStrictMode:!1})},32133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"mTChdamG",block:'[[[10,0],[14,0,"container password-reset clearfix"],[12],[1,"\\n  "],[10,0],[14,0,"pull-left col-image"],[12],[1,"\\n    "],[10,"img"],[15,"src",[30,0,["lockImageUrl"]]],[14,0,"password-reset-img"],[14,"alt",""],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"pull-left col-form"],[12],[1,"\\n"],[41,[30,0,["successMessage"]],[[[1,"      "],[10,2],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n\\n"],[41,[30,0,["requiresApproval"]],[[[1,"        "],[10,2],[12],[1,[28,[35,1],["login.not_approved"],null]],[13],[1,"\\n"]],[]],[[[41,[51,[30,0,["redirected"]]],[[[1,"          "],[11,3],[24,0,"btn"],[16,6,[30,0,["redirectHref"]]],[4,[38,3],["click",[30,0,["done"]]],null],[12],[1,[30,0,["continueButtonText"]]],[13],[1,"\\n"]],[]],null]],[]]]],[]],[[[1,"      "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["securityKeyOrSecondFactorRequired"]],[[[41,[30,0,["errorMessage"]],[[[1,"            "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n            "],[10,"br"],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["securityKeyRequired"]],[[[1,"            "],[8,[39,4],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,0,["model","allowed_credential_ids"]],[30,0,["model","security_key_challenge"]],[30,0,["model","security_key_required"]],false,[30,0,["secondFactorMethod"]],[30,0,["otherMethodAllowed"]],[28,[37,5],[[30,0],"authenticateSecurityKey"],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,6],null,[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@isLogin"],[[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],false]],[["default"],[[[[1,"\\n              "],[8,[39,7],null,[["@value","@inputId","@secondFactorMethod","@backupEnabled"],[[30,0,["secondFactorToken"]],"second-factor",[30,0,["secondFactorMethod"]],[30,0,["backupEnabled"]]]],null],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]]],[41,[51,[30,0,["securityKeyRequired"]]],[[[1,"            "],[8,[39,8],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[28,[37,5],[[30,0],"submit"],null],"submit"]],null],[1,"\\n"]],[]],null]],[]],[[[1,"          "],[10,"h2"],[12],[1,[28,[35,1],["user.change_password.choose"],null]],[13],[1,"\\n\\n          "],[10,0],[14,0,"input"],[12],[1,"\\n            "],[8,[39,9],null,[["@value","@type","@id","@capsLockOn","@autofocus"],[[30,0,["accountPassword"]],[52,[30,0,["maskPassword"]],"password","text"],"new-account-password",[30,0,["capsLockOn"]],"autofocus"]],null],[1,"\\n            "],[8,[39,10],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n            "],[8,[39,11],null,[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"instructions"],[12],[1,"\\n            "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n              "],[1,[28,[35,12],["exclamation-triangle"],null]],[1,"\\n              "],[1,[28,[35,1],["login.caps_lock_warning"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,8],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[28,[37,5],[[30,0],"submit"],null],"user.change_password.set_password"]],null],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],[],false,["if","i18n","unless","on","security-key-form","action","second-factor-form","second-factor-input","d-button","password-field","toggle-password-mask","input-tip","d-icon"]]',moduleName:"discourse/templates/password-reset.hbs",isStrictMode:!1})},23975:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"y9E5IxNw",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences solo-preference"],[12],[1,"\\n  "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["success"]],[[[1,"      "],[10,0],[14,0,"alert alert-success"],[12],[1,[30,0,["successMessage"]]],[13],[1,"\\n      "],[8,[39,2],[[24,0,"success-back"]],[["@route"],["preferences.account"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["arrow-left"],null]],[1,"\\n        "],[1,[28,[35,4],["user.change_email.back_to_preferences"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["error"]],[[[1,"        "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n          "],[1,[28,[35,4],[[52,[30,0,["new"]],"user.add_email.title","user.change_email.title"]],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@id","@classNames","@autofocus"],[[30,0,["newEmail"]],"change-email","input-xxlarge","autofocus"]],null],[1,"\\n          "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1,"              "],[1,[28,[35,4],["user.change_email.taken"],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,4],["user.email.instructions"],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[8,[39,6],null,[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"controls save-button"],[12],[1,"\\n        "],[8,[39,7],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@disabled","@translatedLabel"],[[28,[37,8],[[30,0],"saveEmail"],null],[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n        "],[8,[39,9],null,[["@route","@args"],["preferences.account",[30,0,["model","username"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],[],false,["body-class","if","link-to","d-icon","i18n","text-field","input-tip","d-button","action","cancel-link"]]',moduleName:"discourse/templates/preferences-email.hbs",isStrictMode:!1})},31555:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"xanxNquu",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences solo-preference second-factor"],[12],[1,"\\n  "],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n    "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n"],[41,[30,0,["showEnforcedNotice"]],[[[1,"        "],[10,0],[14,0,"alert alert-error"],[12],[1,[28,[35,3],["user.second_factor.enforced_notice"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayOAuthWarning"]],[[[1,"        "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,3],["user.second_factor.oauth_enabled_warning"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"        "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"control-group totp"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,"h2"],[12],[1,[28,[35,3],["user.second_factor.totp.title"],null]],[13],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["totps"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n              "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,1,["name"]],[[[1,"                  "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,3],["user.second_factor.totp.default_name"],null]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1,"                "],[10,0],[14,0,"actions"],[12],[1,"\\n                  "],[8,[39,6],null,[["@totp","@editSecondFactor","@disableSingleSecondFactor"],[[30,1],[28,[37,7],[[30,0],"editSecondFactor"],null],[28,[37,7],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[1]],null],[1,"          "],[8,[39,8],[[24,0,"btn-default new-totp"]],[["@action","@icon","@disabled","@label"],[[28,[37,7],[[30,0],"createTotp"],null],"plus",[30,0,["loading"]],"user.second_factor.totp.add"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group security-key"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,"h2"],[12],[1,[28,[35,3],["user.second_factor.security_key.title"],null]],[13],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["security_keys"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n              "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,2,["name"]],[[[1,"                  "],[1,[30,2,["name"]]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,3],["user.second_factor.security_key.default_name"],null]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n\\n"],[41,[30,0,["isCurrentUser"]],[[[1,"                "],[10,0],[14,0,"actions"],[12],[1,"\\n                  "],[8,[39,9],null,[["@securityKey","@editSecurityKey","@disableSingleSecondFactor"],[[30,2],[28,[37,7],[[30,0],"editSecurityKey"],null],[28,[37,7],[[30,0],"disableSingleSecondFactor"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[2]],null],[1,"          "],[8,[39,8],[[24,0,"btn-default new-security-key"]],[["@action","@icon","@disabled","@label"],[[28,[37,7],[[30,0],"createSecurityKey"],null],"plus",[30,0,["loading"]],"user.second_factor.security_key.add"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group pref-second-factor-backup"],[12],[1,"\\n        "],[10,0],[14,0,"controls pref-second-factor-backup"],[12],[1,"\\n          "],[10,"h2"],[12],[1,[28,[35,3],["user.second_factor_backup.title"],null]],[13],[1,"\\n          "],[10,0],[14,0,"second-factor-item row"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_enabled"]],[[[1,"              "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","second_factor_backup_enabled"]],[[[1,"                  "],[1,[28,[35,10],[[28,[37,3],["user.second_factor_backup.manage"],[["count"],[[30,0,["model","second_factor_remaining_backup_codes"]]]]]],null]],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,8],[[24,0,"btn-default new-second-factor-backup"]],[["@action","@icon","@disabled","@label"],[[28,[37,7],[[30,0],"editSecondFactorBackup"],null],"plus",[30,0,["loading"]],"user.second_factor_backup.enable_long"]],null],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n\\n"],[41,[28,[37,11],[[30,0,["model","second_factor_backup_enabled"]],[30,0,["isCurrentUser"]]],null],[[[1,"                "],[10,0],[14,0,"actions"],[12],[1,"\\n                  "],[8,[39,12],null,[["@secondFactorBackupEnabled","@editSecondFactorBackup","@disableSecondFactorBackup"],[[30,0,["model","second_factor_backup_enabled"]],[28,[37,7],[[30,0],"editSecondFactorBackup"],null],[28,[37,7],[[30,0],"disableSecondFactorBackup"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,3],["user.second_factor_backup.enable_prerequisites"],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["hasSecondFactors"]],[[[41,[51,[30,0,["showEnforcedNotice"]]],[[[1,"          "],[10,0],[14,0,"control-group pref-second-factor-disable-all"],[12],[1,"\\n            "],[10,0],[14,0,"controls -actions"],[12],[1,"\\n              "],[8,[39,8],[[24,0,"btn-danger"]],[["@icon","@action","@disabled","@label"],["ban",[28,[37,7],[[30,0],"disableAllSecondFactors"],null],[30,0,["loading"]],"user.second_factor.disable_all"]],null],[1,"\\n              "],[8,[39,14],null,[["@route","@args"],["preferences.security",[30,0,["model","username"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],["totp","security_key"],false,["body-class","conditional-loading-spinner","if","i18n","each","-track-array","token-based-auth-dropdown","action","d-button","security-key-dropdown","html-safe","and","two-factor-backup-dropdown","unless","cancel-link"]]',moduleName:"discourse/templates/preferences-second-factor.hbs",isStrictMode:!1})},38668:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"lsqn5Ysk",block:'[[[1,[28,[35,0],["user-preferences-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[8,[39,1],null,[["@ariaLabel"],["User secondary - preferences"]],[["default"],[[[[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-account"]],[["@route","@ariaCurrentContext"],["preferences.account","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["user"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.account"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-security"]],[["@route","@ariaCurrentContext"],["preferences.security","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["lock"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.security"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-profile"]],[["@route","@ariaCurrentContext"],["preferences.profile","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["user"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.profile"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-emails"]],[["@route","@ariaCurrentContext"],["preferences.emails","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["envelope"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.emails"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-notifications"]],[["@route","@ariaCurrentContext"],["preferences.notifications","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["bell"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.notifications"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","can_change_tracking_preferences"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__preferences-tracking"]],[["@route","@ariaCurrentContext"],["preferences.tracking","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["plus"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.tracking"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-users"]],[["@route","@ariaCurrentContext"],["preferences.users","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["users"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.users"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-interface"]],[["@route","@ariaCurrentContext"],["preferences.interface","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["desktop"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.interface"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__preferences-navigation-menu"]],[["@route","@ariaCurrentContext"],["preferences.navigation-menu","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["bars"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.preferences_nav.navigation_menu"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav-under-interface","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-nav","li",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content user-preferences"],[14,1,"user-content"],[12],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["above-user-preferences","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"form"],[14,0,"form-vertical"],[12],[1,"\\n    "],[46,[28,[37,9],null,null],null,null,null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["body-class","horizontal-overflow-nav","d-navigation-item","d-icon","i18n","if","plugin-outlet","hash","component","-outlet"]]',moduleName:"discourse/templates/preferences.hbs",isStrictMode:!1})},36606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"aRGL4PUC",block:'[[[10,0],[14,0,"control-group pref-username"],[14,"data-setting-name","user-username"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.username.title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@user"],[[30,0,["model"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","discourse_connect_overrides_avatar"]]],[[[1,"  "],[10,0],[14,0,"control-group pref-avatar"],[14,"data-setting-name","user-avatar"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,1,"profile-picture"],[12],[1,[28,[35,0],["user.avatar.title"],null]],[13],[1,"\\n    "],[10,"input"],[14,1,"user-avatar-uploads"],[15,"data-custom-avatar-upload-id",[30,0,["model","custom_avatar_upload_id"]]],[15,"data-system-avatar-upload-id",[30,0,["model","system_avatar_upload_id"]]],[14,4,"hidden"],[12],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[1,"      "],[1,[28,[35,3],[[30,0,["model"]],"huge"],null]],[1,"\\n      "],[8,[39,4],[[24,1,"edit-avatar"],[24,0,"btn-default pad-left"]],[["@action","@icon"],[[28,[37,5],[[28,[37,6],["showAvatarSelector"],null],[30,0,["model"]]],null],"pencil-alt"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1,"  "],[10,0],[14,0,"control-group pref-email"],[14,"data-setting-name","user-email"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.email.title"],null]],[13],[1,"\\n"],[41,[30,0,["model","email"]],[[[41,[30,0,["siteSettings","enable_secondary_emails"]],[[[1,"        "],[10,0],[14,0,"emails"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["emails"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"row email"],[12],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1,"                "],[8,[39,10],null,[["@email","@setPrimaryEmail","@destroyEmail"],[[30,1],[28,[37,11],[[30,0],"setPrimaryEmail"],null],[28,[37,11],[[30,0],"destroyEmail"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n              "],[10,0],[14,0,"email-first"],[12],[1,[30,1,["email"]]],[13],[1,"\\n\\n              "],[10,0],[14,0,"email-second"],[12],[1,"\\n"],[41,[30,1,["primary"]],[[[1,"                  "],[10,1],[14,0,"primary"],[12],[1,[28,[35,0],["user.email.primary_label"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,1,["confirmed"]]],[[[1,"                  "],[10,1],[14,0,"unconfirmed"],[12],[1,[28,[35,0],["user.email.unconfirmed_label"],null]],[13],[1,"\\n                  •\\n"],[41,[30,1,["resending"]],[[[1,"                    "],[10,1],[12],[1,[28,[35,0],["user.email.resending_label"],null]],[13],[1,"\\n"]],[]],[[[41,[30,1,["resent"]],[[[1,"                    "],[10,1],[12],[1,[28,[35,0],["user.email.resent_label"],null]],[13],[1,"\\n"]],[]],[[[1,"                    "],[11,3],[24,6,""],[4,[38,12],["click",[28,[37,5],[[30,0,["resendConfirmationEmail"]],[30,1]],null]],null],[12],[1,[28,[35,0],["user.email.resend_label"],null]],[13],[1,"\\n                  "]],[]]]],[]]]],[]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n\\n"],[41,[30,0,["canAddEmail"]],[[[1,"          "],[8,[39,13],[[24,0,"pull-right"]],[["@route","@query"],["preferences.email",[28,[37,14],null,[["new"],[1]]]]],[["default"],[[[[1,"\\n            "],[1,[28,[35,15],["plus"],null]],[1,"\\n            "],[1,[28,[35,0],["user.email.add_email"],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null]],[]],[[[1,"        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","email"]]],[13],[1,"\\n"],[41,[30,0,["model","can_edit_email"]],[[[1,"            "],[8,[39,13],[[24,0,"btn btn-default btn-small btn-icon pad-left no-text"]],[["@route"],["preferences.email"]],[["default"],[[[[1,[28,[35,15],["pencil-alt"],null]]],[]]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]]],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n"],[41,[30,0,["siteSettings","auth_overrides_email"]],[[[1,"          "],[1,[28,[35,0],["user.email.auth_override_instructions"],null]],[1,"\\n"]],[]],null],[1,"        "],[1,[28,[35,0],["user.email.instructions"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,4],[[24,0,"btn-default"]],[["@action","@title","@icon","@label"],[[28,[37,5],[[28,[37,6],["checkEmail"],null],[30,0,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canUpdateAssociatedAccounts"]],[[[1,"  "],[10,0],[14,0,"control-group pref-associated-accounts"],[14,"data-setting-name","user-associated-accounts"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.associated_accounts.title"],null]],[13],[1,"\\n"],[41,[30,0,["associatedAccountsLoaded"]],[[[1,"      "],[10,"table"],[12],[1,"\\n        "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["authProviders"]]],null]],null],null,[[[41,[30,2,["account"]],[[[1,"              "],[10,"tr"],[15,0,[29,[[28,[37,16],[[30,2,["method","name"]]],null]," account-connected"]]],[12],[1,"\\n                "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n                "],[10,"td"],[12],[1,[30,2,["account","description"]]],[13],[1,"\\n                "],[10,"td"],[12],[1,"\\n"],[41,[30,2,["method","can_revoke"]],[[[1,"                    "],[8,[39,4],[[24,0,"btn-danger no-text"]],[["@action","@title","@icon","@disabled"],[[28,[37,5],[[28,[37,11],[[30,0],"revokeAccount"],null],[30,2,["account"]]],null],"user.associated_accounts.revoke","trash-alt",[28,[37,17],[[30,0,["revoking"]],[30,2,["method","name"]]],null]]],null],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[10,"tr"],[15,0,[28,[37,16],[[30,2,["method","name"]]],null]],[12],[1,"\\n                "],[10,"td"],[12],[1,[30,2,["method","prettyName"]]],[13],[1,"\\n                "],[10,"td"],[14,"colspan","2"],[12],[1,"\\n"],[41,[30,2,["method","can_connect"]],[[[1,"                    "],[8,[39,4],[[24,0,"btn-default"]],[["@action","@label","@icon","@disabled"],[[28,[37,5],[[28,[37,11],[[30,0],"connectAccount"],null],[30,2,["method"]]],null],"user.associated_accounts.connect","plug",[30,0,["disableConnectButtons"]]]],null],[1,"\\n"]],[]],[[[1,"                    "],[1,[28,[35,0],["user.associated_accounts.not_connected"],null]],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]]]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,4],null,[["@action","@title","@icon","@label"],[[28,[37,5],[[28,[37,6],["checkEmail"],null],[30,0,["model"]]],null],"admin.users.check_email.title","envelope","admin.users.check_email.text"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditName"]],[[[1,"  "],[10,0],[14,0,"control-group pref-name"],[14,"data-setting-name","user-name"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.name.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["model","can_edit_name"]],[[[1,"        "],[8,[39,18],null,[["@value","@classNames","@maxlength"],[[30,0,["newNameInput"]],"input-xxlarge","255"]],null],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"static"],[12],[1,[30,0,["model","name"]]],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[30,0,["nameInstructions"]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectTitle"]],[[[1,"  "],[10,0],[14,0,"control-group pref-title"],[14,"data-setting-name","user-title"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.title.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,19],null,[["@value","@content","@onChange","@options"],[[30,0,["newTitleInput"]],[30,0,["model","availableTitles"]],[28,[37,11],[[30,0],[28,[37,20],[[30,0,["newTitleInput"]]],null]],null],[28,[37,14],null,[["none"],["user.title.none"]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["user.title.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectFlair"]],[[[1,"  "],[10,0],[14,0,"control-group pref-flair"],[14,"data-setting-name","user-flair"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.flair.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,21],null,[["@value","@content","@onChange","@options"],[[30,0,["newFlairGroupId"]],[30,0,["model","availableFlairs"]],[28,[37,11],[[30,0],[28,[37,20],[[30,0,["newFlairGroupId"]]],null]],null],[28,[37,14],null,[["none"],["user.flair.none"]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["user.flair.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectUserStatus"]],[[[1,"  "],[10,0],[14,0,"control-group pref-user-status"],[14,"data-setting-name","user-status"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.status.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["newStatus"]],[[[1,"        "],[8,[39,22],null,[["@status","@showDescription"],[[30,0,["newStatus"]],true]],null],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"static"],[12],[1,[28,[35,0],["user.status.not_set"],null]],[13],[1,"\\n"]],[]]],[1,"      "],[8,[39,4],[[24,0,"btn-default btn-small pad-left"]],[["@action","@icon"],[[28,[37,5],[[28,[37,11],[[30,0],"showUserStatusModal"],null],[30,0,["newStatus"]]],null],"pencil-alt"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSelectPrimaryGroup"]],[[[1,"  "],[10,0],[14,0,"control-group pref-primary-group"],[14,"data-setting-name","user-primary-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.primary_group.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,19],null,[["@value","@content","@options"],[[30,0,["newPrimaryGroupInput"]],[30,0,["model","filteredGroups"]],[28,[37,14],null,[["none"],["user.primary_group.none"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDownloadPosts"]],[[[1,"  "],[10,0],[14,0,"control-group pref-data-export"],[14,"data-setting-name","user-data-export"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.download_archive.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"btn-default btn-request-archive"]],[["@action","@label","@icon"],[[28,[37,11],[[30,0],"exportUserArchive"],null],"user.download_archive.button_text","download"]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["user.download_archive.description"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,23],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-account","div",[28,[37,14],null,[["model","save"],[[30,0,["model"]],[28,[37,11],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,23],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,14],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSaveUser"]],[[[1,"  "],[8,[39,24],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,11],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","canDeleteAccount"]],[[[1,"  "],[10,0],[14,0,"control-group delete-account"],[12],[1,"\\n    "],[10,"br"],[12],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[28,[37,11],[[30,0],"delete"],null],[30,0,["deleteDisabled"]],"far-trash-alt","user.delete_account"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["email","authProvider"],false,["i18n","username-preference","unless","bound-avatar","d-button","fn","route-action","if","each","-track-array","email-dropdown","action","on","link-to","hash","d-icon","dasherize","get","text-field","combo-box","mut","flair-chooser","user-status-message","plugin-outlet","save-controls"]]',moduleName:"discourse/templates/preferences/account.hbs",isStrictMode:!1})},27505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"d8/Gidhr",block:'[[[8,[39,0],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-apps","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model"],false,["user-preferences/user-api-keys","plugin-outlet","hash"]]',moduleName:"discourse/templates/preferences/apps.hbs",isStrictMode:!1})},18878:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"8FcNxUR9",block:'[[[8,[39,0],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@save","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSave"]],[[[1,"  "],[8,[39,3],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[1,[28,[35,4],["user.no_category_access"],null]],[1,"\\n"]],[]]]],[],false,["user-preferences/categories","action","if","save-controls","i18n"]]',moduleName:"discourse/templates/preferences/categories.hbs",isStrictMode:!1})},30951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"eDH5iNyz",block:'[[[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1,"    "],[10,0],[14,0,"warning-wrap"],[12],[1,"\\n      "],[10,0],[14,0,"warning"],[12],[1,[28,[35,2],["user.mailing_list_mode.warning"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[10,0],[14,0,"control-group pref-email-settings"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.email_settings"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-messages-level"],[12],[1,"\\n    "],[10,"label"],[14,"for","user-email-messages-level"],[12],[1,[28,[35,2],["user.email_messages_level"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_messages_level"]],"user-email-messages-level",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","email_messages_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailMessagesLevelAway"]],[[[1,"      "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-level"],[12],[1,"\\n    "],[10,"label"],[14,"for","user-email-level"],[12],[1,[28,[35,2],["user.email_level.title"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["emailLevelOptions"]],[30,0,["model","user_option","email_level"]],"user-email-level",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","email_level"]]],null]],null]]],null],[1,"\\n"],[41,[30,0,["emailLevelAway"]],[[[1,"      "],[10,0],[14,0,"instructions"],[12],[1,[30,0,["emailFrequencyInstructions"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-previous-replies"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,2],["user.email_previous_replies.title"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["previousRepliesOptions"]],[30,0,["model","user_option","email_previous_replies"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","email_previous_replies"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-email-in-reply-to"]],[["@labelKey","@checked"],["user.email_in_reply_to",[30,0,["model","user_option","email_in_reply_to"]]]],null],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails-pref-email-settings","div",[28,[37,8],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["siteSettings","disable_digest_emails"]]],[[[1,"  "],[10,0],[14,0,"control-group pref-activity-summary"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.email_activity_summary"],null]],[13],[1,"\\n    "],[8,[39,6],[[24,"data-setting-name","user-email-digests"]],[["@labelKey","@disabled","@checked"],["user.email_digests.title",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","email_digests"]]]],null],[1,"\\n"],[41,[30,0,["model","user_option","email_digests"]],[[[1,"      "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-email-digests-frequency"],[12],[1,"\\n        "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange","@options"],["value",[30,0,["digestFrequencies"]],[30,0,["model","user_option","digest_after_minutes"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","digest_after_minutes"]]],null]],null],[28,[37,8],null,[["filterable"],[true]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,6],[[24,"data-setting-name","user-include-tl0-in-digests"]],[["@labelKey","@disabled","@checked"],["user.include_tl0_in_digests",[30,0,["model","user_option","mailing_list_mode"]],[30,0,["model","user_option","include_tl0_in_digests"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["siteSettings","disable_mailing_list_mode"]]],[[[1,"  "],[10,0],[14,0,"control-group pref-mailing-list-mode"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["user.mailing_list_mode.label"],null]],[13],[1,"\\n    "],[8,[39,6],[[24,"data-setting-name","user-mailing-list-mode-enabled"]],[["@labelKey","@checked"],["user.mailing_list_mode.enabled",[30,0,["model","user_option","mailing_list_mode"]]]],null],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,9],[[28,[37,2],["user.mailing_list_mode.instructions"],null]],null]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["model","user_option","mailing_list_mode"]],[[[1,"      "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-mailing-list-mode-options"],[12],[1,"\\n        "],[8,[39,3],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["mailingListModeOptions"]],[30,0,["model","user_option","mailing_list_mode_frequency"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","mailing_list_mode_frequency"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-emails","div",[28,[37,8],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,8],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,10],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["unless","if","i18n","combo-box","action","mut","preference-checkbox","plugin-outlet","hash","html-safe","save-controls"]]',moduleName:"discourse/templates/preferences/emails.hbs",isStrictMode:!1})},61718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"k4hVPCbu",block:'[[[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface-top","div",[28,[37,1],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["showThemeSelector"]],[[[1,"  "],[10,0],[14,0,"control-group theme"],[14,"data-setting-name","user-theme"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.theme"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,5],null,[["@content","@value"],[[30,0,["userSelectableThemes"]],[30,0,["themeId"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["themeIdChanged"]],[[[1,"      "],[10,2],[14,0,"alert alert-success save-theme-alert"],[12],[1,[28,[35,4],["user.save_to_change_theme"],[["save_text"],[[28,[37,4],["save"],null]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showThemeSetDefault"]],[[[1,"      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,6],null,[["@labelKey","@checked"],["user.theme_default_on_all_devices",[30,0,["makeThemeDefault"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showColorSchemeSelector"]],[[[1,"  "],[10,"fieldset"],[14,0,"control-group color-scheme"],[14,"data-setting-name","user-color-scheme"],[12],[1,"\\n    "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.color_scheme"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,0],[14,0,"control-subgroup light-color-scheme"],[12],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1,"          "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.color_schemes.regular"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,5],null,[["@content","@value","@onChange","@options"],[[30,0,["userSelectableColorSchemes"]],[30,0,["selectedColorSchemeId"]],[28,[37,2],[[30,0],"loadColorScheme"],null],[28,[37,1],null,[["translatedNone","autoInsertNoneItem"],[[30,0,["selectedColorSchemeNoneLabel"]],[30,0,["showColorSchemeNoneItem"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1,"        "],[10,0],[14,0,"control-subgroup dark-color-scheme"],[12],[1,"\\n          "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.color_schemes.dark"],null]],[13],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[8,[39,5],null,[["@content","@value","@onChange"],[[30,0,["userSelectableDarkColorSchemes"]],[30,0,["selectedDarkColorSchemeId"]],[28,[37,2],[[30,0],"loadDarkColorScheme"],null]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[30,0,["previewingColorScheme"]],[[[41,[30,0,["previewingColorScheme"]],[[[1,"        "],[8,[39,7],[[24,0,"btn-default btn-small undo-preview"]],[["@action","@label","@icon"],[[28,[37,2],[[30,0],"undoColorSchemePreview"],null],"user.color_schemes.undo","undo"]],null],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"controls color-scheme-checkbox"],[12],[1,"\\n        "],[8,[39,6],null,[["@labelKey","@checked"],["user.color_scheme_default_on_all_devices",[30,0,["makeColorSchemeDefault"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDarkColorSchemeSelector"]],[[[1,"      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,4],["user.color_schemes.dark_instructions"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDarkModeToggle"]],[[[1,"  "],[10,0],[14,0,"control-group dark-mode"],[14,"data-setting-name","user-dark-mode"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.dark_mode"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@labelKey","@checked"],["user.dark_mode_enable",[30,0,["enableDarkMode"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group text-size"],[14,"data-setting-name","user-text-size"],[12],[1,"\\n  "],[10,"label"],[14,"for","text-size-selector"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.text_size.title"],null]],[13],[1,"\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[8,[39,5],null,[["@id","@valueProperty","@content","@value","@onChange"],["text-size-selector","value",[30,0,["textSizes"]],[30,0,["textSize"]],[28,[37,2],[[30,0],"selectTextSize"],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["showTextSetDefault"]],[[[1,"    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,6],null,[["@labelKey","@checked"],["user.text_size_default_on_all_devices",[30,0,["makeTextSizeDefault"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","allow_user_locale"]],[[[1,"  "],[10,0],[14,0,"control-group pref-locale"],[14,"data-setting-name","user-locale"],[12],[1,"\\n    "],[10,"label"],[14,"for","locale-selector"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.locale.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,5],null,[["@id","@valueProperty","@langProperty","@content","@value","@onChange","@options"],["locale-selector","value","value",[30,0,["availableLocales"]],[30,0,["model","locale"]],[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","locale"]]],null]],null],[28,[37,1],null,[["filterable","none"],[true,"user.locale.default"]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,4],["user.locale.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group home"],[14,"data-setting-name","user-home"],[12],[1,"\\n  "],[10,"label"],[14,"for","home-selector"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.home"],null]],[13],[1,"\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[8,[39,5],null,[["@id","@content","@valueProperty","@value","@onChange"],["home-selector",[30,0,["userSelectableHome"]],"value",[30,0,["homepageId"]],[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","user_option","homepage_id"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"fieldset"],[14,0,"control-group other"],[14,"data-setting-name","user-other-settings"],[12],[1,"\\n  "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,4],["user.other_settings"],null]],[13],[1,"\\n\\n  "],[8,[39,6],[[24,"data-setting-name","user-external-links"],[24,0,"pref-external-links"]],[["@labelKey","@checked"],["user.external_links_in_new_tab",[30,0,["model","user_option","external_links_in_new_tab"]]]],null],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-enable-quoting"],[24,0,"pref-enable-quoting"]],[["@labelKey","@checked"],["user.enable_quoting",[30,0,["model","user_option","enable_quoting"]]]],null],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-enable-defer"],[24,0,"pref-defer-unread"]],[["@labelKey","@checked"],["user.enable_defer",[30,0,["model","user_option","enable_defer"]]]],null],[1,"\\n"],[41,[30,0,["siteSettings","automatically_unpin_topics"]],[[[1,"    "],[8,[39,6],[[24,"data-setting-name","user-auto-unpin"],[24,0,"pref-auto-unpin"]],[["@labelKey","@checked"],["user.automatically_unpin_topics",[30,0,["model","user_option","automatically_unpin_topics"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","allow_users_to_hide_profile"]],[[[1,"    "],[8,[39,6],[[24,"data-setting-name","user-hide-profile"],[24,0,"pref-hide-profile"]],[["@labelKey","@checked"],["user.hide_profile_and_presence",[30,0,["model","user_option","hide_profile_and_presence"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[8,[39,6],[[24,"data-setting-name","user-dynamic-favicon"],[24,0,"pref-dynamic-favicon"]],[["@labelKey","@checked"],["user.dynamic_favicon",[30,0,["model","user_option","dynamic_favicon"]]]],null],[1,"\\n  "],[10,0],[14,0,"controls controls-dropdown pref-page-title"],[14,"data-setting-name","user-page-title"],[12],[1,"\\n    "],[10,"label"],[14,"for","user-title-count-mode"],[12],[1,[28,[35,4],["user.title_count_mode.title"],null]],[13],[1,"\\n    "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["titleCountModes"]],[30,0,["model","user_option","title_count_mode"]],"user-title-count-mode",[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","user_option","title_count_mode"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"controls controls-dropdown pref-bookmark-after-notification"],[14,"data-setting-name","user-bookmark-after-notification"],[12],[1,"\\n    "],[10,"label"],[14,"for","bookmark-after-notification-mode"],[12],[1,[28,[35,4],["user.bookmark_after_notification.title"],null]],[13],[1,"\\n    "],[8,[39,5],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["bookmarkAfterNotificationModes"]],[30,0,["model","user_option","bookmark_auto_delete_preference"]],"bookmark-after-notification-mode",[28,[37,2],[[30,0],[28,[37,8],[[30,0,["model","user_option","bookmark_auto_delete_preference"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,6],[[24,"data-setting-name","user-new-user-tips"],[24,0,"pref-new-user-tips"]],[["@labelKey","@checked"],["user.skip_new_user_tips.description",[30,0,["model","user_option","skip_new_user_tips"]]]],null],[1,"\\n"],[41,[30,0,["site","user_tips"]],[[[1,"    "],[8,[39,7],[[24,"data-setting-name","user-reset-seen-user-tips"],[24,0,"btn-default pref-reset-seen-user-tips"]],[["@action"],[[28,[37,2],[[30,0],"resetSeenUserTips"],null]]],[["default"],[[[[1,[28,[35,4],["user.reset_seen_user_tips"],null]]],[]]]]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-interface","div",[28,[37,1],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["plugin-outlet","hash","action","if","i18n","combo-box","preference-checkbox","d-button","mut","save-controls"]]',moduleName:"discourse/templates/preferences/interface.hbs",isStrictMode:!1})},64659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"3KTBU8Aj",block:'[[[10,0],[14,0,"control-group preferences-navigation-menu-navigation"],[14,"data-setting-name","user-navigation-menu-navigation"],[12],[1,"\\n  "],[10,"legend"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.experimental_sidebar.navigation_section"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.experimental_sidebar.navigation_section_instruction"],null]],[13],[1,"\\n\\n    "],[8,[39,1],[[24,0,"pref-link-to-filtered-list"]],[["@labelKey","@checked"],["user.experimental_sidebar.link_to_filtered_list_checkbox_description",[30,0,["newSidebarLinkToFilteredList"]]]],null],[1,"\\n    "],[8,[39,1],[[24,0,"pref-show-count-new-items"]],[["@labelKey","@checked"],["user.experimental_sidebar.show_count_new_items_checkbox_description",[30,0,["newSidebarShowCountOfNewItems"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,2],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,3],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["i18n","preference-checkbox","save-controls","action"]]',moduleName:"discourse/templates/preferences/navigation-menu.hbs",isStrictMode:!1})},57241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"R3njzlb+",block:'[[[10,0],[14,0,"control-group notifications"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.notifications"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-like-notification-frequency"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.like_notification_frequency.title"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["likeNotificationFrequencies"]],[30,0,["model","user_option","like_notification_frequency"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["model","user_option","like_notification_frequency"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[51,[30,0,["capabilities","isAppWebview"]]],[[[1,"  "],[10,0],[14,0,"control-group desktop-notifications"],[14,"data-setting-name","user-desktop-notifications"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.desktop_notifications.label"],null]],[13],[1,"\\n    "],[8,[39,5],null,null,null],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.desktop_notifications.each_browser_note"],null]],[13],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-desktop-notifications","div",[28,[37,7],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,8],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-notifications","div",[28,[37,7],null,[["model","save"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,7],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,2],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["i18n","combo-box","action","mut","unless","desktop-notification-config","plugin-outlet","hash","user-notification-schedule","save-controls"]]',moduleName:"discourse/templates/preferences/notifications.hbs",isStrictMode:!1})},62503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"56dJ0bZ+",block:'[[[41,[30,0,["canChangeBio"]],[[[1,"  "],[10,0],[14,0,"control-group pref-bio"],[14,"data-setting-name","user-bio"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.bio"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls bio-composer input-xxlarge"],[12],[1,"\\n      "],[8,[39,2],null,[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group pref-timezone"],[14,"data-setting-name","user-timezone"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.timezone"],null]],[13],[1,"\\n  "],[8,[39,3],[[24,0,"input-xxlarge"]],[["@value","@onChange"],[[30,0,["model","user_option","timezone"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","timezone"]]],null]],null]]],null],[1,"\\n  "],[8,[39,6],[[24,0,"btn-default"]],[["@icon","@label","@action"],["globe","user.use_current_timezone",[28,[37,4],[[30,0],"useCurrentTimezone"],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["model","can_change_location"]],[[[1,"  "],[10,0],[14,0,"control-group pref-location"],[14,"data-setting-name","user-location"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","edit-location"],[12],[1,[28,[35,1],["user.location"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"input-xxlarge"],[24,1,"edit-location"]],[["@type","@value"],["text",[30,0,["model","location"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","can_change_website"]],[[[1,"  "],[10,0],[14,0,"control-group pref-website"],[14,"data-setting-name","user-website"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","edit-website"],[12],[1,[28,[35,1],["user.website"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"input-xxlarge"],[24,1,"edit-website"]],[["@type","@value"],["text",[30,0,["model","website"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["userFields"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-user-fields"],[12],[1,"\\n    "],[8,[39,10],null,[["@field","@value"],[[30,1,["field"]],[30,1,["value"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","allow_profile_backgrounds"]],[[[41,[30,0,["canUploadProfileHeader"]],[[[1,"    "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-profile-bg"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.change_profile_background.title"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,11],null,[["@imageUrl","@type","@id"],[[30,0,["model","profile_background_upload_url"]],"profile_background","profile-background-uploader"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["user.change_profile_background.instructions"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canUploadUserCardBackground"]],[[[1,"    "],[10,0],[14,0,"control-group pref-profile-bg"],[14,"data-setting-name","user-card-bg"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.change_card_background.title"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,11],null,[["@imageUrl","@type","@id"],[[30,0,["model","card_background_upload_url"]],"card_background","profile-card-background-uploader"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["user.change_card_background.instructions"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","allow_featured_topic_on_user_profiles"]],[[[1,"  "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-featured-topic"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.featured_topic"],null]],[13],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1,"      "],[10,"label"],[14,0,"featured-topic-link"],[12],[1,"\\n        "],[8,[39,12],null,[["@route","@models"],["topic",[28,[37,13],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,14],[[28,[37,15],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[8,[39,6],[[24,0,"btn-default feature-topic-on-profile-btn"]],[["@action","@label"],[[30,0,["showFeaturedTopicModal"]],"user.feature_topic_on_profile.open_search"]],null],[1,"\\n"],[41,[30,0,["model","featured_topic"]],[[[1,"        "],[8,[39,6],[[24,0,"btn-danger clear-feature-topic-on-profile-btn"]],[["@action","@label"],[[28,[37,4],[[30,0],"clearFeaturedTopicFromProfile"],null],"user.feature_topic_on_profile.clear.title"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["user.change_featured_topic.instructions"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeDefaultCalendar"]],[[[1,"  "],[10,0],[14,0,"control-group"],[14,"data-setting-name","user-default-calendar"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["download_calendar.default_calendar"],null]],[13],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[8,[39,16],null,[["@valueProperty","@content","@value","@id","@onChange"],["value",[30,0,["calendarOptions"]],[30,0,["model","user_option","default_calendar"]],"user-default-calendar",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["model","user_option","default_calendar"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["download_calendar.default_calendar_instruction"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,17],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-profile","div",[28,[37,18],null,[["model","save"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,17],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-preferences","div",[28,[37,18],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,17],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,18],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,19],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,4],[[30,0],"save"],null],[30,0,["saved"]]]],null]],["uf"],false,["if","i18n","d-editor","timezone-input","action","mut","d-button","input","each","-track-array","user-field","uppy-image-uploader","link-to","array","replace-emoji","html-safe","combo-box","plugin-outlet","hash","save-controls"]]',moduleName:"discourse/templates/preferences/profile.hbs",isStrictMode:!1})},74484:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"u0fbDNjA",block:'[[[41,[30,0,["canChangePassword"]],[[[1,"  "],[10,0],[14,0,"control-group pref-password"],[14,"data-setting-name","user-password"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.password.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"btn btn-default"],[4,[38,2],["click",[30,0,["changePassword"]]],null],[12],[1,"\\n        "],[1,[28,[35,3],["envelope"],null]],[1,"\\n"],[41,[30,0,["model","no_password"]],[[[1,"          "],[1,[28,[35,1],["user.change_password.set_password"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,1],["user.change_password.action"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n      "],[1,[30,0,["passwordProgress"]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["canUsePasskeys"]],[[[1,"    "],[8,[39,4],null,[["@model"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isCurrentUser"]],[[[1,"    "],[10,0],[14,0,"control-group pref-second-factor"],[14,"data-setting-name","user-second-factor"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.second_factor.title"],null]],[13],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["user.second_factor.short_description"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"controls pref-second-factor"],[12],[1,"\\n        "],[8,[39,5],[[24,0,"btn-second-factor"]],[["@action","@icon","@label"],[[30,0,["manage2FA"]],"lock","user.second_factor.enable"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canCheckEmails"]],[[[1,"  "],[10,0],[14,0,"control-group pref-auth-tokens"],[14,"data-setting-name","user-auth-tokens"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.auth_tokens.title"],null]],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["user.auth_tokens.short_description"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"auth-tokens"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["authTokens"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"row auth-token"],[12],[1,"\\n          "],[10,0],[14,0,"auth-token-icon"],[12],[1,[28,[35,3],[[30,2,["icon"]]],null]],[13],[1,"\\n"],[41,[51,[30,2,["is_active"]]],[[[1,"            "],[8,[39,9],null,[["@token","@revokeAuthToken","@showToken"],[[30,2],[28,[37,10],[[30,0],"revokeAuthToken"],null],[28,[37,10],[[30,0],"showToken"],null]]],null],[1,"\\n"]],[]],null],[1,"          "],[10,0],[14,0,"auth-token-first"],[12],[1,"\\n            "],[1,[28,[35,11],[[28,[37,1],["user.auth_tokens.device_location"],[["device","ip","location"],[[30,2,["device"]],[30,2,["client_ip"]],[30,2,["location"]]]]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"auth-token-second"],[12],[1,"\\n"],[41,[30,2,["is_active"]],[[[1,"              "],[1,[28,[35,11],[[28,[37,1],["user.auth_tokens.browser_active"],[["browser"],[[30,2,["browser"]]]]]],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,11],[[28,[37,1],["user.auth_tokens.browser_last_seen"],[["browser","date"],[[30,2,["browser"]],[28,[37,12],[[30,2,["seen_at"]]],null]]]]],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["canShowAllAuthTokens"]],[[[1,"      "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["toggleShowAllAuthTokens"]]],null],[12],[1,"\\n"],[41,[30,0,["showAllAuthTokens"]],[[[1,"          "],[1,[28,[35,3],["caret-up"],null]],[1,"\\n          "],[1,[28,[35,1],["user.auth_tokens.show_few"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,3],["caret-down"],null]],[1,"\\n          "],[1,[28,[35,1],["user.auth_tokens.show_all"],[["count"],[[30,0,["model","user_auth_tokens","length"]]]]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[11,3],[24,6,""],[24,0,"pull-right text-danger"],[4,[38,2],["click",[28,[37,13],[[30,0,["revokeAuthToken"]],null],null]],null],[12],[1,[28,[35,3],["sign-out-alt"],null]],[1," "],[1,[28,[35,1],["user.auth_tokens.log_out_all"],null]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,14],null,[["@model"],[[30,1]]],null],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-security","div",[28,[37,16],null,[["model","save"],[[30,0,["model"]],[28,[37,10],[[30,0],"save"],null]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,16],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],["@model","token"],false,["if","i18n","on","d-icon","user-preferences/user-passkeys","d-button","each","-track-array","unless","auth-token-dropdown","action","html-safe","format-date","fn","user-preferences/user-api-keys","plugin-outlet","hash"]]',moduleName:"discourse/templates/preferences/security.hbs",isStrictMode:!1})},6940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"iumgIZhk",block:'[[[8,[39,0],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[28,[37,1],[[30,0],"save"],null],[30,0,["siteSettings"]]]],null],[1,"\\n\\n"],[8,[39,2],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,1],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["user-preferences/tags","action","save-controls"]]',moduleName:"discourse/templates/preferences/tags.hbs",isStrictMode:!1})},71888:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"euxi5uQt",block:'[[[8,[39,0],null,[["@pageClass"],["user-preferences-tracking"]],null],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-topics-wrapper"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.topics_settings"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n    "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-new-topic-duration"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["user.new_topic_duration.label"],null]],[13],[1,"\\n      "],[8,[39,2],[[24,0,"duration"]],[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["considerNewTopicOptions"]],[30,0,["model","user_option","new_topic_duration_minutes"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-auto-track-topics"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["user.auto_track_topics"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["autoTrackDurations"]],[30,0,["model","user_option","auto_track_topics_after_msecs"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls controls-dropdown"],[14,"data-setting-name","user-notification-level-when-replying"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["user.notification_level_when_replying"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["notificationLevelsForReplying"]],[30,0,["model","user_option","notification_level_when_replying"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"user-preferences__tracking-categories-tags-wrapper"],[12],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,5],null,[["@canSee","@model","@selectedCategories","@hideMutedTags","@siteSettings"],[[30,0,["canSee"]],[30,0,["model"]],[30,0,["selectedCategories"]],[30,0,["hideMutedTags"]],[30,0,["siteSettings"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,6],null,[["@model","@selectedTags","@save","@siteSettings"],[[30,0,["model"]],[30,0,["selectedTags"]],[30,0,["save"]],[30,0,["siteSettings"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["showMutePrecedenceSetting"]],[[[1,"  "],[10,0],[14,0,"control-group user-preferences__watched-precedence-over-muted"],[12],[1,"\\n    "],[8,[39,8],[[24,"data-setting-name","watched-precedence-over-muted"]],[["@labelKey","@checked"],["user.watched_precedence_over_muted",[30,0,["model","user_option","watched_precedence_over_muted"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSave"]],[[[1,"  "],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[30,0,["save"]],[30,0,["saved"]]]],null],[1,"\\n"]],[]],null]],[],false,["d-section","i18n","combo-box","action","mut","user-preferences/categories","user-preferences/tags","if","preference-checkbox","save-controls"]]',moduleName:"discourse/templates/preferences/tracking.hbs",isStrictMode:!1})},48391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"sKnI74Lh",block:'[[[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.users"],null]],[13],[1,"\\n"],[41,[30,0,["ignoredEnabled"]],[[[1,"  "],[10,0],[14,0,"control-group user-ignore"],[14,"data-setting-name","user-ignored-users"],[12],[1,"\\n    "],[10,0],[14,0,"controls tracking-controls user-notifications"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n        "],[1,[28,[35,0],["user.ignored_users"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@model","@items","@saving"],[[30,0,["model"]],[30,0,["model","ignored_usernames"]],[30,0,["saved"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group user-mute"],[14,"data-setting-name","user-muted-users"],[12],[1,"\\n  "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,2],["d-muted"],[["class"],["icon"]]]],[1,"\\n      "],[10,1],[12],[1,[28,[35,0],["user.muted_users"],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,4],null,[["@value","@onChange","@options"],[[30,0,["mutedUsernames"]],[28,[37,5],[[30,0],"onChangeMutedUsernames"],null],[28,[37,6],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.muted_users_instructions"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["currentUser","can_send_private_messages"]],[[[1,"  "],[10,0],[14,0,"control-group private-messages"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.private_messages"],null]],[13],[1,"\\n    "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],null,[["@labelKey","@checked"],["user.allow_private_messages",[30,0,["model","user_option","allow_private_messages"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group user-allow-pm"],[14,"data-setting-name","user-allow-private-messages-from-specific-users"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],null,[["@labelKey","@checked","@disabled"],["user.allow_private_messages_from_specific_users",[30,0,["model","user_option","enable_allowed_pm_users"]],[30,0,["disableAllowPmUsersSetting"]]]],null],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["allowPmUsersEnabled"]],[[[1,"        "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n          "],[8,[39,4],null,[["@value","@onChange","@options"],[[30,0,["allowedPmUsernames"]],[28,[37,5],[[30,0],"onChangeAllowedPmUsernames"],null],[28,[37,6],null,[["excludeCurrentUser"],[true]]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.allowed_pm_users_instructions"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,"\\n  "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,6],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,9],null,[["@model","@action","@saved"],[[30,0,["model"]],[28,[37,5],[[30,0],"save"],null],[30,0,["saved"]]]],null]],[],false,["i18n","if","d-icon","ignored-user-list","user-chooser","action","hash","preference-checkbox","plugin-outlet","save-controls"]]',moduleName:"discourse/templates/preferences/users.hbs",isStrictMode:!1})},39868:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"eNQHHeWe",block:'[[[1,[28,[35,0],["static-privacy"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n  "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n    "],[8,[39,1],null,[["@name"],["above-static"]],null],[1,"\\n    "],[1,[28,[35,2],[[30,0,["model","html"]]],null]],[1,"\\n    "],[8,[39,1],null,[["@name"],["below-static"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/privacy.hbs",isStrictMode:!1})},41045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"7Otujutw",block:'[[[10,0],[14,0,"reviewable-container"],[12],[1,"\\n  "],[10,0],[14,0,"reviewable-list"],[12],[1,"\\n"],[41,[30,0,["reviewables"]],[[[1,"      "],[8,[39,1],null,[["@selector","@action"],[".reviewable-item",[28,[37,2],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"reviewables"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["reviewables"]]],null]],null],null,[[[1,"            "],[8,[39,5],null,[["@reviewable","@remove"],[[30,1],[28,[37,2],[[30,0],"remove"],null]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,6],null,[["@condition"],[[30,0,["reviewables","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"no-review"],[12],[1,"\\n        "],[1,[28,[35,7],["review.none"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"reviewable-filters"],[12],[1,"\\n    "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n      "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.status"],null]],[13],[1,"\\n      "],[8,[39,8],null,[["@value","@content","@onChange"],[[30,0,["filterStatus"]],[30,0,["statuses"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterStatus"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["filtersExpanded"]],[[[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,10],null,[["@name","@connectorTagName","@outletArgs"],["above-review-filters","div",[28,[37,11],null,[["model","additionalFilters"],[[30,0,["model"]],[30,0,["additionalFilters"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n        "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.type.title"],null]],[13],[1,"\\n        "],[8,[39,8],null,[["@value","@content","@onChange","@options"],[[30,0,["filterType"]],[30,0,["allTypes"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterType"]]],null]],null],[28,[37,11],null,[["none"],["review.filters.type.all"]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n        "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.priority.title"],null]],[13],[1,"\\n        "],[8,[39,8],null,[["@value","@content","@onChange"],[[30,0,["filterPriority"]],[30,0,["priorities"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterPriority"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter"],[12],[1,"\\n        "],[10,"label"],[14,0,"filter-label"],[12],[1,[28,[35,7],["review.filters.category"],null]],[13],[1,"\\n        "],[8,[39,12],null,[["@value","@onChange","@options"],[[30,0,["filterCategoryId"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterCategoryId"]]],null]],null],[28,[37,11],null,[["none"],["review.filters.all_categories"]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n        "],[1,[28,[35,7],["review.filtered_reviewed_by"],null]],[1,"\\n        "],[8,[39,13],null,[["@value","@onChange","@options"],[[30,0,["filterReviewedBy"]],[28,[37,2],[[30,0],"updateFilterReviewedBy"],null],[28,[37,11],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n        "],[1,[28,[35,7],["review.filtered_user"],null]],[1,"\\n        "],[8,[39,13],[[24,0,"user-selector"]],[["@value","@onChange","@options"],[[30,0,["filterUsername"]],[28,[37,2],[[30,0],"updateFilterUsername"],null],[28,[37,11],null,[["maximum","excludeCurrentUser","fullWidthWrap"],[1,false,true]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["filterTopic"]],[[[1,"        "],[10,0],[14,0,"reviewable-filter topic-filter"],[12],[1,"\\n          "],[1,[28,[35,7],["review.filtered_topic"],null]],[1,"\\n          "],[8,[39,14],[[24,0,"btn-default"]],[["@label","@icon","@action"],["review.show_all_topics","times",[28,[37,2],[[30,0],"resetTopic"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"reviewable-filter date-range"],[12],[1,"\\n        "],[1,[28,[35,7],["review.date_filter"],null]],[1,"\\n        "],[8,[39,15],null,[["@from","@to","@onChange","@showFromTime","@showToTime"],[[30,0,["filterFromDate"]],[30,0,["filterToDate"]],[30,0,["setRange"]],false,false]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"reviewable-filter sort-order"],[12],[1,"\\n        "],[1,[28,[35,7],["review.order_by"],null]],[1,"\\n        "],[8,[39,8],null,[["@value","@content","@onChange"],[[30,0,["filterSortOrder"]],[30,0,["sortOrders"]],[28,[37,2],[[30,0],[28,[37,9],[[30,0,["filterSortOrder"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"reviewable-filters-actions"],[12],[1,"\\n      "],[8,[39,14],[[24,0,"btn-primary refresh"]],[["@icon","@label","@action"],["sync","review.filters.refresh",[28,[37,2],[[30,0],"refresh"],null]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"        "],[8,[39,14],[[24,0,"btn-default expand-secondary-filters"]],[["@label","@icon","@action"],["show_help",[30,0,["toggleFiltersIcon"]],[28,[37,2],[[30,0],"toggleFilters"],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["r"],false,["if","load-more","action","each","-track-array","reviewable-item","conditional-loading-spinner","i18n","combo-box","mut","plugin-outlet","hash","category-chooser","email-group-user-chooser","d-button","date-time-input-range"]]',moduleName:"discourse/templates/review-index.hbs",isStrictMode:!1})},45830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Ipb1+DBB",block:'[[[10,0],[14,0,"reviewable-settings"],[12],[1,"\\n  "],[10,"h4"],[12],[1,[28,[35,0],["review.settings.priorities.title"],null]],[13],[1,"\\n\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["scoreTypes"]]],null]],null],null,[[[1,"    "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n      "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n      "],[10,0],[14,0,"field"],[12],[1,"\\n        "],[8,[39,3],null,[["@value","@content","@onChange"],[[30,1,["reviewable_priority"]],[30,0,["settings","reviewable_priorities"]],[28,[37,4],[[30,0],[28,[37,5],[[30,1,["reviewable_priority"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[1]],null],[1,"\\n  "],[10,0],[14,0,"reviewable-score-type"],[12],[1,"\\n    "],[10,0],[14,0,"title"],[12],[13],[1,"\\n    "],[10,0],[14,0,"field"],[12],[1,"\\n      "],[8,[39,6],[[24,0,"btn-primary save-settings"]],[["@icon","@label","@action","@disabled"],["check","review.settings.save_changes",[28,[37,4],[[30,0],"save"],null],[30,0,["saving"]]]],null],[1,"\\n\\n"],[41,[30,0,["saved"]],[[[1,"        "],[10,1],[14,0,"saved"],[12],[1,[28,[35,0],["review.settings.saved"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["rst"],false,["i18n","each","-track-array","combo-box","action","mut","d-button","if"]]',moduleName:"discourse/templates/review-settings.hbs",isStrictMode:!1})},9379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"8+48Es0D",block:'[[[8,[39,0],null,[["@reviewable"],[[30,0,["reviewable"]]]],null]],[],false,["reviewable-item"]]',moduleName:"discourse/templates/review-show.hbs",isStrictMode:!1})},77636:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"RHcd3fA+",block:'[[[41,[30,0,["reviewableTopics"]],[[[1,"  "],[10,"table"],[14,0,"reviewable-topics"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"th"],[12],[1,[28,[35,1],["review.topics.topic"],null]],[1," "],[13],[1,"\\n      "],[10,"th"],[12],[1,[28,[35,1],["review.topics.reviewable_count"],null]],[13],[1,"\\n      "],[10,"th"],[12],[1,[28,[35,1],["review.topics.reported_by"],null]],[13],[1,"\\n      "],[10,"th"],[12],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["reviewableTopics"]]],null]],null],null,[[[1,"        "],[10,"tr"],[14,0,"reviewable-topic"],[12],[1,"\\n          "],[10,"td"],[14,0,"topic-title"],[12],[1,"\\n            "],[10,0],[14,0,"combined-title"],[12],[1,"\\n              "],[8,[39,4],null,[["@topic"],[[30,1]]],null],[1,"\\n              "],[10,3],[15,6,[30,1,["relative_url"]]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[12],[1,[28,[35,5],[[30,1,["title"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"td"],[14,0,"reviewable-count"],[12],[1,"\\n            "],[1,[30,1,["stats","count"]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"td"],[14,0,"reported-by"],[12],[1,"\\n            "],[1,[28,[35,1],["review.topics.unique_users"],[["count"],[[30,1,["stats","unique_users"]]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,"td"],[14,0,"reviewable-details"],[12],[1,"\\n            "],[8,[39,6],null,[["@topicId","@claimedBy"],[[30,1,["id"]],[30,1,["claimed_by"]]]],null],[1,"\\n            "],[8,[39,7],[[24,0,"btn btn-primary btn-small"]],[["@route","@query"],["review.index",[28,[37,8],null,[["topic_id"],[[30,1,["id"]]]]]]],[["default"],[[[[1,"\\n              "],[1,[28,[35,9],["list"],null]],[1,"\\n              "],[10,1],[12],[1,[28,[35,1],["review.topics.details"],null]],[13],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"no-review"],[12],[1,"\\n    "],[1,[28,[35,1],["review.none"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["rt"],false,["if","i18n","each","-track-array","topic-status","replace-emoji","reviewable-claimed-topic","link-to","hash","d-icon"]]',moduleName:"discourse/templates/review-topics.hbs",isStrictMode:!1})},55380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"CQmO7udB",block:'[[[10,0],[14,0,"reviewable"],[12],[1,"\\n  "],[10,"ul"],[14,0,"nav nav-pills reviewable-title"],[12],[1,"\\n    "],[8,[39,0],null,[["@route","@label"],["review.index","review.view_all"]],null],[1,"\\n    "],[8,[39,0],null,[["@route","@label"],["review.topics","review.grouped_by_topic"]],null],[1,"\\n"],[41,[30,0,["currentUser","admin"]],[[[1,"      "],[8,[39,0],null,[["@route","@label","@icon"],["review.settings","review.settings.title","wrench"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[46,[28,[37,3],null,null],null,null,null],[1,"\\n"],[13]],[],false,["nav-item","if","component","-outlet"]]',moduleName:"discourse/templates/review.hbs",isStrictMode:!1})},84133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"P5kk5M3l",block:'[[[41,[30,0,["message"]],[[[1,"  "],[10,0],[15,0,[29,["alert ",[30,0,["alertClass"]]]]],[12],[1,[30,0,["message"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,0,["loadError"]]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,0,["customDescription"]],[[[1,"    "],[10,2],[14,0,"action-description"],[12],[1,[30,0,["customDescription"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[10,2],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n"],[41,[30,0,["showSecurityKeyForm"]],[[[1,"    "],[10,0],[14,1,"security-key"],[12],[1,"\\n      "],[8,[39,2],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,0,["authenticateSecurityKey"]],"key","login.security_key_authenticate"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,0,["showTotpForm"]],[30,0,["showBackupCodesForm"]]],null],[[[1,"    "],[10,"form"],[15,0,[30,0,["inputFormClass"]]],[12],[1,"\\n      "],[8,[39,4],null,[["@value","@secondFactorMethod","@onTokenInput"],[[30,0,["secondFactorToken"]],[30,0,["shownSecondFactorMethod"]],[28,[37,5],[[30,0],"onTokenInput"],null]]],null],[1,"\\n      "],[8,[39,2],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["authenticateToken"]],"submit"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["alternativeMethods","length"]],[[[1,"    "],[10,2],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["alternativeMethods"]]],null]],null],null,[[[41,[28,[37,8],[[30,2],0],null],[[[1,"          "],[10,1],[12],[1,"·"],[13],[1,"\\n"]],[]],null],[1,"        "],[10,1],[12],[1,"\\n          "],[11,3],[24,6,""],[16,0,[29,["toggle-second-factor-method ",[30,1,["class"]]]]],[4,[38,9],["click",[28,[37,10],[[30,0,["useAnotherMethod"]],[30,1,["id"]]],null]],null],[12],[1,"\\n            "],[1,[28,[35,11],[[30,1,["translationKey"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1,2]],null],[1,"    "],[13],[1,"\\n"]],[]],null]],[]],null]],["method","index"],false,["if","unless","d-button","or","second-factor-input","action","each","-track-array","gt","on","fn","i18n"]]',moduleName:"discourse/templates/second-factor-auth.hbs",isStrictMode:!1})},1752:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"bJwEhhN1",block:'[[[8,[39,0],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,1],[[30,0],"toggleMultiSelect"],null],[28,[37,1],[[30,0],"mergePosts"],null],[28,[37,1],[[30,0],"deleteSelected"],null],[28,[37,1],[[30,0],"deselectAll"],null],[28,[37,1],[[30,0],"selectAll"],null]]],null]],[],false,["selected-posts","action"]]',moduleName:"discourse/templates/selected-posts.hbs",isStrictMode:!1})},18258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"4bVtO7Wg",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,0],["tagging.groups.edit_title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@model","@onDestroy"],[[30,0,["model"]],[28,[37,2],[[30,0],"onDestroy"],null]]],null],[1,"\\n"],[13]],[],false,["i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-edit.hbs",isStrictMode:!1})},87764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"TssKvbvr",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n  "],[10,"h3"],[12],[1,"\\n"],[41,[30,0,["model"]],[[[1,"      "],[1,[28,[35,1],["tagging.groups.about_heading"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,1],["tagging.groups.about_heading_empty"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[10,"section"],[14,0,"tag-groups-about"],[12],[1,"\\n    "],[10,2],[12],[1,[28,[35,1],["tagging.groups.about_description"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,"section"],[12],[1,"\\n"],[41,[51,[30,0,["model"]]],[[[1,"      "],[8,[39,3],[[24,0,"btn btn-primary"]],[["@route"],["tagGroups.new"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,4],["plus"],null]],[1,"\\n        "],[1,[28,[35,1],["tagging.groups.new"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],[],false,["if","i18n","unless","link-to","d-icon"]]',moduleName:"discourse/templates/tag-groups-index.hbs",isStrictMode:!1})},38645:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"wgmASMO6",block:'[[[10,0],[14,0,"tag-group-content"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,0],["tagging.groups.new_title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@model","@onSave"],[[30,0,["model"]],[28,[37,2],[[30,0],"onSave"],null]]],null],[1,"\\n"],[13]],[],false,["i18n","tag-groups-form","action"]]',moduleName:"discourse/templates/tag-groups-new.hbs",isStrictMode:!1})},24690:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"2ZXsjfTK",block:'[[[10,3],[14,0,"tag-groups--back"],[15,6,[28,[37,0],["/tags"],null]],[12],[1,"\\n  "],[1,[28,[35,1],["chevron-left"],null]],[1,"\\n  "],[10,1],[12],[1,[28,[35,2],["tagging.groups.back_btn"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tag-groups-container"],[12],[1,"\\n  "],[10,"h2"],[12],[1,[28,[35,2],["tagging.groups.title"],null]],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[41,[30,0,["model"]],[[[1,"      "],[10,0],[14,0,"tag-groups-sidebar content-list"],[12],[1,"\\n        "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["model"]]],null]],null],null,[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,6],null,[["@route","@model"],["tagGroups.edit",[30,1]]],[["default"],[[[[1,"\\n                "],[1,[30,1,["name"]]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n\\n        "],[8,[39,7],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,8],[[30,0],"newTagGroup"],null],"plus","tagging.groups.new"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[46,[28,[37,10],null,null],null,null,null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"tag-group-content"],[12],[1,"\\n      "],[10,0],[14,0,"alert info"],[12],[1,[28,[35,2],["tagging.groups.disabled"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],["tagGroup"],false,["get-url","d-icon","i18n","if","each","-track-array","link-to","d-button","action","component","-outlet"]]',moduleName:"discourse/templates/tag-groups.hbs",isStrictMode:!1})},60733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"5ID5SU8e",block:'[[[1,[28,[35,0],["tags-page"],null]],[1,"\\n"],[46,[28,[37,2],null,null],null,null,null]],[],false,["body-class","component","-outlet"]]',moduleName:"discourse/templates/tags.hbs",isStrictMode:!1})},46386:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"DsRHz8eh",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[8,[39,0],null,null,null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"container tags-index"],[12],[1,"\\n\\n  "],[10,0],[14,0,"list-controls"],[12],[1,"\\n    "],[10,0],[14,0,"container tags-controls"],[12],[1,"\\n"],[41,[30,0,["canAdminTags"]],[[[1,"        "],[8,[39,2],null,[["@actionsMapping"],[[30,0,["actionsMapping"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[10,"h2"],[12],[1,[28,[35,3],["tagging.tags"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["tags-below-title","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n    "],[1,[28,[35,3],["tagging.sort_by"],null]],[1,"\\n    "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortByCount"]]],null],[12],[1,[28,[35,3],["tagging.sort_by_count"],null]],[13],[13],[1,"\\n    "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["sortById"]]],null],[12],[1,[28,[35,3],["tagging.sort_by_name"],null]],[13],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"hr"],[12],[13],[1,"\\n\\n  "],[10,0],[14,0,"all-tag-lists"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","extras","categories"]]],null]],null],null,[[[1,"      "],[8,[39,9],null,[["@tags","@sortProperties","@categoryId"],[[30,1,["tags"]],[30,0,["sortProperties"]],[30,1,["id"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["model","extras","tag_groups"]]],null]],null],null,[[[1,"      "],[8,[39,9],null,[["@tags","@sortProperties","@tagGroupName"],[[30,2,["tags"]],[30,0,["sortProperties"]],[30,2,["name"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["model"]],[[[1,"      "],[8,[39,9],null,[["@tags","@sortProperties","@titleKey"],[[30,0,["model"]],[30,0,["sortProperties"]],[30,0,["otherTagsTitleKey"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[13]],["category","tagGroup"],false,["discourse-banner","if","tags-admin-dropdown","i18n","plugin-outlet","hash","on","each","-track-array","tag-list"]]',moduleName:"discourse/templates/tags/index.hbs",isStrictMode:!1})},84299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"yJZfjMUN",block:'[[[44,[[30,0,["model","postStream"]]],[[[41,[51,[28,[37,2],[[30,1,["loaded"]],[30,1,["loadedAllPosts"]]],null]],[[[1,"    "],[1,[34,3]],[1,"\\n"]],[]],null]],[1]]],[1,"\\n"],[8,[39,4],[[4,[38,5],null,null]],[["@multiSelect","@enteredAt","@topic","@hasScrolled"],[[30,0,["multiSelect"]],[30,0,["enteredAt"]],[30,0,["model"]],[30,0,["hasScrolled"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model"]],[[[1,"    "],[8,[39,7],null,[["@category","@tags"],[[30,0,["model","category"]],[30,0,["model","tags"]]]],null],[1,"\\n    "],[8,[39,8],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[8,[39,9],null,[["@overlay","@hide"],[[30,0,["hasScrolled"]],[30,0,["model","errorLoading"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSharedDraftControls"]],[[[1,"    "],[8,[39,10],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-post-stream","div",[28,[37,12],null,[["model","editFirstPost"],[[30,0,["model"]],[28,[37,13],[[30,0],"editFirstPost"],null]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["model","postStream","loaded"]],[[[41,[30,0,["model","postStream","firstPostPresent"]],[[[1,"      "],[8,[39,14],null,[["@cancelled","@save","@model"],[[28,[37,13],[[30,0],"cancelEditingTopic"],null],[28,[37,13],[[30,0],"finishedEditingTopic"],null],[30,0,["model"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["editingTopic"]],[[[1,"          "],[10,0],[14,0,"edit-topic-title"],[12],[1,"\\n            "],[8,[39,15],null,[["@shouldShow","@tagName"],[[30,0,["model","isPrivateMessage"]],""]],null],[1,"\\n\\n            "],[8,[39,16],null,[["@id","@value","@maxlength","@autofocus"],["edit-title",[30,0,["buffered","title"]],[30,0,["siteSettings","max_topic_title_length"]],"true"]],null],[1,"\\n\\n"],[41,[30,0,["showCategoryChooser"]],[[[1,"              "],[8,[39,17],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["buffered","category_id"]],[28,[37,13],[[30,0],"topicCategoryChanged"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditTags"]],[[[1,"              "],[8,[39,18],null,[["@value","@onChange","@options"],[[30,0,["buffered","tags"]],[28,[37,13],[[30,0],"topicTagsChanged"],null],[28,[37,12],null,[["filterable","categoryId","minimum","filterPlaceholder","useHeaderFilter"],[true,[30,0,["buffered","category_id"]],[30,0,["minimumRequiredTags"]],"tagging.choose_for_topic",true]]]]],null],[1,"\\n"]],[]],null],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["edit-topic","div",[28,[37,12],null,[["model","buffered"],[[30,0,["model"]],[30,0,["buffered"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n              "],[8,[39,19],[[24,0,"btn-primary submit-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,13],[[30,0],"finishedEditingTopic"],null],"check","composer.save_edit"]],null],[1,"\\n              "],[8,[39,19],[[24,0,"btn-default cancel-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,13],[[30,0],"cancelEditingTopic"],null],"times","composer.cancel"]],null],[1,"\\n\\n"],[41,[30,0,["canRemoveTopicFeaturedLink"]],[[[1,"                "],[11,3],[24,6,""],[24,0,"remove-featured-link"],[16,"title",[28,[37,20],["composer.remove_featured_link"],null]],[4,[38,21],["click",[30,0,["removeFeaturedLink"]]],null],[12],[1,"\\n                  "],[1,[28,[35,22],["times-circle"],null]],[1,"\\n                  "],[1,[30,0,["featuredLinkDomain"]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n\\n"]],[]],[[[1,"          "],[10,"h1"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n"],[41,[51,[30,0,["model","is_warning"]]],[[[41,[30,0,["canSendPms"]],[[[1,"                "],[8,[39,15],null,[["@shouldShow","@href","@title","@ariaLabel","@tagName"],[[30,0,["model","isPrivateMessage"]],[30,0,["pmPath"]],"topic_statuses.personal_message.title","user.messages.inbox",""]],null],[1,"\\n"]],[]],[[[1,"                "],[8,[39,15],null,[["@shouldShow","@tagName"],[[30,0,["model","isPrivateMessage"]],""]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["model","details","loaded"]],[[[1,"              "],[8,[39,23],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n              "],[11,3],[16,6,[30,0,["model","url"]]],[24,0,"fancy-title"],[4,[38,21],["click",[30,0,["jumpTop"]]],null],[12],[1,"\\n                "],[1,[28,[35,24],[[30,0,["model","fancyTitle"]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","details","can_edit"]],[[[1,"              "],[11,3],[24,6,""],[24,0,"edit-topic"],[16,"title",[28,[37,20],["edit"],null]],[4,[38,21],["click",[30,0,["editTopic"]]],null],[12],[1,[28,[35,22],["pencil-alt"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[8,[39,11],null,[["@name","@outletArgs"],["topic-title-suffix",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,25],[[24,0,"topic-category"]],[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model","publishedPage"]],[[[1,"        "],[10,0],[14,0,"published-page-notice"],[12],[1,"\\n          "],[10,0],[14,0,"details"],[12],[1,"\\n"],[41,[30,0,["model","publishedPage","public"]],[[[1,"              "],[10,1],[14,0,"is-public"],[12],[1,[28,[35,20],["topic.publish_page.public"],null]],[13],[1,"\\n"]],[]],null],[1,"            "],[1,[28,[35,20],["topic.publish_page.topic_published"],null]],[1,"\\n            "],[10,0],[12],[1,"\\n              "],[10,3],[15,6,[30,0,["model","publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["model","publishedPage","url"]]],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[8,[39,19],null,[["@icon","@label","@action"],["file","topic.publish_page.publishing_settings",[28,[37,26],["showPagePublish"],null]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"container posts"],[12],[1,"\\n      "],[10,0],[15,0,[29,["selected-posts ",[52,[51,[30,0,["multiSelect"]]],"hidden"]]]],[12],[1,"\\n        "],[8,[39,27],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,13],[[30,0],"toggleMultiSelect"],null],[28,[37,13],[[30,0],"mergePosts"],null],[28,[37,13],[[30,0],"deleteSelected"],null],[28,[37,13],[[30,0],"deselectAll"],null],[28,[37,13],[[30,0],"selectAll"],null]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,11],null,[["@name","@connectorTagName"],["above-timeline","div"]],null],[1,"\\n\\n      "],[8,[39,28],[[24,0,"topic-navigation"]],[["@topic","@jumpToDate","@jumpToIndex"],[[30,0,["model"]],[28,[37,13],[[30,0],"jumpToDate"],null],[28,[37,13],[[30,0],"jumpToIndex"],null]]],[["default"],[[[[1,"\\n        "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation","div",[28,[37,12],null,[["topic","renderTimeline","topicProgressExpanded"],[[30,0,["model"]],[30,2,["renderTimeline"]],[30,2,["topicProgressExpanded"]]]]]]],null],[1,"\\n"],[41,[30,2,["renderTimeline"]],[[[1,"          "],[8,[39,29],null,[["@info","@model","@replyToPost","@showTopReplies","@jumpToPostPrompt","@enteredIndex","@prevEvent","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@fullscreen","@mobileView"],[[30,2],[30,0,["model"]],[28,[37,13],[[30,0],"replyToPost"],null],[28,[37,13],[[30,0],"showTopReplies"],null],[28,[37,13],[[30,0],"jumpToPostPrompt"],null],[30,0,["enteredIndex"]],[30,2,["prevEvent"]],[28,[37,13],[[30,0],"jumpTop"],null],[28,[37,13],[[30,0],"jumpBottom"],null],[28,[37,13],[[30,0],"jumpEnd"],null],[28,[37,13],[[30,0],"jumpToIndex"],null],[28,[37,13],[[30,0],"toggleMultiSelect"],null],[28,[37,26],["showTopicSlowModeUpdate"],null],[28,[37,13],[[30,0],"deleteTopic"],null],[28,[37,13],[[30,0],"recoverTopic"],null],[28,[37,13],[[30,0],"toggleClosed"],null],[28,[37,13],[[30,0],"toggleArchived"],null],[28,[37,13],[[30,0],"toggleVisibility"],null],[28,[37,26],["showTopicTimerModal"],null],[28,[37,26],["showFeatureTopic"],null],[28,[37,26],["showChangeTimestamp"],null],[28,[37,13],[[30,0],"resetBumpDate"],null],[28,[37,13],[[30,0],"convertToPublicTopic"],null],[28,[37,13],[[30,0],"convertToPrivateMessage"],null],[30,2,["topicProgressExpanded"]],[30,0,["site","mobileView"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,30],null,[["@prevEvent","@topic","@expanded","@jumpToPost"],[[30,2,["prevEvent"]],[30,0,["model"]],[30,2,["topicProgressExpanded"]],[28,[37,13],[[30,0],"jumpToPost"],null]]],[["default"],[[[[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-progress","div",[28,[37,12],null,[["model","jumpToPost"],[[30,0,["model"]],[28,[37,13],[[30,0],"jumpToPost"],null]]]]]],null],[1,"\\n            "],[13],[1,"\\n            "],[8,[39,31],null,[["@topic","@openUpwards","@rightSide","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["model"]],"true","true",[28,[37,13],[[30,0],"toggleMultiSelect"],null],[28,[37,26],["showTopicSlowModeUpdate"],null],[28,[37,13],[[30,0],"deleteTopic"],null],[28,[37,13],[[30,0],"recoverTopic"],null],[28,[37,13],[[30,0],"toggleClosed"],null],[28,[37,13],[[30,0],"toggleArchived"],null],[28,[37,13],[[30,0],"toggleVisibility"],null],[28,[37,26],["showTopicTimerModal"],null],[28,[37,26],["showFeatureTopic"],null],[28,[37,26],["showChangeTimestamp"],null],[28,[37,13],[[30,0],"resetBumpDate"],null],[28,[37,13],[[30,0],"convertToPublicTopic"],null],[28,[37,13],[[30,0],"convertToPrivateMessage"],null]]],null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]]],[1,"\\n        "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["topic-navigation-bottom","div",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "]],[2]]]]],[1,"\\n\\n      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[10,"section"],[14,0,"topic-area"],[14,1,"topic"],[15,"data-topic-id",[30,0,["model","id"]]],[12],[1,"\\n\\n          "],[10,0],[14,0,"posts-wrapper"],[12],[1,"\\n            "],[8,[39,32],null,[["@condition"],[[30,0,["model","postStream","loadingAbove"]]]],null],[1,"\\n\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-posts","div",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[51,[30,0,["model","postStream","loadingFilter"]]],[[[1,"              "],[8,[39,33],null,[["@posts","@canCreatePost","@multiSelect","@selectedPostsCount","@filteredPostsCount","@selectedQuery","@gaps","@showReadIndicator","@streamFilters","@lastReadPostNumber","@highestPostNumber","@showFlags","@editPost","@showHistory","@showLogin","@showRawEmail","@deletePost","@permanentlyDeletePost","@recoverPost","@expandHidden","@toggleBookmark","@togglePostType","@rebakePost","@changePostOwner","@grantBadge","@changeNotice","@lockPost","@unlockPost","@unhidePost","@replyToPost","@toggleWiki","@showTopReplies","@cancelFilter","@collapseSummary","@showSummary","@removeAllowedUser","@removeAllowedGroup","@topVisibleChanged","@currentPostChanged","@currentPostScrolled","@bottomVisibleChanged","@togglePostSelection","@selectReplies","@selectBelow","@fillGapBefore","@fillGapAfter","@showInvite","@showPagePublish"],[[30,0,["postsToRender"]],[30,0,["model","details","can_create_post"]],[30,0,["multiSelect"]],[30,0,["selectedPostsCount"]],[30,0,["model","postStream","filteredPostsCount"]],[30,0,["selectedQuery"]],[30,0,["model","postStream","gaps"]],[30,0,["model","show_read_indicator"]],[30,0,["model","postStream","streamFilters"]],[30,0,["userLastReadPostNumber"]],[30,0,["highestPostNumber"]],[28,[37,13],[[30,0],"showPostFlags"],null],[28,[37,13],[[30,0],"editPost"],null],[28,[37,26],["showHistory"],null],[28,[37,26],["showLogin"],null],[28,[37,26],["showRawEmail"],null],[28,[37,13],[[30,0],"deletePost"],null],[28,[37,13],[[30,0],"permanentlyDeletePost"],null],[28,[37,13],[[30,0],"recoverPost"],null],[28,[37,13],[[30,0],"expandHidden"],null],[28,[37,13],[[30,0],"toggleBookmark"],null],[28,[37,13],[[30,0],"togglePostType"],null],[28,[37,13],[[30,0],"rebakePost"],null],[28,[37,13],[[30,0],"changePostOwner"],null],[28,[37,13],[[30,0],"grantBadge"],null],[28,[37,13],[[30,0],"changeNotice"],null],[28,[37,13],[[30,0],"lockPost"],null],[28,[37,13],[[30,0],"unlockPost"],null],[28,[37,13],[[30,0],"unhidePost"],null],[28,[37,13],[[30,0],"replyToPost"],null],[28,[37,13],[[30,0],"toggleWiki"],null],[28,[37,13],[[30,0],"showTopReplies"],null],[28,[37,13],[[30,0],"cancelFilter"],null],[28,[37,13],[[30,0],"collapseSummary"],null],[28,[37,13],[[30,0],"showSummary"],null],[28,[37,13],[[30,0],"removeAllowedUser"],null],[28,[37,13],[[30,0],"removeAllowedGroup"],null],[28,[37,13],[[30,0],"topVisibleChanged"],null],[28,[37,13],[[30,0],"currentPostChanged"],null],[28,[37,13],[[30,0],"currentPostScrolled"],null],[28,[37,13],[[30,0],"bottomVisibleChanged"],null],[28,[37,13],[[30,0],"togglePostSelection"],null],[28,[37,13],[[30,0],"selectReplies"],null],[28,[37,13],[[30,0],"selectBelow"],null],[28,[37,13],[[30,0],"fillGapBefore"],null],[28,[37,13],[[30,0],"fillGapAfter"],null],[28,[37,26],["showInvite"],null],[28,[37,26],["showPagePublish"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n            "],[8,[39,32],null,[["@condition"],[[30,0,["model","postStream","loadingBelow"]]]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,1,"topic-bottom"],[12],[13],[1,"\\n\\n          "],[8,[39,32],null,[["@condition"],[[30,0,["model","postStream","loadingFilter"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[1,"\\n"],[41,[30,0,["model","pending_posts"]],[[[1,"                "],[10,0],[14,0,"pending-posts"],[12],[1,"\\n"],[42,[28,[37,35],[[28,[37,35],[[30,0,["model","pending_posts"]]],null]],null],null,[[[1,"                    "],[10,0],[14,0,"reviewable-item"],[12],[1,"\\n                      "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n                        "],[10,1],[14,0,"reviewable-type"],[12],[1,"\\n                          "],[1,[28,[35,20],["review.awaiting_approval"],null]],[1,"\\n                        "],[13],[1,"\\n                        "],[10,1],[14,0,"created-at"],[12],[1,"\\n                          "],[1,[28,[35,36],[[30,3,["created_at"]]],null]],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n                        "],[8,[39,37],null,[["@user","@tagName"],[[30,0,["currentUser"]],""]],null],[1,"\\n                        "],[10,0],[14,0,"post-contents"],[12],[1,"\\n                          "],[8,[39,38],null,[["@user","@tagName"],[[30,0,["currentUser"]],""]],null],[1,"\\n                          "],[10,0],[14,0,"post-body"],[12],[8,[39,39],null,[["@rawText"],[[30,3,["raw"]]]],null],[13],[1,"\\n                        "],[13],[1,"\\n                      "],[13],[1,"\\n                      "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n                        "],[8,[39,19],[[24,0,"btn-danger"]],[["@label","@icon","@action"],["review.delete","trash-alt",[28,[37,40],[[28,[37,13],[[30,0],"deletePending"],null],[30,3]],null]]],null],[1,"\\n                      "],[13],[1,"\\n                    "],[13],[1,"\\n"]],[3]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","queued_posts_count"]],[[[1,"                "],[10,0],[14,0,"has-pending-posts"],[12],[1,"\\n                  "],[10,0],[12],[1,"\\n                    "],[1,[28,[35,24],[[28,[37,20],["review.topic_has_pending"],[["count"],[[30,0,["model","queued_posts_count"]]]]]],null]],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[8,[39,41],null,[["@route","@query"],["review",[28,[37,12],null,[["topic_id","type","status"],[[30,0,["model","id"]],"ReviewableQueuedPost","pending"]]]]],[["default"],[[[[1,"\\n                    "],[1,[28,[35,20],["review.view_pending"],null]],[1,"\\n                  "]],[]]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[8,[39,42],null,[["@topic","@user","@tagName"],[[30,0,["model"]],[30,0,["currentUser"]],""]],null],[1,"\\n\\n              "],[8,[39,43],null,[["@topicClosed","@statusType","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId","@showTopicTimerModal","@removeTopicTimer"],[[30,0,["model","closed"]],[30,0,["model","topic_timer","status_type"]],[30,0,["model","topic_timer","execute_at"]],[30,0,["model","topic_timer","based_on_last_post"]],[30,0,["model","topic_timer","duration_minutes"]],[30,0,["model","topic_timer","category_id"]],[28,[37,26],["showTopicTimerModal"],null],[28,[37,13],[[30,0],"removeTopicTimer",[30,0,["model","topic_timer","status_type"]],"topic_timer"],null]]],null],[1,"\\n\\n"],[41,[30,0,["showSelectedPostsAtBottom"]],[[[1,"                "],[10,0],[15,0,[29,["selected-posts\\n                    ",[52,[51,[30,0,["multiSelect"]]],"hidden"],"\\n                    ",[52,[30,0,["showSelectedPostsAtBottom"]],"hidden"]]]],[12],[1,"\\n                  "],[8,[39,27],null,[["@selectedPostsCount","@canSelectAll","@canDeselectAll","@canDeleteSelected","@canMergeTopic","@canChangeOwner","@canMergePosts","@toggleMultiSelect","@mergePosts","@deleteSelected","@deselectAll","@selectAll"],[[30,0,["selectedPostsCount"]],[30,0,["canSelectAll"]],[30,0,["canDeselectAll"]],[30,0,["canDeleteSelected"]],[30,0,["canMergeTopic"]],[30,0,["canChangeOwner"]],[30,0,["canMergePosts"]],[28,[37,13],[[30,0],"toggleMultiSelect"],null],[28,[37,13],[[30,0],"mergePosts"],null],[28,[37,13],[[30,0],"deleteSelected"],null],[28,[37,13],[[30,0],"deselectAll"],null],[28,[37,13],[[30,0],"selectAll"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],null],[1,"          "]],[]]]]],[1,"\\n\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n    "],[13],[1,"\\n"],[41,[30,0,["loadedAllPosts"]],[[[41,[30,0,["session","showSignupCta"]],[[[1,"        "],[8,[39,44],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["currentUser"]],[[[1,"          "],[10,1],[12],[1,"\\n            "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-footer-buttons","div",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,45],null,[["@topic","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@toggleBookmark","@showFlagTopic","@toggleArchiveMessage","@editFirstPost","@deferTopic","@replyToPost"],[[30,0,["model"]],[28,[37,13],[[30,0],"toggleMultiSelect"],null],[28,[37,26],["showTopicSlowModeUpdate"],null],[28,[37,13],[[30,0],"deleteTopic"],null],[28,[37,13],[[30,0],"recoverTopic"],null],[28,[37,13],[[30,0],"toggleClosed"],null],[28,[37,13],[[30,0],"toggleArchived"],null],[28,[37,13],[[30,0],"toggleVisibility"],null],[28,[37,26],["showTopicTimerModal"],null],[28,[37,26],["showFeatureTopic"],null],[28,[37,26],["showChangeTimestamp"],null],[28,[37,13],[[30,0],"resetBumpDate"],null],[28,[37,13],[[30,0],"convertToPublicTopic"],null],[28,[37,13],[[30,0],"convertToPrivateMessage"],null],[28,[37,13],[[30,0],"toggleBookmark"],null],[28,[37,26],["showFlagTopic"],null],[28,[37,13],[[30,0],"toggleArchiveMessage"],null],[28,[37,13],[[30,0],"editFirstPost"],null],[28,[37,13],[[30,0],"deferTopic"],null],[28,[37,13],[[30,0],"replyToPost"],null]]],null],[1,"\\n"]],[]],[[[1,"          "],[10,0],[14,1,"topic-footer-buttons"],[12],[1,"\\n            "],[8,[39,46],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]]]],[]]],[1,"\\n      "],[10,"br"],[12],[13],[1,"\\n\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,11],null,[["@name","@connectorTagName","@outletArgs"],["topic-above-suggested","div",[28,[37,12],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,47],null,[["@topic"],[[30,0,["model"]]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[8,[39,32],null,[["@condition"],[[30,0,["noErrorYet"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","errorHtml"]],[[[1,"          "],[10,0],[14,0,"not-found"],[12],[1,[28,[35,24],[[30,0,["model","errorHtml"]]],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[10,0],[14,0,"topic-error"],[12],[1,"\\n            "],[10,0],[12],[1,[30,0,["model","errorMessage"]]],[13],[1,"\\n"],[41,[30,0,["model","noRetry"]],[[[41,[51,[30,0,["currentUser"]]],[[[1,"                "],[8,[39,19],[[24,0,"btn-primary topic-retry"]],[["@action","@icon","@label"],[[28,[37,26],["showLogin"],null],"user","log_in"]],null],[1,"\\n"]],[]],null]],[]],[[[1,"              "],[8,[39,19],[[24,0,"btn-primary topic-retry"]],[["@action","@icon","@label"],[[28,[37,13],[[30,0],"retryLoading"],null],"sync","errors.buttons.again"]],null],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[8,[39,32],null,[["@condition"],[[30,0,["retrying"]]]],null],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n  "],[8,[39,48],null,[["@quoteState","@selectText","@buildQuoteMarkdown","@editPost","@topic"],[[30,0,["quoteState"]],[28,[37,13],[[30,0],"selectText"],null],[30,0,["buildQuoteMarkdown"]],[28,[37,13],[[30,0],"editPost"],null],[30,0,["model"]]]],null],[1,"\\n"]],[]]]]]],["postStream","info","pending"],false,["let","unless","and","hide-application-footer","discourse-topic","sticky-avatars","if","add-category-tag-classes","add-topic-status-classes","discourse-banner","shared-draft-controls","plugin-outlet","hash","action","topic-title","private-message-glyph","text-field","category-chooser","mini-tag-chooser","d-button","i18n","on","d-icon","topic-status","html-safe","topic-category","route-action","selected-posts","topic-navigation","topic-timeline","topic-progress","topic-admin-menu-button","conditional-loading-spinner","scrolling-post-stream","each","-track-array","age-with-tooltip","reviewable-created-by","reviewable-created-by-name","cook-text","fn","link-to","slow-mode-info","topic-timer-info","signup-cta","topic-footer-buttons","anonymous-topic-footer-buttons","more-topics","post-text-selection"]]',moduleName:"discourse/templates/topic.hbs",isStrictMode:!1})},75597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"rj+S98Jb",block:'[[[1,[28,[35,0],["static-tos"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"container"],[12],[1,"\\n  "],[10,0],[14,0,"contents clearfix body-page"],[12],[1,"\\n    "],[8,[39,1],null,[["@name"],["above-static"]],null],[1,"\\n    "],[1,[28,[35,2],[[30,0,["model","html"]]],null]],[1,"\\n    "],[8,[39,1],null,[["@name"],["below-static"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","html-safe"]]',moduleName:"discourse/templates/tos.hbs",isStrictMode:!1})},36965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"uBV4FEwu",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,0,["model"]]],null]],[1,"\\n"],[13]],[],false,["html-safe"]]',moduleName:"discourse/templates/unknown.hbs",isStrictMode:!1})},17938:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"J0zkRWfr",block:'[[[10,"ul"],[14,0,"user-stream"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["model"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@post"],[[30,1]]],null],[1,"\\n"]],[1]],null],[13]],["pending_post"],false,["each","-track-array","pending-post"]]',moduleName:"discourse/templates/user-activity-pending.hbs",isStrictMode:!1})},75359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"2q7XikWa",block:'[[[1,[28,[35,0],["user-invites-page"],null]],[1,"\\n\\n"],[41,[30,0,["canInviteToForum"]],[[[1,"  "],[8,[39,2],[[24,0,"user-content"]],[["@id","@selector","@action"],["user-content",".user-invite-list tr",[28,[37,3],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[10,"section"],[14,0,"user-additional-controls"],[12],[1,"\\n"],[41,[30,0,["showSearch"]],[[[1,"        "],[10,0],[14,0,"user-invite-search"],[12],[1,"\\n          "],[10,"form"],[12],[8,[39,4],null,[["@value","@placeholderKey"],[[30,0,["searchTerm"]],"user.invited.search"]],null],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"      "],[10,"section"],[14,0,"user-invite-buttons"],[12],[1,"\\n        "],[8,[39,5],[[24,0,"btn-flat"]],[["@icon","@action","@label"],["plus",[30,0,["createInvite"]],"user.invited.create"]],null],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[41,[30,0,["siteSettings","allow_bulk_invite"]],[[[41,[51,[30,0,["site","mobileView"]]],[[[1,"              "],[8,[39,5],[[24,0,"btn-flat"]],[["@icon","@action","@label"],["upload",[30,0,["createInviteCsv"]],"user.invited.bulk_invite.text"]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[41,[30,0,["showBulkActionButtons"]],[[[41,[30,0,["inviteExpired"]],[[[41,[30,0,["removedAll"]],[[[1,"              "],[10,1],[14,0,"removed-all"],[12],[1,"\\n                "],[1,[28,[35,7],["user.invited.removed_all"],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[8,[39,5],null,[["@icon","@action","@label"],["times",[30,0,["destroyAllExpired"]],"user.invited.remove_all"]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,0,["invitePending"]],[[[41,[30,0,["reinvitedAll"]],[[[1,"              "],[10,1],[14,0,"reinvited-all"],[12],[1,"\\n                "],[8,[39,5],null,[["@icon","@disabled","@label"],["check",true,"user.invited.reinvited_all"]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[41,[30,0,["hasEmailInvites"]],[[[1,"              "],[8,[39,5],[[24,0,"btn-default"]],[["@icon","@action","@label"],["sync",[30,0,["reinviteAll"]],"user.invited.reinvite_all"]],null],[1,"\\n            "]],[]],null]],[]]]],[]],null]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"section"],[12],[1,"\\n"],[41,[30,0,["model","invites"]],[[[41,[30,0,["inviteRedeemed"]],[[[1,"          "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n            "],[10,"thead"],[12],[1,"\\n              "],[10,"tr"],[12],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,7],["user.invited.user"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,7],["user.invited.redeemed_at"],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1,"                  "],[10,"th"],[12],[1,[28,[35,7],["user.last_seen"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.topics_entered"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.posts_read_count"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.time_read"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.days_visited"],null]],[13],[1,"\\n                  "],[10,"th"],[12],[1,[28,[35,7],["user.invited.invited_via"],null]],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["model","invites"]]],null]],null],null,[[[1,"                "],[10,"tr"],[12],[1,"\\n                  "],[10,"td"],[12],[1,"\\n                    "],[8,[39,10],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[28,[35,11],[[30,1,["user"]]],[["imageSize"],["tiny"]]]]],[]]]]],[1,"\\n                    "],[8,[39,10],null,[["@route","@model"],["user",[30,1,["user"]]]],[["default"],[[[[1,[30,1,["user","username"]]]],[]]]]],[1,"\\n                  "],[13],[1,"\\n                  "],[10,"td"],[12],[1,[28,[35,12],[[30,1,["redeemed_at"]]],null]],[13],[1,"\\n"],[41,[30,0,["model","can_see_invite_details"]],[[[1,"                    "],[10,"td"],[12],[1,[28,[35,12],[[30,1,["user","last_seen_at"]]],null]],[13],[1,"\\n                    "],[10,"td"],[12],[1,[28,[35,13],[[30,1,["user","topics_entered"]]],null]],[13],[1,"\\n                    "],[10,"td"],[12],[1,[28,[35,13],[[30,1,["user","posts_read_count"]]],null]],[13],[1,"\\n                    "],[10,"td"],[12],[1,[28,[35,14],[[30,1,["user","time_read"]]],null]],[13],[1,"\\n                    "],[10,"td"],[12],[1,"\\n                      "],[10,1],[15,"title",[28,[37,7],["user.invited.days_visited"],null]],[12],[1,[28,[35,15],[[30,1,["user","days_visited"]]],null]],[13],[1,"\\n                      /\\n                      "],[10,1],[15,"title",[28,[37,7],["user.invited.account_age_days"],null]],[12],[1,[28,[35,15],[[30,1,["user","days_since_created"]]],null]],[13],[1,"\\n                    "],[13],[1,"\\n                    "],[10,"td"],[12],[1,[28,[35,15],[[30,1,["invite_source"]]],null]],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n"]],[1]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"table"],[14,0,"table user-invite-list"],[12],[1,"\\n            "],[10,"thead"],[12],[1,"\\n              "],[10,"tr"],[12],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,7],["user.invited.invited_via"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,7],["user.invited.sent"],null]],[13],[1,"\\n                "],[10,"th"],[12],[1,[28,[35,7],["user.invited.expires_at"],null]],[13],[1,"\\n                "],[10,"th"],[12],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["model","invites"]]],null]],null],null,[[[1,"                "],[10,"tr"],[12],[1,"\\n                  "],[10,"td"],[14,0,"invite-type"],[12],[1,"\\n                    "],[10,0],[14,0,"label"],[12],[1,[28,[35,7],["user.invited.invited_via"],null]],[13],[1,"\\n"],[41,[30,2,["email"]],[[[1,"                      "],[1,[28,[35,16],["envelope"],null]],[1,"\\n                      "],[1,[30,2,["email"]]],[1,"\\n"]],[]],[[[1,"                      "],[1,[28,[35,16],["link"],null]],[1,"\\n                      "],[1,[28,[35,7],["user.invited.invited_via_link"],[["key","count","max"],[[30,2,["shortKey"]],[30,2,["redemption_count"]],[30,2,["max_redemptions_allowed"]]]]]],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,2,["groups"]]],null]],null],null,[[[1,"                      "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[29,["/g/",[30,3,["name"]]]]],[12],[1,[28,[35,16],["users"],null]],[1,"\\n                          "],[1,[30,3,["name"]]],[13],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,2,["topic"]],[[[1,"                      "],[10,2],[14,0,"invite-extra"],[12],[10,3],[15,6,[30,2,["topic","url"]]],[12],[1,[28,[35,16],["file"],null]],[1," "],[1,[30,2,["topic","title"]]],[13],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n\\n                  "],[10,"td"],[14,0,"invite-updated-at"],[12],[1,"\\n                    "],[10,0],[14,0,"label"],[12],[1,[28,[35,7],["user.invited.sent"],null]],[13],[1,"\\n                    "],[1,[28,[35,12],[[30,2,["updated_at"]]],null]],[1,"\\n                  "],[13],[1,"\\n\\n                  "],[10,"td"],[14,0,"invite-expires-at"],[12],[1,"\\n                    "],[10,0],[14,0,"label"],[12],[1,[28,[35,7],["user.invited.expires_at"],null]],[13],[1,"\\n"],[41,[30,0,["inviteExpired"]],[[[1,"                      "],[1,[28,[35,17],[[30,2,["expires_at"]]],null]],[1,"\\n"]],[]],[[[41,[30,2,["expired"]],[[[1,"                      "],[1,[28,[35,7],["user.invited.expired"],null]],[1,"\\n"]],[]],[[[1,"                      "],[1,[28,[35,17],[[30,2,["expires_at"]]],null]],[1,"\\n                    "]],[]]]],[]]],[1,"                  "],[13],[1,"\\n\\n"],[41,[30,2,["can_delete_invite"]],[[[1,"                    "],[10,"td"],[14,0,"invite-actions"],[12],[1,"\\n                      "],[8,[39,5],[[24,0,"btn-default"]],[["@icon","@action","@title"],["pencil-alt",[28,[37,18],[[30,0,["editInvite"]],[30,2]],null],"user.invited.edit"]],null],[1,"\\n                      "],[8,[39,5],[[24,0,"cancel"]],[["@icon","@action","@title"],["trash-alt",[28,[37,18],[[30,0,["destroyInvite"]],[30,2]],null],[52,[30,2,["destroyed"]],"user.invited.removed","user.invited.remove"]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n"]],[2]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"\\n        "],[8,[39,19],null,[["@condition"],[[30,0,["invitesLoading"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"user-invite-none"],[12],[1,"\\n"],[41,[30,0,["canBulkInvite"]],[[[1,"            "],[1,[28,[35,15],[[28,[37,7],["user.invited.bulk_invite.none"],null]],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[35,7],["user.invited.none"],null]],[1,"\\n"]],[]]],[1,"        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"alert alert-error invite-error"],[12],[1,"\\n    "],[1,[30,0,["model","error"]]],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["invite","invite","g"],false,["body-class","if","load-more","action","text-field","d-button","unless","i18n","each","-track-array","link-to","avatar","format-date","number","format-duration","html-safe","d-icon","raw-date","fn","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-invited-show.hbs",isStrictMode:!1})},32552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"MZe9kyy3",block:'[[[41,[30,0,["can_see_invite_details"]],[[[1,"  "],[1,[28,[35,1],["user-invites-page"],null]],[1,"\\n\\n  "],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n    "],[8,[39,2],null,[["@ariaLabel"],["User secondary - invites"]],[["default"],[[[[1,"\\n      "],[8,[39,3],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","pending",[30,0,["pendingLabel"]]]],null],[1,"\\n      "],[8,[39,3],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","expired",[30,0,["expiredLabel"]]]],null],[1,"\\n      "],[8,[39,3],null,[["@route","@routeParam","@i18nLabel"],["userInvited.show","redeemed",[30,0,["redeemedLabel"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[46,[28,[37,5],null,null],null,null,null]],[],false,["if","body-class","horizontal-overflow-nav","nav-item","component","-outlet"]]',moduleName:"discourse/templates/user-invited.hbs",isStrictMode:!1})},96178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"djOfzXTR",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n\\n  "],[8,[39,1],[[24,0,"user-nav__messages-group-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.index","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,2],["envelope"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,3],["categories.latest"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1,"    "],[8,[39,1],[[24,0,"user-nav__messages-group-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.new","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["exclamation-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,1],[[24,0,"user-nav__messages-group-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.unread","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["plus-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,1],[[24,0,"user-nav__messages-group-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.group.archive","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["archive"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,3],["user.messages.archive"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[40,[[[1,"  "],[8,[39,7],null,[["@value","@onChange"],[[30,0,["group","group_user","notification_level"]],[30,0,["changeGroupNotificationLevel"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,6],[[30,0,["navigationControlsButton"]]],null]],[1,"\\n"],[10,0],[15,0,[29,["group-messages group-",[30,0,["group","name"]]]]],[12],[1,"\\n  "],[46,[28,[37,9],null,null],null,null,null],[1,"\\n"],[13]],[],false,["user-nav/messages-secondary-nav","d-navigation-item","d-icon","i18n","if","in-element","-in-el-null","group-notifications-button","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-group.hbs",isStrictMode:!1})},77497:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"lOLQ5JFP",block:'[[[10,0],[14,0,"list-controls"],[12],[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[10,"h2"],[12],[1,[28,[35,0],["tagging.tags"],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-sort-options"],[12],[1,"\\n  "],[1,[28,[35,0],["tagging.sort_by"],null]],[1,"\\n  "],[10,1],[15,0,[29,["tag-sort-count ",[52,[30,0,["sortedByCount"]],"active"]]]],[12],[1,"\\n    "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["sortByCount"]]],null],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.sort_by_count"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[15,0,[29,["tag-sort-name ",[52,[30,0,["sortedByName"]],"active"]]]],[12],[1,"\\n    "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["sortById"]]],null],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.sort_by_name"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"hr"],[12],[13],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1,"  "],[8,[39,3],null,[["@tags","@sortProperties","@titleKey","@isPrivateMessage","@tagsForUser"],[[30,0,["model"]],[30,0,["sortProperties"]],"tagging.all_tags",true,[30,0,["tagsForUser"]]]],null],[1,"\\n"]],[]],null]],[],false,["i18n","if","on","tag-list"]]',moduleName:"discourse/templates/user-private-messages-tags-index.hbs",isStrictMode:!1})},7444:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"d1SiqzZ0",block:'[[[8,[39,0],null,null,[["default"],[[[[1,"\\n  "],[10,"li"],[14,0,"tags"],[12],[1,"\\n    "],[8,[39,1],null,[["@route"],["userPrivateMessages.tags.index"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],["tag"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,3],["user.messages.all_tags"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["tagName"]],[[[1,"    "],[10,"li"],[14,0,"archive"],[12],[1,"\\n      "],[8,[39,1],null,[["@route","@model"],["userPrivateMessages.tags.show",[30,0,["tagName"]]]],[["default"],[[[[1,"\\n        "],[1,[30,0,["tagName"]]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[46,[28,[37,6],null,null],null,null,null]],[],false,["user-nav/messages-secondary-nav","link-to","d-icon","i18n","if","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-tags.hbs",isStrictMode:!1})},33301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"4e3/aUqC",block:'[[[41,[30,0,["showWarningsWarning"]],[[[1,"  "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,1],[[28,[37,2],["admin.user.warnings_list_warning"],null]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,3],null,null,[["default"],[[[[1,"\\n  "],[8,[39,4],[[24,0,"user-nav__messages-latest"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.index","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,5],["envelope"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,2],["categories.latest"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[39,4],[[24,0,"user-nav__messages-sent"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.sent","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,5],["reply"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,2],["user.messages.sent"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["viewingSelf"]],[[[1,"    "],[8,[39,4],[[24,0,"user-nav__messages-new"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.new","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["exclamation-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["newLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,4],[[24,0,"user-nav__messages-unread"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.unread","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["plus-circle"],null]],[1,"\\n      "],[10,1],[12],[1,[30,0,["unreadLinkText"]]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"\\n  "],[8,[39,4],[[24,0,"user-nav__messages-archive"]],[["@route","@ariaCurrentContext"],["userPrivateMessages.user.archive","subNav"]],[["default"],[[[[1,"\\n    "],[1,[28,[35,5],["archive"],null]],[1,"\\n    "],[10,1],[12],[1,[28,[35,2],["user.messages.archive"],null]],[13],[1,"\\n  "]],[]]]]],[1,"\\n\\n"]],[]]]]],[1,"\\n\\n"],[46,[28,[37,7],null,null],null,null,null]],[],false,["if","html-safe","i18n","user-nav/messages-secondary-nav","d-navigation-item","d-icon","component","-outlet"]]',moduleName:"discourse/templates/user-private-messages-user.hbs",isStrictMode:!1})},19652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"4EYHVt4M",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["noContent"]],[[[1,"  "],[8,[39,2],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,3],[[24,0,"paginated-topics-list"]],[["@selector","@action"],[".paginated-topics-list .topic-list .topic-list-item",[28,[37,4],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[8,[39,5],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["top",[30,0,["bulkSelectHelper","selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,4],[[30,0],"resetNew"],null],[52,[30,0,["showDismissRead"]],[28,[37,6],["dismissReadTopics"],null]]]],null],[1,"\\n\\n"],[41,[28,[37,7],[[30,0,["incomingCount"]],0],null],[[[1,"      "],[10,0],[14,0,"show-mores"],[12],[1,"\\n        "],[11,3],[24,"tabindex","0"],[24,6,""],[24,0,"alert alert-info clickable"],[4,[38,8],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n          "],[8,[39,9],null,[["@key","@suffix","@count"],["topic_count_","latest",[30,0,["incomingCount"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,10],null,[["@topicList","@hideCategory","@showPosters","@tagsForUser","@canBulkSelect","@bulkSelectHelper","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["model"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["tagsForUser"]],[30,0,["canBulkSelect"]],[30,0,["bulkSelectHelper"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],true]],null],[1,"\\n\\n    "],[8,[39,5],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["bottom",[30,0,["bulkSelectHelper","selected"]],[30,0,["model"]],[30,0,["showResetNew"]],[30,0,["showDismissRead"]],[28,[37,4],[[30,0],"resetNew"],null],[52,[30,0,["showDismissRead"]],[28,[37,6],["dismissReadTopics"],null]]]],null],[1,"\\n\\n    "],[8,[39,11],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[],false,["if","hide-application-footer","empty-state","load-more","action","topic-dismiss-buttons","route-action","gt","on","count-i18n","basic-topic-list","conditional-loading-spinner"]]',moduleName:"discourse/templates/user-topics-list.hbs",isStrictMode:!1})},14989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"78a8Ti3g",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-user-profile","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[10,0],[15,0,[29,["container\\n    ",[52,[30,0,["viewingSelf"]],"viewing-self"],"\\n    ",[52,[30,0,["model","profile_hidden"]],"profile-hidden"],"\\n    ",[30,0,["primaryGroup"]]]]],[12],[1,"\\n  "],[10,"section"],[14,0,"user-main"],[12],[1,"\\n    "],[10,3],[14,6,"#user-content"],[14,1,"skip-link"],[14,0,"skip-link__user-nav"],[12],[1,"\\n      "],[1,[28,[35,3],["skip_user_nav"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"section"],[15,0,[29,[[52,[30,0,["collapsedInfo"]],"collapsed-info"],"\\n        about\\n        ",[52,[30,0,["hasProfileBackgroundUrl"]],"has-background","no-background"]]]],[12],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[41,[30,0,["showStaffCounters"]],[[[1,"          "],[10,0],[14,0,"staff-counters"],[12],[1,"\\n"],[41,[30,0,["model","number_of_flags_given"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[1,[28,[35,5],[[28,[37,3],["user.staff_counters.flags_given"],[["className","count"],["helpful-flags",[30,0,["model","number_of_flags_given"]]]]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_flagged_posts"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,6],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"all","ReviewableFlaggedPost"]]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,5],[[28,[37,3],["user.staff_counters.flagged_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_flagged_posts"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_rejected_posts"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,6],null,[["@route","@query"],["review",[28,[37,1],null,[["username","status","type"],[[30,0,["model","username"]],"rejected","ReviewableQueuedPost"]]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,5],[[28,[37,3],["user.staff_counters.rejected_posts"],[["className","count"],["flagged-posts",[30,0,["model","number_of_rejected_posts"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","number_of_deleted_posts"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,6],null,[["@route","@model"],["user.deletedPosts",[30,0,["model"]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,5],[[28,[37,3],["user.staff_counters.deleted_posts"],[["className","count"],["deleted-posts",[30,0,["model","number_of_deleted_posts"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","number_of_suspensions"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[11,3],[24,6,""],[4,[38,7],["click",[30,0,["showSuspensions"]]],null],[12],[1,"\\n                  "],[1,[28,[35,5],[[28,[37,3],["user.staff_counters.suspensions"],[["className","count"],["suspensions",[30,0,["model","number_of_suspensions"]]]]]],null]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","warnings_received_count"]],[[[1,"              "],[10,0],[12],[1,"\\n                "],[8,[39,6],null,[["@route","@model"],["userPrivateMessages.user.warnings",[30,0,["model"]]]],[["default"],[[[[1,"\\n                  "],[1,[28,[35,5],[[28,[37,3],["user.staff_counters.warnings_received"],[["className","count"],["warnings-received",[30,0,["model","warnings_received_count"]]]]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"        "],[10,0],[14,0,"user-profile-image"],[15,5,[30,0,["model","profileBackgroundUrl"]]],[12],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"details"],[12],[1,"\\n        "],[10,0],[14,0,"primary"],[12],[1,"\\n          "],[8,[39,0],null,[["@name","@outletArgs"],["before-user-profile-avatar",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[8,[39,8],null,[["@user","@tagName"],[[30,0,["model"]],""]],null],[1,"\\n          "],[10,0],[14,0,"primary-textual"],[12],[1,"\\n            "],[10,0],[14,0,"user-profile-names"],[12],[1,"\\n              "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"full-name","username"],"\\n                  user-profile-names__primary"]]],[12],[1,"\\n                "],[1,[52,[30,0,["nameFirst"]],[30,0,["model","name"]],[28,[37,9],[[30,0,["model","username"]]],null]]],[1,"\\n                "],[1,[28,[35,10],[[30,0,["model"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n"],[41,[30,0,["model","status"]],[[[1,"                  "],[8,[39,11],null,[["@status"],[[30,0,["model","status"]]]],null],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n              "],[10,0],[15,0,[29,[[52,[30,0,["nameFirst"]],"username","full-name"],"\\n                  user-profile-names__secondary"]]],[12],[41,[30,0,["nameFirst"]],[[[1,[30,0,["model","username"]]]],[]],[[[1,[30,0,["model","name"]]]],[]]],[13],[1,"\\n"],[41,[30,0,["model","staged"]],[[[1,"                "],[10,0],[14,0,"staged user-profile-names__secondary"],[12],[1,[28,[35,3],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","title"]],[[[1,"                "],[10,0],[14,0,"user-profile-names__title"],[12],[1,[30,0,["model","title"]]],[13],[1,"\\n"]],[]],null],[1,"              "],[10,1],[12],[1,"\\n                "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-post-names","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1,"              "],[10,0],[14,0,"featured-topic user-profile__featured-topic"],[12],[1,"\\n                "],[10,1],[15,"title",[28,[37,3],["user.featured_topic"],null]],[12],[1,"\\n                  "],[1,[28,[35,12],["book"],null]],[13],[8,[39,6],null,[["@route","@models"],["topic",[28,[37,13],[[30,0,["model","featured_topic","slug"]],[30,0,["model","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,14],[[28,[37,5],[[30,0,["model","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[10,0],[14,0,"location-and-website user-profile__location-and-website"],[12],[1,"\\n              "],[41,[30,0,["model","location"]],[[[10,0],[14,0,"user-profile-location"],[12],[1,[28,[35,12],["map-marker-alt"],null]],[1,[30,0,["model","location"]]],[13]],[]],null],[1,"\\n"],[41,[30,0,["model","website_name"]],[[[1,"                "],[10,0],[14,0,"user-profile-website"],[12],[1,"\\n"],[1,"                  "],[1,[28,[35,12],["globe"],null]],[41,[30,0,["linkWebsite"]],[[[10,3],[15,6,[30,0,["model","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]],[[[1,"                    "],[10,1],[15,"title",[30,0,["model","website"]]],[12],[1,[30,0,["model","website_name"]]],[13],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"              "],[10,1],[12],[1,"\\n                "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-location-and-website","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"bio"],[12],[1,"\\n"],[41,[30,0,["model","suspended"]],[[[1,"                "],[10,0],[14,0,"suspended"],[12],[1,"\\n                  "],[1,[28,[35,12],["ban"],null]],[1,"\\n                  "],[10,"b"],[12],[1,"\\n"],[41,[30,0,["model","suspendedForever"]],[[[1,"                      "],[1,[28,[35,3],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1,"                      "],[1,[28,[35,3],["user.suspended_notice"],[["date"],[[30,0,["model","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n                  "],[10,"br"],[12],[13],[1,"\\n"],[41,[30,0,["model","suspend_reason"]],[[[1,"                    "],[10,"b"],[12],[1,[28,[35,3],["user.suspended_reason"],null]],[13],[1,"\\n                    "],[1,[30,0,["model","suspend_reason"]]],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[41,[30,0,["isNotSuspendedOrIsStaff"]],[[[1,"                "],[8,[39,15],null,null,[["default"],[[[[1,"\\n                  "],[1,[28,[35,5],[[30,0,["model","bio_cooked"]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1,"              "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1,"                    "],[10,0],[15,0,[29,["public-user-field ",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n                      "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[13],[1,":\\n                      "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,1,["value"]]],null]],null],null,[[[1,"                          "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],[[[1,"                          "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1,"                      "],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n                "],[10,1],[12],[1,"\\n                  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-public-fields","div",[28,[37,1],null,[["publicUserFields","model"],[[30,0,["publicUserFields"]],[30,0,["model"]]]]]]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-primary","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,"section"],[14,0,"controls"],[12],[1,"\\n            "],[10,"ul"],[12],[1,"\\n"],[41,[30,0,["model","can_send_private_message_to_user"]],[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[8,[39,18],[[24,0,"btn-primary compose-pm"]],[["@action","@icon","@label"],[[28,[37,19],[[28,[37,20],["composePrivateMessage"],null],[30,0,["model"]]],null],"envelope","user.private_message"]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMuteOrIgnoreUser"]],[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[8,[39,21],null,[["@user","@value","@updateNotificationLevel"],[[30,0,["model"]],[30,0,["userNotificationLevel"]],[28,[37,22],[[30,0],"updateNotificationLevel"],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTopLevelAdminButton"]],[[[1,"                "],[10,"li"],[12],[10,3],[15,6,[30,0,["model","adminPath"]]],[14,0,"btn btn-default user-admin"],[12],[1,[28,[35,12],["wrench"],null]],[10,1],[14,0,"d-button-label"],[12],[1,[28,[35,3],["admin.user.show_admin_profile"],null]],[13],[13],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-controls","li",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["canExpandProfile"]],[[[1,"                "],[10,"li"],[12],[1,"\\n                  "],[8,[39,18],[[24,"aria-controls","collapsed-info-panel"],[16,"aria-expanded",[52,[30,0,["collapsedInfoState","isExpanded"]],"true","false"]],[24,0,"btn-default"]],[["@ariaLabel","@label","@icon","@action"],[[30,0,["collapsedInfoState","ariaLabel"]],[28,[37,23],["user.",[30,0,["collapsedInfoState","label"]]],null],[30,0,["collapsedInfoState","icon"]],[28,[37,22],[[30,0],[30,0,["collapsedInfoState","action"]]],null]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,0],null,[["@name","@outletArgs"],["user-profile-above-collapsed-info",[28,[37,1],null,[["model","collapsedInfo"],[[30,0,["model"]],[30,0,["collapsedInfo"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["collapsedInfo"]]],[[[1,"          "],[10,0],[14,0,"secondary"],[14,1,"collapsed-info-panel"],[12],[1,"\\n            "],[10,"dl"],[12],[1,"\\n"],[41,[30,0,["model","created_at"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"created-at"],[12],[1,[28,[35,3],["user.created"],null]],[13],[10,"dd"],[14,0,"created-at"],[12],[1,[28,[35,24],[[30,0,["model","created_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_posted_at"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"last-posted-at"],[12],[1,[28,[35,3],["user.last_posted"],null]],[13],[10,"dd"],[14,0,"last-posted-at"],[12],[1,[28,[35,24],[[30,0,["model","last_posted_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","last_seen_at"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"last-seen-at"],[12],[1,[28,[35,3],["user.last_seen"],null]],[13],[10,"dd"],[14,0,"last-seen-at"],[12],[1,[28,[35,24],[[30,0,["model","last_seen_at"]]],null]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","profile_view_count"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"profile-view-count"],[12],[1,[28,[35,3],["views"],null]],[13],[10,"dd"],[14,0,"profile-view-count"],[12],[1,[30,0,["model","profile_view_count"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","invited_by"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"invited-by"],[12],[1,[28,[35,3],["user.invited_by"],null]],[13],[10,"dd"],[14,0,"invited-by"],[12],[8,[39,6],null,[["@route","@model"],["user",[30,0,["model","invited_by"]]]],[["default"],[[[[1,[30,0,["model","invited_by","username"]]]],[]]]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasTrustLevel"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"trust-level"],[12],[1,[28,[35,3],["user.trust_level"],null]],[13],[10,"dd"],[14,0,"trust-level"],[12],[1,[30,0,["model","trustLevel","name"]]],[13],[13],[1,"\\n"]],[]],null],[41,[30,0,["canCheckEmails"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"email"],[12],[1,[28,[35,3],["user.email.title"],null]],[13],[1,"\\n                  "],[10,"dd"],[14,0,"email"],[15,"title",[30,0,["model","email"]]],[12],[1,"\\n"],[41,[30,0,["model","email"]],[[[1,"                      "],[1,[30,0,["model","email"]]],[1,"\\n"]],[]],[[[1,"                      "],[8,[39,18],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,19],[[28,[37,20],["checkEmail"],null],[30,0,["model"]]],null],"envelope","admin.users.check_email.text"]],null],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[41,[30,0,["model","displayGroups"]],[[[1,"                "],[10,0],[12],[10,"dt"],[14,0,"groups"],[12],[1,[28,[35,3],["groups.title"],[["count"],[[30,0,["model","displayGroups","length"]]]]]],[13],[1,"\\n                  "],[10,"dd"],[14,0,"groups"],[12],[1,"\\n"],[42,[28,[37,17],[[28,[37,17],[[30,0,["model","displayGroups"]]],null]],null],null,[[[1,"                      "],[10,1],[12],[8,[39,6],[[24,0,"group-link"]],[["@route","@model"],["group",[30,3,["name"]]]],[["default"],[[[[1,[30,3,["name"]]]],[]]]]],[13],[1,"\\n"]],[3]],null],[1,"\\n                    "],[8,[39,6],null,[["@route","@query"],["groups",[28,[37,1],null,[["username"],[[30,0,["model","username"]]]]]]],[["default"],[[[[1,"\\n                      ...\\n                    "]],[]]]]],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteUser"]],[[[1,"                "],[10,0],[14,0,"pull-right"],[12],[8,[39,18],[[24,0,"btn-danger btn-delete-user"]],[["@action","@icon","@label"],[[28,[37,22],[[30,0],"adminDelete"],null],"exclamation-triangle","user.admin_delete"]],null],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-secondary","div",[28,[37,1],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"new-user-wrapper"],[12],[1,"\\n      "],[8,[39,25],null,[["@user","@isStaff","@isMobileView","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@currentParentRoute","@showRead","@showDrafts","@showBookmarks"],[[30,0,["model"]],[30,0,["currentUser","staff"]],[30,0,["site","mobileView"]],[30,0,["showNotificationsTab"]],[30,0,["showPrivateMessages"]],[30,0,["canInviteToForum"]],[30,0,["showBadges"]],[30,0,["currentParentRoute"]],[30,0,["showRead"]],[30,0,["showDrafts"]],[30,0,["showBookmarks"]]]],null],[1,"\\n\\n      "],[10,0],[14,0,"new-user-content-wrapper"],[12],[1,"\\n        "],[46,[28,[37,27],null,null],null,null,null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["uf","v","group"],false,["plugin-outlet","hash","if","i18n","unless","html-safe","link-to","on","user-profile-avatar","format-username","user-status","user-status-message","d-icon","array","replace-emoji","html-with-links","each","-track-array","d-button","fn","route-action","user-notifications-dropdown","action","concat","bound-date","user-nav","component","-outlet"]]',moduleName:"discourse/templates/user.hbs",isStrictMode:!1})},59202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"DFGTrbq+",block:'[[[1,[28,[35,0],["user-activity-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[8,[39,1],null,[["@ariaLabel"],["User secondary - activity"]],[["default"],[[[[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__activity-all"]],[["@route","@ariaCurrentContext"],["userActivity.index","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["stream"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user.filters.all"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,2],[[24,0,"user-nav__activity-topics"]],[["@route","@ariaCurrentContext"],["userActivity.topics","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["list-ul"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.4"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__activity-replies"]],[["@route","@ariaCurrentContext"],["userActivity.replies","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["reply"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.5"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showRead"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-read"],[16,"title",[28,[37,4],["user.read_help"],null]]],[["@route","@ariaCurrentContext"],["userActivity.read","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["history"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.read"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["user","showDrafts"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-drafts"]],[["@route","@ariaCurrentContext"],["userActivity.drafts","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["pencil-alt"],null]],[1,"\\n        "],[10,1],[12],[1,[30,0,["draftLabel"]]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,6],[[30,0,["model","pending_posts_count"]],0],null],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-pending"]],[["@route","@ariaCurrentContext"],["userActivity.pending","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["clock"],null]],[1,"\\n        "],[10,1],[12],[1,[30,0,["pendingLabel"]]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,2],[[24,0,"user-nav__activity-likes"]],[["@route","@ariaCurrentContext"],["userActivity.likesGiven","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],["heart"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["user_action_groups.1"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["user","showBookmarks"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__activity-bookmarks"]],[["@route","@ariaCurrentContext"],["userActivity.bookmarks","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["bookmark"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user_action_groups.3"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-activity-bottom","li",[28,[37,8],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,10],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","horizontal-overflow-nav","d-navigation-item","d-icon","i18n","if","gt","plugin-outlet","hash","component","-outlet"]]',moduleName:"discourse/templates/user/activity.hbs",isStrictMode:!1})},69356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"oFxyDqB/",block:'[[[1,[28,[35,0],["user-badges-page"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[10,2],[14,0,"favorite-count"],[12],[1,"\\n    "],[1,[28,[35,1],["badges.favorite_count"],[["count","max"],[[30,0,["favoriteBadges","length"]],[30,0,["siteSettings","max_favorite_badges"]]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["sortedBadges"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@badge","@count","@canFavorite","@isFavorite","@username","@canFavoriteMoreBadges","@onFavoriteClick","@filterUser"],[[30,1,["badge"]],[30,1,["count"]],[30,1,["can_favorite"]],[30,1,["is_favorite"]],[30,0,["username"]],[30,0,["canFavoriteMoreBadges"]],[28,[37,5],[[30,0],"favorite",[30,1]],null],"true"]],null],[1,"\\n"]],[1]],null],[1,"    "],[8,[39,6],null,[["@name","@outletArgs"],["after-user-profile-badges",[28,[37,7],null,[["user"],[[30,0,["user","model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["ub"],false,["body-class","i18n","each","-track-array","badge-card","action","plugin-outlet","hash"]]',moduleName:"discourse/templates/user/badges.hbs",isStrictMode:!1})},14338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"hly/6BWs",block:'[[[1,[28,[35,0],["user-activity-bookmarks-page"],null]],[1,"\\n\\n"],[8,[39,1],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["above-user-bookmarks","div"]],null],[1,"\\n\\n"],[41,[30,0,["permissionDenied"]],[[[1,"    "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,4],["bookmarks.list_permission_denied"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["userDoesNotHaveBookmarks"]],[[[1,"    "],[8,[39,5],null,[["@title","@body"],[[28,[37,4],["user.no_bookmarks_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"inline-form full-width bookmark-search-form"],[12],[1,"\\n      "],[8,[39,6],[[16,"placeholder",[28,[37,4],["bookmarks.search_placeholder"],null]],[24,1,"bookmark-search"],[24,"autocomplete","off"]],[["@type","@value","@enter"],["text",[30,0,["searchTerm"]],[28,[37,7],[[30,0],"search"],null]]],null],[1,"\\n      "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon"],[[30,0,["search"]],"search"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["nothingFound"]],[[[1,"      "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,4],["user.no_bookmarks_search"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,9],null,[["@loadMore","@reload","@loadingMore","@content"],[[28,[37,7],[[30,0],"loadMore"],null],[28,[37,7],[[30,0],"reload"],null],[30,0,["loadingMore"]],[30,0,["model","bookmarks"]]]],null],[1,"\\n"]],[]]],[1,"  "]],[]]]],[]]]],[]]]]]],[],false,["body-class","conditional-loading-spinner","plugin-outlet","if","i18n","empty-state","input","action","d-button","bookmark-list"]]',moduleName:"discourse/templates/user/bookmarks.hbs",isStrictMode:!1})},75607:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"L4dcg+C5",block:'[[[1,[28,[35,0],["user-messages-page"],null]],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-above-navigation",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[10,"ol"],[14,0,"category-breadcrumb"],[12],[1,"\\n    "],[10,"li"],[12],[1,"\\n      "],[8,[39,3],null,[["@content","@value","@onChange"],[[30,0,["messagesDropdownContent"]],[30,0,["messagesDropdownValue"]],[30,0,["onMessagesDropdownChange"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,4],[[24,1,"user-navigation-secondary__horizontal-nav"],[24,0,"messages-nav"]],[["@ariaLabel"],["User secondary - messages"]],null],[1,"\\n\\n  "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[41,[30,0,["currentUser","admin"]],[[[1,"        "],[8,[39,6],null,[["@bulkSelectHelper"],[[30,0,["bulkSelectHelper"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n    "],[10,1],[14,1,"navigation-controls__button"],[12],[13],[1,"\\n\\n"],[41,[30,0,["showNewPM"]],[[[1,"      "],[8,[39,7],[[24,0,"btn-primary new-private-message"]],[["@action","@icon","@label"],[[28,[37,8],["composePrivateMessage"],null],"envelope","user.new_private_message"]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,1],null,[["@name","@outletArgs"],["user-messages-controls-bottom",[28,[37,2],null,[["showNewPM"],[[30,0,["showNewPM"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[46,[28,[37,10],null,null],null,null,null],[1,"\\n"],[13]],[],false,["body-class","plugin-outlet","hash","user-nav/messages-dropdown","horizontal-overflow-nav","if","bulk-select-toggle","d-button","route-action","component","-outlet"]]',moduleName:"discourse/templates/user/messages.hbs",isStrictMode:!1})},89456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"MRNETqw0",block:'[[[41,[30,0,["model","error"]],[[[1,"  "],[10,0],[14,0,"item error"],[12],[1,"\\n"],[41,[30,0,["model","forbidden"]],[[[1,"      "],[1,[28,[35,1],["errors.reasons.forbidden"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,1],["errors.desc.unknown"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["doesNotHaveNotifications"]],[[[1,"  "],[8,[39,2],null,[["@name"],["user-notifications-empty-state"]],[["default"],[[[[1,"\\n    "],[8,[39,3],null,[["@title","@body"],[[28,[37,1],["user.no_notifications_page_title"],null],[30,0,["emptyStateBody"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[8,[39,2],null,[["@name"],["user-notifications-above-filter"]],null],[1,"\\n  "],[10,0],[14,0,"user-notifications-filter"],[12],[1,"\\n    "],[8,[39,4],null,[["@value","@onChange"],[[30,0,["filter"]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["filter"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["nothingFound"]],[[[1,"    "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,1],["notifications.empty"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[15,0,[30,0,["listContainerClassNames"]]],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["items"]]],null]],null],null,[[[1,"        "],[8,[39,9],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1,"      "],[8,[39,10],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n      "],[8,[39,2],null,[["@name","@outletArgs"],["user-notifications-list-bottom",[28,[37,11],null,[["controller"],[[30,0]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]]],[]]]],[]]]],["item"],false,["if","i18n","plugin-outlet","empty-state","notifications-filter","action","mut","each","-track-array","user-menu/menu-item","conditional-loading-spinner","hash"]]',moduleName:"discourse/templates/user/notifications-index.hbs",isStrictMode:!1})},7538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"dqgTxadF",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["user-notifications-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-navigation user-navigation-secondary"],[12],[1,"\\n  "],[8,[39,3],null,[["@ariaLabel"],["User secondary - notifications"]],[["default"],[[[[1,"\\n    "],[8,[39,4],[[24,0,"user-nav__notifications-all"]],[["@route","@ariaCurrentContext"],["userNotifications.index","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["bell"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,6],["user.filters.all"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,4],[[24,0,"user-nav__notifications-responses"]],[["@route","@ariaCurrentContext"],["userNotifications.responses","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["reply"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,6],["user_action_groups.6"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,4],[[24,0,"user-nav__notifications-likes"]],[["@route","@ariaCurrentContext"],["userNotifications.likesReceived","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["heart"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,6],["user_action_groups.2"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1,"      "],[8,[39,4],[[24,0,"user-nav__notifications-mentions"]],[["@route","@ariaCurrentContext"],["userNotifications.mentions","subNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,5],["at"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,6],["user_action_groups.7"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,4],[[24,0,"user-nav__notifications-edits"]],[["@route","@ariaCurrentContext"],["userNotifications.edits","subNav"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,5],["pencil-alt"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,6],["user_action_groups.11"],null]],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["user-notifications-bottom","li",[28,[37,8],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n\\n  "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["model"]],[[[1,"    "],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n      "],[8,[39,9],[[24,0,"btn-default dismiss-notifications"]],[["@title","@action","@label","@icon","@disabled"],["user.dismiss_notifications_tooltip",[28,[37,10],[[30,0],"resetNew"],null],"user.dismiss_notifications","check",[30,0,["allNotificationsRead"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[8,[39,11],[[24,0,"notification-history user-stream"]],[["@selector","@action"],[".user-stream .notification",[28,[37,10],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[46,[28,[37,13],null,null],null,null,null],[1,"\\n    "],[8,[39,14],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],[],false,["if","hide-application-footer","body-class","horizontal-overflow-nav","d-navigation-item","d-icon","i18n","plugin-outlet","hash","d-button","action","load-more","component","-outlet","conditional-loading-spinner"]]',moduleName:"discourse/templates/user/notifications.hbs",isStrictMode:!1})},2505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"uPuLwePd",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,2],null,[["@stream"],[[30,0,["model"]]]],null]],[],false,["if","hide-application-footer","user-stream"]]',moduleName:"discourse/templates/user/posts.hbs",isStrictMode:!1})},68986:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"CQw46vVM",block:'[[[10,2],[14,0,"user-profile-hidden"],[12],[1,[28,[35,0],["user.profile_hidden"],null]],[13]],[],false,["i18n"]]',moduleName:"discourse/templates/user/profile-hidden.hbs",isStrictMode:!1})},14097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"GtAewsXy",block:'[[[41,[28,[37,1],[[30,0,["loading"]],[30,0,["model","stream","canLoadMore"]]],null],[[[1,"  "],[1,[34,2]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","stream","noContent"]],[[[1,"  "],[8,[39,3],null,[["@title","@body"],[[30,0,["model","emptyState","title"]],[30,0,["model","emptyState","body"]]]],null],[1,"\\n"]],[]],null],[8,[39,4],null,[["@stream"],[[30,0,["model","stream"]]]],null]],[],false,["if","or","hide-application-footer","empty-state","user-stream"]]',moduleName:"discourse/templates/user/stream.hbs",isStrictMode:!1})},98077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"FP3cKJqs",block:'[[[1,[28,[35,0],["user-summary-page"],null]],[1,"\\n\\n"],[10,0],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n  "],[8,[39,1],null,[["@name","@outletArgs"],["above-user-summary-stats",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n"],[41,[30,0,["model","can_see_summary_stats"]],[[[1,"    "],[10,0],[14,0,"top-section stats-section"],[12],[1,"\\n      "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,4],["user.summary.stats"],null]],[13],[1,"\\n      "],[10,"ul"],[12],[1,"\\n        "],[10,"li"],[14,0,"stats-days-visited"],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","days_visited"]],"user.summary.days_visited"]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[14,0,"stats-time-read"],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@label","@rawTitle","@type"],[[30,0,["timeRead"]],"user.summary.time_read",[28,[37,4],["user.summary.time_read_title"],[["duration"],[[30,0,["timeReadMedium"]]]]],"string"]],null],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1,"          "],[10,"li"],[14,0,"stats-recent-read"],[12],[1,"\\n            "],[8,[39,5],null,[["@value","@label","@rawTitle","@type"],[[30,0,["recentTimeRead"]],"user.summary.recent_time_read",[28,[37,4],["user.summary.recent_time_read_title"],[["duration"],[[30,0,["recentTimeReadMedium"]]]]],"string"]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"        "],[10,"li"],[14,0,"stats-topics-entered"],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","topics_entered"]],"user.summary.topics_entered"]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[14,0,"stats-posts-read"],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","posts_read_count"]],"user.summary.posts_read"]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[14,0,"stats-likes-given linked-stat"],[12],[1,"\\n          "],[8,[39,6],null,[["@route"],["userActivity.likesGiven"]],[["default"],[[[[1,"\\n            "],[8,[39,5],null,[["@value","@icon","@label"],[[30,0,["model","likes_given"]],"heart","user.summary.likes_given"]],null],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[14,0,"stats-likes-received"],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@icon","@label"],[[30,0,["model","likes_received"]],"heart","user.summary.likes_received"]],null],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["model","bookmark_count"]],[[[1,"          "],[10,"li"],[14,0,"stats-bookmark-count linked-stat"],[12],[1,"\\n            "],[8,[39,6],null,[["@route"],["userActivity.bookmarks"]],[["default"],[[[[1,"\\n              "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","bookmark_count"]],"user.summary.bookmark_count"]],null],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"        "],[10,"li"],[14,0,"stats-topic-count linked-stat"],[12],[1,"\\n          "],[8,[39,6],null,[["@route"],["userActivity.topics"]],[["default"],[[[[1,"\\n            "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","topic_count"]],"user.summary.topic_count"]],null],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[14,0,"stats-post-count linked-stat"],[12],[1,"\\n          "],[8,[39,6],null,[["@route"],["userActivity.replies"]],[["default"],[[[[1,"\\n            "],[8,[39,5],null,[["@value","@label"],[[30,0,["model","post_count"]],"user.summary.post_count"]],null],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-summary-stat","li",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,1],null,[["@name","@outletArgs"],["below-user-summary-stats",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n\\n  "],[10,0],[14,0,"top-section replies-and-topics-section"],[12],[1,"\\n    "],[8,[39,7],[[24,0,"replies-section pull-left"]],[["@title"],["top_replies"]],[["default"],[[[[1,"\\n      "],[8,[39,8],null,[["@type","@items","@user"],["replies",[30,0,["model","replies"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n        "],[8,[39,9],null,[["@createdAt","@topic","@likes","@url"],[[30,1,["createdAt"]],[30,1,["topic"]],[30,1,["like_count"]],[30,1,["url"]]]],null],[1,"\\n      "]],[1]]]]],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,7],[[24,0,"topics-section pull-right"]],[["@title"],["top_topics"]],[["default"],[[[[1,"\\n      "],[8,[39,8],null,[["@type","@items","@user"],["topics",[30,0,["model","topics"]],[30,0,["user"]]]],[["default"],[[[[1,"\\n        "],[8,[39,9],null,[["@createdAt","@topic","@likes","@url"],[[30,2,["created_at"]],[30,2],[30,2,["like_count"]],[30,2,["url"]]]],null],[1,"\\n      "]],[2]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"top-section links-and-replied-to-section"],[12],[1,"\\n    "],[8,[39,7],[[24,0,"links-section pull-left"]],[["@title"],["top_links"]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","links","length"]],[[[1,"        "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["model","links"]]],null]],null],null,[[[1,"            "],[10,"li"],[12],[1,"\\n"],[1,"              "],[10,3],[14,0,"domain"],[15,6,[30,3,["url"]]],[15,"title",[30,3,["title"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["user","removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,"\\n                "],[1,[28,[35,13],[[30,3,["url"]]],null]],[1,"\\n              "],[13],[1,"\\n"],[1,"\\n              "],[10,1],[14,0,"badge badge-notification clicks"],[15,"title",[28,[37,4],["topic_map.clicks"],[["count"],[[30,3,["clicks"]]]]]],[12],[1,"\\n                "],[1,[28,[35,14],[[30,3,["clicks"]]],null]],[1,"\\n              "],[13],[1,"\\n\\n              "],[10,"br"],[12],[13],[1,"\\n\\n              "],[10,3],[15,6,[30,3,["post_url"]]],[12],[1,"\\n                "],[1,[28,[35,15],[[30,3,["topic","fancyTitle"]]],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[3]],null],[1,"        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,2],[12],[1,[28,[35,4],["user.summary.no_links"],null]],[13],[1,"\\n"]],[]]],[1,"    "]],[]]]]],[1,"\\n\\n    "],[8,[39,7],[[24,0,"summary-user-list replied-section pull-right"]],[["@title"],["most_replied_to_users"]],[["default"],[[[[1,"\\n      "],[8,[39,16],null,[["@none","@users"],["no_replies",[30,0,["model","most_replied_to_users"]]]],[["default"],[[[[1,"\\n        "],[8,[39,17],null,[["@user","@icon","@countClass"],[[30,4],"reply","replies"]],null],[1,"\\n      "]],[4]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"top-section most-liked-section"],[12],[1,"\\n    "],[8,[39,7],[[24,0,"summary-user-list liked-by-section pull-left"]],[["@title"],["most_liked_by"]],[["default"],[[[[1,"\\n      "],[8,[39,16],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_by_users"]]]],[["default"],[[[[1,"\\n        "],[8,[39,17],null,[["@user","@icon","@countClass"],[[30,5],"heart","likes"]],null],[1,"\\n      "]],[5]]]]],[1,"\\n    "]],[]]]]],[1,"\\n\\n    "],[8,[39,7],[[24,0,"summary-user-list liked-section pull-right"]],[["@title"],["most_liked_users"]],[["default"],[[[[1,"\\n      "],[8,[39,16],null,[["@none","@users"],["no_likes",[30,0,["model","most_liked_users"]]]],[["default"],[[[[1,"\\n        "],[8,[39,17],null,[["@user","@icon","@countClass"],[[30,6],"heart","likes"]],null],[1,"\\n      "]],[6]]]]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["model","top_categories","length"]],[[[1,"    "],[10,0],[14,0,"top-section top-categories-section"],[12],[1,"\\n      "],[8,[39,7],[[24,0,"summary-category-list pull-left"]],[["@title"],["top_categories"]],[["default"],[[[[1,"\\n        "],[10,"table"],[12],[1,"\\n          "],[10,"thead"],[12],[1,"\\n            "],[10,"th"],[14,0,"category-link"],[12],[13],[1,"\\n            "],[10,"th"],[14,0,"topic-count"],[12],[1,[28,[35,4],["user.summary.topics"],null]],[13],[1,"\\n            "],[10,"th"],[14,0,"reply-count"],[12],[1,[28,[35,4],["user.summary.replies"],null]],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["model","top_categories"]]],null]],null],null,[[[1,"              "],[10,"tr"],[12],[1,"\\n                "],[8,[39,1],null,[["@name","@outletArgs"],["user-summary-top-category-row",[28,[37,2],null,[["category","user"],[[30,7],[30,0,["user"]]]]]]],[["default"],[[[[1,"\\n                  "],[10,"td"],[14,0,"category-link"],[12],[1,"\\n                    "],[1,[28,[35,18],[[30,7]],[["allowUncategorized","hideParent"],["true",false]]]],[1,"\\n                  "],[13],[1,"\\n                  "],[10,"td"],[14,0,"topic-count"],[12],[1,"\\n                    "],[8,[39,19],null,[["@user","@category","@count"],[[30,0,["user"]],[30,7],[30,7,["topic_count"]]]],null],[1,"\\n                  "],[13],[1,"\\n                  "],[10,"td"],[14,0,"reply-count"],[12],[1,"\\n                    "],[8,[39,19],null,[["@user","@category","@count"],[[30,0,["user"]],[30,7],[30,7,["post_count"]]]],null],[1,"\\n                  "],[13],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[7]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1,"    "],[10,0],[14,0,"top-section badges-section"],[12],[1,"\\n      "],[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,4],["user.summary.top_badges"],null]],[13],[1,"\\n\\n"],[41,[30,0,["model","badges"]],[[[1,"        "],[10,0],[14,0,"badge-group-list"],[12],[1,"\\n"],[42,[28,[37,11],[[28,[37,11],[[30,0,["model","badges"]]],null]],null],null,[[[1,"            "],[8,[39,20],null,[["@badge","@count","@username"],[[30,8],[30,8,["count"]],[30,0,["user","username_lower"]]]],null],[1,"\\n"]],[8]],null],[1,"          "],[8,[39,1],null,[["@name","@outletArgs"],["after-user-summary-badges",[28,[37,2],null,[["model","user"],[[30,0,["model"]],[30,0,["user"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,2],[12],[1,[28,[35,4],["user.summary.no_badges"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["moreBadges"]],[[[1,"        "],[8,[39,6],[[24,0,"more"]],[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,4],["user.summary.more_badges"],null]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[13]],["reply","topic","link","user","user","user","category","badge"],false,["body-class","plugin-outlet","hash","if","i18n","user-stat","link-to","user-summary-section","user-summary-topics-list","user-summary-topic","each","-track-array","unless","shorten-url","number","html-safe","user-summary-users-list","user-summary-user","category-link","user-summary-category-search","badge-card"]]',moduleName:"discourse/templates/user/summary.hbs",isStrictMode:!1})},30811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"G6ehM6Nn",block:'[[[41,[30,0,["model","canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,2],["users-page"],null]],[1,"\\n"],[10,"section"],[12],[1,"\\n  "],[8,[39,3],null,[["@selector","@action"],[".directory-table .directory-table__cell",[28,[37,4],[[30,0],"loadMore"],null]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"container"],[12],[1,"\\n      "],[10,0],[14,0,"users-directory directory"],[12],[1,"\\n        "],[10,1],[12],[1,"\\n          "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["users-top","div",[28,[37,6],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"directory-controls"],[12],[1,"\\n          "],[10,0],[14,0,"period-controls"],[12],[1,"\\n            "],[8,[39,7],null,[["@period","@onChange","@fullDay"],[[30,0,["period"]],[28,[37,4],[[30,0],[28,[37,8],[[30,0,["period"]]],null]],null],false]],null],[1,"\\n"],[41,[30,0,["lastUpdatedAt"]],[[[1,"              "],[10,0],[14,0,"directory-last-updated"],[12],[1,"\\n                "],[1,[28,[35,9],["directory.last_updated"],null]],[1,"\\n                "],[1,[30,0,["lastUpdatedAt"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n          "],[10,0],[14,0,"inline-form"],[12],[1,"\\n            "],[10,"label"],[14,0,"total-rows"],[12],[1,"\\n"],[41,[30,0,["model","totalRows"]],[[[1,"                "],[1,[28,[35,9],["directory.total_rows"],[["count"],[[30,0,["model","totalRows"]]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[8,[39,10],[[16,"placeholder",[28,[37,9],["directory.filter_name"],null]],[24,0,"filter-name no-blur"],[4,[38,12],["input",[28,[37,4],[[30,0],"onUsernameFilterChanged"],[["value"],["target.value"]]]],null]],[["@value"],[[28,[37,11],[[30,0,["nameInput"]]],null]]],null],[1,"\\n"],[41,[30,0,["showGroupFilter"]],[[[1,"              "],[8,[39,13],[[24,0,"directory-group-selector"]],[["@value","@content","@onChange","@options"],[[30,0,["group"]],[30,0,["groupOptions"]],[28,[37,4],[[30,0],[30,0,["groupChanged"]]],null],[28,[37,6],null,[["none"],["directory.group.all"]]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["currentUser","staff"]],[[[1,"              "],[8,[39,14],[[24,0,"btn-default open-edit-columns-btn"]],[["@icon","@action"],["wrench",[30,0,["showEditColumnsModal"]]]],null],[1,"\\n"]],[]],null],[1,"            "],[8,[39,5],null,[["@name","@outletArgs"],["users-directory-controls",[28,[37,6],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[8,[39,15],null,[["@condition"],[[30,0,["isLoading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["model","length"]],[[[1,"            "],[8,[39,16],null,[["@items","@columns","@showTimeRead","@order","@asc"],[[30,0,["model"]],[30,0,["columns"]],[30,0,["showTimeRead"]],[30,0,["order"]],[30,0,["asc"]]]],null],[1,"\\n            "],[8,[39,15],null,[["@condition"],[[30,0,["model","loadingMore"]]]],null],[1,"\\n"]],[]],[[[1,"            "],[10,0],[14,0,"clearfix"],[12],[13],[1,"\\n            "],[10,2],[12],[1,[28,[35,9],["directory.no_results"],null]],[13],[1,"\\n"]],[]]],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],[],false,["if","hide-application-footer","body-class","load-more","action","plugin-outlet","hash","period-chooser","mut","i18n","input","readonly","on","combo-box","d-button","conditional-loading-spinner","directory-table"]]',moduleName:"discourse/templates/users.hbs",isStrictMode:!1})},73350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(8620).createTemplateFactory)({id:"Ek6EZk37",block:"[[],[],false,[]]",moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.a35f770f/node_modules/@ember/legacy-built-in-components/templates/empty.hbs",isStrictMode:!1})},67712:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({basePath:()=>"/admin/customize/"})},99338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({appendQueryParams(e,t){return this._super(e,t,".json")}})},15013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(19858);const i=class extends r.default{pathFor(e,t,n){return this.appendQueryParams("/tags/list",n)}}},75617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({cache:!0})},2116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({jsonMode:!0,pathFor:(e,t,n)=>`/posts/${n.username}/pending.json`})},58080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(19858),i=n(3055);const s=r.default.extend({find(e,t,n){const r=this.siteSettings.max_reply_history;return(0,i.ajax)(`/posts/${n.postId}/reply-history?max_replies=${r}`).then((e=>({post_reply_histories:e})))}})},48474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(19858),i=n(3055);const s=r.default.extend({find:(e,t,n)=>(0,i.ajax)(`/posts/${n.postId}/replies`).then((e=>({post_replies:e})))})},20754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(16572),i=n(19858),s=n(3055);const o=i.default.extend({find(e,t,n){return this._super(e,t,n).then((function(e){return{post:e}}))},createRecord(e,t,n){const o=(0,r.underscore)(t);return n.nested_post=!0,(0,s.ajax)(this.pathFor(e,t),{type:"POST",data:n}).then((function(e){return new i.Result(e[o],e)}))}})},1482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({jsonMode:!0,pathFor:(e,t,n)=>`/pub/by-topic/${n}`})},19858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Result:()=>c,default:()=>d});var r=n(48163),i=n.n(r),s=n(16572),o=n(3055),a=n(508);const l=["plugin","theme","embeddable-host","web-hook","web-hook-event","flagged-topic"];function c(e,t){this.payload=e,this.responseJson=t,this.target=null}function u(e){if(404===e.status)throw new Error("404: "+e.responseText);throw e}const d=i().extend({primaryKey:"id",storageKey:(e,t,n)=>n&&n.cacheKey?n.cacheKey:`${e}_${Math.abs((0,a.hashString)(JSON.stringify(t)))}`,basePath:(e,t)=>l.includes(t.replace("_","-"))?"/admin/":"/",appendQueryParams(e,t,n){if(t){if("object"!=typeof t)return`${e}/${encodeURIComponent(t)}${n||""}`;{const r=new URLSearchParams;for(const[e,n]of Object.entries(t))n&&r.set(e,n);const i=r.toString();if(i)return`${e}${n||""}?${i}`}}return e},pathFor(e,t,n){let r=this.basePath(e,t,n)+(0,s.underscore)(e.pluralize(this.apiNameFor(t)));return this.appendQueryParams(r,n)},apiNameFor:e=>e,findAll(e,t,n){return(0,o.ajax)(this.pathFor(e,t,n)).catch(u)},find(e,t,n){return(0,o.ajax)(this.pathFor(e,t,n)).catch(u)},findStale(e,t,n,r){if(this.cached)return this.cached[this.storageKey(t,n,r)]},cacheFind(e,t,n,r,i){this.cached=this.cached||{},this.cached[this.storageKey(t,n,r)]=i},jsonMode:!1,getPayload(e,t){let n={method:e,data:t};return this.jsonMode&&(n.contentType="application/json",n.data=JSON.stringify(t)),n},update(e,t,n,r){const i={},a=(0,s.underscore)(this.apiNameFor(t));return i[a]=r,(0,o.ajax)(this.pathFor(e,t,n),this.getPayload("PUT",i)).then((function(e){return new c(e[a],e)}))},createRecord(e,t,n){const r={},i=(0,s.underscore)(this.apiNameFor(t));return r[i]=n,(0,o.ajax)(this.pathFor(e,t),this.getPayload("POST",r)).then((function(e){return new c(e[i],e)}))},destroyRecord(e,t,n){return(0,o.ajax)(this.pathFor(e,t,n.get(this.primaryKey)),{type:"DELETE"})}})},43029:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({jsonMode:!0,pathFor:(e,t,n)=>`/review/${n}/explain.json`})},33389:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({pathFor:()=>"/review/settings"})},69845:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({pathFor:()=>"/review/topics"})},59676:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({jsonMode:!0,pathFor(e,t,n){return this.appendQueryParams("/review",n)}})},50695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({pathFor:(e,t,n)=>"/tag/"+n+"/info"})},94217:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({pathFor:(e,t,n)=>"/tag/"+n+"/notifications"})},24372:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(19858).default.extend({pathFor:(e,t,n)=>n?`/tag/${n}`:"/tags"})},21756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(19858),i=n(3055),s=n(13369);const o=r.default.extend({find(e,t,n){let{filter:r,params:o}=n;return s.default.getAndRemove("topic_list",(()=>{let e=`/${r}.json`;if(o){const t=new URLSearchParams;for(const[e,n]of Object.entries(o))if(void 0!==n)if(Array.isArray(n))for(const r of n)t.append(`${e}[]`,r);else t.set(e,n);const n=t.toString();n&&(e+=`?${n}`)}return(0,i.ajax)(e)})).then((e=>(e.filter=r,e.params=o,e)))}})},36:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(19858),i=n(3055);const s=r.default.extend({find(e,t,n){return n.similar?(0,i.ajax)("/topics/similar_to",{data:n.similar}):this._super(e,t,n)}})},11465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,getAndClearUnhandledThemeErrors:()=>_}),n(20608),n(9632);var r=n(72326),i=n.n(r),s=n(99134),o=n.n(s),a=n(95106),l=n(46646),c=n(58256),u=n(34405),d=n(71384),p=n(45257);const h=[];let m=[];const g=i().extend({modulePrefix:"discourse",rootElement:"#main",customEvents:{paste:"paste"},Resolver:(0,d.buildResolver)("discourse"),start(){!function(){if(v)return;let e="ℹ️ ";const t=document.querySelector("meta[name=generator]")?.content,n=t?.split(" ");if(n){const t=n[1],r=n[5]?.substr(0,10);e+=`Discourse v${t} — https://github.com/discourse/discourse/commits/${r} — `}e+=`Ember v${p.VERSION}`,console.log(e),v=!0}(),document.querySelectorAll("noscript").forEach((e=>e.remove())),(0,a.normalizeEmberEventHandling)(this),(0,l.registerDiscourseImplicitInjections)(),Error.stackTraceLimit&&(Error.stackTraceLimit=1/0),window.history.scrollRestoration="manual",function(e){let t=[],n=[],r=[],i=[];for(let e of Object.keys(requirejs.entries))if(e.startsWith("discourse/")&&!e.endsWith("-test"))if(e.startsWith("discourse/initializers/"))t.push(e);else if(e.startsWith("discourse/instance-initializers/"))n.push(e);else{const t=f(e);(void 0!==t||e.startsWith("discourse/plugins/"))&&(e.includes("/pre-initializers/")?r.push([e,t]):(e.includes("/initializers/")||e.includes("/api-initializers/"))&&i.push([e,t]))}for(let n of t)e.initializer(y(n));for(let t of n)e.instanceInitializer(y(t));for(let[t,n]of r)e.initializer(w(t,n));for(let[t,n]of i)e.instanceInitializer(w(t,n));for(let[t,n]of h.entries())e.instanceInitializer({name:`_discourse_plugin_${t}`,after:"inject-objects",initialize:()=>(0,c.withPluginApi)(n.version,n.code)})}(this)},_registerPluginCode(e,t){h.push({version:e,code:t})},ready(){performance.mark("discourse-ready");const e=new CustomEvent("discourse-ready");document.dispatchEvent(e)}});function f(e){const t=e.match(/^discourse\/theme\-(\d+)\//);if(t)return parseInt(t[1],10)}function b(e){let{themeId:t,error:n}=e;const r=new CustomEvent("discourse-error",{cancelable:!0,detail:{themeId:t,error:n}});document.dispatchEvent(r)&&m.push(r)}function _(){const e=m;return m=[],e}function y(e){const t=o()(e,null,null,!0);if(!t)throw new Error(e+" must export an initializer.");const n=t.default;if(!n)throw new Error(e+" must have a default export");return n.name||(n.name=e.slice(e.lastIndexOf("/")+1)),n}function w(e,t){let n;try{n=y(e)}catch(e){if(!t||(0,u.isTesting)())throw e;return void b({themeId:t,error:e})}const r=n.initialize;return n.initialize=e=>{try{return r.call(n,e.__container__,e)}catch(e){if(!t||(0,u.isTesting)())throw e;b({themeId:t,error:e})}},n}let v=!1;const k=g},47021:(e,t,n)=>{"use strict";var r=n(91649);let i=window,s=i.define;(0,r.Z)(n(32830)),s("discourse/adapters/email-template",(function(){return(0,r.Z)(n(67712))})),s("discourse/adapters/group",(function(){return(0,r.Z)(n(99338))})),s("discourse/adapters/list-tag",(function(){return(0,r.Z)(n(15013))})),s("discourse/adapters/notification",(function(){return(0,r.Z)(n(75617))})),s("discourse/adapters/pending-post",(function(){return(0,r.Z)(n(2116))})),s("discourse/adapters/post-reply-history",(function(){return(0,r.Z)(n(58080))})),s("discourse/adapters/post-reply",(function(){return(0,r.Z)(n(48474))})),s("discourse/adapters/post",(function(){return(0,r.Z)(n(20754))})),s("discourse/adapters/published-page",(function(){return(0,r.Z)(n(1482))})),s("discourse/adapters/rest",(function(){return(0,r.Z)(n(19858))})),s("discourse/adapters/reviewable-explanation",(function(){return(0,r.Z)(n(43029))})),s("discourse/adapters/reviewable-settings",(function(){return(0,r.Z)(n(33389))})),s("discourse/adapters/reviewable-topic",(function(){return(0,r.Z)(n(69845))})),s("discourse/adapters/reviewable",(function(){return(0,r.Z)(n(59676))})),s("discourse/adapters/tag-info",(function(){return(0,r.Z)(n(50695))})),s("discourse/adapters/tag-notification",(function(){return(0,r.Z)(n(94217))})),s("discourse/adapters/tag",(function(){return(0,r.Z)(n(24372))})),s("discourse/adapters/topic-list",(function(){return(0,r.Z)(n(21756))})),s("discourse/adapters/topic",(function(){return(0,r.Z)(n(36))})),s("discourse/app",(function(){return(0,r.Z)(n(11465))})),s("discourse/config/environment",(function(){return(0,r.Z)(n(49860))})),s("discourse/global-compat",(function(){return(0,r.Z)(n(9632))})),s("discourse/initializers/deprecation-error-mode",(function(){return(0,r.Z)(n(66328))})),s("discourse/initializers/deprecation-identify-source",(function(){return(0,r.Z)(n(82292))})),s("discourse/initializers/discourse-bootstrap",(function(){return(0,r.Z)(n(51997))})),s("discourse/initializers/dynamic-route-builders",(function(){return(0,r.Z)(n(51427))})),s("discourse/initializers/inject-discourse-objects",(function(){return(0,r.Z)(n(64867))})),s("discourse/initializers/map-routes",(function(){return(0,r.Z)(n(95198))})),s("discourse/instance-initializers/animated-images-pause-on-click",(function(){return(0,r.Z)(n(31899))})),s("discourse/instance-initializers/auth-complete",(function(){return(0,r.Z)(n(98576))})),s("discourse/instance-initializers/auto-load-modules",(function(){return(0,r.Z)(n(73843))})),s("discourse/instance-initializers/badging",(function(){return(0,r.Z)(n(28763))})),s("discourse/instance-initializers/banner",(function(){return(0,r.Z)(n(64108))})),s("discourse/instance-initializers/boot-services",(function(){return(0,r.Z)(n(71957))})),s("discourse/instance-initializers/category-badge-css-generator",(function(){return(0,r.Z)(n(55061))})),s("discourse/instance-initializers/category-color-css-generator",(function(){return(0,r.Z)(n(29356))})),s("discourse/instance-initializers/clean-dom-on-route-change",(function(){return(0,r.Z)(n(99776))})),s("discourse/instance-initializers/click-interceptor",(function(){return(0,r.Z)(n(14256))})),s("discourse/instance-initializers/codeblock-buttons",(function(){return(0,r.Z)(n(74534))})),s("discourse/instance-initializers/component-templates",(function(){return(0,r.Z)(n(75128))})),s("discourse/instance-initializers/csrf-token",(function(){return(0,r.Z)(n(64243))})),s("discourse/instance-initializers/discovery-controller-shims",(function(){return(0,r.Z)(n(48939))})),s("discourse/instance-initializers/document-scrollbar-width",(function(){return(0,r.Z)(n(47812))})),s("discourse/instance-initializers/eager-load-raw-templates",(function(){return(0,r.Z)(n(38572))})),s("discourse/instance-initializers/enable-emoji",(function(){return(0,r.Z)(n(64905))})),s("discourse/instance-initializers/handle-cookies",(function(){return(0,r.Z)(n(48346))})),s("discourse/instance-initializers/hashtag-css-generator",(function(){return(0,r.Z)(n(21047))})),s("discourse/instance-initializers/hashtag-post-decorations",(function(){return(0,r.Z)(n(56053))})),s("discourse/instance-initializers/image-aspect-ratio",(function(){return(0,r.Z)(n(51436))})),s("discourse/instance-initializers/init-route-scroll-manager",(function(){return(0,r.Z)(n(87552))})),s("discourse/instance-initializers/inject-objects",(function(){return(0,r.Z)(n(93283))})),s("discourse/instance-initializers/jquery-plugins",(function(){return(0,r.Z)(n(3032))})),s("discourse/instance-initializers/keyboard-shortcuts",(function(){return(0,r.Z)(n(88253))})),s("discourse/instance-initializers/live-development",(function(){return(0,r.Z)(n(69322))})),s("discourse/instance-initializers/localization",(function(){return(0,r.Z)(n(71691))})),s("discourse/instance-initializers/logout",(function(){return(0,r.Z)(n(6132))})),s("discourse/instance-initializers/logs-notice",(function(){return(0,r.Z)(n(99927))})),s("discourse/instance-initializers/message-bus",(function(){return(0,r.Z)(n(51905))})),s("discourse/instance-initializers/meta-tag-updater",(function(){return(0,r.Z)(n(54849))})),s("discourse/instance-initializers/mobile-keyboard",(function(){return(0,r.Z)(n(48737))})),s("discourse/instance-initializers/mobile",(function(){return(0,r.Z)(n(6243))})),s("discourse/instance-initializers/moment",(function(){return(0,r.Z)(n(57757))})),s("discourse/instance-initializers/narrow-desktop",(function(){return(0,r.Z)(n(86625))})),s("discourse/instance-initializers/onebox-decorators",(function(){return(0,r.Z)(n(22302))})),s("discourse/instance-initializers/page-tracking",(function(){return(0,r.Z)(n(63978))})),s("discourse/instance-initializers/populate-template-map",(function(){return(0,r.Z)(n(78597))})),s("discourse/instance-initializers/post-decorations",(function(){return(0,r.Z)(n(33718))})),s("discourse/instance-initializers/read-only",(function(){return(0,r.Z)(n(64592))})),s("discourse/instance-initializers/register-hashtag-types",(function(){return(0,r.Z)(n(86925))})),s("discourse/instance-initializers/register-media-optimization-upload-processor",(function(){return(0,r.Z)(n(10397))})),s("discourse/instance-initializers/register-service-worker",(function(){return(0,r.Z)(n(9952))})),s("discourse/instance-initializers/relative-ages",(function(){return(0,r.Z)(n(83820))})),s("discourse/instance-initializers/sharing-sources",(function(){return(0,r.Z)(n(42469))})),s("discourse/instance-initializers/signup-cta",(function(){return(0,r.Z)(n(35589))})),s("discourse/instance-initializers/sniff-capabilities",(function(){return(0,r.Z)(n(51198))})),s("discourse/instance-initializers/strip-mobile-app-url-params",(function(){return(0,r.Z)(n(68333))})),s("discourse/instance-initializers/subscribe-user-notifications",(function(){return(0,r.Z)(n(35534))})),s("discourse/instance-initializers/svg-sprite-fontawesome",(function(){return(0,r.Z)(n(75573))})),s("discourse/instance-initializers/topic-footer-buttons",(function(){return(0,r.Z)(n(18748))})),s("discourse/instance-initializers/url-redirects",(function(){return(0,r.Z)(n(84739))})),s("discourse/instance-initializers/user-tips",(function(){return(0,r.Z)(n(64738))})),s("discourse/instance-initializers/video-placeholder",(function(){return(0,r.Z)(n(18957))})),s("discourse/instance-initializers/webview-background",(function(){return(0,r.Z)(n(10405))})),s("discourse/lib/ajax-error",(function(){return(0,r.Z)(n(38864))})),s("discourse/lib/ajax",(function(){return(0,r.Z)(n(3055))})),s("discourse/lib/api",(function(){return(0,r.Z)(n(83297))})),s("discourse/lib/autocomplete",(function(){return(0,r.Z)(n(13680))})),s("discourse/lib/autosize",(function(){return(0,r.Z)(n(64383))})),s("discourse/lib/avatar-flair",(function(){return(0,r.Z)(n(14382))})),s("discourse/lib/bookmark",(function(){return(0,r.Z)(n(64390))})),s("discourse/lib/bulk-select-helper",(function(){return(0,r.Z)(n(83924))})),s("discourse/lib/cached-topic-list",(function(){return(0,r.Z)(n(72247))})),s("discourse/lib/caret-position",(function(){return(0,r.Z)(n(10465))})),s("discourse/lib/category-hashtags",(function(){return(0,r.Z)(n(62388))})),s("discourse/lib/category-tag-search",(function(){return(0,r.Z)(n(71631))})),s("discourse/lib/click-track",(function(){return(0,r.Z)(n(78480))})),s("discourse/lib/codeblock-buttons",(function(){return(0,r.Z)(n(33933))})),s("discourse/lib/color-scheme-picker",(function(){return(0,r.Z)(n(28507))})),s("discourse/lib/columns",(function(){return(0,r.Z)(n(271))})),s("discourse/lib/composer/custom-popup-menu-options",(function(){return(0,r.Z)(n(88743))})),s("discourse/lib/computed",(function(){return(0,r.Z)(n(63319))})),s("discourse/lib/constants",(function(){return(0,r.Z)(n(24307))})),s("discourse/lib/cookie",(function(){return(0,r.Z)(n(59469))})),s("discourse/lib/copy-text",(function(){return(0,r.Z)(n(90274))})),s("discourse/lib/d-popover",(function(){return(0,r.Z)(n(95633))})),s("discourse/lib/debounce",(function(){return(0,r.Z)(n(42420))})),s("discourse/lib/decimal-adjust",(function(){return(0,r.Z)(n(78291))})),s("discourse/lib/desktop-notifications",(function(){return(0,r.Z)(n(44750))})),s("discourse/lib/dirty-keys",(function(){return(0,r.Z)(n(99046))})),s("discourse/lib/do-not-disturb",(function(){return(0,r.Z)(n(71605))})),s("discourse/lib/download-calendar",(function(){return(0,r.Z)(n(55021))})),s("discourse/lib/email-provider-default-settings",(function(){return(0,r.Z)(n(85894))})),s("discourse/lib/ember-action-modifier",(function(){return(0,r.Z)(n(78007))})),s("discourse/lib/ember-events",(function(){return(0,r.Z)(n(95106))})),s("discourse/lib/ember-version",(function(){return(0,r.Z)(n(52313))})),s("discourse/lib/export-csv",(function(){return(0,r.Z)(n(34811))})),s("discourse/lib/export-result",(function(){return(0,r.Z)(n(84098))})),s("discourse/lib/eyeline",(function(){return(0,r.Z)(n(51930))})),s("discourse/lib/filter-mode",(function(){return(0,r.Z)(n(79593))})),s("discourse/lib/flag-targets/flag",(function(){return(0,r.Z)(n(55737))})),s("discourse/lib/flag-targets/post-flag",(function(){return(0,r.Z)(n(44359))})),s("discourse/lib/flag-targets/topic-flag",(function(){return(0,r.Z)(n(19899))})),s("discourse/lib/form-template-validation",(function(){return(0,r.Z)(n(82829))})),s("discourse/lib/formatter",(function(){return(0,r.Z)(n(70352))})),s("discourse/lib/grant-badge-utils",(function(){return(0,r.Z)(n(29775))})),s("discourse/lib/hash",(function(){return(0,r.Z)(n(508))})),s("discourse/lib/hashtag-autocomplete",(function(){return(0,r.Z)(n(41087))})),s("discourse/lib/hashtag-decorator",(function(){return(0,r.Z)(n(44743))})),s("discourse/lib/hashtag-type-registry",(function(){return(0,r.Z)(n(90737))})),s("discourse/lib/hashtag-types/base",(function(){return(0,r.Z)(n(93093))})),s("discourse/lib/hashtag-types/category",(function(){return(0,r.Z)(n(24567))})),s("discourse/lib/hashtag-types/tag",(function(){return(0,r.Z)(n(53817))})),s("discourse/lib/highlight-html",(function(){return(0,r.Z)(n(98066))})),s("discourse/lib/highlight-search",(function(){return(0,r.Z)(n(16289))})),s("discourse/lib/highlight-syntax-merge-html-plugin",(function(){return(0,r.Z)(n(10050))})),s("discourse/lib/highlight-syntax",(function(){return(0,r.Z)(n(14347))})),s("discourse/lib/homepage-router-overrides",(function(){return(0,r.Z)(n(53574))})),s("discourse/lib/implicit-injections",(function(){return(0,r.Z)(n(46646))})),s("discourse/lib/intercept-click",(function(){return(0,r.Z)(n(77559))})),s("discourse/lib/is-element-in-viewport",(function(){return(0,r.Z)(n(6549))})),s("discourse/lib/key-value-store",(function(){return(0,r.Z)(n(59295))})),s("discourse/lib/keyboard-shortcuts",(function(){return(0,r.Z)(n(6677))})),s("discourse/lib/lazy-load-images",(function(){return(0,r.Z)(n(31405))})),s("discourse/lib/lightbox",(function(){return(0,r.Z)(n(99121))})),s("discourse/lib/lightbox/constants",(function(){return(0,r.Z)(n(66196))})),s("discourse/lib/lightbox/helpers",(function(){return(0,r.Z)(n(14331))})),s("discourse/lib/lightbox/helpers/create-download-link",(function(){return(0,r.Z)(n(3635))})),s("discourse/lib/lightbox/helpers/find-nearest-shared-parent",(function(){return(0,r.Z)(n(52928))})),s("discourse/lib/lightbox/helpers/get-swipe-direction",(function(){return(0,r.Z)(n(10344))})),s("discourse/lib/lightbox/helpers/open-image-in-new-tab",(function(){return(0,r.Z)(n(19479))})),s("discourse/lib/lightbox/helpers/preload-item-images",(function(){return(0,r.Z)(n(75133))})),s("discourse/lib/lightbox/helpers/scroll-parent-to-element-center",(function(){return(0,r.Z)(n(56217))})),s("discourse/lib/lightbox/helpers/set-carousel-scroll-position",(function(){return(0,r.Z)(n(46629))})),s("discourse/lib/lightbox/helpers/site-theme-color",(function(){return(0,r.Z)(n(91739))})),s("discourse/lib/lightbox/process-html",(function(){return(0,r.Z)(n(91615))})),s("discourse/lib/link-lookup",(function(){return(0,r.Z)(n(30787))})),s("discourse/lib/link-mentions",(function(){return(0,r.Z)(n(4152))})),s("discourse/lib/load-oneboxes",(function(){return(0,r.Z)(n(14201))})),s("discourse/lib/load-script",(function(){return(0,r.Z)(n(18104))})),s("discourse/lib/local-dates",(function(){return(0,r.Z)(n(43386))})),s("discourse/lib/lock-on",(function(){return(0,r.Z)(n(73162))})),s("discourse/lib/logout",(function(){return(0,r.Z)(n(28560))})),s("discourse/lib/media-optimization-utils",(function(){return(0,r.Z)(n(38616))})),s("discourse/lib/mobile",(function(){return(0,r.Z)(n(93594))})),s("discourse/lib/model-transformers",(function(){return(0,r.Z)(n(82331))})),s("discourse/lib/narrow-desktop",(function(){return(0,r.Z)(n(71261))})),s("discourse/lib/notification-levels",(function(){return(0,r.Z)(n(35814))})),s("discourse/lib/notification-types-manager",(function(){return(0,r.Z)(n(98350))})),s("discourse/lib/notification-types/admin-problems",(function(){return(0,r.Z)(n(36870))})),s("discourse/lib/notification-types/base",(function(){return(0,r.Z)(n(47008))})),s("discourse/lib/notification-types/bookmark-reminder",(function(){return(0,r.Z)(n(5051))})),s("discourse/lib/notification-types/custom",(function(){return(0,r.Z)(n(11018))})),s("discourse/lib/notification-types/edited",(function(){return(0,r.Z)(n(8604))})),s("discourse/lib/notification-types/granted-badge",(function(){return(0,r.Z)(n(65404))})),s("discourse/lib/notification-types/group-mentioned",(function(){return(0,r.Z)(n(58868))})),s("discourse/lib/notification-types/group-message-summary",(function(){return(0,r.Z)(n(94894))})),s("discourse/lib/notification-types/invitee-accepted",(function(){return(0,r.Z)(n(66534))})),s("discourse/lib/notification-types/liked-consolidated",(function(){return(0,r.Z)(n(98158))})),s("discourse/lib/notification-types/liked",(function(){return(0,r.Z)(n(81899))})),s("discourse/lib/notification-types/membership-request-accepted",(function(){return(0,r.Z)(n(56847))})),s("discourse/lib/notification-types/membership-request-consolidated",(function(){return(0,r.Z)(n(7708))})),s("discourse/lib/notification-types/moved-post",(function(){return(0,r.Z)(n(30054))})),s("discourse/lib/notification-types/new-features",(function(){return(0,r.Z)(n(56627))})),s("discourse/lib/notification-types/watching-first-post",(function(){return(0,r.Z)(n(81153))})),s("discourse/lib/offset-calculator",(function(){return(0,r.Z)(n(31310))})),s("discourse/lib/optional-service",(function(){return(0,r.Z)(n(29318))})),s("discourse/lib/page-tracker",(function(){return(0,r.Z)(n(49216))})),s("discourse/lib/plugin-api",(function(){return(0,r.Z)(n(58256))})),s("discourse/lib/plugin-connectors",(function(){return(0,r.Z)(n(4173))})),s("discourse/lib/post-action-feedback",(function(){return(0,r.Z)(n(33338))})),s("discourse/lib/posts-with-placeholders",(function(){return(0,r.Z)(n(75157))})),s("discourse/lib/preload-store",(function(){return(0,r.Z)(n(13369))})),s("discourse/lib/public-js-versions",(function(){return(0,r.Z)(n(39789))})),s("discourse/lib/push-notifications",(function(){return(0,r.Z)(n(98952))})),s("discourse/lib/put-cursor-at-end",(function(){return(0,r.Z)(n(25351))})),s("discourse/lib/pwa-utils",(function(){return(0,r.Z)(n(60353))})),s("discourse/lib/quote-state",(function(){return(0,r.Z)(n(45273))})),s("discourse/lib/quote",(function(){return(0,r.Z)(n(18272))})),s("discourse/lib/raw-render-glimmer",(function(){return(0,r.Z)(n(20840))})),s("discourse/lib/register-service-worker",(function(){return(0,r.Z)(n(8265))})),s("discourse/lib/register-topic-footer-button",(function(){return(0,r.Z)(n(73638))})),s("discourse/lib/register-topic-footer-dropdown",(function(){return(0,r.Z)(n(35591))})),s("discourse/lib/render-tag",(function(){return(0,r.Z)(n(25821))})),s("discourse/lib/render-tags",(function(){return(0,r.Z)(n(12360))})),s("discourse/lib/render-topic-featured-link",(function(){return(0,r.Z)(n(3948))})),s("discourse/lib/reports-loader",(function(){return(0,r.Z)(n(60656))})),s("discourse/lib/reviewable-types-manager",(function(){return(0,r.Z)(n(40019))})),s("discourse/lib/reviewable-types/base",(function(){return(0,r.Z)(n(53331))})),s("discourse/lib/reviewable-types/flagged-post",(function(){return(0,r.Z)(n(89604))})),s("discourse/lib/reviewable-types/queued-post",(function(){return(0,r.Z)(n(83201))})),s("discourse/lib/reviewable-types/user",(function(){return(0,r.Z)(n(61673))})),s("discourse/lib/round",(function(){return(0,r.Z)(n(23318))})),s("discourse/lib/safari-hacks",(function(){return(0,r.Z)(n(15443))})),s("discourse/lib/scroll-lock",(function(){return(0,r.Z)(n(49886))})),s("discourse/lib/search",(function(){return(0,r.Z)(n(64519))})),s("discourse/lib/settings",(function(){return(0,r.Z)(n(9387))})),s("discourse/lib/sharing",(function(){return(0,r.Z)(n(25477))})),s("discourse/lib/show-modal",(function(){return(0,r.Z)(n(2223))})),s("discourse/lib/sidebar/admin-nav-map",(function(){return(0,r.Z)(n(76076))})),s("discourse/lib/sidebar/admin-sidebar",(function(){return(0,r.Z)(n(36693))})),s("discourse/lib/sidebar/base-community-section-link",(function(){return(0,r.Z)(n(67639))})),s("discourse/lib/sidebar/base-custom-sidebar-panel",(function(){return(0,r.Z)(n(33693))})),s("discourse/lib/sidebar/base-custom-sidebar-section-link",(function(){return(0,r.Z)(n(84826))})),s("discourse/lib/sidebar/base-custom-sidebar-section",(function(){return(0,r.Z)(n(33888))})),s("discourse/lib/sidebar/common/community-section/about-section-link",(function(){return(0,r.Z)(n(24438))})),s("discourse/lib/sidebar/common/community-section/badges-section-link",(function(){return(0,r.Z)(n(97327))})),s("discourse/lib/sidebar/common/community-section/everything-section-link",(function(){return(0,r.Z)(n(8229))})),s("discourse/lib/sidebar/common/community-section/faq-section-link",(function(){return(0,r.Z)(n(24682))})),s("discourse/lib/sidebar/common/community-section/groups-section-link",(function(){return(0,r.Z)(n(49839))})),s("discourse/lib/sidebar/common/community-section/section",(function(){return(0,r.Z)(n(12145))})),s("discourse/lib/sidebar/common/community-section/users-section-link",(function(){return(0,r.Z)(n(2049))})),s("discourse/lib/sidebar/custom-community-section-links",(function(){return(0,r.Z)(n(47786))})),s("discourse/lib/sidebar/custom-sections",(function(){return(0,r.Z)(n(62362))})),s("discourse/lib/sidebar/helpers",(function(){return(0,r.Z)(n(61766))})),s("discourse/lib/sidebar/panels",(function(){return(0,r.Z)(n(78715))})),s("discourse/lib/sidebar/route-info-helper",(function(){return(0,r.Z)(n(47985))})),s("discourse/lib/sidebar/section-link",(function(){return(0,r.Z)(n(99223))})),s("discourse/lib/sidebar/section",(function(){return(0,r.Z)(n(51614))})),s("discourse/lib/sidebar/user/categories-section/category-section-link",(function(){return(0,r.Z)(n(39718))})),s("discourse/lib/sidebar/user/community-section/admin-revamp-section-link",(function(){return(0,r.Z)(n(67099))})),s("discourse/lib/sidebar/user/community-section/admin-section-link",(function(){return(0,r.Z)(n(2129))})),s("discourse/lib/sidebar/user/community-section/admin-section",(function(){return(0,r.Z)(n(10078))})),s("discourse/lib/sidebar/user/community-section/my-posts-section-link",(function(){return(0,r.Z)(n(95735))})),s("discourse/lib/sidebar/user/community-section/review-section-link",(function(){return(0,r.Z)(n(71299))})),s("discourse/lib/sidebar/user/messages-section/group-message-section-link",(function(){return(0,r.Z)(n(44692))})),s("discourse/lib/sidebar/user/messages-section/message-section-link",(function(){return(0,r.Z)(n(39320))})),s("discourse/lib/sidebar/user/messages-section/personal-message-section-link",(function(){return(0,r.Z)(n(35201))})),s("discourse/lib/sidebar/user/tags-section/base-tag-section-link",(function(){return(0,r.Z)(n(74184))})),s("discourse/lib/sidebar/user/tags-section/pm-tag-section-link",(function(){return(0,r.Z)(n(2616))})),s("discourse/lib/sidebar/user/tags-section/tag-section-link",(function(){return(0,r.Z)(n(75965))})),s("discourse/lib/source-identifier",(function(){return(0,r.Z)(n(72393))})),s("discourse/lib/svg-sprite-loader",(function(){return(0,r.Z)(n(12999))})),s("discourse/lib/swipe-events",(function(){return(0,r.Z)(n(13473))})),s("discourse/lib/tag-hashtags",(function(){return(0,r.Z)(n(26639))})),s("discourse/lib/text-direction",(function(){return(0,r.Z)(n(43168))})),s("discourse/lib/text",(function(){return(0,r.Z)(n(35193))})),s("discourse/lib/theme-selector",(function(){return(0,r.Z)(n(87591))})),s("discourse/lib/theme-settings-store",(function(){return(0,r.Z)(n(23606))})),s("discourse/lib/time-shortcut",(function(){return(0,r.Z)(n(50459))})),s("discourse/lib/time-utils",(function(){return(0,r.Z)(n(18225))})),s("discourse/lib/to-markdown",(function(){return(0,r.Z)(n(7179))})),s("discourse/lib/topic-fancy-title",(function(){return(0,r.Z)(n(58988))})),s("discourse/lib/topic-list-tracked-filter",(function(){return(0,r.Z)(n(79461))})),s("discourse/lib/topic-list-tracker",(function(){return(0,r.Z)(n(5002))})),s("discourse/lib/topic-summary",(function(){return(0,r.Z)(n(71012))})),s("discourse/lib/tracked-tools",(function(){return(0,r.Z)(n(88981))})),s("discourse/lib/transform-post",(function(){return(0,r.Z)(n(1350))})),s("discourse/lib/update-tab-count",(function(){return(0,r.Z)(n(80906))})),s("discourse/lib/update-user-status-on-mention",(function(){return(0,r.Z)(n(8199))})),s("discourse/lib/uploads",(function(){return(0,r.Z)(n(29966))})),s("discourse/lib/uppy-checksum-plugin",(function(){return(0,r.Z)(n(71249))})),s("discourse/lib/uppy-chunked-upload",(function(){return(0,r.Z)(n(3223))})),s("discourse/lib/uppy-chunked-uploader-plugin",(function(){return(0,r.Z)(n(60683))})),s("discourse/lib/uppy-media-optimization-plugin",(function(){return(0,r.Z)(n(20934))})),s("discourse/lib/uppy-plugin-base",(function(){return(0,r.Z)(n(7674))})),s("discourse/lib/url",(function(){return(0,r.Z)(n(20229))})),s("discourse/lib/user-activation",(function(){return(0,r.Z)(n(63421))})),s("discourse/lib/user-menu/base-item",(function(){return(0,r.Z)(n(91049))})),s("discourse/lib/user-menu/bookmark-item",(function(){return(0,r.Z)(n(28063))})),s("discourse/lib/user-menu/message-item",(function(){return(0,r.Z)(n(98242))})),s("discourse/lib/user-menu/notification-item",(function(){return(0,r.Z)(n(3366))})),s("discourse/lib/user-menu/reviewable-item",(function(){return(0,r.Z)(n(90065))})),s("discourse/lib/user-menu/tab",(function(){return(0,r.Z)(n(82658))})),s("discourse/lib/user-presence",(function(){return(0,r.Z)(n(3872))})),s("discourse/lib/user-search",(function(){return(0,r.Z)(n(47301))})),s("discourse/lib/user-status-message",(function(){return(0,r.Z)(n(38242))})),s("discourse/lib/user-status-on-autocomplete",(function(){return(0,r.Z)(n(55566))})),s("discourse/lib/utilities",(function(){return(0,r.Z)(n(62617))})),s("discourse/lib/virtual-element-from-text-range",(function(){return(0,r.Z)(n(22519))})),s("discourse/lib/waving-hand-url",(function(){return(0,r.Z)(n(19086))})),s("discourse/lib/webauthn",(function(){return(0,r.Z)(n(78580))})),s("discourse/loader-shims",(function(){return(0,r.Z)(n(20608))})),s("discourse/mapping-router",(function(){return(0,r.Z)(n(31459))})),s("discourse/mixins/add-archetype-class",(function(){return(0,r.Z)(n(53909))})),s("discourse/mixins/buffered-content",(function(){return(0,r.Z)(n(20003))})),s("discourse/mixins/can-check-emails",(function(){return(0,r.Z)(n(83470))})),s("discourse/mixins/card-contents-base",(function(){return(0,r.Z)(n(80471))})),s("discourse/mixins/cleans-up",(function(){return(0,r.Z)(n(10158))})),s("discourse/mixins/composer-upload-uppy",(function(){return(0,r.Z)(n(45737))})),s("discourse/mixins/composer-video-thumbnail-uppy",(function(){return(0,r.Z)(n(93934))})),s("discourse/mixins/disable-sidebar",(function(){return(0,r.Z)(n(75637))})),s("discourse/mixins/docking",(function(){return(0,r.Z)(n(21101))})),s("discourse/mixins/extendable-uploader",(function(){return(0,r.Z)(n(214))})),s("discourse/mixins/key-enter-escape",(function(){return(0,r.Z)(n(48078))})),s("discourse/mixins/load-more",(function(){return(0,r.Z)(n(81533))})),s("discourse/mixins/mobile-scroll-direction",(function(){return(0,r.Z)(n(38101))})),s("discourse/mixins/modal-functionality",(function(){return(0,r.Z)(n(77946))})),s("discourse/mixins/name-validation",(function(){return(0,r.Z)(n(55648))})),s("discourse/mixins/password-validation",(function(){return(0,r.Z)(n(56045))})),s("discourse/mixins/rerender-on-do-not-disturb-change",(function(){return(0,r.Z)(n(44821))})),s("discourse/mixins/scroll-top",(function(){return(0,r.Z)(n(23683))})),s("discourse/mixins/scrolling",(function(){return(0,r.Z)(n(63374))})),s("discourse/mixins/singleton",(function(){return(0,r.Z)(n(95716))})),s("discourse/mixins/textarea-text-manipulation",(function(){return(0,r.Z)(n(32270))})),s("discourse/mixins/upload-debugging",(function(){return(0,r.Z)(n(18794))})),s("discourse/mixins/uppy-s3-multipart",(function(){return(0,r.Z)(n(62284))})),s("discourse/mixins/uppy-upload",(function(){return(0,r.Z)(n(88548))})),s("discourse/mixins/user-fields-validation",(function(){return(0,r.Z)(n(48992))})),s("discourse/mixins/username-validation",(function(){return(0,r.Z)(n(53456))})),s("discourse/mixins/viewing-action-type",(function(){return(0,r.Z)(n(90836))})),s("discourse/models/action-summary",(function(){return(0,r.Z)(n(99779))})),s("discourse/models/archetype",(function(){return(0,r.Z)(n(52504))})),s("discourse/models/associated-group",(function(){return(0,r.Z)(n(14601))})),s("discourse/models/badge-grouping",(function(){return(0,r.Z)(n(23765))})),s("discourse/models/badge",(function(){return(0,r.Z)(n(47774))})),s("discourse/models/bookmark",(function(){return(0,r.Z)(n(87521))})),s("discourse/models/category-list",(function(){return(0,r.Z)(n(61917))})),s("discourse/models/category",(function(){return(0,r.Z)(n(56746))})),s("discourse/models/composer",(function(){return(0,r.Z)(n(21859))})),s("discourse/models/draft",(function(){return(0,r.Z)(n(37135))})),s("discourse/models/form-template",(function(){return(0,r.Z)(n(93264))})),s("discourse/models/group-history",(function(){return(0,r.Z)(n(25387))})),s("discourse/models/group",(function(){return(0,r.Z)(n(5751))})),s("discourse/models/invite",(function(){return(0,r.Z)(n(88802))})),s("discourse/models/live-post-counts",(function(){return(0,r.Z)(n(25776))})),s("discourse/models/login-method",(function(){return(0,r.Z)(n(34287))})),s("discourse/models/nav-item",(function(){return(0,r.Z)(n(62047))})),s("discourse/models/notification",(function(){return(0,r.Z)(n(83649))})),s("discourse/models/pending-post",(function(){return(0,r.Z)(n(92207))})),s("discourse/models/permission-type",(function(){return(0,r.Z)(n(12506))})),s("discourse/models/post-action-type",(function(){return(0,r.Z)(n(77348))})),s("discourse/models/post-stream",(function(){return(0,r.Z)(n(4993))})),s("discourse/models/post",(function(){return(0,r.Z)(n(97245))})),s("discourse/models/published-page",(function(){return(0,r.Z)(n(35816))})),s("discourse/models/rest",(function(){return(0,r.Z)(n(12652))})),s("discourse/models/result-set",(function(){return(0,r.Z)(n(88144))})),s("discourse/models/reviewable-history",(function(){return(0,r.Z)(n(11619))})),s("discourse/models/reviewable",(function(){return(0,r.Z)(n(30145))})),s("discourse/models/session",(function(){return(0,r.Z)(n(31311))})),s("discourse/models/site",(function(){return(0,r.Z)(n(19990))})),s("discourse/models/static-page",(function(){return(0,r.Z)(n(43260))})),s("discourse/models/store",(function(){return(0,r.Z)(n(66329))})),s("discourse/models/tag-group",(function(){return(0,r.Z)(n(53396))})),s("discourse/models/tag",(function(){return(0,r.Z)(n(12932))})),s("discourse/models/topic-details",(function(){return(0,r.Z)(n(1793))})),s("discourse/models/topic-list",(function(){return(0,r.Z)(n(11152))})),s("discourse/models/topic-timer",(function(){return(0,r.Z)(n(35284))})),s("discourse/models/topic-tracking-state",(function(){return(0,r.Z)(n(40388))})),s("discourse/models/topic",(function(){return(0,r.Z)(n(92635))})),s("discourse/models/trust-level",(function(){return(0,r.Z)(n(99457))})),s("discourse/models/user-action-group",(function(){return(0,r.Z)(n(49026))})),s("discourse/models/user-action-stat",(function(){return(0,r.Z)(n(32510))})),s("discourse/models/user-action",(function(){return(0,r.Z)(n(2437))})),s("discourse/models/user-badge",(function(){return(0,r.Z)(n(6566))})),s("discourse/models/user-draft",(function(){return(0,r.Z)(n(94456))})),s("discourse/models/user-drafts-stream",(function(){return(0,r.Z)(n(58297))})),s("discourse/models/user-menu-reviewable",(function(){return(0,r.Z)(n(91990))})),s("discourse/models/user-posts-stream",(function(){return(0,r.Z)(n(42115))})),s("discourse/models/user-stream",(function(){return(0,r.Z)(n(50334))})),s("discourse/models/user",(function(){return(0,r.Z)(n(7223))})),s("discourse/raw-templates/badge-selector-autocomplete",(function(){return(0,r.Z)(n(36592))})),s("discourse/raw-templates/category-selector-autocomplete",(function(){return(0,r.Z)(n(91861))})),s("discourse/raw-templates/category-tag-autocomplete",(function(){return(0,r.Z)(n(34361))})),s("discourse/raw-templates/emoji-selector-autocomplete",(function(){return(0,r.Z)(n(65295))})),s("discourse/raw-templates/flat-button",(function(){return(0,r.Z)(n(52339))})),s("discourse/raw-templates/group-selector-autocomplete",(function(){return(0,r.Z)(n(68234))})),s("discourse/raw-templates/hashtag-autocomplete",(function(){return(0,r.Z)(n(6683))})),s("discourse/raw-templates/list/action-list",(function(){return(0,r.Z)(n(74076))})),s("discourse/raw-templates/list/activity-column",(function(){return(0,r.Z)(n(88051))})),s("discourse/raw-templates/list/category-column",(function(){return(0,r.Z)(n(35712))})),s("discourse/raw-templates/list/new-list-header-controls",(function(){return(0,r.Z)(n(53593))})),s("discourse/raw-templates/list/participant-groups",(function(){return(0,r.Z)(n(78871))})),s("discourse/raw-templates/list/post-count-or-badges",(function(){return(0,r.Z)(n(90006))})),s("discourse/raw-templates/list/posters-column",(function(){return(0,r.Z)(n(93419))})),s("discourse/raw-templates/list/posts-count-column",(function(){return(0,r.Z)(n(7716))})),s("discourse/raw-templates/list/topic-excerpt",(function(){return(0,r.Z)(n(95877))})),s("discourse/raw-templates/list/topic-list-item",(function(){return(0,r.Z)(n(86716))})),s("discourse/raw-templates/list/unread-indicator",(function(){return(0,r.Z)(n(97814))})),s("discourse/raw-templates/list/visited-line",(function(){return(0,r.Z)(n(33846))})),s("discourse/raw-templates/mobile/list/topic-list-item",(function(){return(0,r.Z)(n(60636))})),s("discourse/raw-templates/post/poster-avatar",(function(){return(0,r.Z)(n(62218))})),s("discourse/raw-templates/topic-bulk-select-dropdown",(function(){return(0,r.Z)(n(79910))})),s("discourse/raw-templates/topic-list-header-column",(function(){return(0,r.Z)(n(54217))})),s("discourse/raw-templates/topic-list-header",(function(){return(0,r.Z)(n(34995))})),s("discourse/raw-templates/topic-post-badges",(function(){return(0,r.Z)(n(62203))})),s("discourse/raw-templates/topic-status",(function(){return(0,r.Z)(n(98170))})),s("discourse/raw-templates/user-selector-autocomplete",(function(){return(0,r.Z)(n(36288))})),s("discourse/raw-views/list/new-list-header-controls",(function(){return(0,r.Z)(n(73681))})),s("discourse/raw-views/list/post-count-or-badges",(function(){return(0,r.Z)(n(99043))})),s("discourse/raw-views/list/posts-count-column",(function(){return(0,r.Z)(n(63431))})),s("discourse/raw-views/list/visited-line",(function(){return(0,r.Z)(n(41106))})),s("discourse/raw-views/topic-bulk-select-dropdown",(function(){return(0,r.Z)(n(76480))})),s("discourse/raw-views/topic-list-header-column",(function(){return(0,r.Z)(n(96857))})),s("discourse/raw-views/topic-status",(function(){return(0,r.Z)(n(77452))})),s("discourse/services/admin-custom-user-fields",(function(){return(0,r.Z)(n(19994))})),s("discourse/services/admin-post-menu-buttons",(function(){return(0,r.Z)(n(27312))})),s("discourse/services/app-events",(function(){return(0,r.Z)(n(61168))})),s("discourse/services/capabilities",(function(){return(0,r.Z)(n(10591))})),s("discourse/services/client-error-handler",(function(){return(0,r.Z)(n(45486))})),s("discourse/services/composer",(function(){return(0,r.Z)(n(86066))})),s("discourse/services/deprecation-warning-handler",(function(){return(0,r.Z)(n(38710))})),s("discourse/services/desktop-notifications",(function(){return(0,r.Z)(n(77547))})),s("discourse/services/discovery",(function(){return(0,r.Z)(n(45851))})),s("discourse/services/document-title",(function(){return(0,r.Z)(n(47599))})),s("discourse/services/element-classes",(function(){return(0,r.Z)(n(13666))})),s("discourse/services/emoji-store",(function(){return(0,r.Z)(n(53646))})),s("discourse/services/footer",(function(){return(0,r.Z)(n(13360))})),s("discourse/services/history-store",(function(){return(0,r.Z)(n(43576))})),s("discourse/services/key-value-store",(function(){return(0,r.Z)(n(54589))})),s("discourse/services/lightbox",(function(){return(0,r.Z)(n(7607))})),s("discourse/services/loading-slider",(function(){return(0,r.Z)(n(95804))})),s("discourse/services/login",(function(){return(0,r.Z)(n(81635))})),s("discourse/services/logs-notice",(function(){return(0,r.Z)(n(55748))})),s("discourse/services/media-optimization-worker",(function(){return(0,r.Z)(n(16088))})),s("discourse/services/message-bus",(function(){return(0,r.Z)(n(2511))})),s("discourse/services/modal",(function(){return(0,r.Z)(n(72405))})),s("discourse/services/more-topics-preference-tracking",(function(){return(0,r.Z)(n(63366))})),s("discourse/services/navigation-menu",(function(){return(0,r.Z)(n(4285))})),s("discourse/services/network-connectivity",(function(){return(0,r.Z)(n(23578))})),s("discourse/services/pm-topic-tracking-state",(function(){return(0,r.Z)(n(85270))})),s("discourse/services/presence",(function(){return(0,r.Z)(n(77592))})),s("discourse/services/render-glimmer",(function(){return(0,r.Z)(n(81501))})),s("discourse/services/route-scroll-manager",(function(){return(0,r.Z)(n(4898))})),s("discourse/services/screen-track",(function(){return(0,r.Z)(n(41548))})),s("discourse/services/search-preferences-manager",(function(){return(0,r.Z)(n(95386))})),s("discourse/services/search",(function(){return(0,r.Z)(n(16180))})),s("discourse/services/sidebar-state",(function(){return(0,r.Z)(n(9373))})),s("discourse/services/site-settings",(function(){return(0,r.Z)(n(8366))})),s("discourse/services/store",(function(){return(0,r.Z)(n(44416))})),s("discourse/services/user-status",(function(){return(0,r.Z)(n(46910))})),s("discourse/services/user-tips",(function(){return(0,r.Z)(n(46361))})),s("discourse/widgets/actions-summary",(function(){return(0,r.Z)(n(52919))})),s("discourse/widgets/avatar-flair",(function(){return(0,r.Z)(n(45697))})),s("discourse/widgets/before-header-logo-outlet",(function(){return(0,r.Z)(n(40798))})),s("discourse/widgets/before-header-panel-outlet",(function(){return(0,r.Z)(n(21514))})),s("discourse/widgets/button",(function(){return(0,r.Z)(n(85679))})),s("discourse/widgets/category-link",(function(){return(0,r.Z)(n(71330))})),s("discourse/widgets/component-connector",(function(){return(0,r.Z)(n(58159))})),s("discourse/widgets/connector",(function(){return(0,r.Z)(n(17038))})),s("discourse/widgets/decorator-helper",(function(){return(0,r.Z)(n(72313))})),s("discourse/widgets/discourse-tags",(function(){return(0,r.Z)(n(81678))})),s("discourse/widgets/do-not-disturb",(function(){return(0,r.Z)(n(65799))})),s("discourse/widgets/embedded-post",(function(){return(0,r.Z)(n(53585))})),s("discourse/widgets/emoji",(function(){return(0,r.Z)(n(67943))})),s("discourse/widgets/footer-nav",(function(){return(0,r.Z)(n(13537))})),s("discourse/widgets/glue",(function(){return(0,r.Z)(n(17467))})),s("discourse/widgets/hbs-compiler",(function(){return(0,r.Z)(n(31629))})),s("discourse/widgets/header-bootstrap-mode",(function(){return(0,r.Z)(n(4609))})),s("discourse/widgets/header-contents",(function(){return(0,r.Z)(n(8857))})),s("discourse/widgets/header-topic-info",(function(){return(0,r.Z)(n(9338))})),s("discourse/widgets/header-user-tip-shim",(function(){return(0,r.Z)(n(34597))})),s("discourse/widgets/header",(function(){return(0,r.Z)(n(64589))})),s("discourse/widgets/home-logo-wrapper-outlet",(function(){return(0,r.Z)(n(63217))})),s("discourse/widgets/home-logo",(function(){return(0,r.Z)(n(96047))})),s("discourse/widgets/hooks",(function(){return(0,r.Z)(n(40406))})),s("discourse/widgets/link",(function(){return(0,r.Z)(n(9560))})),s("discourse/widgets/menu-panel",(function(){return(0,r.Z)(n(52472))})),s("discourse/widgets/post-cooked",(function(){return(0,r.Z)(n(46737))})),s("discourse/widgets/post-edits-indicator",(function(){return(0,r.Z)(n(59766))})),s("discourse/widgets/post-gap",(function(){return(0,r.Z)(n(40443))})),s("discourse/widgets/post-links",(function(){return(0,r.Z)(n(96452))})),s("discourse/widgets/post-menu",(function(){return(0,r.Z)(n(69892))})),s("discourse/widgets/post-placeholder",(function(){return(0,r.Z)(n(50131))})),s("discourse/widgets/post-small-action",(function(){return(0,r.Z)(n(67927))})),s("discourse/widgets/post-stream",(function(){return(0,r.Z)(n(75922))})),s("discourse/widgets/post-user-status",(function(){return(0,r.Z)(n(57836))})),s("discourse/widgets/post-user-tip-shim",(function(){return(0,r.Z)(n(21205))})),s("discourse/widgets/post",(function(){return(0,r.Z)(n(51804))})),s("discourse/widgets/poster-name",(function(){return(0,r.Z)(n(83788))})),s("discourse/widgets/private-message-map",(function(){return(0,r.Z)(n(56004))})),s("discourse/widgets/raw-html",(function(){return(0,r.Z)(n(802))})),s("discourse/widgets/render-glimmer",(function(){return(0,r.Z)(n(83675))})),s("discourse/widgets/search-menu-controls",(function(){return(0,r.Z)(n(65818))})),s("discourse/widgets/search-menu-results",(function(){return(0,r.Z)(n(39894))})),s("discourse/widgets/search-menu",(function(){return(0,r.Z)(n(36462))})),s("discourse/widgets/sidebar-toggle",(function(){return(0,r.Z)(n(58863))})),s("discourse/widgets/time-gap",(function(){return(0,r.Z)(n(28430))})),s("discourse/widgets/topic-admin-menu",(function(){return(0,r.Z)(n(14568))})),s("discourse/widgets/topic-map",(function(){return(0,r.Z)(n(88035))})),s("discourse/widgets/topic-post-visited-line",(function(){return(0,r.Z)(n(87950))})),s("discourse/widgets/topic-status",(function(){return(0,r.Z)(n(3240))})),s("discourse/widgets/user-status-bubble",(function(){return(0,r.Z)(n(78356))})),s("discourse/widgets/widget-dropdown",(function(){return(0,r.Z)(n(6708))})),s("discourse/widgets/widget",(function(){return(0,r.Z)(n(94473))})),s("discourse/services/-ensure-registered",(function(){return(0,r.Z)(n(98348))})),s("discourse/component-managers/glimmer",(function(){return(0,r.Z)(n(11148))})),s("discourse/initializers/container-debug-adapter",(function(){return(0,r.Z)(n(68151))})),s("discourse/services/dialog",(function(){return(0,r.Z)(n(62048))})),s("discourse/initializers/app-version",(function(){return(0,r.Z)(n(70587))})),s("discourse/services/resize-observer",(function(){return(0,r.Z)(n(94982))})),s("discourse/initializers/setup-router-service-refresh-polyfill",(function(){return(0,r.Z)(n(18357))})),s("discourse/lib/d-menu-instance",(function(){return(0,r.Z)(n(3266))})),s("discourse/lib/d-tooltip-instance",(function(){return(0,r.Z)(n(79802))})),s("discourse/services/internal-tooltip",(function(){return(0,r.Z)(n(20786))})),s("discourse/services/menu",(function(){return(0,r.Z)(n(89810))})),s("discourse/services/toasts",(function(){return(0,r.Z)(n(13775))})),s("discourse/services/tooltip",(function(){return(0,r.Z)(n(12876))})),s("discourse/components/about-page-users",(function(){return(0,r.Z)(n(52069))})),s("discourse/components/activation-controls",(function(){return(0,r.Z)(n(67013))})),s("discourse/components/activation-email-form",(function(){return(0,r.Z)(n(1156))})),s("discourse/components/add-category-tag-classes",(function(){return(0,r.Z)(n(83426))})),s("discourse/components/add-topic-status-classes",(function(){return(0,r.Z)(n(41841))})),s("discourse/components/admin-post-menu",(function(){return(0,r.Z)(n(27134))})),s("discourse/components/ai-summary-skeleton",(function(){return(0,r.Z)(n(6333))})),s("discourse/components/anonymous-topic-footer-buttons",(function(){return(0,r.Z)(n(79829))})),s("discourse/components/auth-token-dropdown",(function(){return(0,r.Z)(n(3536))})),s("discourse/components/avatar-flair",(function(){return(0,r.Z)(n(3838))})),s("discourse/components/avatar-uploader",(function(){return(0,r.Z)(n(73813))})),s("discourse/components/backup-codes",(function(){return(0,r.Z)(n(77648))})),s("discourse/components/badge-button",(function(){return(0,r.Z)(n(50941))})),s("discourse/components/badge-card",(function(){return(0,r.Z)(n(87281))})),s("discourse/components/badge-selector",(function(){return(0,r.Z)(n(72898))})),s("discourse/components/badge-title",(function(){return(0,r.Z)(n(91293))})),s("discourse/components/basic-topic-list",(function(){return(0,r.Z)(n(19316))})),s("discourse/components/bookmark-actions-dropdown",(function(){return(0,r.Z)(n(454))})),s("discourse/components/bookmark-icon",(function(){return(0,r.Z)(n(27527))})),s("discourse/components/bookmark-list",(function(){return(0,r.Z)(n(87243))})),s("discourse/components/bootstrap-mode-notice",(function(){return(0,r.Z)(n(27197))})),s("discourse/components/bread-crumbs",(function(){return(0,r.Z)(n(27539))})),s("discourse/components/bulk-actions/append-tags",(function(){return(0,r.Z)(n(63482))})),s("discourse/components/bulk-actions/change-category",(function(){return(0,r.Z)(n(99363))})),s("discourse/components/bulk-actions/change-tags",(function(){return(0,r.Z)(n(31369))})),s("discourse/components/bulk-actions/notification-level",(function(){return(0,r.Z)(n(4785))})),s("discourse/components/bulk-group-member-dropdown",(function(){return(0,r.Z)(n(87106))})),s("discourse/components/bulk-select-toggle",(function(){return(0,r.Z)(n(62244))})),s("discourse/components/calendar-date-time-input",(function(){return(0,r.Z)(n(50553))})),s("discourse/components/cancel-link",(function(){return(0,r.Z)(n(51098))})),s("discourse/components/card-container",(function(){return(0,r.Z)(n(29448))})),s("discourse/components/categories-and-latest-topics",(function(){return(0,r.Z)(n(56900))})),s("discourse/components/categories-and-top-topics",(function(){return(0,r.Z)(n(37706))})),s("discourse/components/categories-boxes-topic",(function(){return(0,r.Z)(n(98396))})),s("discourse/components/categories-boxes-with-topics",(function(){return(0,r.Z)(n(82466))})),s("discourse/components/categories-boxes",(function(){return(0,r.Z)(n(29082))})),s("discourse/components/categories-only",(function(){return(0,r.Z)(n(57755))})),s("discourse/components/categories-topic-list",(function(){return(0,r.Z)(n(28480))})),s("discourse/components/categories-with-featured-topics",(function(){return(0,r.Z)(n(96193))})),s("discourse/components/category-list-item",(function(){return(0,r.Z)(n(347))})),s("discourse/components/category-logo",(function(){return(0,r.Z)(n(23950))})),s("discourse/components/category-name-fields",(function(){return(0,r.Z)(n(82860))})),s("discourse/components/category-permission-row",(function(){return(0,r.Z)(n(52341))})),s("discourse/components/category-read-only-banner",(function(){return(0,r.Z)(n(82681))})),s("discourse/components/category-title-before",(function(){return(0,r.Z)(n(78139))})),s("discourse/components/category-title-link",(function(){return(0,r.Z)(n(65410))})),s("discourse/components/category-unread",(function(){return(0,r.Z)(n(83444))})),s("discourse/components/cdn-img",(function(){return(0,r.Z)(n(47748))})),s("discourse/components/char-counter",(function(){return(0,r.Z)(n(72575))})),s("discourse/components/choose-message",(function(){return(0,r.Z)(n(57939))})),s("discourse/components/choose-topic",(function(){return(0,r.Z)(n(8771))})),s("discourse/components/color-picker-choice",(function(){return(0,r.Z)(n(52224))})),s("discourse/components/color-picker",(function(){return(0,r.Z)(n(74052))})),s("discourse/components/composer-action-title",(function(){return(0,r.Z)(n(5638))})),s("discourse/components/composer-body",(function(){return(0,r.Z)(n(54891))})),s("discourse/components/composer-container",(function(){return(0,r.Z)(n(3994))})),s("discourse/components/composer-editor",(function(){return(0,r.Z)(n(12350))})),s("discourse/components/composer-fullscreen-prompt",(function(){return(0,r.Z)(n(79667))})),s("discourse/components/composer-message",(function(){return(0,r.Z)(n(92336))})),s("discourse/components/composer-messages",(function(){return(0,r.Z)(n(74743))})),s("discourse/components/composer-save-button",(function(){return(0,r.Z)(n(50719))})),s("discourse/components/composer-tip-close-button",(function(){return(0,r.Z)(n(97729))})),s("discourse/components/composer-title",(function(){return(0,r.Z)(n(64555))})),s("discourse/components/composer-toggles",(function(){return(0,r.Z)(n(73934))})),s("discourse/components/composer-user-selector",(function(){return(0,r.Z)(n(74246))})),s("discourse/components/conditional-in-element",(function(){return(0,r.Z)(n(71602))})),s("discourse/components/conditional-loading-section",(function(){return(0,r.Z)(n(89492))})),s("discourse/components/conditional-loading-spinner",(function(){return(0,r.Z)(n(72853))})),s("discourse/components/connector-container",(function(){return(0,r.Z)(n(22108))})),s("discourse/components/cook-text",(function(){return(0,r.Z)(n(97436))})),s("discourse/components/copy-button",(function(){return(0,r.Z)(n(14166))})),s("discourse/components/count-i18n",(function(){return(0,r.Z)(n(87588))})),s("discourse/components/create-invite-uploader",(function(){return(0,r.Z)(n(64906))})),s("discourse/components/create-topic-button",(function(){return(0,r.Z)(n(97018))})),s("discourse/components/custom-html",(function(){return(0,r.Z)(n(32229))})),s("discourse/components/d-button",(function(){return(0,r.Z)(n(69338))})),s("discourse/components/d-document",(function(){return(0,r.Z)(n(33452))})),s("discourse/components/d-editor",(function(){return(0,r.Z)(n(64280))})),s("discourse/components/d-lightbox",(function(){return(0,r.Z)(n(27428))})),s("discourse/components/d-lightbox/backdrop",(function(){return(0,r.Z)(n(33529))})),s("discourse/components/d-lightbox/body",(function(){return(0,r.Z)(n(87714))})),s("discourse/components/d-lightbox/carousel",(function(){return(0,r.Z)(n(82794))})),s("discourse/components/d-lightbox/footer",(function(){return(0,r.Z)(n(1545))})),s("discourse/components/d-lightbox/header",(function(){return(0,r.Z)(n(26890))})),s("discourse/components/d-lightbox/screen-reader-announcer",(function(){return(0,r.Z)(n(72591))})),s("discourse/components/d-modal-body",(function(){return(0,r.Z)(n(92108))})),s("discourse/components/d-modal-cancel",(function(){return(0,r.Z)(n(84244))})),s("discourse/components/d-modal-legacy",(function(){return(0,r.Z)(n(2735))})),s("discourse/components/d-modal",(function(){return(0,r.Z)(n(83116))})),s("discourse/components/d-navigation-item",(function(){return(0,r.Z)(n(54568))})),s("discourse/components/d-navigation",(function(){return(0,r.Z)(n(80530))})),s("discourse/components/d-section",(function(){return(0,r.Z)(n(35453))})),s("discourse/components/d-textarea",(function(){return(0,r.Z)(n(17233))})),s("discourse/components/d-toggle-switch",(function(){return(0,r.Z)(n(41769))})),s("discourse/components/date-input",(function(){return(0,r.Z)(n(51803))})),s("discourse/components/date-picker-future",(function(){return(0,r.Z)(n(34362))})),s("discourse/components/date-picker-past",(function(){return(0,r.Z)(n(79005))})),s("discourse/components/date-picker",(function(){return(0,r.Z)(n(7353))})),s("discourse/components/date-time-input-range",(function(){return(0,r.Z)(n(49229))})),s("discourse/components/date-time-input",(function(){return(0,r.Z)(n(96462))})),s("discourse/components/desktop-notification-config",(function(){return(0,r.Z)(n(88101))})),s("discourse/components/dialog-messages/confirm-session",(function(){return(0,r.Z)(n(94549))})),s("discourse/components/dialog-messages/group-delete",(function(){return(0,r.Z)(n(87683))})),s("discourse/components/dialog-messages/second-factor-confirm-phrase",(function(){return(0,r.Z)(n(82100))})),s("discourse/components/directory-item",(function(){return(0,r.Z)(n(323))})),s("discourse/components/directory-table",(function(){return(0,r.Z)(n(26003))})),s("discourse/components/disabled-icon",(function(){return(0,r.Z)(n(61274))})),s("discourse/components/discourse-banner",(function(){return(0,r.Z)(n(44631))})),s("discourse/components/discourse-linked-text",(function(){return(0,r.Z)(n(15314))})),s("discourse/components/discourse-root",(function(){return(0,r.Z)(n(70729))})),s("discourse/components/discourse-tag-bound",(function(){return(0,r.Z)(n(94417))})),s("discourse/components/discourse-topic",(function(){return(0,r.Z)(n(83679))})),s("discourse/components/discovery-topics-list",(function(){return(0,r.Z)(n(93001))})),s("discourse/components/discovery/categories-display",(function(){return(0,r.Z)(n(18749))})),s("discourse/components/discovery/filter-navigation",(function(){return(0,r.Z)(n(38005))})),s("discourse/components/discovery/layout",(function(){return(0,r.Z)(n(18988))})),s("discourse/components/discovery/navigation",(function(){return(0,r.Z)(n(11960))})),s("discourse/components/discovery/topics",(function(){return(0,r.Z)(n(47931))})),s("discourse/components/edit-category-general",(function(){return(0,r.Z)(n(41927))})),s("discourse/components/edit-category-images",(function(){return(0,r.Z)(n(24891))})),s("discourse/components/edit-category-panel",(function(){return(0,r.Z)(n(93596))})),s("discourse/components/edit-category-security",(function(){return(0,r.Z)(n(3136))})),s("discourse/components/edit-category-settings",(function(){return(0,r.Z)(n(10374))})),s("discourse/components/edit-category-tab",(function(){return(0,r.Z)(n(58037))})),s("discourse/components/edit-category-tags",(function(){return(0,r.Z)(n(24004))})),s("discourse/components/edit-category-topic-template",(function(){return(0,r.Z)(n(7700))})),s("discourse/components/edit-topic-timer-form",(function(){return(0,r.Z)(n(98244))})),s("discourse/components/email-dropdown",(function(){return(0,r.Z)(n(9482))})),s("discourse/components/emoji-group-buttons",(function(){return(0,r.Z)(n(77775))})),s("discourse/components/emoji-group-sections",(function(){return(0,r.Z)(n(87421))})),s("discourse/components/emoji-picker",(function(){return(0,r.Z)(n(31319))})),s("discourse/components/emoji-uploader",(function(){return(0,r.Z)(n(44364))})),s("discourse/components/empty-state",(function(){return(0,r.Z)(n(58271))})),s("discourse/components/expand-post",(function(){return(0,r.Z)(n(61111))})),s("discourse/components/expanding-text-area",(function(){return(0,r.Z)(n(41030))})),s("discourse/components/fast-edit",(function(){return(0,r.Z)(n(23151))})),s("discourse/components/featured-topic",(function(){return(0,r.Z)(n(66263))})),s("discourse/components/flag-action-type",(function(){return(0,r.Z)(n(88278))})),s("discourse/components/flag-selection",(function(){return(0,r.Z)(n(52465))})),s("discourse/components/flat-button",(function(){return(0,r.Z)(n(88601))})),s("discourse/components/footer-message",(function(){return(0,r.Z)(n(6810))})),s("discourse/components/footer-nav",(function(){return(0,r.Z)(n(78754))})),s("discourse/components/form-template-field/checkbox",(function(){return(0,r.Z)(n(77069))})),s("discourse/components/form-template-field/dropdown",(function(){return(0,r.Z)(n(56502))})),s("discourse/components/form-template-field/input",(function(){return(0,r.Z)(n(41747))})),s("discourse/components/form-template-field/multi-select",(function(){return(0,r.Z)(n(58455))})),s("discourse/components/form-template-field/textarea",(function(){return(0,r.Z)(n(38431))})),s("discourse/components/form-template-field/upload",(function(){return(0,r.Z)(n(73790))})),s("discourse/components/form-template-field/wrapper",(function(){return(0,r.Z)(n(86319))})),s("discourse/components/future-date-input",(function(){return(0,r.Z)(n(14490))})),s("discourse/components/generated-invite-link",(function(){return(0,r.Z)(n(57155))})),s("discourse/components/glimmer-component-with-deprecated-parent-view",(function(){return(0,r.Z)(n(32593))})),s("discourse/components/global-notice",(function(){return(0,r.Z)(n(32562))})),s("discourse/components/google-icon",(function(){return(0,r.Z)(n(84722))})),s("discourse/components/google-search",(function(){return(0,r.Z)(n(71439))})),s("discourse/components/group-activity-filter",(function(){return(0,r.Z)(n(96634))})),s("discourse/components/group-card-contents",(function(){return(0,r.Z)(n(43488))})),s("discourse/components/group-flair-inputs",(function(){return(0,r.Z)(n(96016))})),s("discourse/components/group-imap-email-settings",(function(){return(0,r.Z)(n(14829))})),s("discourse/components/group-manage-email-settings",(function(){return(0,r.Z)(n(34236))})),s("discourse/components/group-manage-logs-filter",(function(){return(0,r.Z)(n(80003))})),s("discourse/components/group-manage-logs-row",(function(){return(0,r.Z)(n(54039))})),s("discourse/components/group-manage-save-button",(function(){return(0,r.Z)(n(63506))})),s("discourse/components/group-member-dropdown",(function(){return(0,r.Z)(n(42093))})),s("discourse/components/group-member",(function(){return(0,r.Z)(n(66507))})),s("discourse/components/group-membership-button",(function(){return(0,r.Z)(n(76619))})),s("discourse/components/group-navigation",(function(){return(0,r.Z)(n(43441))})),s("discourse/components/group-post",(function(){return(0,r.Z)(n(7343))})),s("discourse/components/group-selector",(function(){return(0,r.Z)(n(93978))})),s("discourse/components/group-smtp-email-settings",(function(){return(0,r.Z)(n(11564))})),s("discourse/components/groups-form-interaction-fields",(function(){return(0,r.Z)(n(86490))})),s("discourse/components/groups-form-membership-fields",(function(){return(0,r.Z)(n(17056))})),s("discourse/components/groups-form-profile-fields",(function(){return(0,r.Z)(n(20076))})),s("discourse/components/groups-info",(function(){return(0,r.Z)(n(4184))})),s("discourse/components/header-extra-info",(function(){return(0,r.Z)(n(89337))})),s("discourse/components/hidden-details",(function(){return(0,r.Z)(n(51048))})),s("discourse/components/highlight-search",(function(){return(0,r.Z)(n(82729))})),s("discourse/components/honeypot-input",(function(){return(0,r.Z)(n(75890))})),s("discourse/components/horizontal-overflow-nav",(function(){return(0,r.Z)(n(49652))})),s("discourse/components/html-with-links",(function(){return(0,r.Z)(n(83435))})),s("discourse/components/iframed-html",(function(){return(0,r.Z)(n(94708))})),s("discourse/components/ignored-user-list-item",(function(){return(0,r.Z)(n(45691))})),s("discourse/components/ignored-user-list",(function(){return(0,r.Z)(n(83382))})),s("discourse/components/images-uploader",(function(){return(0,r.Z)(n(14198))})),s("discourse/components/input-tip",(function(){return(0,r.Z)(n(84323))})),s("discourse/components/invite-panel",(function(){return(0,r.Z)(n(45832))})),s("discourse/components/latest-topic-list-item",(function(){return(0,r.Z)(n(96438))})),s("discourse/components/light-dark-img",(function(){return(0,r.Z)(n(42122))})),s("discourse/components/link-to-input",(function(){return(0,r.Z)(n(42838))})),s("discourse/components/links-redirect",(function(){return(0,r.Z)(n(87385))})),s("discourse/components/load-more",(function(){return(0,r.Z)(n(87996))})),s("discourse/components/loading-slider-fallback-spinner",(function(){return(0,r.Z)(n(42977))})),s("discourse/components/login-buttons",(function(){return(0,r.Z)(n(79414))})),s("discourse/components/menu-panel",(function(){return(0,r.Z)(n(48036))})),s("discourse/components/mobile-category-topic",(function(){return(0,r.Z)(n(19707))})),s("discourse/components/mobile-nav",(function(){return(0,r.Z)(n(33505))})),s("discourse/components/modal-container",(function(){return(0,r.Z)(n(82222))})),s("discourse/components/modal-footer-close",(function(){return(0,r.Z)(n(97488))})),s("discourse/components/modal-tab",(function(){return(0,r.Z)(n(3531))})),s("discourse/components/modal/activation-edit",(function(){return(0,r.Z)(n(25824))})),s("discourse/components/modal/activation-resent",(function(){return(0,r.Z)(n(43234))})),s("discourse/components/modal/add-pm-participants",(function(){return(0,r.Z)(n(28533))})),s("discourse/components/modal/associate-account-confirm",(function(){return(0,r.Z)(n(16655))})),s("discourse/components/modal/auth-token",(function(){return(0,r.Z)(n(86457))})),s("discourse/components/modal/avatar-selector",(function(){return(0,r.Z)(n(92642))})),s("discourse/components/modal/bookmark",(function(){return(0,r.Z)(n(18987))})),s("discourse/components/modal/bulk-topic-actions",(function(){return(0,r.Z)(n(1856))})),s("discourse/components/modal/change-owner",(function(){return(0,r.Z)(n(24748))})),s("discourse/components/modal/change-post-notice",(function(){return(0,r.Z)(n(1029))})),s("discourse/components/modal/change-timestamp",(function(){return(0,r.Z)(n(78193))})),s("discourse/components/modal/convert-to-public-topic",(function(){return(0,r.Z)(n(35617))})),s("discourse/components/modal/create-account",(function(){return(0,r.Z)(n(19608))})),s("discourse/components/modal/create-invite-bulk",(function(){return(0,r.Z)(n(37344))})),s("discourse/components/modal/create-invite",(function(){return(0,r.Z)(n(95573))})),s("discourse/components/modal/customize-form-template-view",(function(){return(0,r.Z)(n(98004))})),s("discourse/components/modal/delete-themes-confirm",(function(){return(0,r.Z)(n(58967))})),s("discourse/components/modal/delete-topic-confirm",(function(){return(0,r.Z)(n(64935))})),s("discourse/components/modal/delete-topic-disallowed",(function(){return(0,r.Z)(n(55325))})),s("discourse/components/modal/discard-draft",(function(){return(0,r.Z)(n(71220))})),s("discourse/components/modal/dismiss-new",(function(){return(0,r.Z)(n(42692))})),s("discourse/components/modal/dismiss-notification-confirmation",(function(){return(0,r.Z)(n(58186))})),s("discourse/components/modal/dismiss-read",(function(){return(0,r.Z)(n(62498))})),s("discourse/components/modal/do-not-disturb",(function(){return(0,r.Z)(n(53504))})),s("discourse/components/modal/download-calendar",(function(){return(0,r.Z)(n(63875))})),s("discourse/components/modal/edit-slow-mode",(function(){return(0,r.Z)(n(75301))})),s("discourse/components/modal/edit-topic-timer",(function(){return(0,r.Z)(n(61016))})),s("discourse/components/modal/edit-user-directory-columns",(function(){return(0,r.Z)(n(92098))})),s("discourse/components/modal/explain-reviewable",(function(){return(0,r.Z)(n(42455))})),s("discourse/components/modal/fast-edit",(function(){return(0,r.Z)(n(33813))})),s("discourse/components/modal/feature-topic-on-profile",(function(){return(0,r.Z)(n(47639))})),s("discourse/components/modal/feature-topic",(function(){return(0,r.Z)(n(19040))})),s("discourse/components/modal/flag",(function(){return(0,r.Z)(n(20816))})),s("discourse/components/modal/forgot-password",(function(){return(0,r.Z)(n(99594))})),s("discourse/components/modal/form-template-form-preview",(function(){return(0,r.Z)(n(3074))})),s("discourse/components/modal/fullscreen-code",(function(){return(0,r.Z)(n(65442))})),s("discourse/components/modal/fullscreen-table",(function(){return(0,r.Z)(n(31285))})),s("discourse/components/modal/grant-badge",(function(){return(0,r.Z)(n(8545))})),s("discourse/components/modal/group-add-members",(function(){return(0,r.Z)(n(48942))})),s("discourse/components/modal/group-default-notifications",(function(){return(0,r.Z)(n(41511))})),s("discourse/components/modal/history",(function(){return(0,r.Z)(n(90124))})),s("discourse/components/modal/history/revision",(function(){return(0,r.Z)(n(52608))})),s("discourse/components/modal/history/revisions",(function(){return(0,r.Z)(n(95709))})),s("discourse/components/modal/history/topic-footer",(function(){return(0,r.Z)(n(24527))})),s("discourse/components/modal/ignore-duration-with-username",(function(){return(0,r.Z)(n(72261))})),s("discourse/components/modal/insert-hyperlink",(function(){return(0,r.Z)(n(29093))})),s("discourse/components/modal/json-schema-editor",(function(){return(0,r.Z)(n(60843))})),s("discourse/components/modal/jump-to-post",(function(){return(0,r.Z)(n(6187))})),s("discourse/components/modal/keyboard-shortcuts-help",(function(){return(0,r.Z)(n(74229))})),s("discourse/components/modal/login",(function(){return(0,r.Z)(n(23392))})),s("discourse/components/modal/login/footer",(function(){return(0,r.Z)(n(55588))})),s("discourse/components/modal/login/local-login-form",(function(){return(0,r.Z)(n(29632))})),s("discourse/components/modal/login/welcome-header",(function(){return(0,r.Z)(n(86397))})),s("discourse/components/modal/move-to-topic",(function(){return(0,r.Z)(n(42398))})),s("discourse/components/modal/not-activated",(function(){return(0,r.Z)(n(43658))})),s("discourse/components/modal/post-enqueued",(function(){return(0,r.Z)(n(704))})),s("discourse/components/modal/publish-page",(function(){return(0,r.Z)(n(66552))})),s("discourse/components/modal/raw-email",(function(){return(0,r.Z)(n(77314))})),s("discourse/components/modal/reject-reason-reviewable",(function(){return(0,r.Z)(n(24721))})),s("discourse/components/modal/reorder-categories",(function(){return(0,r.Z)(n(94191))})),s("discourse/components/modal/request-group-membership-form",(function(){return(0,r.Z)(n(87354))})),s("discourse/components/modal/revise-and-reject-post-reviewable",(function(){return(0,r.Z)(n(31077))})),s("discourse/components/modal/second-factor-add-security-key",(function(){return(0,r.Z)(n(3764))})),s("discourse/components/modal/second-factor-add-totp",(function(){return(0,r.Z)(n(55215))})),s("discourse/components/modal/second-factor-backup-edit",(function(){return(0,r.Z)(n(80147))})),s("discourse/components/modal/second-factor-edit-security-key",(function(){return(0,r.Z)(n(54106))})),s("discourse/components/modal/second-factor-edit",(function(){return(0,r.Z)(n(73012))})),s("discourse/components/modal/share-topic",(function(){return(0,r.Z)(n(75900))})),s("discourse/components/modal/sidebar-section-form",(function(){return(0,r.Z)(n(54052))})),s("discourse/components/modal/spreadsheet-editor",(function(){return(0,r.Z)(n(51450))})),s("discourse/components/modal/tag-upload",(function(){return(0,r.Z)(n(18339))})),s("discourse/components/modal/topic-bulk-actions",(function(){return(0,r.Z)(n(40371))})),s("discourse/components/modal/user-status",(function(){return(0,r.Z)(n(13639))})),s("discourse/components/more-topics",(function(){return(0,r.Z)(n(57394))})),s("discourse/components/mount-widget",(function(){return(0,r.Z)(n(17238))})),s("discourse/components/nav-item",(function(){return(0,r.Z)(n(66291))})),s("discourse/components/navigation-bar",(function(){return(0,r.Z)(n(80548))})),s("discourse/components/navigation-item",(function(){return(0,r.Z)(n(8889))})),s("discourse/components/new-list-header-controls-wrapper",(function(){return(0,r.Z)(n(41143))})),s("discourse/components/notification-consent-banner",(function(){return(0,r.Z)(n(83483))})),s("discourse/components/number-field",(function(){return(0,r.Z)(n(82968))})),s("discourse/components/offline-indicator",(function(){return(0,r.Z)(n(48037))})),s("discourse/components/page-loading-slider",(function(){return(0,r.Z)(n(91969))})),s("discourse/components/parent-category-row",(function(){return(0,r.Z)(n(78138))})),s("discourse/components/passkey-login-button",(function(){return(0,r.Z)(n(29475))})),s("discourse/components/password-field",(function(){return(0,r.Z)(n(62787))})),s("discourse/components/pending-post",(function(){return(0,r.Z)(n(99730))})),s("discourse/components/pick-files-button",(function(){return(0,r.Z)(n(27805))})),s("discourse/components/plugin-connector",(function(){return(0,r.Z)(n(56310))})),s("discourse/components/plugin-outlet",(function(){return(0,r.Z)(n(90311))})),s("discourse/components/popup-input-tip",(function(){return(0,r.Z)(n(26899))})),s("discourse/components/popup-menu",(function(){return(0,r.Z)(n(15726))})),s("discourse/components/post-text-selection-toolbar",(function(){return(0,r.Z)(n(74848))}));s("discourse/components/post-text-selection",(function(){return(0,r.Z)(n(76301))})),s("discourse/components/preference-checkbox",(function(){return(0,r.Z)(n(84947))})),s("discourse/components/private-message-glyph",(function(){return(0,r.Z)(n(75680))})),s("discourse/components/pwa-install-banner",(function(){return(0,r.Z)(n(29780))})),s("discourse/components/radio-button",(function(){return(0,r.Z)(n(74866))})),s("discourse/components/related-messages",(function(){return(0,r.Z)(n(69926))})),s("discourse/components/relative-date",(function(){return(0,r.Z)(n(45386))})),s("discourse/components/relative-time-picker",(function(){return(0,r.Z)(n(13025))})),s("discourse/components/render-glimmer-container",(function(){return(0,r.Z)(n(8027))})),s("discourse/components/responsive-table",(function(){return(0,r.Z)(n(37364))})),s("discourse/components/reviewable-bundled-action",(function(){return(0,r.Z)(n(55621))})),s("discourse/components/reviewable-claimed-topic",(function(){return(0,r.Z)(n(36484))})),s("discourse/components/reviewable-conversation-post",(function(){return(0,r.Z)(n(73207))})),s("discourse/components/reviewable-created-by-name",(function(){return(0,r.Z)(n(1349))})),s("discourse/components/reviewable-created-by",(function(){return(0,r.Z)(n(21535))})),s("discourse/components/reviewable-field-category",(function(){return(0,r.Z)(n(38091))})),s("discourse/components/reviewable-field-editor",(function(){return(0,r.Z)(n(22606))})),s("discourse/components/reviewable-field-tags",(function(){return(0,r.Z)(n(1256))})),s("discourse/components/reviewable-field-text",(function(){return(0,r.Z)(n(84331))})),s("discourse/components/reviewable-field-textarea",(function(){return(0,r.Z)(n(27554))})),s("discourse/components/reviewable-field",(function(){return(0,r.Z)(n(30928))})),s("discourse/components/reviewable-flagged-post",(function(){return(0,r.Z)(n(98839))})),s("discourse/components/reviewable-histories",(function(){return(0,r.Z)(n(86197))})),s("discourse/components/reviewable-item",(function(){return(0,r.Z)(n(26794))})),s("discourse/components/reviewable-post-edits",(function(){return(0,r.Z)(n(59269))})),s("discourse/components/reviewable-post-header",(function(){return(0,r.Z)(n(69261))})),s("discourse/components/reviewable-post",(function(){return(0,r.Z)(n(44920))})),s("discourse/components/reviewable-queued-post",(function(){return(0,r.Z)(n(52498))})),s("discourse/components/reviewable-score",(function(){return(0,r.Z)(n(50094))})),s("discourse/components/reviewable-scores",(function(){return(0,r.Z)(n(76027))})),s("discourse/components/reviewable-tags",(function(){return(0,r.Z)(n(96076))})),s("discourse/components/reviewable-topic-link",(function(){return(0,r.Z)(n(64433))})),s("discourse/components/reviewable-user",(function(){return(0,r.Z)(n(44600))})),s("discourse/components/save-controls",(function(){return(0,r.Z)(n(48511))})),s("discourse/components/score-value",(function(){return(0,r.Z)(n(84177))})),s("discourse/components/scroll-tracker",(function(){return(0,r.Z)(n(54071))})),s("discourse/components/scrolling-post-stream",(function(){return(0,r.Z)(n(28086))})),s("discourse/components/search-advanced-options",(function(){return(0,r.Z)(n(88621))})),s("discourse/components/search-menu-panel",(function(){return(0,r.Z)(n(20756))})),s("discourse/components/search-menu",(function(){return(0,r.Z)(n(77441))})),s("discourse/components/search-menu/advanced-button",(function(){return(0,r.Z)(n(40153))})),s("discourse/components/search-menu/browser-search-tip",(function(){return(0,r.Z)(n(27390))})),s("discourse/components/search-menu/clear-button",(function(){return(0,r.Z)(n(66292))})),s("discourse/components/search-menu/highlighted-search",(function(){return(0,r.Z)(n(72948))})),s("discourse/components/search-menu/results",(function(){return(0,r.Z)(n(53998))})),s("discourse/components/search-menu/results/assistant-item",(function(){return(0,r.Z)(n(81821))})),s("discourse/components/search-menu/results/assistant",(function(){return(0,r.Z)(n(78678))})),s("discourse/components/search-menu/results/blurb",(function(){return(0,r.Z)(n(21836))})),s("discourse/components/search-menu/results/initial-options",(function(){return(0,r.Z)(n(68119))})),s("discourse/components/search-menu/results/more-link",(function(){return(0,r.Z)(n(75458))})),s("discourse/components/search-menu/results/random-quick-tip",(function(){return(0,r.Z)(n(841))})),s("discourse/components/search-menu/results/recent-searches",(function(){return(0,r.Z)(n(43689))})),s("discourse/components/search-menu/results/type/category",(function(){return(0,r.Z)(n(56763))})),s("discourse/components/search-menu/results/type/group",(function(){return(0,r.Z)(n(10339))})),s("discourse/components/search-menu/results/type/post",(function(){return(0,r.Z)(n(38139))})),s("discourse/components/search-menu/results/type/tag",(function(){return(0,r.Z)(n(26395))})),s("discourse/components/search-menu/results/type/topic",(function(){return(0,r.Z)(n(50207))})),s("discourse/components/search-menu/results/type/user",(function(){return(0,r.Z)(n(18411))})),s("discourse/components/search-menu/results/types",(function(){return(0,r.Z)(n(17319))})),s("discourse/components/search-menu/search-term",(function(){return(0,r.Z)(n(34110))})),s("discourse/components/search-result-entries",(function(){return(0,r.Z)(n(37964))})),s("discourse/components/search-result-entry",(function(){return(0,r.Z)(n(50010))})),s("discourse/components/search-text-field",(function(){return(0,r.Z)(n(26416))})),s("discourse/components/second-factor-form",(function(){return(0,r.Z)(n(14695))})),s("discourse/components/second-factor-input",(function(){return(0,r.Z)(n(34436))})),s("discourse/components/security-key-dropdown",(function(){return(0,r.Z)(n(16645))})),s("discourse/components/security-key-form",(function(){return(0,r.Z)(n(75981))})),s("discourse/components/selected-posts",(function(){return(0,r.Z)(n(25870))})),s("discourse/components/share-panel",(function(){return(0,r.Z)(n(32410))})),s("discourse/components/share-source",(function(){return(0,r.Z)(n(29698))})),s("discourse/components/shared-draft-controls",(function(){return(0,r.Z)(n(74103))})),s("discourse/components/sidebar",(function(){return(0,r.Z)(n(97922))})),s("discourse/components/sidebar/anonymous/categories-section",(function(){return(0,r.Z)(n(60974))})),s("discourse/components/sidebar/anonymous/custom-sections",(function(){return(0,r.Z)(n(52233))})),s("discourse/components/sidebar/anonymous/sections",(function(){return(0,r.Z)(n(41016))})),s("discourse/components/sidebar/anonymous/tags-section",(function(){return(0,r.Z)(n(60800))})),s("discourse/components/sidebar/api-panels",(function(){return(0,r.Z)(n(14687))})),s("discourse/components/sidebar/api-section",(function(){return(0,r.Z)(n(21397))})),s("discourse/components/sidebar/api-sections",(function(){return(0,r.Z)(n(49389))})),s("discourse/components/sidebar/common/all-categories-section-link",(function(){return(0,r.Z)(n(54664))})),s("discourse/components/sidebar/common/all-tags-section-link",(function(){return(0,r.Z)(n(87433))})),s("discourse/components/sidebar/common/categories-section",(function(){return(0,r.Z)(n(23146))})),s("discourse/components/sidebar/common/custom-section",(function(){return(0,r.Z)(n(55651))})),s("discourse/components/sidebar/common/custom-sections",(function(){return(0,r.Z)(n(20884))})),s("discourse/components/sidebar/edit-navigation-menu/categories-modal",(function(){return(0,r.Z)(n(978))})),s("discourse/components/sidebar/edit-navigation-menu/modal",(function(){return(0,r.Z)(n(93379))})),s("discourse/components/sidebar/edit-navigation-menu/tags-modal",(function(){return(0,r.Z)(n(16080))})),s("discourse/components/sidebar/footer",(function(){return(0,r.Z)(n(37910))})),s("discourse/components/sidebar/hamburger-dropdown",(function(){return(0,r.Z)(n(75762))})),s("discourse/components/sidebar/more-section-link",(function(){return(0,r.Z)(n(69062))})),s("discourse/components/sidebar/more-section-links",(function(){return(0,r.Z)(n(84766))})),s("discourse/components/sidebar/section-form-link",(function(){return(0,r.Z)(n(74490))})),s("discourse/components/sidebar/section-header",(function(){return(0,r.Z)(n(6528))})),s("discourse/components/sidebar/section-link-button",(function(){return(0,r.Z)(n(92776))})),s("discourse/components/sidebar/section-link-prefix",(function(){return(0,r.Z)(n(52914))})),s("discourse/components/sidebar/section-link",(function(){return(0,r.Z)(n(95665))})),s("discourse/components/sidebar/section-message",(function(){return(0,r.Z)(n(23911))})),s("discourse/components/sidebar/section",(function(){return(0,r.Z)(n(98221))})),s("discourse/components/sidebar/sections",(function(){return(0,r.Z)(n(41413))})),s("discourse/components/sidebar/switch-panel-buttons",(function(){return(0,r.Z)(n(85524))})),s("discourse/components/sidebar/user/categories-section",(function(){return(0,r.Z)(n(19105))})),s("discourse/components/sidebar/user/custom-sections",(function(){return(0,r.Z)(n(80380))})),s("discourse/components/sidebar/user/messages-section",(function(){return(0,r.Z)(n(79771))})),s("discourse/components/sidebar/user/sections",(function(){return(0,r.Z)(n(1509))})),s("discourse/components/sidebar/user/tags-section",(function(){return(0,r.Z)(n(83875))})),s("discourse/components/signup-cta",(function(){return(0,r.Z)(n(99375))})),s("discourse/components/site-header",(function(){return(0,r.Z)(n(87842))})),s("discourse/components/slow-mode-info",(function(){return(0,r.Z)(n(95631))})),s("discourse/components/software-update-prompt",(function(){return(0,r.Z)(n(88228))})),s("discourse/components/sub-category-item",(function(){return(0,r.Z)(n(78463))})),s("discourse/components/sub-category-row",(function(){return(0,r.Z)(n(98465))})),s("discourse/components/subcategories-with-featured-topics",(function(){return(0,r.Z)(n(53793))})),s("discourse/components/suggested-topics",(function(){return(0,r.Z)(n(75562))})),s("discourse/components/summary-box",(function(){return(0,r.Z)(n(1609))})),s("discourse/components/table-header-toggle",(function(){return(0,r.Z)(n(87493))})),s("discourse/components/tag-drop-link",(function(){return(0,r.Z)(n(74652))})),s("discourse/components/tag-groups-form",(function(){return(0,r.Z)(n(88617))})),s("discourse/components/tag-info",(function(){return(0,r.Z)(n(88412))})),s("discourse/components/tag-list",(function(){return(0,r.Z)(n(81689))})),s("discourse/components/tags-admin-dropdown",(function(){return(0,r.Z)(n(40549))})),s("discourse/components/tap-tile-grid",(function(){return(0,r.Z)(n(86588))})),s("discourse/components/tap-tile",(function(){return(0,r.Z)(n(46215))})),s("discourse/components/text-field",(function(){return(0,r.Z)(n(2825))})),s("discourse/components/text-overflow",(function(){return(0,r.Z)(n(96235))})),s("discourse/components/time-input",(function(){return(0,r.Z)(n(88394))})),s("discourse/components/time-shortcut-picker",(function(){return(0,r.Z)(n(99193))})),s("discourse/components/toggle-password-mask",(function(){return(0,r.Z)(n(52067))})),s("discourse/components/token-based-auth-dropdown",(function(){return(0,r.Z)(n(72980))})),s("discourse/components/top-period-buttons",(function(){return(0,r.Z)(n(92120))})),s("discourse/components/topic-admin-menu-button",(function(){return(0,r.Z)(n(60715))})),s("discourse/components/topic-category",(function(){return(0,r.Z)(n(90894))})),s("discourse/components/topic-dismiss-buttons",(function(){return(0,r.Z)(n(72582))})),s("discourse/components/topic-entrance",(function(){return(0,r.Z)(n(93187))})),s("discourse/components/topic-footer-buttons",(function(){return(0,r.Z)(n(53797))})),s("discourse/components/topic-list-item",(function(){return(0,r.Z)(n(13772))})),s("discourse/components/topic-list",(function(){return(0,r.Z)(n(49271))})),s("discourse/components/topic-map/topic-participant",(function(){return(0,r.Z)(n(36817))})),s("discourse/components/topic-map/topic-participants",(function(){return(0,r.Z)(n(30896))})),s("discourse/components/topic-navigation-popup",(function(){return(0,r.Z)(n(27581))})),s("discourse/components/topic-navigation",(function(){return(0,r.Z)(n(67234))})),s("discourse/components/topic-post-badges",(function(){return(0,r.Z)(n(38574))})),s("discourse/components/topic-progress",(function(){return(0,r.Z)(n(69165))})),s("discourse/components/topic-status",(function(){return(0,r.Z)(n(57304))})),s("discourse/components/topic-timeline",(function(){return(0,r.Z)(n(74690))})),s("discourse/components/topic-timeline/back-button",(function(){return(0,r.Z)(n(49787))})),s("discourse/components/topic-timeline/container",(function(){return(0,r.Z)(n(39972))})),s("discourse/components/topic-timeline/scroller",(function(){return(0,r.Z)(n(68748))})),s("discourse/components/topic-timer-info",(function(){return(0,r.Z)(n(79951))})),s("discourse/components/topic-title",(function(){return(0,r.Z)(n(90793))})),s("discourse/components/track-selected",(function(){return(0,r.Z)(n(16174))})),s("discourse/components/two-factor-backup-dropdown",(function(){return(0,r.Z)(n(47862))})),s("discourse/components/uppy-backup-uploader",(function(){return(0,r.Z)(n(37704))})),s("discourse/components/uppy-image-uploader",(function(){return(0,r.Z)(n(18997))})),s("discourse/components/user-avatar-flair",(function(){return(0,r.Z)(n(3167))})),s("discourse/components/user-badge",(function(){return(0,r.Z)(n(50403))})),s("discourse/components/user-card-contents",(function(){return(0,r.Z)(n(85170))})),s("discourse/components/user-field",(function(){return(0,r.Z)(n(66674))})),s("discourse/components/user-fields/base",(function(){return(0,r.Z)(n(13589))})),s("discourse/components/user-fields/confirm",(function(){return(0,r.Z)(n(60561))})),s("discourse/components/user-fields/dropdown",(function(){return(0,r.Z)(n(9465))})),s("discourse/components/user-fields/multiselect",(function(){return(0,r.Z)(n(41315))})),s("discourse/components/user-fields/text",(function(){return(0,r.Z)(n(65915))})),s("discourse/components/user-flag-percentage",(function(){return(0,r.Z)(n(20364))})),s("discourse/components/user-info",(function(){return(0,r.Z)(n(9559))})),s("discourse/components/user-link",(function(){return(0,r.Z)(n(17209))})),s("discourse/components/user-menu/bookmarks-list-empty-state",(function(){return(0,r.Z)(n(77742))})),s("discourse/components/user-menu/bookmarks-list",(function(){return(0,r.Z)(n(63865))})),s("discourse/components/user-menu/icon-avatar",(function(){return(0,r.Z)(n(36630))})),s("discourse/components/user-menu/items-list-empty-state",(function(){return(0,r.Z)(n(78045))})),s("discourse/components/user-menu/items-list",(function(){return(0,r.Z)(n(46191))})),s("discourse/components/user-menu/likes-list-empty-state",(function(){return(0,r.Z)(n(57328))})),s("discourse/components/user-menu/likes-notifications-list",(function(){return(0,r.Z)(n(12399))})),s("discourse/components/user-menu/menu-item",(function(){return(0,r.Z)(n(38586))})),s("discourse/components/user-menu/menu-tab",(function(){return(0,r.Z)(n(78845))})),s("discourse/components/user-menu/menu",(function(){return(0,r.Z)(n(8616))})),s("discourse/components/user-menu/messages-list-empty-state",(function(){return(0,r.Z)(n(77035))})),s("discourse/components/user-menu/messages-list",(function(){return(0,r.Z)(n(43084))})),s("discourse/components/user-menu/notifications-list-empty-state",(function(){return(0,r.Z)(n(57288))})),s("discourse/components/user-menu/notifications-list",(function(){return(0,r.Z)(n(65016))})),s("discourse/components/user-menu/other-notifications-list-empty-state",(function(){return(0,r.Z)(n(95873))})),s("discourse/components/user-menu/other-notifications-list",(function(){return(0,r.Z)(n(62166))})),s("discourse/components/user-menu/profile-tab-content",(function(){return(0,r.Z)(n(84798))})),s("discourse/components/user-menu/replies-notifications-list",(function(){return(0,r.Z)(n(60639))})),s("discourse/components/user-menu/reviewables-list",(function(){return(0,r.Z)(n(14398))})),s("discourse/components/user-nav",(function(){return(0,r.Z)(n(87213))})),s("discourse/components/user-nav/messages-dropdown",(function(){return(0,r.Z)(n(37516))})),s("discourse/components/user-nav/messages-secondary-nav",(function(){return(0,r.Z)(n(58892))})),s("discourse/components/user-notification-schedule-day",(function(){return(0,r.Z)(n(14713))})),s("discourse/components/user-notification-schedule",(function(){return(0,r.Z)(n(5196))})),s("discourse/components/user-preferences/categories",(function(){return(0,r.Z)(n(28788))})),s("discourse/components/user-preferences/passkey-options-dropdown",(function(){return(0,r.Z)(n(98498))})),s("discourse/components/user-preferences/rename-passkey",(function(){return(0,r.Z)(n(13093))})),s("discourse/components/user-preferences/tags",(function(){return(0,r.Z)(n(87717))})),s("discourse/components/user-preferences/topic-tracking",(function(){return(0,r.Z)(n(27352))})),s("discourse/components/user-preferences/user-api-keys",(function(){return(0,r.Z)(n(51812))})),s("discourse/components/user-preferences/user-passkeys",(function(){return(0,r.Z)(n(82081))})),s("discourse/components/user-profile-avatar",(function(){return(0,r.Z)(n(89734))})),s("discourse/components/user-stat",(function(){return(0,r.Z)(n(34410))})),s("discourse/components/user-status-message",(function(){return(0,r.Z)(n(87027))})),s("discourse/components/user-status-picker",(function(){return(0,r.Z)(n(20858))})),s("discourse/components/user-stream-item",(function(){return(0,r.Z)(n(64748))})),s("discourse/components/user-stream",(function(){return(0,r.Z)(n(97521))})),s("discourse/components/user-summary-category-search",(function(){return(0,r.Z)(n(87395))})),s("discourse/components/user-summary-section",(function(){return(0,r.Z)(n(88686))})),s("discourse/components/user-summary-topic",(function(){return(0,r.Z)(n(50275))})),s("discourse/components/user-summary-topics-list",(function(){return(0,r.Z)(n(7631))})),s("discourse/components/user-summary-user",(function(){return(0,r.Z)(n(58400))})),s("discourse/components/user-summary-users-list",(function(){return(0,r.Z)(n(64474))})),s("discourse/components/user-tip-container",(function(){return(0,r.Z)(n(79364))})),s("discourse/components/user-tip",(function(){return(0,r.Z)(n(23335))})),s("discourse/components/username-preference",(function(){return(0,r.Z)(n(92525))})),s("discourse/components/watch-read",(function(){return(0,r.Z)(n(12966))})),s("discourse/components/dialog-holder",(function(){return(0,r.Z)(n(85393))})),s("discourse/components/d-button-tooltip",(function(){return(0,r.Z)(n(79859))})),s("discourse/components/d-default-toast",(function(){return(0,r.Z)(n(68259))})),s("discourse/components/d-inline-menu",(function(){return(0,r.Z)(n(9515))})),s("discourse/components/d-inline-tooltip",(function(){return(0,r.Z)(n(66767))})),s("discourse/components/d-menu",(function(){return(0,r.Z)(n(18556))})),s("discourse/components/d-popover",(function(){return(0,r.Z)(n(13579))})),s("discourse/components/d-toasts",(function(){return(0,r.Z)(n(82151))})),s("discourse/components/d-tooltip",(function(){return(0,r.Z)(n(26371))})),s("discourse/helpers/age-with-tooltip",(function(){return(0,r.Z)(n(19601))})),s("discourse/helpers/avatar",(function(){return(0,r.Z)(n(15080))})),s("discourse/helpers/body-class",(function(){return(0,r.Z)(n(56244))})),s("discourse/helpers/border-color",(function(){return(0,r.Z)(n(76558))})),s("discourse/helpers/bound-avatar-template",(function(){return(0,r.Z)(n(16917))})),s("discourse/helpers/bound-avatar",(function(){return(0,r.Z)(n(63133))})),s("discourse/helpers/bound-category-link",(function(){return(0,r.Z)(n(82251))})),s("discourse/helpers/bound-date",(function(){return(0,r.Z)(n(98726))})),s("discourse/helpers/capitalize-string",(function(){return(0,r.Z)(n(77819))})),s("discourse/helpers/category-badge",(function(){return(0,r.Z)(n(94370))})),s("discourse/helpers/category-color-variable",(function(){return(0,r.Z)(n(94925))})),s("discourse/helpers/category-link",(function(){return(0,r.Z)(n(6659))})),s("discourse/helpers/category-variables",(function(){return(0,r.Z)(n(34933))})),s("discourse/helpers/cold-age-class",(function(){return(0,r.Z)(n(36391))})),s("discourse/helpers/concat-class",(function(){return(0,r.Z)(n(99230))})),s("discourse/helpers/custom-html",(function(){return(0,r.Z)(n(9726))})),s("discourse/helpers/dash-if-empty",(function(){return(0,r.Z)(n(41826))})),s("discourse/helpers/dasherize",(function(){return(0,r.Z)(n(84869))})),s("discourse/helpers/decorate-username-selector",(function(){return(0,r.Z)(n(58831))})),s("discourse/helpers/dir-span",(function(){return(0,r.Z)(n(56259))})),s("discourse/helpers/directory-column-is-automatic",(function(){return(0,r.Z)(n(30430))})),s("discourse/helpers/directory-column-is-user-field",(function(){return(0,r.Z)(n(98115))})),s("discourse/helpers/directory-item-label",(function(){return(0,r.Z)(n(52962))})),s("discourse/helpers/directory-item-user-field-value",(function(){return(0,r.Z)(n(47697))})),s("discourse/helpers/directory-item-value",(function(){return(0,r.Z)(n(34321))})),s("discourse/helpers/directory-table-header-title",(function(){return(0,r.Z)(n(34114))})),s("discourse/helpers/discourse-tag",(function(){return(0,r.Z)(n(91041))})),s("discourse/helpers/discourse-tags",(function(){return(0,r.Z)(n(88398))})),s("discourse/helpers/editable-value",(function(){return(0,r.Z)(n(19266))})),s("discourse/helpers/emoji",(function(){return(0,r.Z)(n(46978))})),s("discourse/helpers/fa-icon-node",(function(){return(0,r.Z)(n(60991))})),s("discourse/helpers/float",(function(){return(0,r.Z)(n(4365))})),s("discourse/helpers/format-age",(function(){return(0,r.Z)(n(31016))})),s("discourse/helpers/format-date",(function(){return(0,r.Z)(n(35391))})),s("discourse/helpers/format-duration",(function(){return(0,r.Z)(n(22202))})),s("discourse/helpers/format-username",(function(){return(0,r.Z)(n(17530))})),s("discourse/helpers/hide-application-footer",(function(){return(0,r.Z)(n(74322))})),s("discourse/helpers/html-class",(function(){return(0,r.Z)(n(72455))})),s("discourse/helpers/icon-or-image",(function(){return(0,r.Z)(n(94852))})),s("discourse/helpers/inline-date",(function(){return(0,r.Z)(n(82682))})),s("discourse/helpers/loading-spinner",(function(){return(0,r.Z)(n(94312))})),s("discourse/helpers/node",(function(){return(0,r.Z)(n(47090))})),s("discourse/helpers/noop",(function(){return(0,r.Z)(n(73552))})),s("discourse/helpers/number",(function(){return(0,r.Z)(n(20006))})),s("discourse/helpers/page-reloader",(function(){return(0,r.Z)(n(49508))})),s("discourse/helpers/period-title",(function(){return(0,r.Z)(n(96472))})),s("discourse/helpers/raw-date",(function(){return(0,r.Z)(n(12332))})),s("discourse/helpers/raw-plugin-outlet",(function(){return(0,r.Z)(n(65943))})),s("discourse/helpers/raw",(function(){return(0,r.Z)(n(47295))})),s("discourse/helpers/replace-emoji",(function(){return(0,r.Z)(n(76304))})),s("discourse/helpers/reviewable-history-description",(function(){return(0,r.Z)(n(29877))})),s("discourse/helpers/reviewable-status",(function(){return(0,r.Z)(n(91644))})),s("discourse/helpers/route-action",(function(){return(0,r.Z)(n(82757))})),s("discourse/helpers/share-url",(function(){return(0,r.Z)(n(40960))})),s("discourse/helpers/shorten-url",(function(){return(0,r.Z)(n(69152))})),s("discourse/helpers/slice",(function(){return(0,r.Z)(n(10209))})),s("discourse/helpers/slow-mode",(function(){return(0,r.Z)(n(85947))})),s("discourse/helpers/theme-i18n",(function(){return(0,r.Z)(n(12917))})),s("discourse/helpers/theme-prefix",(function(){return(0,r.Z)(n(51919))})),s("discourse/helpers/theme-setting",(function(){return(0,r.Z)(n(95905))})),s("discourse/helpers/topic-featured-link",(function(){return(0,r.Z)(n(2581))})),s("discourse/helpers/topic-link",(function(){return(0,r.Z)(n(29581))})),s("discourse/helpers/topic-status-icons",(function(){return(0,r.Z)(n(45733))})),s("discourse/helpers/unique-id",(function(){return(0,r.Z)(n(18986))})),s("discourse/helpers/user-avatar",(function(){return(0,r.Z)(n(32605))})),s("discourse/helpers/user-status",(function(){return(0,r.Z)(n(67153))})),s("discourse/helpers/value-entered",(function(){return(0,r.Z)(n(19954))})),s("discourse/helpers/ensure-safe-component",(function(){return(0,r.Z)(n(72708))})),s("discourse/helpers/app-version",(function(){return(0,r.Z)(n(44669))})),s("discourse/modifiers/auto-focus",(function(){return(0,r.Z)(n(67835))})),s("discourse/modifiers/draggable",(function(){return(0,r.Z)(n(71846))})),s("discourse/modifiers/sticky-avatars",(function(){return(0,r.Z)(n(35599))})),s("discourse/modifiers/trap-tab",(function(){return(0,r.Z)(n(11589))})),s("discourse/modifiers/did-insert",(function(){return(0,r.Z)(n(53843))})),s("discourse/modifiers/did-update",(function(){return(0,r.Z)(n(50992))})),s("discourse/modifiers/will-destroy",(function(){return(0,r.Z)(n(52474))})),s("discourse/modifiers/on-resize",(function(){return(0,r.Z)(n(39359))})),s("discourse/templates/about",(function(){return(0,r.Z)(n(56773))})),s("discourse/controllers/about",(function(){return(0,r.Z)(n(8249))})),s("discourse/routes/about",(function(){return(0,r.Z)(n(37696))})),s("discourse/controllers/account-created-edit-email",(function(){return(0,r.Z)(n(90422))})),s("discourse/routes/account-created-edit-email",(function(){return(0,r.Z)(n(41465))})),s("discourse/controllers/account-created-index",(function(){return(0,r.Z)(n(61583))})),s("discourse/routes/account-created-index",(function(){return(0,r.Z)(n(36952))})),s("discourse/templates/application",(function(){return(0,r.Z)(n(51660))})),s("discourse/controllers/application",(function(){return(0,r.Z)(n(44427))})),s("discourse/routes/application",(function(){return(0,r.Z)(n(15269))})),s("discourse/templates/badges/index",(function(){return(0,r.Z)(n(19644))})),s("discourse/controllers/badges/index",(function(){return(0,r.Z)(n(39525))})),s("discourse/templates/badges/show",(function(){return(0,r.Z)(n(42435))})),s("discourse/controllers/badges/show",(function(){return(0,r.Z)(n(94092))})),s("discourse/controllers/basic-modal-body",(function(){return(0,r.Z)(n(69673))})),s("discourse/controllers/composer",(function(){return(0,r.Z)(n(65481))})),s("discourse/templates/composer/dominating-topic",(function(){return(0,r.Z)(n(69298))})),s("discourse/templates/composer/education",(function(){return(0,r.Z)(n(15807))})),s("discourse/templates/composer/get-a-room",(function(){return(0,r.Z)(n(21155))})),s("discourse/templates/composer/group-mentioned",(function(){return(0,r.Z)(n(80698))})),s("discourse/templates/composer/similar-topics",(function(){return(0,r.Z)(n(24914))})),s("discourse/templates/confirm-new-email",(function(){return(0,r.Z)(n(30293))})),s("discourse/controllers/confirm-new-email",(function(){return(0,r.Z)(n(24586))})),s("discourse/routes/confirm-new-email",(function(){return(0,r.Z)(n(33313))})),s("discourse/templates/confirm-old-email",(function(){return(0,r.Z)(n(5483))})),s("discourse/controllers/confirm-old-email",(function(){return(0,r.Z)(n(11146))})),s("discourse/routes/confirm-old-email",(function(){return(0,r.Z)(n(65020))})),s("discourse/routes/discovery",(function(){return(0,r.Z)(n(23653))})),s("discourse/templates/discovery/categories",(function(){return(0,r.Z)(n(58673))})),s("discourse/controllers/discovery/categories",(function(){return(0,r.Z)(n(60066))})),s("discourse/templates/discovery/filter",(function(){return(0,r.Z)(n(57548))})),s("discourse/controllers/discovery/filter",(function(){return(0,r.Z)(n(70171))})),s("discourse/templates/discovery/list",(function(){return(0,r.Z)(n(11209))})),s("discourse/controllers/discovery/list",(function(){return(0,r.Z)(n(48541))})),s("discourse/templates/edit-category-tabs",(function(){return(0,r.Z)(n(81988))})),s("discourse/controllers/edit-category-tabs",(function(){return(0,r.Z)(n(26940))})),s("discourse/routes/edit-category-tabs",(function(){return(0,r.Z)(n(75955))})),s("discourse/templates/email-login",(function(){return(0,r.Z)(n(5137))})),s("discourse/controllers/email-login",(function(){return(0,r.Z)(n(35100))})),s("discourse/routes/email-login",(function(){return(0,r.Z)(n(68332))})),s("discourse/templates/exception",(function(){return(0,r.Z)(n(59341))})),s("discourse/controllers/exception",(function(){return(0,r.Z)(n(20194))})),s("discourse/routes/exception",(function(){return(0,r.Z)(n(29271))})),s("discourse/templates/full-page-search",(function(){return(0,r.Z)(n(67141))})),s("discourse/controllers/full-page-search",(function(){return(0,r.Z)(n(74424))})),s("discourse/routes/full-page-search",(function(){return(0,r.Z)(n(37840))})),s("discourse/templates/group-activity-posts",(function(){return(0,r.Z)(n(35170))})),s("discourse/controllers/group-activity-posts",(function(){return(0,r.Z)(n(85262))})),s("discourse/routes/group-activity-posts",(function(){return(0,r.Z)(n(40303))})),s("discourse/templates/group-activity-topics",(function(){return(0,r.Z)(n(84107))})),s("discourse/controllers/group-activity-topics",(function(){return(0,r.Z)(n(2976))})),s("discourse/routes/group-activity-topics",(function(){return(0,r.Z)(n(18265))})),s("discourse/controllers/group-activity",(function(){return(0,r.Z)(n(18708))})),s("discourse/templates/group-index",(function(){return(0,r.Z)(n(21270))})),s("discourse/controllers/group-index",(function(){return(0,r.Z)(n(56648))})),s("discourse/routes/group-index",(function(){return(0,r.Z)(n(3591))})),s("discourse/controllers/group-manage-categories",(function(){return(0,r.Z)(n(26504))})),s("discourse/routes/group-manage-categories",(function(){return(0,r.Z)(n(32791))})),s("discourse/controllers/group-manage-logs",(function(){return(0,r.Z)(n(81481))})),s("discourse/routes/group-manage-logs",(function(){return(0,r.Z)(n(15164))})),s("discourse/controllers/group-manage-profile",(function(){return(0,r.Z)(n(97645))})),s("discourse/routes/group-manage-profile",(function(){return(0,r.Z)(n(13293))})),s("discourse/controllers/group-manage-tags",(function(){return(0,r.Z)(n(55189))})),s("discourse/routes/group-manage-tags",(function(){return(0,r.Z)(n(24647))})),s("discourse/controllers/group-manage",(function(){return(0,r.Z)(n(72899))})),s("discourse/routes/group-manage",(function(){return(0,r.Z)(n(88437))})),s("discourse/controllers/group-messages",(function(){return(0,r.Z)(n(41200))})),s("discourse/routes/group-messages",(function(){return(0,r.Z)(n(37268))})),s("discourse/controllers/group-permissions",(function(){return(0,r.Z)(n(85480))})),s("discourse/routes/group-permissions",(function(){return(0,r.Z)(n(76140))})),s("discourse/templates/group-requests",(function(){return(0,r.Z)(n(40606))})),s("discourse/controllers/group-requests",(function(){return(0,r.Z)(n(44343))})),s("discourse/routes/group-requests",(function(){return(0,r.Z)(n(7825))})),s("discourse/templates/group",(function(){return(0,r.Z)(n(45853))})),s("discourse/controllers/group",(function(){return(0,r.Z)(n(32583))})),s("discourse/routes/group",(function(){return(0,r.Z)(n(23136))})),s("discourse/templates/group/activity",(function(){return(0,r.Z)(n(9980))})),s("discourse/templates/group/manage",(function(){return(0,r.Z)(n(44949))})),s("discourse/templates/group/manage/categories",(function(){return(0,r.Z)(n(17312))})),s("discourse/templates/group/manage/email",(function(){return(0,r.Z)(n(74147))})),s("discourse/templates/group/manage/interaction",(function(){return(0,r.Z)(n(48718))})),s("discourse/templates/group/manage/logs",(function(){return(0,r.Z)(n(65172))})),s("discourse/templates/group/manage/membership",(function(){return(0,r.Z)(n(56488))})),s("discourse/templates/group/manage/profile",(function(){return(0,r.Z)(n(85503))})),s("discourse/templates/group/manage/tags",(function(){return(0,r.Z)(n(79e3))})),s("discourse/templates/group/messages",(function(){return(0,r.Z)(n(31803))})),s("discourse/templates/group/permissions",(function(){return(0,r.Z)(n(1804))})),s("discourse/controllers/groups-index",(function(){return(0,r.Z)(n(85878))})),s("discourse/routes/groups-index",(function(){return(0,r.Z)(n(3139))})),s("discourse/controllers/groups-new",(function(){return(0,r.Z)(n(44635))})),s("discourse/routes/groups-new",(function(){return(0,r.Z)(n(97671))})),s("discourse/controllers/invites-show",(function(){return(0,r.Z)(n(63466))})),s("discourse/routes/invites-show",(function(){return(0,r.Z)(n(22121))})),s("discourse/controllers/login-page",(function(){return(0,r.Z)(n(47930))})),s("discourse/templates/password-reset",(function(){return(0,r.Z)(n(32133))})),s("discourse/controllers/password-reset",(function(){return(0,r.Z)(n(27869))})),s("discourse/routes/password-reset",(function(){return(0,r.Z)(n(47623))})),s("discourse/templates/preferences",(function(){return(0,r.Z)(n(38668))})),s("discourse/controllers/preferences",(function(){return(0,r.Z)(n(3865))})),s("discourse/routes/preferences",(function(){return(0,r.Z)(n(81048))})),s("discourse/templates/preferences/account",(function(){return(0,r.Z)(n(36606))})),s("discourse/controllers/preferences/account",(function(){return(0,r.Z)(n(28210))})),s("discourse/templates/preferences/categories",(function(){return(0,r.Z)(n(18878))})),s("discourse/controllers/preferences/categories",(function(){return(0,r.Z)(n(16609))})),s("discourse/controllers/preferences/email",(function(){return(0,r.Z)(n(61320))})),s("discourse/templates/preferences/emails",(function(){return(0,r.Z)(n(30951))})),s("discourse/controllers/preferences/emails",(function(){return(0,r.Z)(n(61395))})),s("discourse/templates/preferences/interface",(function(){return(0,r.Z)(n(61718))})),s("discourse/controllers/preferences/interface",(function(){return(0,r.Z)(n(57049))})),s("discourse/templates/preferences/navigation-menu",(function(){return(0,r.Z)(n(64659))})),s("discourse/controllers/preferences/navigation-menu",(function(){return(0,r.Z)(n(93963))})),s("discourse/templates/preferences/notifications",(function(){return(0,r.Z)(n(57241))})),s("discourse/controllers/preferences/notifications",(function(){return(0,r.Z)(n(46735))})),s("discourse/templates/preferences/profile",(function(){return(0,r.Z)(n(62503))})),s("discourse/controllers/preferences/profile",(function(){return(0,r.Z)(n(95590))})),s("discourse/controllers/preferences/second-factor",(function(){return(0,r.Z)(n(27222))})),s("discourse/templates/preferences/security",(function(){return(0,r.Z)(n(74484))})),s("discourse/controllers/preferences/security",(function(){return(0,r.Z)(n(61142))})),s("discourse/templates/preferences/tags",(function(){return(0,r.Z)(n(6940))})),s("discourse/controllers/preferences/tags",(function(){return(0,r.Z)(n(28256))})),s("discourse/templates/preferences/tracking",(function(){return(0,r.Z)(n(71888))})),s("discourse/controllers/preferences/tracking",(function(){return(0,r.Z)(n(79953))})),s("discourse/templates/preferences/users",(function(){return(0,r.Z)(n(48391))})),s("discourse/controllers/preferences/users",(function(){return(0,r.Z)(n(64873))})),s("discourse/templates/preferences/apps",(function(){return(0,r.Z)(n(27505))})),s("discourse/templates/review-index",(function(){return(0,r.Z)(n(41045))})),s("discourse/controllers/review-index",(function(){return(0,r.Z)(n(84784))})),s("discourse/routes/review-index",(function(){return(0,r.Z)(n(146))})),s("discourse/templates/review-settings",(function(){return(0,r.Z)(n(45830))})),s("discourse/controllers/review-settings",(function(){return(0,r.Z)(n(43435))})),s("discourse/routes/review-settings",(function(){return(0,r.Z)(n(77789))})),s("discourse/templates/second-factor-auth",(function(){return(0,r.Z)(n(84133))})),s("discourse/controllers/second-factor-auth",(function(){return(0,r.Z)(n(92596))})),s("discourse/routes/second-factor-auth",(function(){return(0,r.Z)(n(48802))})),s("discourse/templates/tag-groups-edit",(function(){return(0,r.Z)(n(18258))})),s("discourse/controllers/tag-groups-edit",(function(){return(0,r.Z)(n(86570))})),s("discourse/routes/tag-groups-edit",(function(){return(0,r.Z)(n(58516))})),s("discourse/templates/tag-groups-new",(function(){return(0,r.Z)(n(38645))})),s("discourse/controllers/tag-groups-new",(function(){return(0,r.Z)(n(90830))})),s("discourse/routes/tag-groups-new",(function(){return(0,r.Z)(n(10643))})),s("discourse/templates/tag-groups",(function(){return(0,r.Z)(n(24690))})),s("discourse/controllers/tag-groups",(function(){return(0,r.Z)(n(65720))})),s("discourse/routes/tag-groups",(function(){return(0,r.Z)(n(8236))})),s("discourse/controllers/tags-index",(function(){return(0,r.Z)(n(23))})),s("discourse/routes/tags-index",(function(){return(0,r.Z)(n(49774))})),s("discourse/controllers/tags-intersection",(function(){return(0,r.Z)(n(4683))})),s("discourse/routes/tags-intersection",(function(){return(0,r.Z)(n(49274))})),s("discourse/templates/topic",(function(){return(0,r.Z)(n(84299))})),s("discourse/controllers/topic",(function(){return(0,r.Z)(n(95563))})),s("discourse/routes/topic",(function(){return(0,r.Z)(n(99765))})),s("discourse/controllers/user-activity-bookmarks",(function(){return(0,r.Z)(n(51503))})),s("discourse/routes/user-activity-bookmarks",(function(){return(0,r.Z)(n(36707))})),s("discourse/controllers/user-activity",(function(){return(0,r.Z)(n(76990))})),s("discourse/routes/user-activity",(function(){return(0,r.Z)(n(85727))})),s("discourse/controllers/user-badges",(function(){return(0,r.Z)(n(38933))})),s("discourse/routes/user-badges",(function(){return(0,r.Z)(n(99192))})),s("discourse/templates/user-invited-show",(function(){return(0,r.Z)(n(75359))})),s("discourse/controllers/user-invited-show",(function(){return(0,r.Z)(n(8897))})),s("discourse/routes/user-invited-show",(function(){return(0,r.Z)(n(57028))})),s("discourse/templates/user-invited",(function(){return(0,r.Z)(n(32552))})),s("discourse/controllers/user-invited",(function(){return(0,r.Z)(n(45504))})),s("discourse/routes/user-invited",(function(){return(0,r.Z)(n(77949))})),s("discourse/controllers/user-notifications",(function(){return(0,r.Z)(n(45105))})),s("discourse/routes/user-notifications",(function(){return(0,r.Z)(n(84199))})),s("discourse/controllers/user-posts",(function(){return(0,r.Z)(n(53986))})),s("discourse/templates/user-private-messages-group",(function(){return(0,r.Z)(n(96178))})),s("discourse/controllers/user-private-messages-group",(function(){return(0,r.Z)(n(39029))})),s("discourse/routes/user-private-messages-group",(function(){return(0,r.Z)(n(60265))})),s("discourse/templates/user-private-messages-tags-index",(function(){return(0,r.Z)(n(77497))})),s("discourse/controllers/user-private-messages-tags-index",(function(){return(0,r.Z)(n(75672))})),s("discourse/routes/user-private-messages-tags-index",(function(){return(0,r.Z)(n(29682))})),s("discourse/templates/user-private-messages-tags",(function(){return(0,r.Z)(n(7444))})),s("discourse/controllers/user-private-messages-tags",(function(){return(0,r.Z)(n(56163))})),s("discourse/routes/user-private-messages-tags",(function(){return(0,r.Z)(n(6737))})),s("discourse/templates/user-private-messages-user",(function(){return(0,r.Z)(n(33301))})),s("discourse/controllers/user-private-messages-user",(function(){return(0,r.Z)(n(34722))})),s("discourse/routes/user-private-messages-user",(function(){return(0,r.Z)(n(24768))})),s("discourse/controllers/user-private-messages",(function(){return(0,r.Z)(n(96426))})),s("discourse/routes/user-private-messages",(function(){return(0,r.Z)(n(35304))})),s("discourse/controllers/user-summary",(function(){return(0,r.Z)(n(84949))})),s("discourse/routes/user-summary",(function(){return(0,r.Z)(n(26494))})),s("discourse/templates/user-topics-list",(function(){return(0,r.Z)(n(19652))})),s("discourse/controllers/user-topics-list",(function(){return(0,r.Z)(n(33195))})),s("discourse/templates/user",(function(){return(0,r.Z)(n(14989))})),s("discourse/controllers/user",(function(){return(0,r.Z)(n(70611))})),s("discourse/routes/user",(function(){return(0,r.Z)(n(31242))})),s("discourse/templates/user/activity",(function(){return(0,r.Z)(n(59202))})),s("discourse/templates/user/badges",(function(){return(0,r.Z)(n(69356))})),s("discourse/templates/user/bookmarks",(function(){return(0,r.Z)(n(14338))})),s("discourse/templates/user/messages",(function(){return(0,r.Z)(n(75607))})),s("discourse/templates/user/notifications-index",(function(){return(0,r.Z)(n(89456))})),s("discourse/templates/user/notifications",(function(){return(0,r.Z)(n(7538))})),s("discourse/templates/user/posts",(function(){return(0,r.Z)(n(2505))})),s("discourse/templates/user/profile-hidden",(function(){return(0,r.Z)(n(68986))})),s("discourse/templates/user/stream",(function(){return(0,r.Z)(n(14097))})),s("discourse/templates/user/summary",(function(){return(0,r.Z)(n(98077))})),s("discourse/templates/users",(function(){return(0,r.Z)(n(30811))})),s("discourse/controllers/users",(function(){return(0,r.Z)(n(13783))})),s("discourse/routes/users",(function(){return(0,r.Z)(n(34997))})),s("discourse/routes/account-created-resent",(function(){return(0,r.Z)(n(35635))})),s("discourse/templates/account-created",(function(){return(0,r.Z)(n(4363))})),s("discourse/routes/account-created",(function(){return(0,r.Z)(n(36710))})),s("discourse/templates/account-created/edit-email",(function(){return(0,r.Z)(n(32433))})),s("discourse/templates/account-created/index",(function(){return(0,r.Z)(n(71344))})),s("discourse/templates/account-created/resent",(function(){return(0,r.Z)(n(72415))})),s("discourse/routes/app-route-map",(function(){return(0,r.Z)(n(40926))})),s("discourse/routes/associate-account",(function(){return(0,r.Z)(n(59232))})),s("discourse/routes/badges-index",(function(){return(0,r.Z)(n(21722))})),s("discourse/routes/badges-show",(function(){return(0,r.Z)(n(1166))})),s("discourse/routes/build-category-route",(function(){return(0,r.Z)(n(90041))})),s("discourse/routes/build-group-messages-route",(function(){return(0,r.Z)(n(58751))})),s("discourse/routes/build-private-messages-group-route",(function(){return(0,r.Z)(n(76030))})),s("discourse/routes/build-private-messages-route",(function(){return(0,r.Z)(n(27397))})),s("discourse/routes/build-topic-route",(function(){return(0,r.Z)(n(69999))})),s("discourse/routes/conduct",(function(){return(0,r.Z)(n(97989))})),s("discourse/routes/discourse",(function(){return(0,r.Z)(n(74570))})),s("discourse/routes/discovery-categories",(function(){return(0,r.Z)(n(92355))})),s("discourse/routes/discovery-filter",(function(){return(0,r.Z)(n(9072))})),s("discourse/routes/discovery-index",(function(){return(0,r.Z)(n(14030))})),s("discourse/routes/edit-category-index",(function(){return(0,r.Z)(n(34011))})),s("discourse/routes/edit-category",(function(){return(0,r.Z)(n(4769))})),s("discourse/routes/exception-unknown",(function(){return(0,r.Z)(n(51238))})),s("discourse/templates/faq",(function(){return(0,r.Z)(n(55069))})),s("discourse/routes/faq",(function(){return(0,r.Z)(n(66160))})),s("discourse/routes/forgot-password",(function(){return(0,r.Z)(n(78417))})),s("discourse/routes/group-activity-index",(function(){return(0,r.Z)(n(38219))})),s("discourse/routes/group-activity-mentions",(function(){return(0,r.Z)(n(51563))})),s("discourse/routes/group-manage-email",(function(){return(0,r.Z)(n(22378))})),s("discourse/routes/group-manage-index",(function(){return(0,r.Z)(n(56376))})),s("discourse/routes/group-manage-interaction",(function(){return(0,r.Z)(n(21474))})),s("discourse/routes/group-manage-membership",(function(){return(0,r.Z)(n(34695))})),s("discourse/routes/group-members",(function(){return(0,r.Z)(n(65884))})),s("discourse/routes/group-messages-archive",(function(){return(0,r.Z)(n(69902))})),s("discourse/routes/group-messages-inbox",(function(){return(0,r.Z)(n(21244))})),s("discourse/routes/group-messages-index",(function(){return(0,r.Z)(n(54709))})),s("discourse/routes/guidelines",(function(){return(0,r.Z)(n(60855))})),s("discourse/templates/login",(function(){return(0,r.Z)(n(70530))})),s("discourse/routes/login",(function(){return(0,r.Z)(n(48611))})),s("discourse/routes/new-category",(function(){return(0,r.Z)(n(46621))})),s("discourse/routes/new-message",(function(){return(0,r.Z)(n(40394))})),s("discourse/routes/new-topic",(function(){return(0,r.Z)(n(5268))})),s("discourse/routes/post",(function(){return(0,r.Z)(n(58790))})),s("discourse/routes/preferences-account",(function(){return(0,r.Z)(n(36820))})),s("discourse/routes/preferences-apps",(function(){return(0,r.Z)(n(48407))})),s("discourse/routes/preferences-categories",(function(){return(0,r.Z)(n(1049))})),s("discourse/templates/preferences-email",(function(){return(0,r.Z)(n(23975))})),s("discourse/routes/preferences-email",(function(){return(0,r.Z)(n(39241))})),s("discourse/routes/preferences-emails",(function(){return(0,r.Z)(n(81272))})),s("discourse/routes/preferences-index",(function(){return(0,r.Z)(n(79509))})),s("discourse/routes/preferences-interface",(function(){return(0,r.Z)(n(4950))})),s("discourse/routes/preferences-navigation-menu",(function(){return(0,r.Z)(n(77707))})),s("discourse/routes/preferences-notifications",(function(){return(0,r.Z)(n(6482))})),s("discourse/routes/preferences-profile",(function(){return(0,r.Z)(n(25379))})),s("discourse/templates/preferences-second-factor",(function(){return(0,r.Z)(n(31555))})),s("discourse/routes/preferences-second-factor",(function(){return(0,r.Z)(n(48354))})),s("discourse/routes/preferences-security",(function(){return(0,r.Z)(n(17780))})),s("discourse/routes/preferences-tags",(function(){return(0,r.Z)(n(84353))})),s("discourse/routes/preferences-tracking",(function(){return(0,r.Z)(n(36990))})),s("discourse/routes/preferences-users",(function(){return(0,r.Z)(n(12215))})),s("discourse/templates/privacy",(function(){return(0,r.Z)(n(39868))})),s("discourse/routes/privacy",(function(){return(0,r.Z)(n(95e3))})),s("discourse/routes/restricted-user",(function(){return(0,r.Z)(n(99650))})),s("discourse/templates/review-show",(function(){return(0,r.Z)(n(9379))})),s("discourse/routes/review-show",(function(){return(0,r.Z)(n(29341))})),s("discourse/templates/review-topics",(function(){return(0,r.Z)(n(77636))})),s("discourse/routes/review-topics",(function(){return(0,r.Z)(n(31637))})),s("discourse/templates/review",(function(){return(0,r.Z)(n(55380))})),s("discourse/routes/review",(function(){return(0,r.Z)(n(31667))})),s("discourse/routes/rules",(function(){return(0,r.Z)(n(30556))})),s("discourse/routes/signup",(function(){return(0,r.Z)(n(51067))})),s("discourse/routes/tag-show",(function(){return(0,r.Z)(n(60569))})),s("discourse/routes/tags-legacy-redirect",(function(){return(0,r.Z)(n(45982))})),s("discourse/routes/topic-by-slug-or-id",(function(){return(0,r.Z)(n(68220))})),s("discourse/routes/topic-from-params-near",(function(){return(0,r.Z)(n(23157))})),s("discourse/routes/topic-from-params",(function(){return(0,r.Z)(n(54623))})),s("discourse/templates/tos",(function(){return(0,r.Z)(n(75597))})),s("discourse/routes/tos",(function(){return(0,r.Z)(n(13158))})),s("discourse/templates/unknown",(function(){return(0,r.Z)(n(36965))})),s("discourse/routes/unknown",(function(){return(0,r.Z)(n(87218))})),s("discourse/routes/user-activity-bookmarks-with-reminders",(function(){return(0,r.Z)(n(37580))})),s("discourse/routes/user-activity-drafts",(function(){return(0,r.Z)(n(20422))})),s("discourse/routes/user-activity-index",(function(){return(0,r.Z)(n(92146))})),s("discourse/routes/user-activity-likes-given",(function(){return(0,r.Z)(n(87692))})),s("discourse/templates/user-activity-pending",(function(){return(0,r.Z)(n(17938))})),s("discourse/routes/user-activity-pending",(function(){return(0,r.Z)(n(66148))})),s("discourse/routes/user-activity-read",(function(){return(0,r.Z)(n(38457))})),s("discourse/routes/user-activity-replies",(function(){return(0,r.Z)(n(17918))})),s("discourse/routes/user-activity-stream",(function(){return(0,r.Z)(n(61153))})),s("discourse/routes/user-activity-topics",(function(){return(0,r.Z)(n(53905))})),s("discourse/routes/user-deleted-posts",(function(){return(0,r.Z)(n(60693))})),s("discourse/routes/user-index",(function(){return(0,r.Z)(n(37756))})),s("discourse/routes/user-invited-index",(function(){return(0,r.Z)(n(53808))})),s("discourse/routes/user-notifications-edits",(function(){return(0,r.Z)(n(60406))})),s("discourse/routes/user-notifications-index",(function(){return(0,r.Z)(n(83471))})),s("discourse/routes/user-notifications-likes-received",(function(){return(0,r.Z)(n(24397))})),s("discourse/routes/user-notifications-mentions",(function(){return(0,r.Z)(n(44846))})),s("discourse/routes/user-notifications-responses",(function(){return(0,r.Z)(n(93270))})),s("discourse/routes/user-private-messages-group-archive",(function(){return(0,r.Z)(n(37771))})),s("discourse/routes/user-private-messages-group-index",(function(){return(0,r.Z)(n(47053))})),s("discourse/routes/user-private-messages-group-new",(function(){return(0,r.Z)(n(82405))})),s("discourse/routes/user-private-messages-group-unread",(function(){return(0,r.Z)(n(52441))})),s("discourse/routes/user-private-messages-tags-show",(function(){return(0,r.Z)(n(32314))})),s("discourse/routes/user-private-messages-user-archive",(function(){return(0,r.Z)(n(706))})),s("discourse/routes/user-private-messages-user-index",(function(){return(0,r.Z)(n(80797))})),s("discourse/routes/user-private-messages-user-new",(function(){return(0,r.Z)(n(4470))})),s("discourse/routes/user-private-messages-user-sent",(function(){return(0,r.Z)(n(53722))})),s("discourse/routes/user-private-messages-user-unread",(function(){return(0,r.Z)(n(32782))})),s("discourse/routes/user-private-messages-user-warnings",(function(){return(0,r.Z)(n(89045))})),s("discourse/routes/user-topic-list",(function(){return(0,r.Z)(n(80846))})),s("discourse/templates/groups/index",(function(){return(0,r.Z)(n(45464))})),s("discourse/templates/groups/new",(function(){return(0,r.Z)(n(78927))})),s("discourse/templates/hide-modal",(function(){return(0,r.Z)(n(87526))})),s("discourse/templates/invites",(function(){return(0,r.Z)(n(59239))})),s("discourse/templates/invites/show",(function(){return(0,r.Z)(n(91900))})),s("discourse/templates/loading",(function(){return(0,r.Z)(n(66795))})),s("discourse/templates/login-preferences",(function(){return(0,r.Z)(n(64530))})),s("discourse/templates/mobile/components/categories-only",(function(){return(0,r.Z)(n(58067))})),s("discourse/templates/mobile/components/parent-category-row",(function(){return(0,r.Z)(n(80507))})),s("discourse/templates/mobile/components/sub-category-item",(function(){return(0,r.Z)(n(58344))})),s("discourse/templates/mobile/components/sub-category-row",(function(){return(0,r.Z)(n(4788))})),s("discourse/templates/mobile/components/subcategories-with-featured-topics",(function(){return(0,r.Z)(n(72292))})),s("discourse/templates/selected-posts",(function(){return(0,r.Z)(n(1752))})),s("discourse/templates/tag-groups-index",(function(){return(0,r.Z)(n(87764))})),s("discourse/templates/tags",(function(){return(0,r.Z)(n(60733))})),s("discourse/templates/tags/index",(function(){return(0,r.Z)(n(46386))})),i._embroiderRouteBundles_=[{names:["wizard","wizard.index","wizard.step"],load:function(){return n.e(402).then(n.bind(n,67402))}}]},52069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(17579),u=n(24434),d=n(32605),p=n(9387),h=n(20229),m=n(91423),g=n(8620),f=n(31691);let b=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"siteSettings",i,this)}get usersTemplates(){return(this.args.users||[]).map((e=>({name:e.name,username:e.username,userPath:(0,h.userPath)(e.username),avatar:(0,d.renderAvatar)(e,{imageSize:"large",siteSettings:this.siteSettings}),title:e.title||"",prioritizeName:(0,p.prioritizeNameInUx)(e.name)})))}},(0,f.setComponentTemplate)((0,g.createTemplateFactory)({id:"P++QB/rw",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["usersTemplates"]]],null]],null],null,[[[1,"      "],[10,0],[15,"data-username",[30,1,["username"]]],[14,0,"user-info small"],[12],[1,"\\n        "],[10,0],[14,0,"user-image"],[12],[1,"\\n          "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n            "],[10,3],[15,6,[30,1,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,"\\n              "],[1,[28,[32,0],[[30,1,["avatar"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"user-detail"],[12],[1,"\\n          "],[10,0],[14,0,"name-line"],[12],[1,"\\n            "],[10,3],[15,6,[30,1,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[15,"aria-label",[28,[32,1],["user.profile_possessive"],[["username"],[[30,1,["username"]]]]]],[12],[1,"\\n              "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[30,1,["prioritizeName"]],[[[1,"                  "],[1,[30,1,["name"]]],[1,"\\n"]],[]],[[[1,"                  "],[1,[30,1,["username"]]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n              "],[10,1],[14,0,"name"],[12],[1,"\\n"],[41,[30,1,["prioritizeName"]],[[[1,"                  "],[1,[30,1,["username"]]],[1,"\\n"]],[]],[[[1,"                  "],[1,[30,1,["name"]]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[1]],null],[1,"  "]],["template"],false,["each","-track-array","if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page-users.js",scope:()=>[u.htmlSafe,m.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},67013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(17579),u=n(69338),d=n(8620),p=n(31691);let h=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"siteSettings",i,this)}get canEditEmail(){return this.siteSettings.enable_local_logins||this.siteSettings.email_editable}},(0,p.setComponentTemplate)((0,d.createTemplateFactory)({id:"ZmXrdf1y",block:'[[[1,"\\n    "],[10,0],[14,0,"activation-controls"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","must_approve_users"]]],[[[1,"        "],[8,[32,0],[[24,0,"btn-primary resend"]],[["@action","@label","@icon"],[[30,1],"login.resend_title","envelope"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEditEmail"]],[[[1,"        "],[8,[32,0],[[24,0,"edit-email"]],[["@action","@label","@icon"],[[30,2],"login.change_email","pencil-alt"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],["@sendActivationEmail","@editActivationEmail"],false,["unless","if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/activation-controls.js",scope:()=>[u.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},1156:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(54001),o=n(82006),a=n(48581),l=n(48163),c=n(91423),u=n(8620),d=n(31691);let p=(i=class extends o.default{newEmailChanged(e){this.args.updateNewEmail(e.target.value)}},(0,d.setComponentTemplate)((0,u.createTemplateFactory)({id:"DojIwr1E",block:'[[[1,"\\n    "],[10,2],[12],[1,[28,[32,0],["login.provide_new_email"],null]],[13],[1,"\\n    "],[11,"input"],[16,2,[30,1]],[24,0,"activate-new-email"],[24,4,"text"],[4,[32,1],["input",[30,0,["newEmailChanged"]]],null],[12],[13],[1,"\\n  "]],["@email"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/activation-email-form.js",scope:()=>[c.default,a.on],isStrictMode:!0}),i),r=i,(0,s.Z)(r.prototype,"newEmailChanged",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"newEmailChanged"),r.prototype),r)},83426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(55071),i=n(56244),s=n(8620),o=n(31691),a=n(91138),l=n.n(a);const c=(0,o.setComponentTemplate)((0,s.createTemplateFactory)({id:"f2NuAA5Q",block:'[[[1,"\\n"],[41,[30,1],[[[1,"    "],[1,[28,[32,0],["category",[28,[32,1],["category-",[30,1,["fullSlug"]]],null]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2]],null]],null],null,[[[1,"    "],[1,[28,[32,0],[[28,[32,1],["tag-",[30,3]],null]],null]],[1,"\\n"]],[3]],null]],["@category","@tags","tag"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/add-category-tag-classes.js",scope:()=>[i.default,r.concat],isStrictMode:!0}),l()())},41841:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(56244),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"nQLyFuOs",block:'[[[1,"\\n"],[41,[30,1,["invisible"]],[[[1,"    "],[1,[28,[32,0],["topic-status-unlisted"],null]],[1,"\\n"]],[]],null],[41,[30,1,["pinned"]],[[[1,"    "],[1,[28,[32,0],["topic-status-pinned"],null]],[1,"\\n"]],[]],null],[41,[30,1,["unpinned"]],[[[1,"    "],[1,[28,[32,0],["topic-status-unpinned"],null]],[1,"\\n"]],[]],null]],["@topic"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/add-topic-status-classes.js",scope:()=>[r.default],isStrictMode:!0}),a()())},27134:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o,a,l,c=n(94664),u=n(54001),d=n(82006),p=n(55071),h=n(48163),m=n(17579),g=n(69338),f=n(99230),b=n(44057),_=n(36725),y=n(61777),w=n(8620),v=n(31691);let k=(l=class extends d.default{constructor(){super(...arguments),(0,c.Z)(this,"currentUser",i,this),(0,c.Z)(this,"siteSettings",s,this),(0,c.Z)(this,"store",o,this),(0,c.Z)(this,"adminPostMenuButtons",a,this)}get reviewUrl(){return`/review?topic_id=${this.args.data.transformedPost.id}&status=all`}get extraButtons(){return this.adminPostMenuButtons.callbacks.map((e=>e(this.args.data.transformedPost))).filter(Boolean)}async topicAction(e){await this.args.close();try{await(this.args.data[e]?.())}catch(t){console.error(`Unknown error while attempting \`${e}\`:`,t)}await this.args.data.scheduleRerender()}async extraAction(e){await this.args.close(),await e.action(this.args.data.post),await this.args.data.scheduleRerender()}},(0,v.setComponentTemplate)((0,w.createTemplateFactory)({id:"GmShdenE",block:'[[[1,"\\n    "],[10,"ul"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,0,"btn popup-menu-btn moderation-history"]],[["@label","@icon","@href"],["review.moderation_history","list",[30,0,["reviewUrl"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[30,0,["currentUser","staff"]],[28,[32,2],[[30,1,["transformedPost","isWhisper"]]],null]],null],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[16,0,[28,[32,3],["btn popup-menu-btn toggle-post-type",[52,[30,1,["transformedPost","isModeratorAction"]],"btn-success"]],null]]],[["@label","@icon","@action"],[[52,[30,1,["transformedPost","isModeratorAction"]],"post.controls.revert_to_regular","post.controls.convert_to_moderator"],"shield-alt",[28,[32,4],[[30,0,["topicAction"]],"togglePostType"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["transformedPost","canEditStaffNotes"]],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,"title","post.controls.unhide"],[16,0,[28,[32,3],["btn popup-menu-btn",[52,[30,1,["transformedPost","notice"]],"change-notice","add-notice"],[52,[30,1,["transformedPost","notice"]],"btn-success"]],null]]],[["@icon","@label","@action"],["user-shield",[52,[30,1,["transformedPost","notice"]],"post.controls.change_post_notice","post.controls.add_post_notice"],[28,[32,4],[[30,0,["topicAction"]],"changeNotice"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[30,0,["currentUser","staff"]],[30,1,["transformedPost","hidden"]]],null],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,0,"btn popup-menu-btn unhide-post"]],[["@label","@icon","@action"],["post.controls.unhide","far-eye",[28,[32,4],[[30,0,["topicAction"]],"unhidePost"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,5],[[30,0,["currentUser","admin"]],[28,[32,1],[[30,0,["siteSettings","moderators_change_post_ownership"]],[30,0,["currentUser","staff"]]],null]],null],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,"title","post.controls.lock_post_description"],[24,0,"btn popup-menu-btn change-owner"]],[["@label","@icon","@action"],["post.controls.change_owner","user",[28,[32,4],[[30,0,["topicAction"]],"changePostOwner"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[30,1,["transformedPost","user_id"]],[30,0,["currentUser","staff"]]],null],[[[41,[30,0,["siteSettings","enable_badges"]],[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[32,0],[[24,0,"btn popup-menu-btn grant-badge"]],[["@label","@icon","@action"],["post.controls.grant_badge","certificate",[28,[32,4],[[30,0,["topicAction"]],"grantBadge"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["transformedPost","locked"]],[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[32,0],[[24,"title","post.controls.unlock_post_description"],[16,0,[28,[32,3],["btn popup-menu-btn unlock-post",[52,[30,1,["post","locked"]],"btn-success"]],null]]],[["@label","@icon","@action"],["post.controls.unlock_post","unlock",[28,[32,4],[[30,0,["topicAction"]],"unlockPost"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[32,0],[[24,"title","post.controls.lock_post_description"],[24,0,"btn popup-menu-btn lock-post"]],[["@label","@icon","@action"],["post.controls.lock_post","lock",[28,[32,4],[[30,0,["topicAction"]],"lockPost"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,1,["transformedPost","canPermanentlyDelete"]],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,0,"btn popup-menu-btn permanently-delete"]],[["@label","@icon","@action"],["post.controls.permanently_delete","trash-alt",[28,[32,4],[[30,0,["topicAction"]],"permanentlyDeletePost"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,5],[[30,1,["transformedPost","canManage"]],[30,1,["transformedPost","canWiki"]]],null],[[[41,[30,1,["transformedPost","wiki"]],[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[32,0],[[16,0,[28,[32,3],["btn popup-menu-btn wiki wikied",[52,[30,1,["transformedPost","wiki"]],"btn-success"]],null]]],[["@label","@icon","@action"],["post.controls.unwiki","far-edit",[28,[32,4],[[30,0,["topicAction"]],"toggleWiki"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[32,0],[[24,0,"btn popup-menu-btn wiki"]],[["@label","@icon","@action"],["post.controls.wiki","far-edit",[28,[32,4],[[30,0,["topicAction"]],"toggleWiki"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,1,["transformedPost","canPublishPage"]],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,0,"btn popup-menu-btn publish-page"]],[["@label","@icon","@action"],["post.controls.publish_page","file",[28,[32,4],[[30,0,["topicAction"]],"showPagePublish"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["transformedPost","canManage"]],[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[24,0,"btn popup-menu-btn rebuild-html"]],[["@label","@icon","@action"],["post.controls.rebake","sync-alt",[28,[32,4],[[30,0,["topicAction"]],"rebakePost"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["extraButtons"]]],null]],null],null,[[[1,"        "],[10,"li"],[12],[1,"\\n          "],[8,[32,0],[[16,0,[28,[32,3],["btn popup-menu-btn",[30,2,["className"]]],null]]],[["@label","@translatedLabel","@icon","@action"],[[30,2,["label"]],[30,2,["translatedLabel"]],[30,2,["icon"]],[28,[32,4],[[30,0,["extraAction"]],[30,2]],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "]],["@data","button"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/admin-post-menu.js",scope:()=>[g.default,b.default,_.default,f.default,p.fn,y.default],isStrictMode:!0}),l),r=l,i=(0,u.Z)(r.prototype,"currentUser",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.Z)(r.prototype,"siteSettings",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,u.Z)(r.prototype,"store",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(r.prototype,"adminPostMenuButtons",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(r.prototype,"topicAction",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"topicAction"),r.prototype),(0,u.Z)(r.prototype,"extraAction",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"extraAction"),r.prototype),r)},6333:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(32758),i=n(58255),s=n(94664),o=n(49246),a=n(54001),l=n(82006),c=n(23183),u=n(48163),d=n(51372),p=n(12933);const h=(0,n(8620).createTemplateFactory)({id:"VL1Gilc4",block:'[[[10,0],[14,0,"ai-summary__container"],[12],[1,"\\n  "],[11,"ul"],[24,0,"ai-summary__list"],[4,[38,0],[[30,0,["setupAnimation"]]],null],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["blocks"]]],null]],null],null,[[[1,"      "],[11,"li"],[16,0,[28,[37,3],["ai-summary__list-item",[52,[30,1,["show"]],"show"],[52,[30,1,["shown"]],"is-shown"],[52,[30,1,["blinking"]],"blink"]],null]],[4,[38,5],[[28,[37,6],[[30,0,["onBlinking"]],[30,1]],null],[30,1,["blinking"]]],null],[4,[38,5],[[28,[37,6],[[30,0,["onShowing"]],[30,1]],null],[30,1,["show"]]],null],[4,[38,7],[[30,0,["teardownAnimation"]]],null],[12],[13],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[10,0],[14,0,"ai-summary__generating-text"],[12],[1,"\\n      "],[1,[28,[35,8],["summary.in_progress"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,1],[14,0,"ai-summary__indicator-wave"],[12],[1,"\\n      "],[10,1],[14,0,"ai-summary__indicator-dot"],[12],[1,"."],[13],[1,"\\n      "],[10,1],[14,0,"ai-summary__indicator-dot"],[12],[1,"."],[13],[1,"\\n      "],[10,1],[14,0,"ai-summary__indicator-dot"],[12],[1,"."],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["block"],false,["did-insert","each","-track-array","concat-class","if","did-update","fn","will-destroy","i18n"]]',moduleName:"discourse/components/ai-summary-skeleton.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v,k,x=n(31691);function T(e,t,n){S(e,t),t.set(e,n)}function S(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let P=(m=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.Z)(this,"show",g,this),(0,s.Z)(this,"shown",f,this),(0,s.Z)(this,"blinking",b,this),this.show=e.show??!1,this.shown=e.shown??!1}},g=(0,a.Z)(m.prototype,"show",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,a.Z)(m.prototype,"shown",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,a.Z)(m.prototype,"blinking",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m),O=(y=new WeakMap,w=new WeakMap,v=new WeakMap,k=new WeakSet,_=class extends l.default{constructor(){var e;super(...arguments),S(this,e=k),e.add(this),(0,o.Z)(this,"blocks",[...Array.from({length:20},(()=>new P))]),T(this,y,{writable:!0,value:void 0}),T(this,w,{writable:!0,value:void 0}),T(this,v,{writable:!0,value:void 0})}setupAnimation(){this.blocks.firstObject.show=!0,this.blocks.firstObject.shown=!0}onBlinking(e){e.blinking&&(e.show=!1,(0,i.Z)(this,y,(0,p.default)(this,(()=>{C(this,k,E).call(this,e).blinking=!0}),250)),(0,i.Z)(this,w,(0,p.default)(this,(()=>{e.blinking=!1}),500)))}onShowing(e){e.show&&(0,i.Z)(this,v,(0,p.default)(this,(()=>{C(this,k,E).call(this,e).show=!0,C(this,k,E).call(this,e).shown=!0,this.blocks.lastObject===e&&(this.blocks.firstObject.blinking=!0)}),250))}teardownAnimation(){(0,d.cancel)((0,r.Z)(this,v)),(0,d.cancel)((0,r.Z)(this,y)),(0,d.cancel)((0,r.Z)(this,w))}},(0,a.Z)(_.prototype,"setupAnimation",[u.action],Object.getOwnPropertyDescriptor(_.prototype,"setupAnimation"),_.prototype),(0,a.Z)(_.prototype,"onBlinking",[u.action],Object.getOwnPropertyDescriptor(_.prototype,"onBlinking"),_.prototype),(0,a.Z)(_.prototype,"onShowing",[u.action],Object.getOwnPropertyDescriptor(_.prototype,"onShowing"),_.prototype),(0,a.Z)(_.prototype,"teardownAnimation",[u.action],Object.getOwnPropertyDescriptor(_.prototype,"teardownAnimation"),_.prototype),_);function E(e){return e===this.blocks.lastObject?this.blocks.firstObject:this.blocks.objectAt(this.blocks.indexOf(e)+1)}(0,x.setComponentTemplate)(h,O)},79829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(73638);const l=(0,n(8620).createTemplateFactory)({id:"HptKa4jw",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["buttons"]]],null]],null],null,[[[1,"    "],[8,[39,2],[[16,1,[28,[37,3],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[37,4],["btn-default","topic-footer-button",[30,1,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[1]],null],[1,"  "],[8,[39,2],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["reply",[28,[37,5],["showLogin"],null],"topic.reply.title"]],null],[1,"\\n"],[13]],["button"],false,["each","-track-array","d-button","concat","concatClass","route-action"]]',moduleName:"discourse/components/anonymous-topic-footer-buttons.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,o.computed)("allButtons.[]"),u={elementId:"topic-footer-buttons",attributeBindings:["role"],role:"region",allButtons:(0,a.getTopicFooterButtons)(),get buttons(){return this.allButtons.filterBy("anonymousOnly",!0).sortBy("priority").reverse()}},(0,r.Z)(u,"buttons",[c],Object.getOwnPropertyDescriptor(u,"buttons"),u),u)))},3536:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({classNames:["auth-token-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,r.computed)((function(){return[{id:"notYou",icon:"user-times",name:i.default.t("user.auth_tokens.not_you"),description:""},{id:"logOut",icon:"sign-out-alt",name:i.default.t("user.log_out"),description:""}]})),actions:{onChange(e){switch(e){case"notYou":this.showToken(this.token);break;case"logOut":this.revokeAuthToken(this.token)}}}})},3838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i,s=n(54001),o=n(17238),a=n(57555);const l=o.default.extend((r=(0,a.observes)("flairName","flairUrl","flairBgColor","flairColor"),i={widget:"avatar-flair",_rerender(){this.queueRerender()},buildArgs(){return{flair_name:this.flairName,flair_url:this.flairUrl,flair_bg_color:this.flairBgColor,flair_color:this.flairColor}}},(0,s.Z)(i,"_rerender",[r],Object.getOwnPropertyDescriptor(i,"_rerender"),i),i))},73813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(33217),l=n(88548),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"sn8+QVhZ",block:'[[[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"accept","image/*"],[14,"aria-hidden","true"],[14,4,"file"],[12],[13],[1,"\\n"],[8,[39,0],[[24,0,"btn-default avatar-uploader__button"],[16,"data-uploaded",[30,0,["customAvatarUploaded"]]],[16,"data-avatar-upload-id",[30,0,["uploadedAvatarId"]]]],[["@translatedLabel","@icon","@disabled","@action","@title"],[[30,0,["uploadLabel"]],"far-image",[30,0,["uploading"]],[30,0,["chooseImage"]],"user.change_avatar.upload_title"]],null],[1,"\\n\\n"],[41,[30,0,["imageIsNotASquare"]],[[[1,"  "],[10,0],[14,0,"warning"],[12],[1,[28,[35,2],["user.change_avatar.image_is_not_a_square"],null]],[13],[1,"\\n"]],[]],null]],[],false,["d-button","if","i18n"]]',moduleName:"discourse/components/avatar-uploader.hbs",isStrictMode:!1});var p,h,m,g;const f=(0,i.setComponentTemplate)(d,s().extend(l.default,(p=(0,c.default)("uploading","uploadedAvatarId"),h=(0,c.default)("user_id"),m=(0,c.default)("uploading","uploadProgress"),g={type:"avatar",tagName:"span",imageIsNotASquare:!1,customAvatarUploaded(){return!this.uploading&&!(0,a.isBlank)(this.uploadedAvatarId)},validateUploadedFilesOptions:()=>({imagesOnly:!0}),uploadDone(e){this.setProperties({imageIsNotASquare:e.width!==e.height,uploadedAvatarTemplate:e.url,uploadedAvatarId:e.id}),this.done()},data:e=>({user_id:e}),uploadLabel(){return this.uploading?`${u.default.t("uploading")} ${this.uploadProgress}%`:u.default.t("upload")},chooseImage(){this.fileInputEl.click()}},(0,r.Z)(g,"customAvatarUploaded",[p],Object.getOwnPropertyDescriptor(g,"customAvatarUploaded"),g),(0,r.Z)(g,"data",[h],Object.getOwnPropertyDescriptor(g,"data"),g),(0,r.Z)(g,"uploadLabel",[m],Object.getOwnPropertyDescriptor(g,"uploadLabel"),g),(0,r.Z)(g,"chooseImage",[o.action],Object.getOwnPropertyDescriptor(g,"chooseImage"),g),g)))},77648:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(62617),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"BEPs8cH8",block:'[[[10,0],[14,0,"wrapper"],[12],[1,"\\n  "],[10,"textarea"],[14,1,"backupCodes"],[14,0,"backup-codes-area"],[14,"rows","10"],[14,"readonly",""],[12],[1,[30,0,["formattedBackupCodes"]]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default backup-codes-copy-btn"]],[["@action","@icon","@ariaLabel","@title"],[[28,[37,1],[[30,0],"copyToClipboard"],null],"copy","user.second_factor_backup.copy_to_clipboard","user.second_factor_backup.copy_to_clipboard"]],null],[1,"\\n\\n    "],[10,3],[15,"download",[29,[[30,0,["siteTitleSlug"]],"-backup-codes.txt"]]],[14,0,"btn btn-default no-text btn-icon backup-codes-download-btn"],[15,"aria-label",[28,[37,2],["user.second_factor_backup.download_backup_codes"],null]],[15,"title",[28,[37,2],["user.second_factor_backup.download_backup_codes"],null]],[14,"rel","noopener noreferrer"],[14,"target","_blank"],[15,6,[29,["data:application/octet-stream;charset=utf-8;base64,",[30,0,["base64BackupCode"]]]]],[12],[1,"\\n      "],[1,[28,[35,3],["download"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["d-button","action","i18n","d-icon"]]',moduleName:"discourse/components/backup-codes.hbs",isStrictMode:!1});var c,u,d,p,h;const m=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("formattedBackupCodes"),u=(0,a.default)("backupCodes"),d=(0,a.default)(),p={classNames:["backup-codes"],backupCodes:null,click(e){"backupCodes"===e.target.id&&this._selectAllBackupCodes()},didRender(){this._super(...arguments);const e=this.element.querySelector("#backupCodes");e&&(e.style.height=e.scrollHeight)},base64BackupCode:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))},formattedBackupCodes:e=>e?e.join("\n").trim():null,siteTitleSlug(){const e=this.siteSettings.title,t=(0,o.toAsciiPrintable)(e,"discourse");return(0,o.slugify)(t)},actions:{copyToClipboard(){this._selectAllBackupCodes(),this.copyBackupCode(document.execCommand("copy"))}},_selectAllBackupCodes(){const e=this.element.querySelector("#backupCodes");e.focus(),e.setSelectionRange(0,this.formattedBackupCodes.length)}},(0,r.Z)(p,"base64BackupCode",[c],(h=(h=Object.getOwnPropertyDescriptor(p,"base64BackupCode"))?h.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return h}}),p),(0,r.Z)(p,"formattedBackupCodes",[u],Object.getOwnPropertyDescriptor(p,"formattedBackupCodes"),p),(0,r.Z)(p,"siteTitleSlug",[d],Object.getOwnPropertyDescriptor(p,"siteTitleSlug"),p),p)))},50941:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(82006),i=n(33057);const s=(0,n(8620).createTemplateFactory)({id:"3aNjZv4z",block:'[[[10,1],[15,0,[29,["user-badge\\n    ",[30,1,["badgeTypeClassName"]],"\\n    ",[52,[51,[30,1,["enabled"]]],"disabled"]]]],[15,"title",[30,0,["title"]]],[15,"data-badge-name",[30,1,["name"]]],[12],[1,"\\n  "],[1,[28,[35,1],[[30,1]],null]],[1,"\\n  "],[10,1],[14,0,"badge-display-name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n  "],[18,2,null],[1,"\\n"],[13]],["@badge","&default"],false,["unless","icon-or-image","yield"]]',moduleName:"discourse/components/badge-button.hbs",isStrictMode:!1});var o=n(31691);class a extends r.default{get title(){const e=this.args.badge?.description;if(e)return(0,i.default)(`<div>${e}</div>`)[0].innerText}}(0,o.setComponentTemplate)(s,a)},87281:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(33217),a=n(35193),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"nVwD16Ll",block:'[[[41,[30,0,["badge","has_badge"]],[[[1,"  "],[10,3],[15,6,[30,0,["url"]]],[14,0,"check-display status-checked"],[12],[1,[28,[35,1],["check"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canFavorite"]],[[[41,[30,0,["isFavorite"]],[[[1,"    "],[8,[39,2],[[24,0,"favorite-btn"]],[["@icon","@action"],["star",[30,0,["onFavoriteClick"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,2],[[24,0,"favorite-btn"]],[["@icon","@action","@title","@disabled"],["far-star",[30,0,["onFavoriteClick"]],[52,[30,0,["canFavoriteMoreBadges"]],"badges.favorite_max_not_reached","badges.favorite_max_reached"],[28,[37,3],[[30,0,["canFavoriteMoreBadges"]]],null]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[10,0],[14,0,"badge-contents"],[12],[1,"\\n  "],[8,[39,4],null,[["@name","@outletArgs"],["badge-contents-top",[28,[37,5],null,[["badge","url"],[[30,0,["badge"]],[30,0,["url"]]]]]]],null],[1,"\\n  "],[10,3],[15,6,[30,0,["url"]]],[15,0,[29,["badge-icon ",[30,0,["badge","badgeTypeClassName"]]]]],[12],[1,[28,[35,6],[[30,0,["badge"]]],null]],[13],[1,"\\n  "],[10,0],[14,0,"badge-info"],[12],[1,"\\n    "],[10,0],[14,0,"badge-info-item"],[12],[1,"\\n      "],[10,"h3"],[12],[10,3],[15,6,[30,0,["url"]]],[14,0,"badge-link"],[12],[1,[30,0,["badge","name"]]],[13],[13],[1,"\\n      "],[10,0],[14,0,"badge-summary"],[12],[1,[28,[35,7],[[30,0,["summary"]]],null]],[13],[1,"\\n\\n"],[41,[30,0,["displayCount"]],[[[1,"\\n        "],[8,[39,8],[[24,0,"badge-granted"]],[["@route","@model"],["badges.show",[30,0,["badge"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,7],[[28,[37,9],["badges.awarded"],[["count","number"],[[30,0,["displayCount"]],[28,[37,10],[[30,0,["displayCount"]]],null]]]]],null]],[1,"\\n        "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["if","d-icon","d-button","not","plugin-outlet","hash","icon-or-image","html-safe","link-to","i18n","number"]]',moduleName:"discourse/components/badge-card.hbs",isStrictMode:!1});var u,d,p,h,m;const g=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("badge.url","filterUser","username"),d=(0,l.default)("count","badge.grant_count"),p=(0,l.default)("size","badge.long_description","badge.description"),h=(0,l.default)("badge.id"),m={size:"medium",classNameBindings:[":badge-card","size","badge.slug"],url:(e,t,n)=>t?`${e}?username=${n}`:e,displayCount:(e,t)=>null==e?t:e>1?e:void 0,summary:(e,t,n)=>"large"!==e||(0,o.isEmpty)(t)?(0,a.sanitize)(n):(0,a.emojiUnescape)((0,a.sanitize)(t)),showFavorite:e=>![1,2,3,4].includes(e)},(0,r.Z)(m,"url",[u],Object.getOwnPropertyDescriptor(m,"url"),m),(0,r.Z)(m,"displayCount",[d],Object.getOwnPropertyDescriptor(m,"displayCount"),m),(0,r.Z)(m,"summary",[p],Object.getOwnPropertyDescriptor(m,"summary"),m),(0,r.Z)(m,"showFavorite",[h],Object.getOwnPropertyDescriptor(m,"showFavorite"),m),m)))},72898:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(71466),a=n.n(o),l=n(61369),c=n(21896),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"H35wL86O",block:'[[[10,"input"],[15,"placeholder",[30,0,["placeholder"]]],[14,3,"badges"],[14,0,"ember-text-field badge-names"],[14,4,"text"],[12],[13]],[],false,[]]',moduleName:"discourse/components/badge-selector.hbs",isStrictMode:!1});var h,m,g,f;const b=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.default)("placeholderKey"),m=(0,u.observes)("badgeNames"),g=(0,u.on)("didInsertElement"),f={placeholder:e=>e?d.default.t(e):"",_update(){"true"===this.canReceiveUpdates&&this._initializeAutocomplete({updateData:!0})},_initializeAutocomplete(e){let t;a()(this.element.querySelector("input")).autocomplete({allowAny:!1,items:(0,l.makeArray)(this.badgeNames),single:this.single,updateData:!(!e||!e.updateData)&&e.updateData,template:(0,c.findRawTemplate)("badge-selector-autocomplete"),onChangeItems(e){t=e,this.set("badgeNames",e.join(","))},transformComplete:e=>e.name,dataSource(e){return this.badgeFinder(e).then((e=>t?e.filter((e=>!t.any((t=>t===e.name)))):e))}})}},(0,r.Z)(f,"placeholder",[h],Object.getOwnPropertyDescriptor(f,"placeholder"),f),(0,r.Z)(f,"_update",[m],Object.getOwnPropertyDescriptor(f,"_update"),f),(0,r.Z)(f,"_initializeAutocomplete",[g],Object.getOwnPropertyDescriptor(f,"_initializeAutocomplete"),f),f)))},91293:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(17579),l=n(3055),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"sfl3f9+N",block:'[[[10,0],[14,0,"badge-title"],[12],[1,"\\n  "],[10,"section"],[14,0,"user-content"],[14,1,"user-content"],[12],[1,"\\n    "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,"h3"],[12],[1,[28,[35,0],["badges.select_badge_for_title"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,1],null,[["@value","@nameProperty","@content","@onChange"],[[30,0,["_selectedUserBadgeId"]],"badge.name",[30,0,["selectableUserBadges"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["_selectedUserBadgeId"]]],null]],null]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["saveBadgeTitle"]],[30,0,["_isSaving"]],[52,[30,0,["_isSaving"]],"saving","save"]]],null],[1,"\\n"],[41,[30,0,["_isSaved"]],[[[1,"            "],[10,1],[12],[1,[28,[35,0],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","combo-box","action","mut","d-button","if"]]',moduleName:"discourse/components/badge-title.hbs",isStrictMode:!1});var d;const p=(0,i.setComponentTemplate)(u,s().extend((d={dialog:(0,a.inject)(),tagName:"",selectableUserBadges:null,_selectedUserBadgeId:null,_isSaved:!1,_isSaving:!1,init(){this._super(...arguments);const e=this._findBadgeByTitle(this.selectableUserBadges,this.currentUser.title);this.set("_selectedUserBadgeId",e?.id||0)},saveBadgeTitle(){this.setProperties({_isSaved:!1,_isSaving:!0});const e=this._findBadgeById(this.selectableUserBadges,this._selectedUserBadgeId);return(0,l.ajax)(`${this.currentUser.path}/preferences/badge_title`,{type:"PUT",data:{user_badge_id:e?.id||0}}).then((()=>{this.set("_isSaved",!0),this.currentUser.set("title",e?.badge?.name||"")}),(()=>{this.dialog.alert(c.default.t("generic_error"))})).finally((()=>this.set("_isSaving",!1)))},_findBadgeById:(e,t)=>(e||[]).findBy("id",t),_findBadgeByTitle:(e,t)=>(e||[]).findBy("badge.name",t)},(0,r.Z)(d,"saveBadgeTitle",[o.action],Object.getOwnPropertyDescriptor(d,"saveBadgeTitle"),d),d)))},19316:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(71466),l=n.n(a),c=n(57555);const u=(0,n(8620).createTemplateFactory)({id:"tDJBmgMz",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["topics"]],[[[1,"    "],[8,[39,2],null,[["@showPosters","@hideCategory","@topics","@expandExcerpts","@bulkSelectHelper","@canBulkSelect","@tagsForUser","@changeSort","@order","@ascending","@focusLastVisitedTopic"],[[30,0,["showPosters"]],[30,0,["hideCategory"]],[30,0,["topics"]],[30,0,["expandExcerpts"]],[30,0,["bulkSelectHelper"]],[30,0,["canBulkSelect"]],[30,0,["tagsForUser"]],[30,0,["changeSort"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["focusLastVisitedTopic"]]]],null],[1,"\\n"]],[]],[[[41,[51,[30,0,["loadingMore"]]],[[[1,"      "],[10,0],[14,0,"alert alert-info"],[12],[1,"\\n        "],[1,[28,[35,4],["choose_topic.none_found"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]]],[]]]]]],[],false,["conditional-loading-spinner","if","topic-list","unless","i18n"]]',moduleName:"discourse/components/basic-topic-list.hbs",isStrictMode:!1});var d,p,h,m;const g=(0,i.setComponentTemplate)(u,s().extend((d=(0,c.default)("topicList.loaded"),p=(0,c.observes)("topicList.[]"),h=(0,c.default)("topics"),m={loadingMore:(0,o.alias)("topicList.loadingMore"),loading:(0,o.not)("loaded"),loaded(){let e=this.topicList;return!e||e.get("loaded")},_topicListChanged(){this._initFromTopicList(this.topicList)},_initFromTopicList(e){null!==e&&(this.set("topics",e.get("topics")),this.rerender())},init(){this._super(...arguments);const e=this.topicList;e&&this._initFromTopicList(e)},didInsertElement(){this._super(...arguments),this.topics.forEach((e=>{void 0!==e.unread_by_group_member&&this.messageBus.subscribe(`/private-messages/unread-indicator/${e.id}`,this.onMessage)}))},willDestroyElement(){this._super(...arguments),this.messageBus.unsubscribe("/private-messages/unread-indicator/*",this.onMessage)},onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)},showUnreadIndicator:e=>e.some((e=>void 0!==e.unread_by_group_member)),click(e){if(!this.site.mobileView)return;let t=l()(e.target);if(t.closest(".posts-map").length){const e=t.closest("tr").attr("data-topic-id");if(e){if("A"!==t.prop("tagName")){let e=t.find("a");if(e.length)t=e;else{if(e=t.closest("a"),!e.length)return!1;t=e}}const n=this.topics.findBy("id",parseInt(e,10));this.appEvents.trigger("topic-entrance:show",{topic:n,position:t.offset()})}return!1}}},(0,r.Z)(m,"loaded",[d],Object.getOwnPropertyDescriptor(m,"loaded"),m),(0,r.Z)(m,"_topicListChanged",[p],Object.getOwnPropertyDescriptor(m,"_topicListChanged"),m),(0,r.Z)(m,"onMessage",[c.bind],Object.getOwnPropertyDescriptor(m,"onMessage"),m),(0,r.Z)(m,"showUnreadIndicator",[h],Object.getOwnPropertyDescriptor(m,"showUnreadIndicator"),m),m)))},454:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s=n(54001),o=n(48163),a=n(57555),l=n(82099),c=n(50073);const u="remove",d="edit",p="clear_reminder",h=c.default.extend((r=(0,a.default)("bookmark"),i={classNames:["bookmark-actions-dropdown"],pluginApiIdentifiers:["bookmark-actions-dropdown"],selectKitOptions:{icon:null,translatedNone:"...",showFullTitle:!0},content(e){const t=[];return t.push({id:u,icon:"trash-alt",name:l.default.t("post.bookmarks.actions.delete_bookmark.name"),description:l.default.t("post.bookmarks.actions.delete_bookmark.description")}),t.push({id:d,icon:"pencil-alt",name:l.default.t("post.bookmarks.actions.edit_bookmark.name"),description:l.default.t("post.bookmarks.actions.edit_bookmark.description")}),e.reminder_at&&t.push({id:p,icon:"history",name:l.default.t("post.bookmarks.actions.clear_bookmark_reminder.name"),description:l.default.t("post.bookmarks.actions.clear_bookmark_reminder.description")}),t.push({id:"pin",icon:"thumbtack",name:l.default.t(`post.bookmarks.actions.${e.pinAction()}_bookmark.name`),description:l.default.t(`post.bookmarks.actions.${e.pinAction()}_bookmark.description`)}),t},onChange(e){e===u?this.removeBookmark(this.bookmark):e===d?this.editBookmark(this.bookmark):e===p?this.clearBookmarkReminder(this.bookmark):"pin"===e&&this.togglePinBookmark(this.bookmark)}},(0,s.Z)(i,"content",[r],Object.getOwnPropertyDescriptor(i,"content"),i),(0,s.Z)(i,"onChange",[o.action],Object.getOwnPropertyDescriptor(i,"onChange"),i),i))},27527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(49246),i=n(54001),s=n(31691),o=n.n(s),a=n(48163),l=n(33217),c=n(87521),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"d+6KRt2O",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],[["translatedTitle","class"],[[30,0,["title"]],[30,0,["cssClasses"]]]]]]],[],false,["d-icon"]]',moduleName:"discourse/components/bookmark-icon.hbs",isStrictMode:!1});var p,h,m,g;let f=(p=(0,a.computed)("bookmark.reminder_at"),h=(0,a.computed)("bookmark"),m=(0,a.computed)("bookmark.title"),g=class extends(o()){constructor(){super(...arguments),(0,r.Z)(this,"tagName",""),(0,r.Z)(this,"bookmark",null)}get icon(){return this.bookmark?(0,l.isEmpty)(this.bookmark.reminder_at)?c.NO_REMINDER_ICON:c.WITH_REMINDER_ICON:c.NO_REMINDER_ICON}get cssClasses(){return this.bookmark?"bookmark-icon bookmark-icon__bookmarked":"bookmark-icon"}get title(){return this.bookmark?this.bookmark.reminderTitle:u.default.t("bookmarks.create")}},(0,i.Z)(g.prototype,"icon",[p],Object.getOwnPropertyDescriptor(g.prototype,"icon"),g.prototype),(0,i.Z)(g.prototype,"cssClasses",[h],Object.getOwnPropertyDescriptor(g.prototype,"cssClasses"),g.prototype),(0,i.Z)(g.prototype,"title",[m],Object.getOwnPropertyDescriptor(g.prototype,"title"),g.prototype),g);(0,s.setComponentTemplate)(d,f)},87243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(17579),l=n(10425),c=n(18987),u=n(3055),d=n(64390),p=n(78480),h=n(82099);const m=(0,n(8620).createTemplateFactory)({id:"9GSmIESY",block:'[[[8,[39,0],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@selector","@action"],[".bookmark-list .bookmark-list-item",[30,0,["loadMore"]]]],[["default"],[[[[1,"\\n    "],[10,"table"],[14,0,"topic-list bookmark-list"],[12],[1,"\\n      "],[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"          "],[8,[39,3],null,[["@name"],["bookmark-list-table-header"]],[["default"],[[[[1,"\\n            "],[10,"th"],[14,0,"topic-list-data"],[12],[1,[28,[35,4],["topic.title"],null]],[13],[1,"\\n            "],[10,"th"],[14,0,"topic-list-data"],[12],[1," "],[13],[1,"\\n            "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,4],["post.bookmarks.updated"],null]],[13],[1,"\\n            "],[10,"th"],[14,0,"post-metadata topic-list-data"],[12],[1,[28,[35,4],["activity"],null]],[13],[1,"\\n            "],[10,"th"],[12],[1," "],[13],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["content"]]],null]],null],null,[[[1,"          "],[10,"tr"],[14,0,"topic-list-item bookmark-list-item"],[12],[1,"\\n            "],[10,"th"],[14,"scope","row"],[14,0,"main-link topic-list-data"],[12],[1,"\\n              "],[10,1],[14,0,"link-top-line"],[12],[1,"\\n                "],[10,0],[14,0,"bookmark-metadata"],[12],[1,"\\n"],[41,[30,1,["reminder_at"]],[[[1,"                    "],[10,1],[15,0,[29,["bookmark-metadata-item bookmark-reminder\\n                        ",[52,[30,1,["reminderAtExpired"]],"bookmark-expired-reminder"]]]],[12],[1,"\\n                      "],[1,[28,[35,8],["far-clock"],null]],[1,[30,1,["formattedReminder"]]],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[41,[30,1,["name"]],[[[1,"                    "],[10,1],[14,0,"bookmark-metadata-item"],[12],[1,"\\n                      "],[1,[28,[35,8],["info-circle"],null]],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n                "],[10,0],[14,0,"bookmark-status-with-link"],[12],[1,"\\n"],[41,[30,1,["pinned"]],[[[1,"                    "],[1,[28,[35,8],["thumbtack"],[["class"],["bookmark-pinned"]]]],[1,"\\n"]],[]],null],[41,[30,1,["bookmarkableTopicAlike"]],[[[1,"                    "],[8,[39,9],null,[["@topic"],[[30,1,["topicStatus"]]]],null],[1,"\\n                    "],[1,[28,[35,10],[[30,1,["topicForList"]]],null]],[1,"\\n"]],[]],[[[1,"                    "],[10,3],[15,6,[30,1,["bookmarkable_url"]]],[14,"role","heading"],[14,"aria-level","2"],[14,0,"title"],[14,"data-topic-id","${topic.id}"],[12],[1,"\\n                      "],[1,[30,1,["fancy_title"]]],[1,"\\n                    "],[13],[1,"\\n"]],[]]],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,1,["bookmarkableTopicAlike"]],[[[1,"                "],[10,0],[14,0,"link-bottom-line"],[12],[1,"\\n                  "],[1,[28,[35,11],[[30,1,["category"]]],null]],[1,"\\n                  "],[1,[28,[35,12],[[30,1]],[["mode","tagsForUser"],["list",[30,0,["tagsForUser"]]]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[41,[28,[37,13],[[30,0,["site","mobileView"]],[30,1,["excerpt"]],[30,1,["user","avatar_template"]]],null],[[[1,"                "],[10,3],[15,6,[30,1,["bookmarkableUser","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n                  "],[1,[28,[35,14],[[30,1,["bookmarkableUser"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,"              "],[11,2],[24,0,"post-excerpt"],[4,[38,15],["click",[30,0,["screenExcerptForExternalLink"]]],null],[12],[1,[28,[35,16],[[30,1,["excerpt"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"              "],[10,"td"],[14,0,"author-avatar topic-list-data"],[12],[1,"\\n"],[41,[30,1,["user","avatar_template"]],[[[1,"                  "],[10,3],[15,6,[30,1,["user","path"]]],[15,"data-user-card",[30,1,["user","username"]]],[14,0,"avatar"],[12],[1,"\\n                    "],[1,[28,[35,14],[[30,1,["user"]]],[["avatarTemplatePath","usernamePath","namePath","imageSize"],["avatar_template","username","name","small"]]]],[1,"\\n                  "],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n              "],[10,"td"],[14,0,"post-metadata topic-list-data updated-at"],[12],[1,[28,[35,17],[[30,1,["updated_at"]]],[["format"],["tiny"]]]],[13],[1,"\\n              "],[1,[28,[35,18],["list/activity-column"],[["topic","class","tagName"],[[30,1],"num post-metadata","td"]]]],[1,"\\n"]],[]],null],[1,"            "],[10,"td"],[14,0,"topic-list-data"],[12],[1,"\\n              "],[8,[39,19],null,[["@bookmark","@removeBookmark","@editBookmark","@clearBookmarkReminder","@togglePinBookmark"],[[30,1],[28,[37,20],[[30,0],"removeBookmark"],null],[28,[37,20],[[30,0],"editBookmark"],null],[28,[37,20],[[30,0],"clearBookmarkReminder"],null],[28,[37,20],[[30,0],"togglePinBookmark"],null]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,0],null,[["@condition"],[[30,0,["loadingMore"]]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]]]],["bookmark"],false,["conditional-loading-spinner","load-more","unless","plugin-outlet","i18n","each","-track-array","if","d-icon","topic-status","topic-link","category-link","discourse-tags","and","avatar","on","html-safe","format-date","raw","bookmark-actions-dropdown","action"]]',moduleName:"discourse/components/bookmark-list.hbs",isStrictMode:!1});var g;const f=(0,i.setComponentTemplate)(m,s().extend((g={dialog:(0,a.inject)(),modal:(0,a.inject)(),classNames:["bookmark-list-wrapper"],removeBookmark(e){return new l.Promise(((t,n)=>{const r=()=>{e.destroy().then((()=>{this.appEvents.trigger("bookmarks:changed",null,e.attachedTo()),this._removeBookmarkFromList(e),t(!0)})).catch((e=>{n(e)}))};if(!e.reminder_at)return r();this.dialog.deleteConfirm({message:h.default.t("bookmarks.confirm_delete"),didConfirm:()=>r(),didCancel:()=>t(!1)})}))},screenExcerptForExternalLink(e){"A"===e?.target?.tagName&&(0,p.shouldOpenInNewTab)(e.target.href)&&(0,p.openLinkInNewTab)(e,e.target)},editBookmark(e){this.modal.show(c.default,{model:{bookmark:new d.BookmarkFormData(e),afterSave:t=>{this.appEvents.trigger("bookmarks:changed",t,e.attachedTo()),this.reload()},afterDelete:()=>{this.reload()}}})},clearBookmarkReminder:e=>(0,u.ajax)(`/bookmarks/${e.id}`,{type:"PUT",data:{reminder_at:null}}).then((()=>{e.set("reminder_at",null)})),togglePinBookmark(e){e.togglePin().then(this.reload)},_removeBookmarkFromList(e){this.content.removeObject(e)}},(0,r.Z)(g,"removeBookmark",[o.action],Object.getOwnPropertyDescriptor(g,"removeBookmark"),g),(0,r.Z)(g,"screenExcerptForExternalLink",[o.action],Object.getOwnPropertyDescriptor(g,"screenExcerptForExternalLink"),g),(0,r.Z)(g,"editBookmark",[o.action],Object.getOwnPropertyDescriptor(g,"editBookmark"),g),(0,r.Z)(g,"clearBookmarkReminder",[o.action],Object.getOwnPropertyDescriptor(g,"clearBookmarkReminder"),g),(0,r.Z)(g,"togglePinBookmark",[o.action],Object.getOwnPropertyDescriptor(g,"togglePinBookmark"),g),g)))},27197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(20229),u=n(47582),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"pg5VLvfz",block:'[[[8,[39,0],null,null,[["button","tooltip"],[[[[1,"\\n    "],[8,[39,1],[[24,0,"btn-default bootstrap-mode"]],[["@label","@action"],["bootstrap_mode",[30,0,["routeToAdminGuide"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showUserTip"]],[[[1,"        "],[8,[39,3],null,[["@id","@priority","@titleText","@contentHtml"],["admin_guide",900,[28,[37,4],["user_tips.admin_guide.title"],null],[30,0,["userTipContent"]]]],null],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n  "]],[]],[[[1,"\\n"],[41,[51,[30,0,["showUserTip"]]],[[[1,"      "],[8,[39,6],null,[["@theme","@icon","@arrow"],["user-tip","info-circle",true]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"user-tip__container"],[12],[1,"\\n          "],[10,0],[14,0,"user-tip__title"],[12],[1,"\\n            "],[1,[28,[35,4],["user_tips.admin_guide.title"],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"user-tip__content"],[12],[1,"\\n            "],[1,[28,[35,4],["user_tips.admin_guide.content_no_url"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],[],false,["d-button-tooltip","d-button","if","user-tip","i18n","unless","d-tooltip"]]',moduleName:"discourse/components/bootstrap-mode-notice.hbs",isStrictMode:!1});var h,m,g,f,b=n(31691);let _=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",m,this),(0,r.Z)(this,"userTips",g,this),(0,r.Z)(this,"showUserTip",f,this)}routeToAdminGuide(){this.showUserTip=!1,c.default.routeTo(`/t/-/${this.siteSettings.admin_quick_start_topic_id}`)}get adminGuideUrl(){return(0,u.default)(`/t/-/${this.siteSettings.admin_quick_start_topic_id}`)}get userTipContent(){return d.default.t("user_tips.admin_guide.content",{admin_guide_url:this.adminGuideUrl})}},m=(0,i.Z)(h.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"userTips",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"showUserTip",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.userTips.canSeeUserTip("admin_guide")}}),(0,i.Z)(h.prototype,"routeToAdminGuide",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"routeToAdminGuide"),h.prototype),h);(0,b.setComponentTemplate)(p,_)},27539:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(54736),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"IJwc34JB",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-left","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categoryBreadcrumbs"]]],null]],null],null,[[[41,[30,1,["hasOptions"]],[[[1,"    "],[10,"li"],[15,5,[52,[30,1,["category"]],[28,[37,5],[[30,1,["category"]]],null]]],[12],[1,"\\n      "],[8,[39,6],null,[["@category","@categories","@tagId","@editingCategory","@editingCategoryTab","@options"],[[30,1,["category"]],[30,1,["options"]],[30,0,["tag","id"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]],[28,[37,1],null,[["parentCategory","subCategory","noSubcategories","autoFilterable"],[[30,1,["parentCategory"]],[30,1,["isSubcategory"]],[30,1,["noSubcategories"]],true]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"\\n"],[41,[30,0,["showTagsSection"]],[[[41,[30,0,["additionalTags"]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,7],null,[["@currentCategory","@mainTag","@additionalTags","@options"],[[30,0,["category"]],[30,0,["tag","id"]],[30,0,["additionalTags"]],[28,[37,1],null,[["categoryId"],[[30,0,["category","id"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,8],null,[["@currentCategory","@noSubcategories","@tagId"],[[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag","id"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["bread-crumbs-right","li",[28,[37,1],null,[["tagId","additionalTags","noSubcategories","showTagsSection","currentCategory","categoryBreadcrumbs","editingCategory","editingCategoryTab"],[[30,0,["tag","id"]],[30,0,["additionalTags"]],[30,0,["noSubcategories"]],[30,0,["showTagsSection"]],[30,0,["category"]],[30,0,["categoryBreadcrumbs"]],[30,0,["editingCategory"]],[30,0,["editingCategoryTab"]]]]]]],null]],["breadcrumb"],false,["plugin-outlet","hash","each","-track-array","if","category-variables","category-drop","tags-intersection-chooser","tag-drop"]]',moduleName:"discourse/components/bread-crumbs.hbs",isStrictMode:!1});var u,d,p,h,m,g,f,b,_;const y=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("category.ancestors","categories","noSubcategories"),d=(0,l.default)("siteSettings.tagging_enabled","editingCategory"),p=(0,l.default)("category"),h=(0,l.default)("parentCategories"),m=(0,l.default)("category"),g=(0,l.default)("category","parentCategory"),f=(0,l.default)("category","parentCategory"),b=(0,l.default)("firstCategory","hideSubcategories"),_={classNameBindings:["hidden:hidden",":category-breadcrumb"],tagName:"ol",editingCategory:!1,editingCategoryTab:null,categoryBreadcrumbs(e,t,n){e=e||[];const r=[void 0,...e],i=[...e,void 0];return r.map(((e,t)=>[e,i[t]])).map((e=>{const[r,i]=e,s=t.filter((e=>e.get("parentCategory.id")===(r&&r.id)));return{category:i,parentCategory:r,options:s,isSubcategory:!!r,noSubcategories:!i&&n,hasOptions:!r||r.has_children}}))},showTagsSection:(e,t)=>e&&!t,parentCategory:e=>((0,a.default)("The parentCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategory"}),e&&e.parentCategory),parentCategories:(0,o.filter)("categories",(function(e){return(0,a.default)("The parentCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategories"}),!(e.id===this.site.get("uncategorized_category_id")&&!this.siteSettings.allow_uncategorized_topics||e.get("parentCategory"))})),parentCategoriesSorted(e){return(0,a.default)("The parentCategoriesSorted property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.parentCategoriesSorted"}),this.siteSettings.fixed_category_positions?e:e.sortBy("totalTopicCount").reverse()},hidden(e){return this.site.mobileView&&!e},firstCategory:(e,t)=>((0,a.default)("The firstCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.firstCategory"}),t||e),secondCategory:(e,t)=>((0,a.default)("The secondCategory property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.secondCategory"}),t&&e),childCategories(e,t){return(0,a.default)("The childCategories property of the bread-crumbs component is deprecated",{id:"discourse.breadcrumbs.childCategories"}),t?[]:e?this.categories.filter((t=>t.get("parentCategory")===e)):[]}},(0,r.Z)(_,"categoryBreadcrumbs",[u],Object.getOwnPropertyDescriptor(_,"categoryBreadcrumbs"),_),(0,r.Z)(_,"showTagsSection",[d],Object.getOwnPropertyDescriptor(_,"showTagsSection"),_),(0,r.Z)(_,"parentCategory",[p],Object.getOwnPropertyDescriptor(_,"parentCategory"),_),(0,r.Z)(_,"parentCategoriesSorted",[h],Object.getOwnPropertyDescriptor(_,"parentCategoriesSorted"),_),(0,r.Z)(_,"hidden",[m],Object.getOwnPropertyDescriptor(_,"hidden"),_),(0,r.Z)(_,"firstCategory",[g],Object.getOwnPropertyDescriptor(_,"firstCategory"),_),(0,r.Z)(_,"secondCategory",[f],Object.getOwnPropertyDescriptor(_,"secondCategory"),_),(0,r.Z)(_,"childCategories",[b],Object.getOwnPropertyDescriptor(_,"childCategories"),_),_)))},63482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(23183);const a=(0,n(8620).createTemplateFactory)({id:"3CjW19Nk",block:'[[[10,2],[12],[1,[28,[35,0],["topics.bulk.choose_append_tags"],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,1],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n"],[8,[39,2],null,[["@action","@disabled","@label"],[[28,[37,3],[[30,2],[28,[37,4],null,[["type","tags"],["append_tags",[30,0,["tags"]]]]]],null],[28,[37,5],[[30,0,["tags"]]],null],"topics.bulk.append_tags"]],null]],["@categoryId","@performAndRefresh"],false,["i18n","tag-chooser","d-button","fn","hash","not"]]',moduleName:"discourse/components/bulk-actions/append-tags.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"tags",c,this)}},c=(0,i.Z)(l.prototype,"tags",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l);(0,u.setComponentTemplate)(a,d)},99363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(49246),i=n(54001),s=n(82006),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"yKuzNqq9",block:'[[[10,2],[12],[1,[28,[35,0],["topics.bulk.choose_new_category"],null]],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n  "],[8,[39,1],null,[["@value","@onChange"],[[30,0,["categoryId"]],[28,[37,2],[[30,0],[28,[37,3],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,4],null,[["@condition"],[[30,1]]],[["default"],[[[[1,"\\n  "],[8,[39,5],null,[["@action","@label"],[[30,0,["changeCategory"]],"topics.bulk.change_category"]],null],[1,"\\n"]],[]]]]]],["@loading"],false,["i18n","category-chooser","action","mut","conditional-loading-spinner","d-button"]]',moduleName:"discourse/components/bulk-actions/change-category.hbs",isStrictMode:!1});var l,c=n(31691);let u=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"categoryId",0)}async changeCategory(){await this.args.forEachPerformed({type:"change_category",category_id:this.categoryId},(e=>e.set("category_id",this.categoryId)))}},(0,i.Z)(l.prototype,"changeCategory",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"changeCategory"),l.prototype),l);(0,c.setComponentTemplate)(a,u)},31369:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(23183);const a=(0,n(8620).createTemplateFactory)({id:"EdFs68a0",block:'[[[10,2],[12],[1,[28,[35,0],["topics.bulk.choose_new_tags"],null]],[13],[1,"\\n\\n"],[10,2],[12],[8,[39,1],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,1]]],null],[13],[1,"\\n\\n"],[8,[39,2],null,[["@action","@disabled","@label"],[[28,[37,3],[[30,2],[28,[37,4],null,[["type","tags"],["change_tags",[30,0,["tags"]]]]]],null],[28,[37,5],[[30,0,["tags"]]],null],"topics.bulk.change_tags"]],null]],["@categoryId","@performAndRefresh"],false,["i18n","tag-chooser","d-button","fn","hash","not"]]',moduleName:"discourse/components/bulk-actions/change-tags.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"tags",c,this)}},c=(0,i.Z)(l.prototype,"tags",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),l);(0,u.setComponentTemplate)(a,d)},4785:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(48163),l=n(6264),c=n(35814),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"UdFdm8f6",block:'[[[10,0],[14,0,"bulk-notification-list"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["notificationLevels"]]],null]],null],null,[[[1,"    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,"label"],[14,0,"radio notification-level-radio checkbox-label"],[12],[1,"\\n        "],[8,[39,2],null,[["@value","@name","@selection"],[[30,1,["id"]],"notification_level",[30,0,["notificationLevelId"]]]],null],[1,"\\n        "],[10,"strong"],[12],[1,[30,1,["name"]]],[13],[1,"\\n        "],[10,0],[14,0,"description"],[12],[1,[28,[35,3],[[30,1,["description"]]],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[1]],null],[13],[1,"\\n\\n"],[8,[39,4],null,[["@disabled","@action","@label"],[[30,0,["disabled"]],[30,0,["changeNotificationLevel"]],"topics.bulk.change_notification_level"]],null]],["level"],false,["each","-track-array","radio-button","html-safe","d-button"]]',moduleName:"discourse/components/bulk-actions/notification-level.hbs",isStrictMode:!1});var p,h,m,g=n(31691);let f=(p=(0,l.empty)("notificationLevelId"),h=class extends o.default{constructor(){super(...arguments),(0,i.Z)(this,"notificationLevelId",null),(0,r.Z)(this,"disabled",m,this)}get notificationLevels(){return c.topicLevels.map((e=>({id:e.id.toString(),name:u.default.t(`topic.notifications.${e.key}.title`),description:u.default.t(`topic.notifications.${e.key}.description`)})))}changeNotificationLevel(){this.args.performAndRefresh({type:"change_notification_level",notification_level_id:this.notificationLevelId})}},m=(0,s.Z)(h.prototype,"disabled",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(h.prototype,"changeNotificationLevel",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"changeNotificationLevel"),h.prototype),h);(0,g.setComponentTemplate)(d,f)},87106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({pluginApiIdentifiers:["bulk-group-member-dropdown"],classNames:["bulk-group-member-dropdown"],selectKitOptions:{icon:"cog",showFullTitle:!1},content:(0,r.computed)("bulkSelection.[]",(function(){const e=[];return e.push({id:"removeMembers",name:i.default.t("groups.members.remove_members"),description:i.default.t("groups.members.remove_members_description"),icon:"user-times"}),this.bulkSelection.some((e=>!e.owner))&&e.push({id:"makeOwners",name:i.default.t("groups.members.make_owners"),description:i.default.t("groups.members.make_owners_description"),icon:"shield-alt"}),this.bulkSelection.some((e=>e.owner))&&e.push({id:"removeOwners",name:i.default.t("groups.members.remove_owners"),description:i.default.t("groups.members.remove_owners_description"),icon:"shield-alt"}),this.currentUser.staff&&(this.bulkSelection.some((e=>!e.primary))&&e.push({id:"setPrimary",name:i.default.t("groups.members.make_all_primary"),description:i.default.t("groups.members.make_all_primary_description"),icon:"id-card"}),this.bulkSelection.some((e=>e.primary))&&e.push({id:"unsetPrimary",name:i.default.t("groups.members.remove_all_primary"),description:i.default.t("groups.members.remove_all_primary_description"),icon:"id-card"})),e}))})},62244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(69338),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"Eh4t+jvo",block:'[[[1,"\\n  "],[8,[32,0],[[24,0,"bulk-select"]],[["@action","@icon"],[[30,1,["toggleBulkSelect"]],"list"]],null],[1,"\\n"]],["@bulkSelectHelper"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-select-toggle.js",scope:()=>[r.default],isStrictMode:!0}),a()())},50553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(33217),u=n(10425),d=n(18104),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"IlYdxY5g",block:'[[[11,0],[24,0,"calendar-date-time-input"],[4,[38,0],[[30,0,["setupInternalDateTime"]]],null],[4,[38,0],[[30,0,["setupPikaday"]]],null],[4,[38,1],[[30,0,["changeMinDate"]],[30,1]],null],[4,[38,1],[[30,0,["changeDate"]],[30,2]],null],[4,[38,1],[[30,0,["changeTime"]],[30,3]],null],[12],[1,"\\n  "],[8,[39,2],[[24,0,"fake-input"]],null,null],[1,"\\n\\n  "],[10,0],[14,0,"date-picker"],[15,1,[29,["picker-container-",[30,4]]]],[12],[13],[1,"\\n\\n  "],[10,0],[14,0,"time-pickers"],[12],[1,"\\n    "],[1,[28,[35,3],["far-clock"],null]],[1,"\\n    "],[8,[39,2],[[16,"maxlength",5],[24,"placeholder","hh:mm"],[24,0,"time-picker"],[4,[38,4],["input",[28,[37,5],[[30,0],[30,0,["onChangeTime"]]],null]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@minDate","@date","@time","@datePickerId"],false,["did-insert","did-update","input","d-icon","on","action"]]',moduleName:"discourse/components/calendar-date-time-input.hbs",isStrictMode:!1});var m,g,f,b,_=n(31691);let y=(b=new WeakSet,m=class extends o.default{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=b),t.add(e),(0,i.Z)(this,"_timeFormat",this.args.timeFormat||"HH:mm:ss"),(0,i.Z)(this,"_dateFormat",this.args.dateFormat||"YYYY-MM-DD"),(0,i.Z)(this,"_dateTimeFormat",this.args.dateTimeFormat||"YYYY-MM-DD HH:mm:ss"),(0,i.Z)(this,"_picker",null),(0,r.Z)(this,"_time",g,this),(0,r.Z)(this,"_date",f,this)}setupInternalDateTime(){this._time=this.args.time,this._date=this.args.date}setupPikaday(e){(function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n})(this,b,w).call(this,e).then((e=>{this._picker=e}))}onChangeTime(e){this._time=e.target.value,this.args.onChangeTime(this._time)}changeDate(){moment(this.args.date,this._dateFormat).isValid()?(this._date=this.args.date,this._picker.setDate(moment.utc(this._date).format(this._dateFormat),!0)):(this._date=null,this._picker.setDate(null))}changeTime(){(0,c.isEmpty)(this.args.time)?this._time=null:/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/.test(this.args.time)&&(this._time=this.args.time)}changeMinDate(){this.args.minDate&&moment(this.args.minDate,this._dateFormat).isValid()?this._picker.setMinDate(moment(this.args.minDate,this._dateFormat).toDate()):this._picker.setMinDate(null)}},g=(0,s.Z)(m.prototype,"_time",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,s.Z)(m.prototype,"_date",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(m.prototype,"setupInternalDateTime",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"setupInternalDateTime"),m.prototype),(0,s.Z)(m.prototype,"setupPikaday",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"setupPikaday"),m.prototype),(0,s.Z)(m.prototype,"onChangeTime",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"onChangeTime"),m.prototype),(0,s.Z)(m.prototype,"changeDate",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"changeDate"),m.prototype),(0,s.Z)(m.prototype,"changeTime",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"changeTime"),m.prototype),(0,s.Z)(m.prototype,"changeMinDate",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"changeMinDate"),m.prototype),m);function w(e){return new u.Promise((t=>{(0,d.default)("/javascripts/pikaday.js").then((()=>{const n={field:e.querySelector(".fake-input"),container:e.querySelector(`#picker-container-${this.args.datePickerId}`),bound:!1,format:"YYYY-MM-DD",reposition:!1,firstDay:1,setDefaultDate:!0,keyboardInput:!1,i18n:{previousMonth:p.default.t("dates.previous_month"),nextMonth:p.default.t("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>{const t=moment(e).format("YYYY-MM-DD");this.args.onChangeDate(t)}};t(new Pikaday(n))}))}))}(0,_.setComponentTemplate)(h,y)},51098:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"r/AlY24q",block:'[[[8,[39,0],[[24,0,"cancel"]],[["@route","@model"],[[30,0,["route"]],[30,0,["args"]]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],["cancel"],null]],[1,"\\n"]],[]]]]]],[],false,["link-to","i18n"]]',moduleName:"discourse/components/cancel-link.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},29448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(54001),s=n(82006),o=n(97423),a=n(48163),l=n(17579),c=n(20229);const u=(0,n(8620).createTemplateFactory)({id:"Od9UEK1W",block:'[[[41,[30,0,["site","mobileView"]],[[[1,"  "],[10,0],[14,0,"card-cloak hidden"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,1],null,[["@name"],["user-card-content-container"]],[["default"],[[[[1,"\\n  "],[8,[39,2],[[24,"role","dialog"]],[["@topic","@showUser","@filterPosts","@composePrivateMessage"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["filterPosts"]],[28,[37,3],["composePrivateMessage"],null]]],null],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,4],null,[["@topic","@showUser","@showGroup"],[[30,0,["topic","model"]],[30,0,["showUser"]],[30,0,["showGroup"]]]],null]],[],false,["if","plugin-outlet","user-card-contents","route-action","group-card-contents"]]',moduleName:"discourse/components/card-container.hbs",isStrictMode:!1});var d,p,h,m=n(31691);let g=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"site",p,this),(0,r.Z)(this,"topic",h,this)}filterPosts(e){this.topic.send("filterParticipant",e)}showUser(e){c.default.routeTo((0,c.userPath)(e.username_lower))}showGroup(e){c.default.routeTo((0,c.groupPath)(e.name))}},p=(0,i.Z)(d.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(d.prototype,"topic",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"filterPosts",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"filterPosts"),d.prototype),(0,i.Z)(d.prototype,"showUser",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"showUser"),d.prototype),(0,i.Z)(d.prototype,"showGroup",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"showGroup"),d.prototype),d);(0,m.setComponentTemplate)(u,g)},56900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"waTO2NCy",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n  "],[8,[39,0],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n  "],[8,[39,1],[[24,0,"latest-topic-list"]],[["@topics","@filter"],[[30,0,["topics"]],"latest"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-latest-topics.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({classNames:["categories-and-latest"]}))},37706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"CC0uiKOr",block:'[[[10,0],[14,0,"column categories"],[12],[1,"\\n  "],[8,[39,0],null,[["@categories"],[[30,0,["categories"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"column"],[12],[1,"\\n  "],[8,[39,1],[[24,0,"top-topic-list"]],[["@topics","@filter"],[[30,0,["topics"]],"top"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName"],["extra-categories-column","div"]],null]],[],false,["categories-only","categories-topic-list","plugin-outlet"]]',moduleName:"discourse/components/categories-and-top-topics.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({classNames:["categories-and-top"]}))},98396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"A/xiz0vg",block:'[[[1,[28,[35,0],[[30,0,["topicStatusIcon"]]],null]],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,"\\n  "],[1,[28,[35,1],[[30,0,["topic","fancyTitle"]]],null]],[1,"\\n"],[13]],[],false,["d-icon","html-safe"]]',moduleName:"discourse/components/categories-boxes-topic.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("topic.pinned","topic.closed","topic.archived"),c={tagName:"li",attributeBindings:["topic.id:data-topic-id"],topicStatusIcon:(e,t,n)=>e?"thumbtack":t||n?"lock":"far-file-alt"},(0,r.Z)(c,"topicStatusIcon",[l],Object.getOwnPropertyDescriptor(c,"topicStatusIcon"),c),c)))},82466:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(33217),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"zRz84fk0",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[10,0],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,5,[28,[37,2],[[30,1,["color"]]],null]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n      ",[52,[30,1,["isMuted"]],"muted"]]]],[12],[1,"\\n    "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n      "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n        "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[41,[30,1,["uploaded_logo","url"]],[[[1,"              "],[8,[39,5],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n          "],[10,"h3"],[12],[1,"\\n            "],[8,[39,6],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1,"              "],[1,[28,[35,7],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1,"            "],[1,[30,1,["name"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1,"        "],[10,0],[14,0,"featured-topics"],[12],[1,"\\n"],[41,[30,1,["topics"]],[[[1,"            "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["topics"]]],null]],null],null,[[[1,"                "],[8,[39,8],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[2]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,9],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,10],null,[["category"],[[30,1]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["c","topic"],false,["each","-track-array","category-color-variable","if","unless","category-logo","category-title-before","d-icon","categories-boxes-topic","plugin-outlet","hash"]]',moduleName:"discourse/components/categories-boxes-with-topics.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("categories.[].uploaded_logo.url"),u={tagName:"section",classNameBindings:[":category-boxes-with-topics","anyLogos:with-logos:no-logos"],lockIcon:"lock",anyLogos(){return this.categories.any((e=>!(0,o.isEmpty)(e.get("uploaded_logo.url"))))}},(0,r.Z)(u,"anyLogos",[c],Object.getOwnPropertyDescriptor(u,"anyLogos"),u),u)))},29082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(33217),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"uu6dPqbf",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@name","@outletArgs"],["category-box-before-each-box",[28,[37,3],null,[["category"],[[30,1]]]]]],null],[1,"\\n\\n  "],[10,0],[15,5,[28,[37,4],[[30,1,["color"]]],null]],[15,"data-category-id",[30,1,["id"]]],[15,"data-notification-level",[30,1,["notificationLevelString"]]],[15,"data-url",[30,1,["url"]]],[15,0,[29,["category category-box category-box-",[30,1,["slug"]],"\\n      ",[52,[30,1,["isMuted"]],"muted"]]]],[12],[1,"\\n    "],[10,0],[14,0,"category-box-inner"],[12],[1,"\\n"],[41,[51,[30,1,["isMuted"]]],[[[1,"        "],[10,0],[14,0,"category-logo"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1,"            "],[8,[39,7],null,[["@category"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"category-details"],[12],[1,"\\n        "],[10,0],[14,0,"category-box-heading"],[12],[1,"\\n          "],[10,3],[14,0,"parent-box-link"],[15,6,[30,1,["url"]]],[12],[1,"\\n            "],[10,"h3"],[12],[1,"\\n              "],[8,[39,8],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["read_restricted"]],[[[1,"                "],[1,[28,[35,9],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1,"              "],[1,[30,1,["name"]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n\\n"],[41,[51,[30,1,["isMuted"]]],[[[1,"          "],[10,0],[14,0,"description"],[12],[1,"\\n            "],[1,[28,[35,10],[[30,1,["description_excerpt"]]],null]],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,1,["isGrandParent"]],[[[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"              "],[10,0],[15,"data-category-id",[30,2,["id"]]],[15,"data-notification-level",[30,2,["notificationLevelString"]]],[15,5,[28,[37,11],[[30,2,["color"]]],null]],[15,0,[29,["subcategory with-subcategories\\n                  ",[52,[30,2,["uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n                "],[10,0],[14,0,"subcategory-box-inner"],[12],[1,"\\n                  "],[8,[39,12],null,[["@tagName","@category"],["h4",[30,2]]],null],[1,"\\n"],[41,[30,2,["subcategories"]],[[[1,"                    "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,2,["subcategories"]]],null]],null],null,[[[41,[51,[30,3,["isMuted"]]],[[[1,"                          "],[10,1],[14,0,"subcategory"],[12],[1,"\\n                            "],[8,[39,8],null,[["@category"],[[30,3]]],null],[1,"\\n                            "],[1,[28,[35,13],[[30,3]],[["hideParent"],["true"]]]],[1,"\\n                          "],[13],[1,"\\n"]],[]],null]],[3]],null],[1,"                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[2]],null]],[]],[[[41,[30,1,["subcategories"]],[[[1,"            "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"                "],[10,3],[14,0,"subcategory"],[15,6,[30,4,["url"]]],[12],[1,"\\n                  "],[10,1],[14,0,"subcategory-image-placeholder"],[12],[1,"\\n"],[41,[30,4,["uploaded_logo","url"]],[[[1,"                      "],[8,[39,7],null,[["@category"],[[30,4]]],null],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n\\n                  "],[1,[28,[35,13],[[30,4]],[["hideParent"],["true"]]]],[1,"\\n                "],[13],[1,"\\n"]],[4]],null],[1,"            "],[13],[1,"\\n          "]],[]],null]],[]]]],[]],null],[1,"      "],[13],[1,"\\n\\n      "],[8,[39,2],null,[["@name","@outletArgs"],["category-box-below-each-category",[28,[37,3],null,[["category"],[[30,1]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,2],null,[["@name","@outletArgs"],["category-box-after-each-box",[28,[37,3],null,[["category"],[[30,1]]]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[8,[39,2],null,[["@name","@outletArgs"],["category-boxes-after-boxes",[28,[37,3],null,[["category"],[[30,0,["c"]]]]]]],null]],["c","subcategory","subsubcategory","sc"],false,["each","-track-array","plugin-outlet","hash","category-color-variable","if","unless","category-logo","category-title-before","d-icon","html-safe","border-color","category-title-link","category-link"]]',moduleName:"discourse/components/categories-boxes.hbs",isStrictMode:!1});var c,u,d;const p=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("categories.[].uploaded_logo.url"),u=(0,a.default)("categories.[].subcategories"),d={tagName:"section",classNameBindings:[":category-boxes","anyLogos:with-logos:no-logos","hasSubcategories:with-subcategories"],lockIcon:"lock",anyLogos(){return this.categories.any((e=>!(0,o.isEmpty)(e.get("uploaded_logo.url"))))},hasSubcategories(){return this.categories.any((e=>!(0,o.isEmpty)(e.get("subcategories"))))}},(0,r.Z)(d,"anyLogos",[c],Object.getOwnPropertyDescriptor(d,"anyLogos"),d),(0,r.Z)(d,"hasSubcategories",[u],Object.getOwnPropertyDescriptor(d,"hasSubcategories"),d),d)))},57755:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"VErhlOHv",block:'[[[41,[30,0,["categories"]],[[[41,[30,0,["filteredCategories"]],[[[1,"    "],[10,"table"],[15,0,[29,["category-list ",[52,[30,0,["showTopics"]],"with-topics"]]]],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[13],[1,"\\n          "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,1],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1,"            "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,1],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categories"]]],null]],null],null,[[[1,"          "],[8,[39,4],null,[["@category","@showTopics"],[[30,1],[30,0,["showTopics"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["mutedCategories"]],[[[1,"    "],[10,0],[14,0,"muted-categories"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"muted-categories-link"],[4,[38,5],["click",[30,0,["toggleShowMuted"]]],null],[12],[1,"\\n        "],[10,"h3"],[14,0,"muted-categories-heading"],[12],[1,[28,[35,1],["categories.muted"],null]],[13],[1,"\\n"],[41,[30,0,["mutedToggleIcon"]],[[[1,"          "],[1,[28,[35,6],[[30,0,["mutedToggleIcon"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,"table"],[15,0,[29,["category-list\\n          ",[52,[30,0,["showTopics"]],"with-topics"],"\\n          ",[52,[51,[30,0,["showMutedCategories"]]],"hidden"]]]],[12],[1,"\\n        "],[10,"thead"],[12],[1,"\\n          "],[10,"tr"],[12],[1,"\\n            "],[10,"th"],[14,0,"category"],[12],[10,1],[14,"role","heading"],[14,"aria-level","2"],[14,1,"categories-only-category-muted"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[13],[1,"\\n            "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,1],["categories.topics"],null]],[13],[1,"\\n"],[41,[30,0,["showTopics"]],[[[1,"              "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,1],["categories.latest"],null]],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"tbody"],[14,"aria-labelledby","categories-only-category-muted"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categories"]]],null]],null],null,[[[1,"            "],[8,[39,4],null,[["@category","@showTopics","@listType"],[[30,2],[30,0,["showTopics"]],"muted"]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["below-categories-only","div",[28,[37,9],null,[["categories","showTopics"],[[30,0,["categories"]],[30,0,["showTopics"]]]]]]],null]],["category","category"],false,["if","i18n","each","-track-array","parent-category-row","on","d-icon","unless","plugin-outlet","hash"]]',moduleName:"discourse/components/categories-only.hbs",isStrictMode:!1});var c,u,d,p,h;const m=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("showMutedCategories","filteredCategories.length"),u=(0,a.default)("showMuted","filteredCategories.length"),d=(0,a.default)("categories","categories.length"),p=(0,a.default)("categories","categories.length"),h={tagName:"",showMuted:!1,mutedToggleIcon(e,t){if(0!==t)return e?"minus":"plus"},showMutedCategories:(e,t)=>e||0===t,filteredCategories:(e,t)=>e&&0!==t?e.filter((e=>!e.isHidden)):[],mutedCategories:(e,t)=>e&&0!==t?e.firstObject.parent_category_id?[]:e.filterBy("hasMuted"):[],toggleShowMuted(e){e?.preventDefault(),this.toggleProperty("showMuted")}},(0,r.Z)(h,"mutedToggleIcon",[c],Object.getOwnPropertyDescriptor(h,"mutedToggleIcon"),h),(0,r.Z)(h,"showMutedCategories",[u],Object.getOwnPropertyDescriptor(h,"showMutedCategories"),h),(0,r.Z)(h,"filteredCategories",[d],Object.getOwnPropertyDescriptor(h,"filteredCategories"),h),(0,r.Z)(h,"mutedCategories",[p],Object.getOwnPropertyDescriptor(h,"mutedCategories"),h),(0,r.Z)(h,"toggleShowMuted",[o.action],Object.getOwnPropertyDescriptor(h,"toggleShowMuted"),h),h)))},28480:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"ejrbR/Xn",block:'[[[10,0],[14,"role","heading"],[14,"aria-level","2"],[14,0,"table-heading"],[12],[1,"\\n  "],[1,[28,[35,0],[[28,[37,1],["filters.",[30,0,["filter"]],".title"],null]],null]],[1,"\\n  "],[8,[39,2],null,[["@name","@connectorTagName"],["categories-topics-table-heading","div"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["topics"]],[[[42,[28,[37,5],[[28,[37,5],[[30,0,["topics"]]],null]],null],null,[[[1,"    "],[8,[39,6],null,[["@topic"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1,"  "],[10,0],[14,0,"more-topics"],[12],[1,"\\n"],[41,[28,[37,7],[[30,0,["siteSettings","desktop_category_page_style"]],"categories_and_latest_topics_created_date"],null],[[[1,"      "],[10,3],[15,6,[28,[37,8],[[28,[37,1],["/",[30,0,["filter"]],"?order=created"],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,0],["more"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[10,3],[15,6,[28,[37,8],[[28,[37,1],["/",[30,0,["filter"]]],null]],null]],[14,0,"btn btn-default pull-right"],[12],[1,[28,[35,0],["more"],null]],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"no-topics"],[12],[1,"\\n    "],[10,"h3"],[12],[1,[28,[35,0],[[28,[37,1],["topics.none.",[30,0,["filter"]]],null]],null]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["t"],false,["i18n","concat","plugin-outlet","if","each","-track-array","latest-topic-list-item","eq","get-url"]]',moduleName:"discourse/components/categories-topic-list.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend())},96193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Ee+adfCO",block:'[[[8,[39,0],null,[["@categories","@showTopics"],[[30,0,["categories"]],"true"]],null]],[],false,["categories-only"]]',moduleName:"discourse/components/categories-with-featured-topics.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},347:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o,a,l=n(54001),c=n(31691),u=n.n(c),d=n(57555);const p="normal",h="muted",m=u().extend((r=(0,d.default)("category.isHidden","category.hasMuted","listType"),i=(0,d.default)("category.isMuted","listType"),s=(0,d.default)("topicTrackingState.messageCount"),o=(0,d.default)("topicTrackingState.messageCount"),a={tagName:"",category:null,listType:p,isHidden:(e,t,n)=>e&&n===p||!t&&n===h,isMuted:(e,t)=>e&&t===p||!e&&t===h,unreadTopicsCount(){return this.category.unreadTopicsCount},newTopicsCount(){return this.category.newTopicsCount}},(0,l.Z)(a,"isHidden",[r],Object.getOwnPropertyDescriptor(a,"isHidden"),a),(0,l.Z)(a,"isMuted",[i],Object.getOwnPropertyDescriptor(a,"isMuted"),a),(0,l.Z)(a,"unreadTopicsCount",[s],Object.getOwnPropertyDescriptor(a,"unreadTopicsCount"),a),(0,l.Z)(a,"newTopicsCount",[o],Object.getOwnPropertyDescriptor(a,"newTopicsCount"),a),a))},23950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(42122),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"jv9GezQc",block:'[[[1,"\\n  "],[10,0],[14,0,"category-logo aspect-image"],[12],[1,"\\n    "],[8,[32,0],null,[["@lightImg","@darkImg"],[[30,1,["uploaded_logo"]],[30,1,["uploaded_logo_dark"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],["@category"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/category-logo.js",scope:()=>[r.default],isStrictMode:!0}),a()())},82860:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"61XCVQ/D",block:'[[[10,"section"],[14,0,"field"],[12],[1,"\\n"],[41,[51,[30,0,["category","isUncategorizedCategory"]]],[[[1,"    "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["category.name"],null]],[13],[1,"\\n      "],[8,[39,2],[[24,0,"category-name"]],[["@value","@placeholderKey","@maxlength"],[[30,0,["category","name"]],"category.name_placeholder","50"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,"section"],[14,0,"field-item"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["category.slug"],null]],[13],[1,"\\n    "],[8,[39,2],null,[["@value","@placeholderKey","@maxlength"],[[30,0,["category","slug"]],"category.slug_placeholder","255"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["unless","i18n","text-field"]]',moduleName:"discourse/components/category-name-fields.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},52341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(12506),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"xUTUXgAt",block:'[[[10,1],[14,0,"group-name"],[12],[1,"\\n  "],[10,1],[14,0,"group-name-label"],[12],[1,[30,0,["group_name"]]],[13],[1,"\\n  "],[11,3],[24,0,"remove-permission"],[24,6,""],[4,[38,0],["click",[30,0,["removeRow"]]],null],[12],[1,"\\n    "],[1,[28,[35,1],["far-trash-alt"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,1],[14,0,"options actionable"],[12],[1,"\\n  "],[8,[39,2],[[24,0,"btn-flat see"]],[["@icon","@disabled"],["check-square",true]],null],[1,"\\n\\n  "],[8,[39,2],[[16,0,[28,[37,3],["btn btn-flat reply-toggle",[30,0,["replyGranted"]]],null]]],[["@icon","@action","@translatedTitle","@disabled"],[[30,0,["canReplyIcon"]],[28,[37,4],[[30,0],"setPermissionReply"],null],[30,0,["replyTooltip"]],[30,0,["replyDisabled"]]]],null],[1,"\\n\\n  "],[8,[39,2],[[16,0,[28,[37,3],["btn-flat create-toggle",[30,0,["createGranted"]]],null]]],[["@icon","@action","@translatedTitle","@disabled"],[[30,0,["canCreateIcon"]],[28,[37,4],[[30,0],"setPermissionFull"],null],[30,0,["createTooltip"]],[30,0,["createDisabled"]]]],null],[1,"\\n"],[13]],[],false,["on","d-icon","d-button","concat-class","action"]]',moduleName:"discourse/components/category-permission-row.hbs",isStrictMode:!1});var p,h,m,g,f,b,_,y,w,v,k;const x="everyone",T=(0,i.setComponentTemplate)(d,s().extend((p=(0,c.default)("type"),h=(0,c.default)("type"),m=(0,c.default)("type"),g=(0,c.default)("type"),f=(0,c.default)("type"),b=(0,c.observes)("everyonePermissionType"),_=(0,c.default)("everyonePermissionType","type"),y=(0,c.default)("replyDisabled"),w=(0,c.default)("everyonePermissionType","type"),v=(0,c.default)("createDisabled"),k={classNames:["permission-row","row-body"],canCreate:(0,a.equal)("type",l.default.FULL),everyonePermissionType:(0,a.alias)("everyonePermission.permission_type"),canReply:e=>e===l.default.CREATE_POST||e===l.default.FULL,canReplyIcon(){return this.canReply?"check-square":"far-square"},canCreateIcon(){return this.canCreate?"check-square":"far-square"},replyGranted(){return this.type<=l.default.CREATE_POST?"reply-granted":""},createGranted(){return this.type===l.default.FULL?"create-granted":""},inheritFromEveryone(){this.group_name!==x&&this.everyonePermissionType<this.type&&this.updatePermission(this.everyonePermissionType)},replyDisabled(e){return!!(this.group_name!==x&&e&&e<=l.default.CREATE_POST)},replyTooltip:e=>e?u.default.t("category.permissions.inherited"):u.default.t("category.permissions.toggle_reply"),createDisabled(e){return!(this.group_name===x||!e||e!==l.default.FULL)},createTooltip:e=>e?u.default.t("category.permissions.inherited"):u.default.t("category.permissions.toggle_full"),updatePermission(e){this.category.updatePermission(this.group_name,e)},removeRow(e){e?.preventDefault(),this.category.removePermission(this.group_name)},actions:{setPermissionReply(){this.type<=l.default.CREATE_POST?this.updatePermission(l.default.READONLY):this.updatePermission(l.default.CREATE_POST)},setPermissionFull(){this.group_name!==x&&this.everyonePermissionType===l.default.FULL||(this.type===l.default.FULL?this.updatePermission(l.default.CREATE_POST):this.updatePermission(l.default.FULL))}}},(0,r.Z)(k,"canReply",[p],Object.getOwnPropertyDescriptor(k,"canReply"),k),(0,r.Z)(k,"canReplyIcon",[h],Object.getOwnPropertyDescriptor(k,"canReplyIcon"),k),(0,r.Z)(k,"canCreateIcon",[m],Object.getOwnPropertyDescriptor(k,"canCreateIcon"),k),(0,r.Z)(k,"replyGranted",[g],Object.getOwnPropertyDescriptor(k,"replyGranted"),k),(0,r.Z)(k,"createGranted",[f],Object.getOwnPropertyDescriptor(k,"createGranted"),k),(0,r.Z)(k,"inheritFromEveryone",[b],Object.getOwnPropertyDescriptor(k,"inheritFromEveryone"),k),(0,r.Z)(k,"replyDisabled",[_],Object.getOwnPropertyDescriptor(k,"replyDisabled"),k),(0,r.Z)(k,"replyTooltip",[y],Object.getOwnPropertyDescriptor(k,"replyTooltip"),k),(0,r.Z)(k,"createDisabled",[w],Object.getOwnPropertyDescriptor(k,"createDisabled"),k),(0,r.Z)(k,"createTooltip",[v],Object.getOwnPropertyDescriptor(k,"createTooltip"),k),(0,r.Z)(k,"removeRow",[o.action],Object.getOwnPropertyDescriptor(k,"removeRow"),k),k)))},82681:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"/z0WbsYv",block:'[[[41,[30,0,["shouldShow"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"alert alert-info category-read-only-banner"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,0,["category","read_only_banner"]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","html-safe"]]',moduleName:"discourse/components/category-read-only-banner.hbs",isStrictMode:!1});var c;const u=(0,i.setComponentTemplate)(l,s().extend((c={user(){return this.currentUser},shouldShow:(0,o.and)("category.read_only_banner","readOnly","user")},(0,r.Z)(c,"user",[a.default],Object.getOwnPropertyDescriptor(c,"user"),c),c)))},78139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"xN5FMwDU",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["category-title-before",[28,[37,1],null,[["category"],[[30,0,["category"]]]]]]],null]],[],false,["plugin-outlet","hash"]]',moduleName:"discourse/components/category-title-before.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:""}))},65410:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"wRw/fpvu",block:'[[[10,3],[14,0,"category-title-link"],[15,6,[30,0,["category","url"]]],[12],[1,"\\n  "],[10,0],[14,0,"category-text-title"],[12],[1,"\\n    "],[8,[39,0],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","read_restricted"]],[[[1,"      "],[1,[28,[35,2],[[30,0,["lockIcon"]]],null]],[1,"\\n"]],[]],null],[1,"    "],[10,1],[14,0,"category-name"],[12],[1,[28,[35,3],[[30,0,["category","name"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["category","uploaded_logo","url"]],[[[1,"    "],[8,[39,4],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[13]],[],false,["category-title-before","if","d-icon","dir-span","category-logo"]]',moduleName:"discourse/components/category-title-link.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"h3",lockIcon:"lock"}))},83444:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"1dGC4P7h",block:'[[[41,[30,0,["unreadTopicsCount"]],[[[1,"  "],[10,3],[15,6,[30,0,["category","unreadUrl"]]],[15,"title",[28,[37,1],["topic.unread_topics"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,1],["filters.unread.lower_title_with_count"],[["count"],[[30,0,["unreadTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["newTopicsCount"]],[[[1,"  "],[10,3],[15,6,[30,0,["category","newUrl"]]],[15,"title",[28,[37,1],["topic.new_topics"],[["count"],[[30,0,["newTopicsCount"]]]]]],[14,0,"badge new-posts badge-notification"],[12],[1,[28,[35,1],["filters.new.lower_title_with_count"],[["count"],[[30,0,["newTopicsCount"]]]]]],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n"]]',moduleName:"discourse/components/category-unread.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"span"}))},47748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(54001),i=n(31691),s=n.n(i),o=n(24434),a=n(47582),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"ahC3O1KZ",block:'[[[41,[30,0,["src"]],[[[1,"  "],[11,"img"],[17,1],[16,"src",[30,0,["cdnSrc"]]],[16,"width",[30,0,["width"]]],[16,"height",[30,0,["height"]]],[16,5,[30,0,["style"]]],[24,"alt",""],[12],[13],[1,"\\n"]],[]],null]],["&attrs"],false,["if"]]',moduleName:"discourse/components/cdn-img.hbs",isStrictMode:!1});var u,d,p;const h=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("src"),d=(0,l.default)("width","height"),p={tagName:"",cdnSrc:e=>(0,a.getURLWithCDN)(e),style(e,t){if(e&&t)return(0,o.htmlSafe)(`--aspect-ratio: ${e/t};`)}},(0,r.Z)(p,"cdnSrc",[u],Object.getOwnPropertyDescriptor(p,"cdnSrc"),p),(0,r.Z)(p,"style",[d],Object.getOwnPropertyDescriptor(p,"style"),p),p)))},72575:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"V+rYmbch",block:'[[[11,0],[16,0,[28,[37,0],["char-counter",[52,[28,[37,2],[[30,1,["length"]],[30,2]],null],"exceeded"]],null]],[17,3],[12],[1,"\\n  "],[18,4,null],[1,"\\n  "],[10,"small"],[14,0,"char-counter__ratio"],[12],[1,"\\n    "],[1,[30,1,["length"]]],[1,"/"],[1,[30,2]],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,"aria-live","polite"],[14,0,"sr-only"],[12],[1,"\\n    "],[1,[52,[28,[37,2],[[30,1,["length"]],[30,2]],null],[28,[37,4],["char_counter.exceeded"],null]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["@value","@max","&attrs","&default"],false,["concat-class","if","gt","yield","i18n"]]',moduleName:"discourse/components/char-counter.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},57939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(51372),l=n(33217),c=n(71466),u=n.n(c),d=n(64519),p=n(57555);const h=(0,n(8620).createTemplateFactory)({id:"vpQ4YaL5",block:'[[[10,"label"],[14,"for","choose-message-title"],[12],[1,[28,[35,0],["choose_message.title.search"],null]],[13],[1,"\\n\\n"],[8,[39,1],null,[["@value","@placeholderKey","@id"],[[30,0,["messageTitle"]],"choose_message.title.placeholder","choose-message-title"]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1,"  "],[10,2],[12],[1,[28,[35,0],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noResults"]],[[[1,"    "],[10,2],[12],[1,[28,[35,0],["choose_message.none_found"],null]],[13],[1,"\\n"]],[]],[[[42,[28,[37,4],[[28,[37,4],[[30,0,["messages"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"controls existing-message"],[12],[1,"\\n        "],[10,"label"],[14,0,"radio"],[12],[1,"\\n          "],[11,"input"],[16,1,[29,["choose-message-",[30,1,["id"]]]]],[24,3,"choose_message_id"],[24,4,"radio"],[4,[38,5],["click",[28,[37,6],[[30,0,["chooseMessage"]],[30,1]],null]],null],[12],[13],[1,"\\n          "],[10,1],[14,0,"message-title"],[12],[1,"\\n            "],[1,[30,1,["title"]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[1]],null]],[]]]],[]]]],["m"],false,["i18n","text-field","if","each","-track-array","on","fn"]]',moduleName:"discourse/components/choose-message.hbs",isStrictMode:!1});var m,g,f,b;const _=(0,i.setComponentTemplate)(h,s().extend((m=(0,p.observes)("messageTitle"),g=(0,p.observes)("messages"),f=(0,p.debounce)(300),b={loading:null,noResults:null,messages:null,messageTitleChanged(){this.setProperties({loading:!0,noResults:!0,selectedTopicId:null}),this.search(this.messageTitle)},messagesChanged(){const e=this.messages;e&&this.set("noResults",0===e.length),this.set("loading",!1)},search(e){(0,l.isEmpty)(e)?this.setProperties({messages:null,loading:!1}):(0,d.searchForTerm)(e,{typeFilter:"private_messages",searchForId:!0,restrictToArchetype:"private_message"}).then((e=>{e?.posts?.length?this.set("messages",e.posts.mapBy("topic").filter((e=>e.get("id")!==this.currentTopicId))):this.setProperties({messages:null,loading:!1})}))},chooseMessage(e,t){t?.preventDefault();const n=(0,o.get)(e,"id");this.set("selectedTopicId",n),(0,a.next)((()=>u()(`#choose-message-${n}`).prop("checked","true")))}},(0,r.Z)(b,"messageTitleChanged",[m],Object.getOwnPropertyDescriptor(b,"messageTitleChanged"),b),(0,r.Z)(b,"messagesChanged",[g],Object.getOwnPropertyDescriptor(b,"messagesChanged"),b),(0,r.Z)(b,"search",[f],Object.getOwnPropertyDescriptor(b,"search"),b),(0,r.Z)(b,"chooseMessage",[o.action],Object.getOwnPropertyDescriptor(b,"chooseMessage"),b),b)))},8771:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(33217),l=n(64519),c=n(34405),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"55xPrE+i",block:'[[[10,"label"],[14,"for","choose-topic-title"],[12],[1,"\\n"],[41,[30,0,["labelIcon"]],[[[1,"    "],[1,[28,[35,1],[[30,0,["labelIcon"]]],null]],[1,"\\n"]],[]],null],[1,"  "],[10,1],[12],[1,[28,[35,2],[[30,0,["labelText"]]],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],[[4,[38,4],[[30,0,["focusInput"]]],null]],[["@value","@placeholderKey","@id"],[[30,0,["topicTitle"]],"choose_topic.title.placeholder","choose-topic-title"]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1,"  "],[10,2],[12],[1,[28,[35,2],["loading"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noResults"]],[[[1,"    "],[10,2],[12],[1,[28,[35,2],["choose_topic.none_found"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"choose-topic-list"],[14,"role","radiogroup"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["topics"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"controls existing-topic"],[12],[1,"\\n          "],[10,"label"],[14,0,"radio"],[12],[1,"\\n            "],[8,[39,7],[[16,1,[28,[37,8],["choose-topic-",[30,1,["id"]]],null]],[24,3,"choose_topic_id"],[4,[38,10],["click",[28,[37,11],[[30,0],"chooseTopic",[30,1]],null]],null]],[["@checked","@type"],[[28,[37,9],[[30,1,["id"]],[30,0,["selectedTopicId"]]],null],"radio"]],null],[1,"\\n            "],[8,[39,12],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n            "],[10,1],[14,0,"topic-title"],[12],[1,"\\n              "],[1,[28,[35,13],[[30,1,["title"]]],null]],[1,"\\n            "],[13],[1,"\\n            "],[10,1],[14,0,"topic-categories"],[12],[1,"\\n              "],[1,[28,[35,14],[[30,1,["category"]]],[["recursive","hideParent","link"],[true,true,false]]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]]]],[]]]],["t"],false,["if","d-icon","i18n","text-field","did-insert","each","-track-array","input","concat","eq","on","action","topic-status","replace-emoji","bound-category-link"]]',moduleName:"discourse/components/choose-topic.hbs",isStrictMode:!1});var p,h,m,g,f;const b=(0,i.setComponentTemplate)(d,s().extend((p=(0,u.observes)("topicTitle"),h=(0,u.default)("label"),m=(0,u.observes)("topics"),g=(0,u.debounce)(c.INPUT_DELAY),f={loading:null,noResults:null,topics:null,selectedTopicId:null,currentTopicId:null,additionalFilters:null,topicTitle:null,label:null,loadOnInit:!1,topicChangedCallback:null,init(){this._super(...arguments),this.additionalFilters=this.additionalFilters||"",this.topicTitle=this.topicTitle||"",this.loadOnInit&&!(0,a.isEmpty)(this.additionalFilters)&&(0,l.searchForTerm)(this.additionalFilters,{}).then((e=>{e?.posts?.length>0?this.set("topics",e.posts.mapBy("topic").filter((e=>e.id!==this.currentTopicId))):this.setProperties({topics:null,loading:!1})}))},didInsertElement(){this._super(...arguments),document.getElementById("choose-topic-title").addEventListener("keydown",this._handleEnter)},willDestroyElement(){this._super(...arguments),document.getElementById("choose-topic-title").removeEventListener("keydown",this._handleEnter)},topicTitleChanged(){this.oldTopicTitle!==this.topicTitle&&(this.setProperties({loading:!0,noResults:!0,selectedTopicId:null,oldTopicTitle:this.topicTitle}),this.search(this.topicTitle))},labelText:e=>e||"choose_topic.title.search",topicsChanged(){this.topics&&this.set("noResults",0===this.topics.length),this.set("loading",!1)},search(e){if(!this.element||this.isDestroying||this.isDestroyed)return;if((0,a.isEmpty)(e)&&(0,a.isEmpty)(this.additionalFilters))return this.setProperties({topics:null,loading:!1}),void this.onSearchEmptied?.();const t=this.currentTopicId,n=`${e} ${this.additionalFilters}`,r={};(0,a.isEmpty)(e)||(r.typeFilter="topic",r.restrictToArchetype="regular",r.searchForId=!0),(0,l.searchForTerm)(n,r).then((n=>{e===this.topicTitle&&(n?.posts?.length>0?(this.set("topics",n.posts.mapBy("topic").filter((e=>e.id!==t))),1===this.topics.length&&this.send("chooseTopic",this.topics[0])):this.setProperties({topics:null,loading:!1}))}))},chooseTopic(e){this.set("selectedTopicId",e.id),this.topicChangedCallback&&this.topicChangedCallback(e)},focusInput(e){this.autoFocus&&e.focus()},_handleEnter(e){"Enter"===e.key&&e.preventDefault()}},(0,r.Z)(f,"topicTitleChanged",[p],Object.getOwnPropertyDescriptor(f,"topicTitleChanged"),f),(0,r.Z)(f,"labelText",[h],Object.getOwnPropertyDescriptor(f,"labelText"),f),(0,r.Z)(f,"topicsChanged",[m],Object.getOwnPropertyDescriptor(f,"topicsChanged"),f),(0,r.Z)(f,"search",[g],Object.getOwnPropertyDescriptor(f,"search"),f),(0,r.Z)(f,"chooseTopic",[o.action],Object.getOwnPropertyDescriptor(f,"chooseTopic"),f),(0,r.Z)(f,"focusInput",[o.action],Object.getOwnPropertyDescriptor(f,"focusInput"),f),f)))},52224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o,a=n(54001),l=n(31691),c=n.n(l),u=n(24434),d=n(57555),p=n(82099);const h=c().extend((r=(0,d.default)("color","usedColors"),i=(0,d.default)("isUsed"),s=(0,d.default)("color"),o={tagName:"button",attributeBindings:["style","title"],classNameBindings:[":colorpicker","isUsed:used-color:unused-color"],isUsed:(e,t)=>(t||[]).includes(e.toUpperCase()),title:e=>e?p.default.t("category.already_used"):null,style:e=>(0,u.htmlSafe)(`background-color: #${e};`),click(e){e.preventDefault(),this.selectColor(this.color)}},(0,a.Z)(o,"isUsed",[r],Object.getOwnPropertyDescriptor(o,"isUsed"),o),(0,a.Z)(o,"title",[i],Object.getOwnPropertyDescriptor(o,"title"),o),(0,a.Z)(o,"style",[s],Object.getOwnPropertyDescriptor(o,"style"),o),o))},74052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"onNtuCxk",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["colors"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@color","@usedColors","@selectColor"],[[30,1],[30,0,["usedColors"]],[28,[37,3],[[30,0],"selectColor"],null]]],[["default"],[[[[1,"\\n    "],[1,[28,[35,4],["check"],null]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[1]],null]],["c"],false,["each","-track-array","color-picker-choice","action","d-icon"]]',moduleName:"discourse/components/color-picker.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({classNames:"colors-container",actions:{selectColor(e){this.set("value",e)}}}))},5638:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(24434),l=n(21859),c=n(53134),u=n(3961),d=n(57555),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"m8ynof3v",block:'[[[8,[39,0],null,[["@composerModel","@replyOptions","@canWhisper","@action","@tabindex","@topic","@post","@whisper","@noBump","@options"],[[30,0,["model"]],[30,0,["model","replyOptions"]],[30,0,["canWhisper"]],[30,0,["model","action"]],[30,0,["tabindex"]],[30,0,["model","topic"]],[30,0,["model","post"]],[30,0,["model","whisper"]],[30,0,["model","noBump"]],[28,[37,1],null,[["mobilePlacementStrategy"],["fixed"]]]]],null],[1,"\\n\\n"],[10,1],[14,0,"action-title"],[12],[1,"\\n  "],[1,[30,0,["actionTitle"]]],[1,"\\n"],[13]],[],false,["composer-actions","hash"]]',moduleName:"discourse/components/composer-action-title.hbs",isStrictMode:!1});var m,g;const f={[l.PRIVATE_MESSAGE]:"topic.private_message",[l.CREATE_TOPIC]:"topic.create_long",[l.CREATE_SHARED_DRAFT]:"composer.create_shared_draft",[l.EDIT_SHARED_DRAFT]:"composer.edit_shared_draft"},b=(0,i.setComponentTemplate)(h,s().extend((m=(0,d.default)("options","action","model.tags","model.category"),g={classNames:["composer-action-title"],options:(0,o.alias)("model.replyOptions"),action:(0,o.alias)("model.action"),actionTitle(e,t){const n=this.model.customizationFor("actionTitle");if(n)return n;if(f[t])return p.default.t(f[t]);if(t===l.REPLY){if(e.userAvatar&&e.userLink)return this._formatReplyToUserPost(e.userAvatar,e.userLink);if(e.topicLink)return this._formatReplyToTopic(e.topicLink)}return t===l.EDIT&&e.userAvatar&&e.userLink&&e.postLink?this._formatEditUserPost(e.userAvatar,e.userLink,e.postLink,e.originalUser):void 0},_formatEditUserPost(e,t,n,r){let i=`\n      <a class="post-link" href="${n.href}">${n.anchor}</a>\n      ${e}\n      <span class="username">${t.anchor}</span>\n    `;return r&&(i+=`\n        ${(0,u.iconHTML)("share",{class:"reply-to-glyph"})}\n        ${r.avatar}\n        <span class="original-username">${r.username}</span>\n      `),(0,a.htmlSafe)(i)},_formatReplyToTopic(e){return(0,a.htmlSafe)(`<a class="topic-link" href="${e.href}" data-topic-id="${this.get("model.topic.id")}">${e.anchor}</a>`)},_formatReplyToUserPost(e,t){const n=`<a class="user-link" href="${t.href}">${(0,c.default)(t.anchor)}</a>`;return(0,a.htmlSafe)(`${e}${n}`)}},(0,r.Z)(g,"actionTitle",[m],Object.getOwnPropertyDescriptor(g,"actionTitle"),g),g)))},54891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,i,s,o,a,l,c=n(54001),u=n(31691),d=n.n(u),p=n(51372),h=n(31310),m=n(15443),g=n(48078),f=n(21859),b=n(56111),_=n(12933),y=n(57555);const w=["touchstart","mousedown"],v=["touchmove","mousemove"],k=["touchend","mouseup"];function x(e){return e.clientY||e.touches&&e.touches[0]&&e.touches[0].clientY}const T=d().extend(g.default,(r=(0,y.default)("composer.action"),i=(0,y.default)("currentUser.primary_group_name"),s=(0,y.default)("composer.composeState"),o=(0,y.observes)("composeState"),a=(0,y.observes)("composeState","composer.{action,canEditTopicFeaturedLink}"),l={elementId:"reply-control",classNameBindings:["composer.creatingPrivateMessage:private-message","composeState","composer.loading","prefixedComposerAction","composer.canEditTitle:edit-title","composer.createdPost:created-post","composer.creatingTopic:topic","composer.whisper:composing-whisper","composer.sharedDraft:composing-shared-draft","showPreview:show-preview:hide-preview","currentUserPrimaryGroupClass"],prefixedComposerAction:e=>e?`composer-action-${e}`:"",currentUserPrimaryGroupClass:e=>e&&`group-${e}`,composeState:e=>e||f.default.CLOSED,keyUp(){this.typed();const e=new Date;this._lastKeyUp=e,(0,p.cancel)(this._lastKeyTimeout),this._lastKeyTimeout=(0,_.default)((()=>{e===this._lastKeyUp&&this.appEvents.trigger("composer:find-similar")}),1e3)},disableFullscreen(){this.composeState!==f.default.OPEN&&m.default.blur&&m.default.blur()},setupComposerResizeEvents(){this.origComposerSize=0,this.lastMousePos=0,w.forEach((e=>{this.element.querySelector(".grippie")?.addEventListener(e,this.startDragHandler,{passive:!1})}))},performDragHandler(){this.appEvents.trigger("composer:div-resizing"),this.element.classList.add("clear-transitions");const e=x(event);let t=this.origComposerSize+(this.lastMousePos-e);t=Math.min(t,window.innerHeight-(0,h.headerOffset)());const n=parseInt(getComputedStyle(this.element).minHeight,10);t=Math.max(n,t),this.set("composer.composerHeight",`${t}px`),this.keyValueStore.set({key:"composerHeight",value:this.get("composer.composerHeight")}),document.documentElement.style.setProperty("--composer-height",t?`${t}px`:""),this._triggerComposerResized()},_triggerComposerResized(){(0,p.schedule)("afterRender",(()=>{(0,b.default)(this,this.composerResized,300)}))},composerResized(){!this.element||this.isDestroying||this.isDestroyed||this.appEvents.trigger("composer:resized")},startDragHandler(e){e.preventDefault(),this.origComposerSize=this.element.offsetHeight,this.lastMousePos=x(e),v.forEach((e=>{document.addEventListener(e,this.throttledPerformDrag)})),k.forEach((e=>{document.addEventListener(e,this.endDragHandler)})),this.appEvents.trigger("composer:resize-started")},endDragHandler(){this.appEvents.trigger("composer:resize-ended"),v.forEach((e=>{document.removeEventListener(e,this.throttledPerformDrag)})),k.forEach((e=>{document.removeEventListener(e,this.endDragHandler)})),this.element.classList.remove("clear-transitions"),this.element.focus()},throttledPerformDrag(e){e.preventDefault(),(0,p.throttle)(this,this.performDragHandler,e,20)},didInsertElement(){this._super(...arguments),this.setupComposerResizeEvents();const e=()=>{this.get("composer.composeState")===f.default.OPEN&&this.appEvents.trigger("composer:opened")};e(),this.element.addEventListener("transitionend",(t=>{"height"===t.propertyName&&e()})),(0,m.default)(this.element)},willDestroyElement(){this._super(...arguments),w.forEach((e=>{this.element.querySelector(".grippie")?.removeEventListener(e,this.startDragHandler)})),(0,p.cancel)(this._lastKeyTimeout)},click(){this.openIfDraft()}},(0,c.Z)(l,"prefixedComposerAction",[r],Object.getOwnPropertyDescriptor(l,"prefixedComposerAction"),l),(0,c.Z)(l,"currentUserPrimaryGroupClass",[i],Object.getOwnPropertyDescriptor(l,"currentUserPrimaryGroupClass"),l),(0,c.Z)(l,"composeState",[s],Object.getOwnPropertyDescriptor(l,"composeState"),l),(0,c.Z)(l,"disableFullscreen",[o],Object.getOwnPropertyDescriptor(l,"disableFullscreen"),l),(0,c.Z)(l,"performDragHandler",[y.bind],Object.getOwnPropertyDescriptor(l,"performDragHandler"),l),(0,c.Z)(l,"_triggerComposerResized",[a],Object.getOwnPropertyDescriptor(l,"_triggerComposerResized"),l),(0,c.Z)(l,"startDragHandler",[y.bind],Object.getOwnPropertyDescriptor(l,"startDragHandler"),l),(0,c.Z)(l,"endDragHandler",[y.bind],Object.getOwnPropertyDescriptor(l,"endDragHandler"),l),(0,c.Z)(l,"throttledPerformDrag",[y.bind],Object.getOwnPropertyDescriptor(l,"throttledPerformDrag"),l),l))},3994:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"jFQnIKAQ",block:'[[[8,[39,0],null,[["@composer","@showPreview","@openIfDraft","@typed","@cancelled","@save"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","typed"]],[30,0,["composer","cancelled"]],[30,0,["composer","saveAction"]]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"grippie"],[12],[13],[1,"\\n"],[41,[30,0,["composer","visible"]],[[[1,"    "],[8,[39,2],null,[["@composer","@messageCount","@addLinkLookup"],[[30,0,["composer","model"]],[30,0,["composer","messageCount"]],[30,0,["composer","addLinkLookup"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","showFullScreenPrompt"]],[[[1,"      "],[8,[39,3],null,[["@removeFullScreenExitPrompt"],[[30,0,["composer","removeFullScreenExitPrompt"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","viewOpenOrFullscreen"]],[[[1,"      "],[10,0],[14,"role","form"],[15,"aria-label",[28,[37,4],[[30,0,["composer","saveLabel"]]],null]],[15,0,[29,["reply-area\\n          ",[52,[30,0,["composer","canEditTags"]],"with-tags","without-tags"],"\\n          ",[52,[30,0,["composer","hasFormTemplate"]],"with-form-template","without-form-template"],"\\n          ",[52,[30,0,["composer","model","showCategoryChooser"]],"with-category","without-category"]]]],[12],[1,"\\n        "],[10,1],[14,0,"composer-open-plugin-outlet-container"],[12],[1,"\\n          "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["composer-open","div",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"reply-to"],[12],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[1,"            "],[10,0],[14,0,"reply-details"],[12],[1,"\\n              "],[8,[39,8],null,[["@model","@canWhisper"],[[30,0,["composer","model"]],[30,0,["composer","canWhisper"]]]],null],[1,"\\n\\n              "],[8,[39,5],null,[["@name","@outletArgs"],["composer-action-after",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["composer","site","mobileView"]]],[[[41,[30,0,["composer","model","unlistTopic"]],[[[1,"                  "],[10,1],[14,0,"unlist"],[12],[1,"("],[1,[28,[35,4],["composer.unlist"],null]],[1,")"],[13],[1,"\\n"]],[]],null],[41,[30,0,["composer","isWhispering"]],[[[41,[30,0,["composer","model","noBump"]],[[[1,"                    "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,9],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1,"                "],[8,[39,10],[[24,0,"display-edit-reason"]],[["@onClick","@showInput","@icon"],[[30,0,["composer","displayEditReason"]],[30,0,["composer","showEditReason"]],"info-circle"]],[["default"],[[[[1,"\\n                  "],[8,[39,11],null,[["@value","@id","@maxlength","@placeholderKey"],[[30,0,["composer","editReason"]],"edit-reason","255","composer.edit_reason_placeholder"]],null],[1,"\\n                "]],[]]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,5],null,[["@name","@outletArgs"],["before-composer-controls",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n\\n          "],[8,[39,12],null,[["@composeState","@showToolbar","@toggleComposer","@toggleToolbar","@toggleFullscreen","@disableTextarea"],[[30,0,["composer","model","composeState"]],[30,0,["composer","showToolbar"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]],[30,0,["composer","fullscreenComposer"]],[30,0,["composer","disableTextarea"]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[8,[39,13],null,[["@topic","@composer","@lastValidatedAt","@canWhisper","@storeToolbarState","@onPopupMenuAction","@showUploadModal","@popupMenuOptions","@draftStatus","@isUploading","@isProcessingUpload","@allowUpload","@uploadIcon","@isCancellable","@uploadProgress","@groupsMentioned","@cannotSeeMention","@hereMention","@importQuote","@togglePreview","@processPreview","@showToolbar","@afterRefresh","@focusTarget","@disableTextarea","@formTemplateIds","@formTemplateInitialValues","@onSelectFormTemplate"],[[30,0,["composer","topic"]],[30,0,["composer","model"]],[30,0,["composer","lastValidatedAt"]],[30,0,["composer","canWhisper"]],[30,0,["composer","storeToolbarState"]],[30,0,["composer","onPopupMenuAction"]],[28,[37,14],["showUploadSelector"],null],[30,0,["composer","popupMenuOptions"]],[30,0,["composer","model","draftStatus"]],[30,0,["composer","isUploading"]],[30,0,["composer","isProcessingUpload"]],[30,0,["composer","allowUpload"]],[30,0,["composer","uploadIcon"]],[30,0,["composer","isCancellable"]],[30,0,["composer","uploadProgress"]],[30,0,["composer","groupsMentioned"]],[30,0,["composer","cannotSeeMention"]],[30,0,["composer","hereMention"]],[30,0,["composer","importQuote"]],[30,0,["composer","togglePreview"]],[30,0,["composer","showPreview"]],[30,0,["composer","showToolbar"]],[30,0,["composer","afterRefresh"]],[30,0,["composer","focusTarget"]],[30,0,["composer","disableTextarea"]],[30,0,["composer","formTemplateIds"]],[30,0,["composer","formTemplateInitialValues"]],[30,0,["composer","onSelectFormTemplate"]]]],[["default"],[[[[1,"\\n          "],[10,0],[14,0,"composer-fields"],[12],[1,"\\n            "],[8,[39,5],null,[["@name","@outletArgs"],["before-composer-fields",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n"],[41,[51,[30,0,["composer","model","viewFullscreen"]]],[[[41,[30,0,["composer","model","canEditTitle"]],[[[41,[30,0,["composer","model","creatingPrivateMessage"]],[[[1,"                  "],[10,0],[14,0,"user-selector"],[12],[1,"\\n                    "],[8,[39,15],[[16,0,[28,[37,16],["users-input",[52,[30,0,["composer","showWarning"]],"can-warn"]],null]]],[["@topicId","@recipients","@hasGroups","@focusTarget"],[[30,0,["composer","topicModel","id"]],[30,0,["composer","model","targetRecipients"]],[30,0,["composer","model","hasTargetGroups"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n"],[41,[30,0,["composer","showWarning"]],[[[1,"                      "],[10,"label"],[14,0,"add-warning"],[12],[1,"\\n                        "],[8,[39,17],null,[["@type","@checked"],["checkbox",[30,0,["composer","model","isWarning"]]]],null],[1,"\\n                        "],[10,1],[12],[1,[28,[35,4],["composer.add_warning"],null]],[13],[1,"\\n                      "],[13],[1,"\\n"]],[]],null],[1,"                  "],[13],[1,"\\n"]],[]],null],[1,"\\n                "],[10,0],[15,0,[29,["title-and-category\\n                    ",[52,[30,0,["composer","showPreview"]],"with-preview"]]]],[12],[1,"\\n                  "],[8,[39,18],null,[["@composer","@lastValidatedAt","@focusTarget"],[[30,0,["composer","model"]],[30,0,["composer","lastValidatedAt"]],[30,0,["composer","focusTarget"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","model","showCategoryChooser"]],[[[1,"                    "],[10,0],[14,0,"category-input"],[12],[1,"\\n                      "],[8,[39,19],null,[["@value","@onChange","@options"],[[30,0,["composer","model","categoryId"]],[30,0,["composer","updateCategory"]],[28,[37,6],null,[["disabled","scopedCategoryId","prioritizedCategoryId"],[[30,0,["composer","disableCategoryChooser"]],[30,0,["composer","scopedCategoryId"]],[30,0,["composer","prioritizedCategoryId"]]]]]]],null],[1,"\\n                      "],[8,[39,5],null,[["@name","@outletArgs"],["after-composer-category-input",[28,[37,6],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n                      "],[8,[39,20],null,[["@validation"],[[30,0,["composer","categoryValidation"]]]],null],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","canEditTags"]],[[[1,"                    "],[8,[39,21],null,[["@value","@onChange","@options"],[[30,0,["composer","model","tags"]],[28,[37,22],[[30,0],[28,[37,23],[[30,0,["composer","model","tags"]]],null]],null],[28,[37,6],null,[["disabled","categoryId","minimum"],[[30,0,["composer","disableTagsChooser"]],[30,0,["composer","model","categoryId"]],[30,0,["composer","model","minimumRequiredTags"]]]]]]],null],[1,"\\n                    "],[8,[39,5],null,[["@name","@outletArgs"],["after-composer-tag-input",[28,[37,6],null,[["composer"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n                    "],[8,[39,20],null,[["@validation"],[[30,0,["composer","tagValidation"]]]],null],[1,"\\n"]],[]],null],[1,"\\n                  "],[8,[39,5],null,[["@name","@outletArgs"],["after-title-and-category",[28,[37,6],null,[["model","tagValidation","canEditTags","disabled"],[[30,0,["composer","model"]],[30,0,["composer","tagValidation"]],[30,0,["composer","canEditTags"]],[30,0,["composer","disableTagsChooser"]]]]]]],null],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[10,1],[12],[1,"\\n                "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields","div",[28,[37,6],null,[["model","showPreview"],[[30,0,["composer","model"]],[30,0,["composer","showPreview"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "]],[]]]]],[1,"\\n\\n        "],[10,1],[12],[1,"\\n          "],[8,[39,5],null,[["@name","@outletArgs"],["composer-after-composer-editor",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"submit-panel"],[12],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["composer-fields-below","div",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"save-or-cancel"],[12],[1,"\\n            "],[8,[39,24],null,[["@action","@icon","@label","@forwardEvent","@disableSubmit"],[[30,0,["composer","saveAction"]],[30,0,["composer","saveIcon"]],[30,0,["composer","saveLabel"]],true,[30,0,["composer","disableSubmit"]]]],null],[1,"\\n\\n"],[41,[30,0,["composer","site","mobileView"]],[[[1,"              "],[11,3],[24,6,""],[16,"title",[28,[37,4],["cancel"],null]],[24,0,"cancel"],[4,[38,25],["click",[30,0,["composer","cancel"]]],null],[12],[1,"\\n"],[41,[30,0,["composer","canEdit"]],[[[1,"                  "],[1,[28,[35,9],["times"],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,9],["far-trash-alt"],null]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"]],[]],[[[1,"              "],[11,3],[24,6,""],[24,0,"cancel"],[24,"role","button"],[4,[38,25],["click",[30,0,["composer","cancel"]]],null],[12],[1,[28,[35,4],["close"],null]],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","site","mobileView"]],[[[41,[30,0,["composer","whisperOrUnlistTopic"]],[[[1,"                "],[10,1],[14,0,"whisper"],[12],[1,"\\n                  "],[1,[28,[35,9],["far-eye-slash"],null]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["composer","model","noBump"]],[[[1,"                "],[10,1],[14,0,"no-bump"],[12],[1,[28,[35,9],["anchor"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[8,[39,5],null,[["@name","@outletArgs"],["composer-after-save-or-cancel",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,0,["composer","site","mobileView"]],[[[1,"            "],[10,1],[12],[1,"\\n              "],[8,[39,5],null,[["@name","@outletArgs"],["composer-mobile-buttons-bottom",[28,[37,6],null,[["model"],[[30,0,["composer","model"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["composer","allowUpload"]],[[[1,"              "],[10,3],[14,1,"mobile-file-upload"],[15,0,[29,["btn btn-default no-text mobile-file-upload\\n                  ",[52,[30,0,["composer","isUploading"]],"hidden"]]]],[15,"aria-label",[28,[37,4],["composer.upload_title"],null]],[12],[1,"\\n                "],[1,[28,[35,9],[[30,0,["composer","uploadIcon"]]],null]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[11,3],[24,6,""],[24,0,"btn btn-default no-text mobile-preview"],[16,"title",[28,[37,4],["composer.show_preview"],null]],[16,"aria-label",[28,[37,4],["preview"],null]],[4,[38,25],["click",[30,0,["composer","togglePreview"]]],null],[12],[1,"\\n              "],[1,[28,[35,9],["desktop"],null]],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["composer","showPreview"]],[[[1,"              "],[8,[39,26],[[24,0,"hide-preview"]],[["@action","@ariaLabel","@icon"],[[30,0,["composer","togglePreview"]],"composer.hide_preview","pencil-alt"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[28,[37,27],[[30,0,["composer","isUploading"]],[30,0,["composer","isProcessingUpload"]]],null],[[[1,"            "],[10,0],[14,1,"file-uploading"],[12],[1,"\\n"],[41,[30,0,["composer","isProcessingUpload"]],[[[1,"                "],[1,[28,[35,28],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,4],["upload_selector.processing"],null]],[13],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,28],null,[["size"],["small"]]]],[10,1],[12],[1,[28,[35,4],["upload_selector.uploading"],null]],[1,"\\n                  "],[1,[30,0,["composer","uploadProgress"]]],[1,"%"],[13],[1,"\\n"]],[]]],[1,"\\n"],[41,[30,0,["composer","isCancellable"]],[[[1,"                "],[11,3],[24,6,""],[24,1,"cancel-file-upload"],[4,[38,25],["click",[30,0,["composer","cancelUpload"]]],null],[12],[1,[28,[35,9],["times"],null]],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[10,0],[15,0,[52,[30,0,["composer","isUploading"]],"hidden"]],[14,1,"draft-status"],[12],[1,"\\n"],[41,[30,0,["composer","model","draftStatus"]],[[[1,"              "],[10,1],[14,0,"draft-error"],[15,"title",[30,0,["composer","model","draftStatus"]]],[12],[1,"\\n"],[41,[30,0,["composer","model","draftConflictUser"]],[[[1,"                  "],[1,[28,[35,29],[[30,0,["composer","model","draftConflictUser"]]],[["imageSize"],["small"]]]],[1,"\\n                  "],[1,[28,[35,9],["user-edit"],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,9],["exclamation-triangle"],null]],[1,"\\n"]],[]]],[41,[51,[30,0,["composer","site","mobileView"]]],[[[1,"                  "],[1,[30,0,["composer","model","draftStatus"]]],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"            "],[8,[39,26],[[16,0,[28,[37,16],["btn-flat btn-mini-toggle toggle-preview",[52,[51,[30,0,["composer","showPreview"]]],"active"]],null]]],[["@action","@translatedTitle","@icon"],[[30,0,["composer","togglePreview"]],[30,0,["composer","toggleText"]],"angle-double-left"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"saving-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","createdPost"]],[[[1,"          "],[1,[28,[35,4],["composer.saved"],null]],[1,"\\n          "],[11,3],[16,6,[30,0,["composer","createdPost","url"]]],[24,0,"permalink"],[4,[38,25],["click",[30,0,["composer","viewNewReply"]]],null],[12],[1,[28,[35,4],["composer.view_new_post"],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],["composer.saving"],null]],[1,"\\n          "],[1,[28,[35,28],null,[["size"],["small"]]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"draft-text"],[12],[1,"\\n"],[41,[30,0,["composer","model","topic"]],[[[1,"          "],[1,[28,[35,9],["share"],null]],[1,"\\n          "],[1,[28,[35,30],[[30,0,["composer","draftTitle"]]],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],["composer.saved_draft"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n      "],[8,[39,12],null,[["@composeState","@toggleFullscreen","@toggleComposer","@toggleToolbar"],[[30,0,["composer","model","composeState"]],[30,0,["composer","openIfDraft"]],[30,0,["composer","toggle"]],[30,0,["composer","toggleToolbar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[]]]]]],[],false,["composer-body","if","composer-messages","composer-fullscreen-prompt","i18n","plugin-outlet","hash","unless","composer-action-title","d-icon","link-to-input","text-field","composer-toggles","composer-editor","route-action","composer-user-selector","concat-class","input","composer-title","category-chooser","popup-input-tip","mini-tag-chooser","action","mut","composer-save-button","on","d-button","or","loading-spinner","avatar","html-safe"]]',moduleName:"discourse/components/composer-container.hbs",isStrictMode:!1});var l,c,u,d=n(31691);let p=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"composer",c,this),(0,r.Z)(this,"site",u,this)}},c=(0,i.Z)(l.prototype,"composer",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,i.Z)(l.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,d.setComponentTemplate)(a,p)},12350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addComposerUploadHandler:()=>W,addComposerUploadMarkdownResolver:()=>J,addComposerUploadPreProcessor:()=>G,cleanUpComposerUploadHandler:()=>K,cleanUpComposerUploadMarkdownResolver:()=>X,cleanUpComposerUploadPreProcessor:()=>Y,default:()=>ee});var r=n(54001),i=n(72326),s=n(31691),o=n.n(s),a=n(48163),l=n.n(a),c=n(6264),u=n(51372),d=n(79338),p=n(71466),h=n.n(p),m=n(24705),g=n(3055),f=n(44743),b=n(4152),_=n(14201),y=n(25351),w=n(29966),v=n(47301),k=n(55566),x=n(62617),T=n(45737),S=n(21859),C=n(34405),P=n(80709),O=n(56111),E=n(3961),D=n(12933),I=n(21896),j=n(57555),Z=n(82099);const A=(0,n(8620).createTemplateFactory)({id:"C9JRNzwk",block:'[[[8,[39,0],null,[["@value","@placeholder","@previewUpdated","@markdownOptions","@extraButtons","@importQuote","@showUploadModal","@togglePreview","@processPreview","@validation","@loading","@forcePreview","@showLink","@composerEvents","@onExpandPopupMenuOptions","@onPopupMenuAction","@popupMenuOptions","@formTemplateIds","@formTemplateInitialValues","@onSelectFormTemplate","@replyingToTopic","@editingPost","@disabled","@outletArgs"],[[30,0,["composer","reply"]],[30,0,["replyPlaceholder"]],[28,[37,1],[[30,0],"previewUpdated"],null],[30,0,["markdownOptions"]],[28,[37,1],[[30,0],"extraButtons"],null],[28,[37,1],[[30,0],"importQuote"],null],[30,0,["showUploadModal"]],[28,[37,1],[[30,0],"togglePreview"],null],[30,0,["processPreview"]],[30,0,["validation"]],[30,0,["composer","loading"]],[30,0,["forcePreview"]],[30,0,["showLink"]],true,[28,[37,1],[[30,0],"onExpandPopupMenuOptions"],null],[30,0,["onPopupMenuAction"]],[30,0,["popupMenuOptions"]],[30,0,["formTemplateIds"]],[30,1],[30,2],[30,0,["composer","replyingToTopic"]],[30,0,["composer","editingPost"]],[30,0,["disableTextarea"]],[28,[37,2],null,[["composer","editorType"],[[30,0,["composer"]],"composer"]]]]],[["default"],[[[[1,"\\n  "],[18,3,null],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[41,[30,0,["allowUpload"]],[[[1,"  "],[8,[39,5],[[24,3,"file-uploader"]],[["@fileInputId","@allowMultiple"],["file-uploader",true]],null],[1,"\\n"]],[]],null]],["@formTemplateInitialValues","@onSelectFormTemplate","&default"],false,["d-editor","action","hash","yield","if","pick-files-button"]]',moduleName:"discourse/components/composer-editor.hbs",isStrictMode:!1});var M,N,z,L,F,U,R,B,$;const q=/!\[(.*?)\|(\d{1,4}x\d{1,4})(,\s*\d{1,3}%)?(.*?)\]\((upload:\/\/.*?)\)(?!(.*`))/g;let H=[];function W(e,t){H.push({extensions:e,method:t})}function K(){H.length=0}let V=[];function G(e,t){if(!(e.prototype instanceof d.BasePlugin))throw new Error("Composer upload preprocessors must inherit from the Uppy BasePlugin class.");V.push({pluginClass:e,optionsResolverFn:t})}function Y(){V=[]}let Q=[];function J(e){Q.push(e)}function X(){Q=[]}const ee=(0,s.setComponentTemplate)(A,o().extend(T.default,(M=(0,j.default)("composer.requiredCategoryMissing"),N=(0,j.observes)("focusTarget"),z=(0,j.on)("didInsertElement"),L=(0,j.default)("composer.reply","composer.replyLength","composer.missingReplyCharacters","composer.minimumPostLength","lastValidatedAt"),F=(0,a.computed)("composer.{creatingTopic,editingFirstPost,creatingSharedDraft}"),U=(0,j.debounce)(2e3),R=(0,j.debounce)(2e3),B=(0,j.on)("willDestroyElement"),$={classNameBindings:["showToolbar:toolbar-visible",":wmd-controls"],editorClass:".d-editor",fileUploadElementId:"file-uploader",mobileFileUploaderId:"mobile-file-upload",composerEventPrefix:"composer",uploadType:"composer",uppyId:"composer-editor-uppy",composerModel:(0,c.alias)("composer"),composerModelContentKey:"reply",editorInputClass:".d-editor-input",shouldBuildScrollMap:!0,scrollMap:null,processPreview:!0,uploadMarkdownResolvers:Q,uploadPreProcessors:V,uploadHandlers:H,init(){this._super(...arguments),this.warnedCannotSeeMentions=[],this.warnedGroupMentions=[]},replyPlaceholder(e){return e?"composer.reply_placeholder_choose_category":"composer."+((0,w.authorizesOneOrMoreImageExtensions)(this.currentUser.staff,this.siteSettings)?"reply_placeholder":"reply_placeholder_no_images")},showLink(){return this.currentUser&&"none"!==this.currentUser.link_posting_access},setFocus(){"editor"===this.focusTarget&&(0,y.default)(this.element.querySelector("textarea"))},markdownOptions(){return{previewing:!0,formatUsername:x.formatUsername,lookupAvatarByPostNumber:(e,t)=>{const n=this.topic;if(!n)return;const r=n.get("postStream.posts");if(r&&t===n.get("id")){const t=r.findBy("post_number",e);if(t)return(0,P.tinyAvatar)(t.get("avatar_template"))}},lookupPrimaryUserGroupByPostNumber:(e,t)=>{const n=this.topic;if(!n)return;const r=n.get("postStream.posts");if(r&&t===n.get("id")){const t=r.findBy("post_number",e);if(t)return t.primary_group_name}},hashtagTypesInPriorityOrder:this.site.hashtag_configurations["topic-composer"],hashtagIcons:this.site.hashtag_icons}},_afterMentionComplete(e){this.composer.set("reply",e),(0,u.schedule)("afterRender",(()=>{const e=this.element.querySelector(".d-editor-input");e?.blur(),e?.focus()}))},_composerEditorInit(){const e=h()(this.element.querySelector(".d-editor-input"));this.siteSettings.enable_mentions&&e.autocomplete({template:(0,I.findRawTemplate)("user-selector-autocomplete"),dataSource:e=>((0,k.destroyUserStatuses)(),(0,v.default)({term:e,topicId:this.topic?.id,categoryId:this.topic?.category_id||this.composer?.categoryId,includeGroups:!0}).then((e=>((0,k.initUserStatusHtml)((0,i.getOwner)(this),e.users),e)))),onRender:e=>{(0,k.renderUserStatusHtml)(e)},key:"@",transformComplete:e=>e.username||e.name,afterComplete:this._afterMentionComplete,triggerRule:e=>!(0,x.inCodeBlock)(e.value,(0,x.caretPosition)(e)),onClose:k.destroyUserStatuses}),this.element.querySelector(".d-editor-input")?.addEventListener("scroll",this._throttledSyncEditorAndPreviewScroll),this.get("composer.canEditTitle")||(0,y.default)(this.element.querySelector(".d-editor-input")),this.allowUpload&&(this._bindUploadTarget(),this._bindMobileUploadButton()),this.appEvents.trigger(`${this.composerEventPrefix}:will-open`)},validation(e,t,n,r,i){if(this.get("composer.post.post_type")===this.site.get("post_types.small_action"))return;let s;if(t<1)s=Z.default.t("composer.error.post_missing");else if(n>0){s=Z.default.t("composer.error.post_length",{count:r});const e=this.get("currentUser.trust_level");0!==e&&1!==e||this._isNewTopic||(s+="<br/>"+Z.default.t("composer.error.try_like",{heart:(0,E.iconHTML)("heart",{label:Z.default.t("likes_lowercase",{count:1})})}))}return s?l().create({failed:!0,reason:s,lastShownAt:i}):void 0},get _isNewTopic(){return this.composer.creatingTopic||this.composer.editingFirstPost||this.composer.creatingSharedDraft},_resetShouldBuildScrollMap(){this.set("shouldBuildScrollMap",!0)},_handleInputInteraction(e){const t=this.element.querySelector(".d-editor-preview-wrapper");h()(t).is(":visible")&&(t.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target.addEventListener("scroll",this._handleInputOrPreviewScroll))},_handleInputOrPreviewScroll(e){this._syncScroll(this._syncEditorAndPreviewScroll,h()(e.target),h()(this.element.querySelector(".d-editor-preview-wrapper")))},_handlePreviewInteraction(e){this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._handleInputOrPreviewScroll),e.target?.addEventListener("scroll",this._handleInputOrPreviewScroll)},_syncScroll(e,t,n){this.scrollMap&&!this.shouldBuildScrollMap||(this.set("scrollMap",this._buildScrollMap(t,n)),this.set("shouldBuildScrollMap",!1)),(0,u.throttle)(this,e,t,n,this.scrollMap,20)},_buildScrollMap(e,t){let n=h()("<div />").css({position:"absolute",height:"auto",visibility:"hidden",width:e[0].clientWidth,"font-size":e.css("font-size"),"font-family":e.css("font-family"),"line-height":e.css("line-height"),"white-space":e.css("white-space")}).appendTo("body");const r=[];let i=0;e.val().split("\n").forEach((e=>{if(r.push(i),0===e.length)i++;else{let t,r;n.text(e),t=parseFloat(n.css("height")),r=parseFloat(n.css("line-height")),i+=Math.round(t/r)}})),r.push(i),n.remove();const s=t.offset().top,o=t.scrollTop()-s-(e.offset().top-s),a=[],l=[];for(let e=0;e<i;e++)l.push(-1);a.push(0),l[0]=0,t.find(".preview-sync-line").each(((e,t)=>{let n=h()(t),i=n.data("line-number"),s=r[i];0!==s&&a.push(s),l[s]=Math.round(n.offset().top+o)})),a.push(i),l[i]=t[0].scrollHeight;let c=0;for(let e=1;e<i;e++){if(-1!==l[e]){c++;continue}let t=a[c],n=a[c+1];l[e]=((l[n]*(e-t)+l[t]*(n-e))/(n-t)).toFixed(2)}return l},_throttledSyncEditorAndPreviewScroll(e){const t=h()(this.element.querySelector(".d-editor-preview-wrapper"));(0,u.throttle)(this,this._syncEditorAndPreviewScroll,h()(e.target),t,20)},_syncEditorAndPreviewScroll(e,t){if(!e)return;if(0===e.scrollTop())return void t.scrollTop(0);const n=e[0].scrollHeight,r=t[0].scrollHeight;if(e.height()+e.scrollTop()+100>n)return void t.scrollTop(r);const i=e.scrollTop()*(r/n);t.scrollTop(i+50)},_renderUnseenMentions(e,t){(0,b.fetchUnseenMentions)({names:t,topicId:this.get("composer.topic.id"),allowedNames:this.get("composer.targetRecipients")?.split(",")}).then((t=>{(0,b.linkSeenMentions)(e,this.siteSettings),this._warnMentionedGroups(e),this._warnCannotSeeMention(e),this._warnHereMention(t.here_count)}))},_renderUnseenHashtags(e){const t=this.site.hashtag_configurations["topic-composer"],n=(0,f.linkSeenHashtagsInContext)(t,e);n.length>0&&(0,f.fetchUnseenHashtagsInContext)(t,n).then((()=>{(0,f.linkSeenHashtagsInContext)(t,e)}))},_warnMentionedGroups(e){(0,u.schedule)("afterRender",(()=>{e.querySelectorAll(".mention-group[data-mentionable-user-count]").forEach((e=>{const{name:t}=e.dataset;this.warnedGroupMentions.includes(t)||this._isInQuote(e)||(this.warnedGroupMentions.push(t),this.groupsMentioned({name:t,userCount:e.dataset.mentionableUserCount,maxMentions:e.dataset.maxMentions}))}))}))},_warnCannotSeeMention(e){this.composer.draftKey!==S.default.NEW_PRIVATE_MESSAGE_KEY&&(e.querySelectorAll(".mention[data-reason]").forEach((e=>{const{name:t}=e.dataset;this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.cannotSeeMention({name:t,reason:e.dataset.reason}))})),e.querySelectorAll(".mention-group[data-reason]").forEach((e=>{const{name:t}=e.dataset;this.warnedCannotSeeMentions.includes(t)||(this.warnedCannotSeeMentions.push(t),this.cannotSeeMention({name:t,reason:e.dataset.reason,notifiedCount:e.dataset.notifiedUserCount,isGroup:!0}))})))},_warnHereMention(e){e&&0!==e&&this.hereMention(e)},_handleImageScaleButtonClick(e){if(!e.target.classList.contains("scale-btn"))return;const t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),n=e.target.dataset.scale,r=this.get("composer.reply").match(q);if(r){const e=r[t];if(e){const i=e.replace(q,`![$1|$2, ${n}%$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,r[t],i,{regex:q,index:t})}}e.preventDefault()},resetImageControls(e){const t=e.querySelector(".scale-btn-container"),n=e.querySelector(".delete-image-button"),r=e.querySelector(".alt-text-readonly-container"),i=e.querySelector(".alt-text-edit-container");t.removeAttribute("hidden"),n.removeAttribute("hidden"),r.removeAttribute("hidden"),e.removeAttribute("editing"),i.setAttribute("hidden","true")},commitAltText(e){const t=parseInt(e.getAttribute("data-image-index"),10),n=this.get("composer.reply").match(q)[t],r=e.querySelector("input.alt-text-input"),i=n.replace(q,`![${r.value}|$2$3$4]($5)`);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,n,i),this.resetImageControls(e)},_handleAltTextInputKeypress(e){if(e.target.classList.contains("alt-text-input")&&("["!==e.key&&"]"!==e.key||e.preventDefault(),"Enter"===e.key)){const t=e.target.closest(".button-wrapper");this.commitAltText(t)}},_handleAltTextEditButtonClick(e){if(!e.target.classList.contains("alt-text-edit-btn"))return;const t=e.target.closest(".button-wrapper"),n=t.querySelector(".scale-btn-container"),r=t.querySelector(".delete-image-button"),i=t.querySelector(".alt-text-readonly-container"),s=i.querySelector(".alt-text"),o=t.querySelector(".alt-text-edit-container"),a=o.querySelector(".alt-text-input");t.setAttribute("editing","true"),n.setAttribute("hidden","true"),r.setAttribute("hidden","true"),i.setAttribute("hidden","true"),a.value=s.textContent,o.removeAttribute("hidden"),a.focus(),e.preventDefault()},_handleAltTextOkButtonClick(e){if(!e.target.classList.contains("alt-text-edit-ok"))return;const t=e.target.closest(".button-wrapper");this.commitAltText(t)},_handleAltTextCancelButtonClick(e){if(!e.target.classList.contains("alt-text-edit-cancel"))return;const t=e.target.closest(".button-wrapper");this.resetImageControls(t)},_handleImageDeleteButtonClick(e){if(!e.target.classList.contains("delete-image-button"))return;const t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),n=this.get("composer.reply").match(q);this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,n[t],"",{regex:q,index:t})},_handleImageGridButtonClick(e){if(!e.target.classList.contains("wrap-image-grid-button"))return;const t=parseInt(e.target.closest(".button-wrapper").dataset.imageIndex,10),n=this.get("composer.reply"),r=n.match(q),i=t+parseInt(e.target.dataset.imageCount,10)-1,s=this.element.querySelector(".d-editor-input");s.selectionStart=n.indexOf(r[t]),s.selectionEnd=n.indexOf(r[i])+r[i].length,this.appEvents.trigger(`${this.composerEventPrefix}:apply-surround`,"[grid]","[/grid]","grid_surround",{useBlockMode:!0})},_registerImageAltTextButtonClick(e){e.addEventListener("click",this._handleAltTextEditButtonClick),e.addEventListener("click",this._handleAltTextOkButtonClick),e.addEventListener("click",this._handleAltTextCancelButtonClick),e.addEventListener("click",this._handleImageDeleteButtonClick),e.addEventListener("keypress",this._handleAltTextInputKeypress),e.addEventListener("click",this._handleImageGridButtonClick)},_composerClosed(){this._unbindMobileUploadButton(),this.appEvents.trigger(`${this.composerEventPrefix}:will-close`),(0,u.next)((()=>{(0,D.default)((()=>this.appEvents.trigger(`${this.composerEventPrefix}:closed`)),(0,C.isTesting)()?0:400)})),this.element.querySelector(".d-editor-input")?.removeEventListener("scroll",this._throttledSyncEditorAndPreviewScroll);const e=this.element.querySelector(".d-editor-preview-wrapper");e?.removeEventListener("click",this._handleImageScaleButtonClick),e?.removeEventListener("click",this._handleAltTextEditButtonClick),e?.removeEventListener("click",this._handleAltTextOkButtonClick),e?.removeEventListener("click",this._handleImageDeleteButtonClick),e?.removeEventListener("click",this._handleImageGridButtonClick),e?.removeEventListener("click",this._handleAltTextCancelButtonClick),e?.removeEventListener("keypress",this._handleAltTextInputKeypress)},onExpandPopupMenuOptions(e){const t=e.selected;e.selectText(t.start,t.end-t.start),this.storeToolbarState(e)},showPreview(){this.send("togglePreview")},_isInQuote(e){let t=e.parentElement;for(;t&&!this._isPreviewRoot(t);){if(this._isQuote(t))return!0;t=t.parentElement}return!1},_isPreviewRoot:e=>"DIV"===e.tagName&&e.classList.contains("d-editor-preview"),_isQuote:e=>"ASIDE"===e.tagName&&e.classList.contains("quote"),_cursorIsOnEmptyLine(){const e=this.element.querySelector(".d-editor-input"),t=e.selectionStart;return 0===t||"\n"===e.value.charAt(t-1)},_findMatchingUploadHandler(e){return this.uploadHandlers.find((t=>{const n=t.extensions.join("|");return new RegExp(`\\.(${n})$`,"i").test(e)}))},actions:{importQuote(e){this.importQuote(e)},onExpandPopupMenuOptions(e){this.onExpandPopupMenuOptions(e)},togglePreview(){this.togglePreview()},extraButtons(e){e.addButton({id:"quote",group:"fontStyles",icon:"far-comment",sendAction:this.importQuote,title:"composer.quote_post_title",unshift:!0}),this.allowUpload&&this.uploadIcon&&!this.site.mobileView&&e.addButton({id:"upload",group:"insertions",icon:this.uploadIcon,title:"upload",sendAction:this.showUploadModal}),e.addButton({id:"options",group:"extras",icon:"cog",title:"composer.options",sendAction:this.onExpandPopupMenuOptions.bind(this),popupMenu:!0})},previewUpdated(e){const t=h()(e),n=(0,b.linkSeenMentions)(e,this.siteSettings);n.length&&(0,O.default)(this,this._renderUnseenMentions,e,n,450),this._warnMentionedGroups(e),this._warnCannotSeeMention(e);const r=this.site.hashtag_configurations["topic-composer"];(0,f.linkSeenHashtagsInContext)(r,e).length>0&&(0,O.default)(this,this._renderUnseenHashtags,e,450),(0,O.default)(this,(()=>{const t=this.get("composer.post");let n=!1;t&&!t.get("refreshedPost")&&(n=!0);const r=(0,_.loadOneboxes)(e,g.ajax,this.get("composer.topic.id"),this.get("composer.category.id"),this.siteSettings.max_oneboxes_per_post,n);n&&r>0&&t.set("refreshedPost",!0)}),450),(0,m.resolveAllShortUrls)(g.ajax,this.siteSettings,e),e.addEventListener("click",this._handleImageScaleButtonClick),this._registerImageAltTextButtonClick(e),this.appEvents.trigger("decorate-non-stream-cooked-element",e),this.afterRefresh(t)}}},(0,r.Z)($,"replyPlaceholder",[M],Object.getOwnPropertyDescriptor($,"replyPlaceholder"),$),(0,r.Z)($,"showLink",[j.default],Object.getOwnPropertyDescriptor($,"showLink"),$),(0,r.Z)($,"setFocus",[N],Object.getOwnPropertyDescriptor($,"setFocus"),$),(0,r.Z)($,"markdownOptions",[j.default],Object.getOwnPropertyDescriptor($,"markdownOptions"),$),(0,r.Z)($,"_afterMentionComplete",[j.bind],Object.getOwnPropertyDescriptor($,"_afterMentionComplete"),$),(0,r.Z)($,"_composerEditorInit",[z],Object.getOwnPropertyDescriptor($,"_composerEditorInit"),$),(0,r.Z)($,"validation",[L],Object.getOwnPropertyDescriptor($,"validation"),$),(0,r.Z)($,"_isNewTopic",[F],Object.getOwnPropertyDescriptor($,"_isNewTopic"),$),(0,r.Z)($,"_handleInputInteraction",[j.bind],Object.getOwnPropertyDescriptor($,"_handleInputInteraction"),$),(0,r.Z)($,"_handleInputOrPreviewScroll",[j.bind],Object.getOwnPropertyDescriptor($,"_handleInputOrPreviewScroll"),$),(0,r.Z)($,"_handlePreviewInteraction",[j.bind],Object.getOwnPropertyDescriptor($,"_handlePreviewInteraction"),$),(0,r.Z)($,"_throttledSyncEditorAndPreviewScroll",[j.bind],Object.getOwnPropertyDescriptor($,"_throttledSyncEditorAndPreviewScroll"),$),(0,r.Z)($,"_warnMentionedGroups",[U],Object.getOwnPropertyDescriptor($,"_warnMentionedGroups"),$),(0,r.Z)($,"_warnCannotSeeMention",[R],Object.getOwnPropertyDescriptor($,"_warnCannotSeeMention"),$),(0,r.Z)($,"_handleImageScaleButtonClick",[j.bind],Object.getOwnPropertyDescriptor($,"_handleImageScaleButtonClick"),$),(0,r.Z)($,"_handleAltTextInputKeypress",[j.bind],Object.getOwnPropertyDescriptor($,"_handleAltTextInputKeypress"),$),(0,r.Z)($,"_handleAltTextEditButtonClick",[j.bind],Object.getOwnPropertyDescriptor($,"_handleAltTextEditButtonClick"),$),(0,r.Z)($,"_handleAltTextOkButtonClick",[j.bind],Object.getOwnPropertyDescriptor($,"_handleAltTextOkButtonClick"),$),(0,r.Z)($,"_handleAltTextCancelButtonClick",[j.bind],Object.getOwnPropertyDescriptor($,"_handleAltTextCancelButtonClick"),$),(0,r.Z)($,"_handleImageDeleteButtonClick",[j.bind],Object.getOwnPropertyDescriptor($,"_handleImageDeleteButtonClick"),$),(0,r.Z)($,"_handleImageGridButtonClick",[j.bind],Object.getOwnPropertyDescriptor($,"_handleImageGridButtonClick"),$),(0,r.Z)($,"_composerClosed",[B],Object.getOwnPropertyDescriptor($,"_composerClosed"),$),$)))},79667:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"inbDeZ+q",block:'[[[11,0],[24,0,"composer-fullscreen-prompt"],[4,[38,0],["animationend",[30,1]],null],[12],[1,"\\n  "],[1,[28,[35,1],[[28,[37,2],["composer.exit_fullscreen_prompt"],null]],null]],[1,"\\n"],[13]],["@removeFullScreenExitPrompt"],false,["on","html-safe","i18n"]]',moduleName:"discourse/components/composer-fullscreen-prompt.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},92336:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(54001),o=n(72326),a=n(31691),l=n.n(a),c=n(54736),u=n(57555);const d=l().extend((r=(0,u.default)("message.templateName"),i={classNameBindings:[":composer-popup","message.extraClass"],layout(e){return(0,o.getOwner)(this).lookup(`template:composer/${e}`)},actions:{closeMessage(){(0,c.default)('You should use `action=(closeMessage message)` instead of `action=(action "closeMessage")`',{id:"discourse.composer-message.closeMessage"}),this.closeMessage(this.message)}}},(0,s.Z)(i,"layout",[r],Object.getOwnPropertyDescriptor(i,"layout"),i),i))},74743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(94664),i=n(49246),s=n(54001),o=n(23183),a=n(31691),l=n.n(a),c=n(48163),u=n.n(c),d=n(6264),p=n(17579),h=n(62505),m=n(3055),g=n(30787),f=n(34405),b=n(57555),_=n(82099);const y=(0,n(8620).createTemplateFactory)({id:"ATeamNJW",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["messages"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@message","@closeMessage","@shareModal","@switchPM"],[[30,1],[30,0,["closeMessage"]],[28,[37,3],[[28,[37,4],[[30,0,["showShareModal"]]],null],true],null],[30,0,["switchPM"]]]],null],[1,"\\n"],[41,[30,0,["showShareModal"]],[[[1,"    "],[8,[39,6],null,[["@closeModal","@model"],[[28,[37,3],[[28,[37,4],[[30,0,["showShareModal"]]],null],false],null],[30,0,["shareModalData"]]]],null],[1,"\\n"]],[]],null]],[1]],null]],["message"],false,["each","-track-array","composer-message","fn","mut","if","modal/share-topic"]]',moduleName:"discourse/components/composer-messages.hbs",isStrictMode:!1});var w,v,k,x,T,S,C,P;let O={},E=(w=(0,h.classNameBindings)(":composer-popup-container","hidden"),v=(0,d.not)("composer.viewOpenOrFullscreen"),k=(0,b.debounce)(f.INPUT_DELAY),w((T=class extends(l()){constructor(){super(...arguments),(0,r.Z)(this,"modal",S,this),(0,r.Z)(this,"showShareModal",C,this),(0,i.Z)(this,"checkedMessages",!1),(0,i.Z)(this,"messages",null),(0,i.Z)(this,"messagesByTemplate",null),(0,i.Z)(this,"queuedForTyping",null),(0,i.Z)(this,"similarTopics",null),(0,i.Z)(this,"usersNotSeen",null),(0,i.Z)(this,"recipientNames",[]),(0,r.Z)(this,"hidden",P,this),(0,i.Z)(this,"_lastSimilaritySearch",null),(0,i.Z)(this,"_similarTopicsMessage",null)}didInsertElement(){super.didInsertElement(...arguments),this.appEvents.on("composer:typed-reply",this,this._typedReply),this.appEvents.on("composer:opened",this,this._findMessages),this.appEvents.on("composer:find-similar",this,this._findSimilar),this.appEvents.on("composer-messages:close",this,this._closeTop),this.appEvents.on("composer-messages:create",this,this._create),this.reset()}willDestroyElement(){super.willDestroyElement(...arguments),this.appEvents.off("composer:typed-reply",this,this._typedReply),this.appEvents.off("composer:opened",this,this._findMessages),this.appEvents.off("composer:find-similar",this,this._findSimilar),this.appEvents.off("composer-messages:close",this,this._closeTop),this.appEvents.off("composer-messages:create",this,this._create)}_closeTop(){this.isDestroying||this.isDestroyed||(this.messages.popObject(),this.set("messageCount",this.messages.length))}_removeMessage(e){this.messages.removeObject(e),this.set("messageCount",this.messages.length)}_create(e){this.isDestroying||this.isDestroyed||(this.reset(),this.popup(u().create(e)))}reset(){this.setProperties({messages:[],messagesByTemplate:{},queuedForTyping:[],checkedMessages:!1,similarTopics:[]})}async _typedReply(){if(!this.isDestroying&&!this.isDestroyed){for(const e of this.queuedForTyping){if(this.composer.whisper&&e.hide_if_whisper)return;this.popup(e)}if(this.composer.privateMessage){if(this.composer.targetRecipientsArray.length>0&&this.composer.targetRecipientsArray.every((e=>e.name===this.currentUser.username))){const e=this.composer.store.createRecord("composer-message",{id:"yourself_confirm",templateName:"education",title:_.default.t("composer.yourself_confirm.title"),body:_.default.t("composer.yourself_confirm.body")});this.popup(e)}const e=this.composer.targetRecipientsArray.filter((e=>"user"===e.type)).map((e=>{let{name:t}=e;return t}));if(e.length>0&&e.length!==this.recipientNames.length&&!e.every(((e,t)=>e===this.recipientNames[t]))){this.recipientNames=e;const t=await(0,m.ajax)("/composer_messages/user_not_seen_in_a_while",{type:"GET",data:{usernames:e}});if(this.isDestroying||this.isDestroyed)return;if(t.user_count>0&&this.usersNotSeen!==t.usernames.join("-")){this.set("usersNotSeen",t.usernames.join("-")),this.messagesByTemplate.education=void 0;let e,n=[];t.usernames.forEach(((e,t)=>{n[t]=`<a class='mention' href='/u/${e}'>@${e}</a>`})),e=1===t.user_count?"composer.user_not_seen_in_a_while.single":"composer.user_not_seen_in_a_while.multiple";const r=this.composer.store.createRecord("composer-message",{id:"user-not-seen",templateName:"education",body:_.default.t(e,{usernames:n.join(", "),time_ago:t.time_ago})});this.popup(r)}}}}}async _findSimilar(){if(this.isDestroying||this.isDestroyed)return;if(!this.composer.creatingTopic)return;if(this.composer?.category?.form_template_ids.length>0)return;const e=(this.composer.reply||"").slice(0,200),t=this.composer.title||"";if(t.length<this.siteSettings.min_title_similar_length)return;const n=t+e;if(n===this._lastSimilaritySearch)return;this._lastSimilaritySearch=n,this._similarTopicsMessage||=this.composer.store.createRecord("composer-message",{id:"similar_topics",templateName:"similar-topics",extraClass:"similar-topics"});const r=await this.composer.store.find("similar-topic",{title:t,raw:e});this.isDestroying||this.isDestroyed||(this.similarTopics.clear(),this.similarTopics.pushObjects(r.content),this.similarTopics.length>0?(this._similarTopicsMessage.set("similarTopics",this.similarTopics),this.popup(this._similarTopicsMessage)):this._similarTopicsMessage&&this.hideMessage(this._similarTopicsMessage))}async _findMessages(){if(this.isDestroying||this.isDestroyed)return;if(this.checkedMessages)return;const e={composer_action:this.composer.action},t=this.composer.topic?.id,n=this.composer.post?.id;t&&(e.topic_id=t),n&&(e.post_id=n);const r=`${e.composer_action}${e.topic_id}${e.post_id}`;let i;if(O.cacheKey===r)i=O.messages;else{if(i=await this.composer.store.find("composer-message",e),this.isDestroying||this.isDestroyed)return;O={messages:i,cacheKey:r}}i.extras?.duplicate_lookup&&this.addLinkLookup(new g.default(i.extras.duplicate_lookup)),this.set("checkedMessages",!0),i.forEach((e=>{e.wait_for_typing?this.queuedForTyping.addObject(e):this.popup(e)}))}closeMessage(e,t){t?.preventDefault(),this._removeMessage(e)}hideMessage(e){this._removeMessage(e),this.messagesByTemplate[e.templateName]=void 0}popup(e){this.messagesByTemplate[e.templateName]||(this.messages.pushObject(e),this.set("messageCount",this.messages.length),this.messagesByTemplate[e.templateName]=e)}get shareModalData(){const{topic:e}=this.composer;return{topic:e,category:e.category,allowInvites:e.details.can_invite_to&&!e.archived&&!e.closed&&!e.deleted}}switchPM(e){this.composer.set("action","privateMessage"),this.composer.set("targetRecipients",e.reply_username),this._removeMessage(e)}},S=(0,s.Z)(T.prototype,"modal",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,s.Z)(T.prototype,"showShareModal",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,s.Z)(T.prototype,"hidden",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(T.prototype,"_typedReply",[k],Object.getOwnPropertyDescriptor(T.prototype,"_typedReply"),T.prototype),(0,s.Z)(T.prototype,"closeMessage",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"closeMessage"),T.prototype),(0,s.Z)(T.prototype,"hideMessage",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"hideMessage"),T.prototype),(0,s.Z)(T.prototype,"popup",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"popup"),T.prototype),(0,s.Z)(T.prototype,"switchPM",[c.action],Object.getOwnPropertyDescriptor(T.prototype,"switchPM"),T.prototype),x=T))||x);(0,a.setComponentTemplate)(y,E)},50719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(82006),i=n(62617),s=n(82099);const o=(0,n(8620).createTemplateFactory)({id:"WCQq3SOQ",block:'[[[8,[39,0],[[16,0,[29,["btn-primary create ",[52,[30,1],"disabled"]]]],[17,2]],[["@translatedTitle","@label","@action","@icon","@forwardEvent"],[[30,0,["translatedTitle"]],[30,3],[30,4],[30,5],[30,6]]],null]],["@disabledSubmit","&attrs","@label","@action","@icon","@forwardEvent"],false,["d-button","if"]]',moduleName:"discourse/components/composer-save-button.hbs",isStrictMode:!1});var a=n(31691);class l extends r.default{get translatedTitle(){return s.default.t("composer.title",{modifier:(0,i.translateModKey)("Meta+")})}}(0,a.setComponentTemplate)(o,l)},97729:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"K+smn5Pj",block:'[[[8,[39,0],[[24,0,"btn-flat close"]],[["@action","@icon","@label","@ariaLabel"],[[30,1],"times","composer.esc","composer.esc_label"]],null]],["@action"],false,["d-button"]]',moduleName:"discourse/components/composer-tip-close-button.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},64555:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(6264),c=n(51372),u=n(59539),d=n(4032),p=n(3055),h=n(25351),m=n(34405),g=n(56111),f=n(57555),b=n(82099);const _=(0,n(8620).createTemplateFactory)({id:"IetttjVL",block:'[[[8,[39,0],null,[["@value","@id","@maxLength","@placeholderKey","@aria-label","@disabled","@autocomplete"],[[30,0,["composer","title"]],"reply-title",[30,0,["titleMaxLength"]],[30,0,["composer","titlePlaceholder"]],[28,[37,1],[[30,0,["composer","titlePlaceholder"]]],null],[30,0,["disabled"]],"off"]],null],[1,"\\n\\n"],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["after-composer-title-input","div",[28,[37,3],null,[["composer"],[[30,0,["composer"]]]]]]],null],[1,"\\n\\n"],[8,[39,4],null,[["@validation"],[[30,0,["validation"]]]],null]],[],false,["text-field","i18n","plugin-outlet","hash","popup-input-tip"]]',moduleName:"discourse/components/composer-title.hbs",isStrictMode:!1});var y,w,v,k,x,T;const S=(0,i.setComponentTemplate)(_,s().extend((y=(0,f.default)("composer.titleLength","composer.missingTitleCharacters","composer.minimumTitleLength","lastValidatedAt"),w=(0,f.default)("watchForLink"),v=(0,f.observes)("composer.titleLength","watchForLink"),k=(0,f.observes)("composer.replyLength"),x=(0,f.default)("composer.title","composer.titleLength"),T={classNames:["title-input"],watchForLink:(0,l.alias)("composer.canEditTopicFeaturedLink"),disabled:(0,l.or)("composer.loading","composer.disableTitleInput"),didInsertElement(){this._super(...arguments),"title"===this.focusTarget&&(0,h.default)(this.element.querySelector("input")),this.get("composer.titleLength")>0&&(0,g.default)(this,this._titleChanged,10)},validation(e,t,n,r){let i;if(e<1?i=b.default.t("composer.error.title_missing"):t>0?i=b.default.t("composer.error.title_too_short",{count:n}):e>this.siteSettings.max_topic_title_length&&(i=b.default.t("composer.error.title_too_long",{count:this.siteSettings.max_topic_title_length})),i)return a().create({failed:!0,reason:i,lastShownAt:r})},titleMaxLength(e){return e?null:this.siteSettings.max_topic_title_length},_titleChanged(){0===this.get("composer.titleLength")&&this.set("autoPosted",!1),!this.autoPosted&&this.watchForLink&&((0,m.isTesting)()?(0,c.next)((()=>this._checkForUrl())):(0,g.default)(this,this._checkForUrl,500))},_clearFeaturedLink(){this.watchForLink&&this.bodyIsDefault()&&this.set("composer.featuredLink",null)},_checkForUrl(){if(this.element&&!this.isDestroying&&!this.isDestroyed&&this.isAbsoluteUrl&&this.bodyIsDefault()){if(this.get("composer.title").match(new RegExp("^https?:\\/\\/"+window.location.hostname,"i")))return;this.set("composer.loading",!0);const e=document.createElement("a");e.href=this.get("composer.title");const t=(0,u.load)({elem:e,refresh:!1,ajax:p.ajax,synchronous:!0,categoryId:this.get("composer.category.id"),topicId:this.get("composer.topic.id")});t&&t.then?t.then((()=>{const t=(0,d.lookupCache)(this.get("composer.title"));this._updatePost(t||e)})).finally((()=>{this.set("composer.loading",!1),(0,c.schedule)("afterRender",(()=>{(0,h.default)(this.element.querySelector("input"))}))})):(this._updatePost(t),this.set("composer.loading",!1),(0,c.schedule)("afterRender",(()=>{(0,h.default)(this.element.querySelector("input"))})))}},_updatePost(e){if(e){const t=document.createRange().createContextualFragment(e),n=this.composer;if(this.set("autoPosted",!0),this.set("composer.featuredLink",this.get("composer.title")),n.appendText(this.get("composer.title"),null,{block:!0}),t.querySelector(".twitterstatus"))return void this.set("composer.title","");const r=t.querySelector("h3, h4"),i=r&&r.textContent||t.firstElementChild&&t.firstElementChild.title;if(i)this.changeTitle(i);else{const e=t.firstChild&&t.firstChild.attributes&&t.firstChild.attributes.title||t.querySelector("[title]")&&t.querySelector("[title]").attributes.title;e&&this.changeTitle(e)}}},changeTitle(e){e&&e.length>0&&this.set("composer.title",e.trim())},isAbsoluteUrl:(e,t)=>t>0&&/^(https?:)?\/\/[\w\.\-]+/i.test(e)&&!/\s/.test(e),bodyIsDefault(){const e=this.get("composer.reply")||"";return 0===e.length||e===(this.get("composer.category.topic_template")||"")}},(0,r.Z)(T,"validation",[y],Object.getOwnPropertyDescriptor(T,"validation"),T),(0,r.Z)(T,"titleMaxLength",[w],Object.getOwnPropertyDescriptor(T,"titleMaxLength"),T),(0,r.Z)(T,"_titleChanged",[v],Object.getOwnPropertyDescriptor(T,"_titleChanged"),T),(0,r.Z)(T,"_clearFeaturedLink",[k],Object.getOwnPropertyDescriptor(T,"_clearFeaturedLink"),T),(0,r.Z)(T,"isAbsoluteUrl",[x],Object.getOwnPropertyDescriptor(T,"isAbsoluteUrl"),T),T)))},73934:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"QQX18s8H",block:'[[[10,0],[14,0,"composer-controls"],[12],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,0],null,[["@name","@connectorTagName"],["before-composer-toggles","div"]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[8,[39,2],[[24,0,"btn-flat toggle-toolbar btn-mini-toggle"]],[["@icon","@action","@title","@preventFocus"],["bars",[30,0,["toggleToolbar"]],[30,0,["toggleToolbarTitle"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFullScreenButton"]],[[[1,"    "],[8,[39,2],[[24,0,"btn-flat toggle-fullscreen btn-mini-toggle"]],[["@icon","@action","@title"],[[30,0,["fullscreenIcon"]],[30,0,["toggleFullscreen"]],[30,0,["fullscreenTitle"]]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,2],[[24,0,"btn-flat toggler toggle-minimize btn-mini-toggle"]],[["@icon","@action","@title"],[[30,0,["toggleIcon"]],[30,0,["toggleComposer"]],[30,0,["toggleTitle"]]]],null],[1,"\\n"],[13]],[],false,["plugin-outlet","if","d-button"]]',moduleName:"discourse/components/composer-toggles.hbs",isStrictMode:!1});var l,c,u,d,p,h,m;const g=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("composeState"),c=(0,o.default)("showToolbar"),u=(0,o.default)("composeState"),d=(0,o.default)("composeState"),p=(0,o.default)("composeState"),h=(0,o.default)("disableTextarea"),m={tagName:"",toggleTitle:e=>"draft"===e||"saving"===e?"composer.abandon":"composer.collapse",toggleToolbarTitle:e=>e?"composer.hide_toolbar":"composer.show_toolbar",fullscreenTitle:e=>"draft"===e?"composer.open":"fullscreen"===e?"composer.exit_fullscreen":"composer.enter_fullscreen",toggleIcon:e=>"draft"===e||"saving"===e?"times":"chevron-down",fullscreenIcon:e=>"draft"===e?"chevron-up":"fullscreen"===e?"discourse-compress":"discourse-expand",showFullScreenButton(e){return!this.site.mobileView&&!e}},(0,r.Z)(m,"toggleTitle",[l],Object.getOwnPropertyDescriptor(m,"toggleTitle"),m),(0,r.Z)(m,"toggleToolbarTitle",[c],Object.getOwnPropertyDescriptor(m,"toggleToolbarTitle"),m),(0,r.Z)(m,"fullscreenTitle",[u],Object.getOwnPropertyDescriptor(m,"fullscreenTitle"),m),(0,r.Z)(m,"toggleIcon",[d],Object.getOwnPropertyDescriptor(m,"toggleIcon"),m),(0,r.Z)(m,"fullscreenIcon",[p],Object.getOwnPropertyDescriptor(m,"fullscreenIcon"),m),(0,r.Z)(m,"showFullScreenButton",[h],Object.getOwnPropertyDescriptor(m,"showFullScreenButton"),m),m)))},74246:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"KhWwI0hr",block:'[[[8,[39,0],null,[["@id","@value","@onChange","@options"],["private-message-users",[30,0,["splitRecipients"]],[28,[37,1],[[30,0],"updateRecipients"],null],[28,[37,2],null,[["topicId","none","includeMessageableGroups","allowEmails","autoWrap"],[[30,0,["topicId"]],"composer.users_placeholder",true,[30,0,["currentUser","can_send_private_email_messages"]],true]]]]],null]],[],false,["email-group-user-chooser","action","hash"]]',moduleName:"discourse/components/composer-user-selector.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("recipients"),c={init(){this._super(...arguments),this.set("_groups",[])},didInsertElement(){this._super(...arguments),"usernames"===this.focusTarget&&this.element.querySelector(".select-kit .select-kit-header").focus()},splitRecipients:e=>Array.isArray(e)?e:e?e.split(",").filter(Boolean):[],_updateGroups(e,t){const n=[];this._groups.forEach((t=>{e.includes(t)&&n.addObject(t)})),t.forEach((e=>{n.includes(e)||n.addObject(e)})),this.setProperties({_groups:n,hasGroups:n.length>0})},actions:{updateRecipients(e,t){const n=t.filterBy("isGroup").mapBy("id");this._updateGroups(e,n),this.set("recipients",e.join(","))}}},(0,r.Z)(c,"splitRecipients",[l],Object.getOwnPropertyDescriptor(c,"splitRecipients"),c),c)))},71602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"qfxJbZN7",block:'[[[41,[30,1],[[[1,"  "],[18,4,null],[1,"\\n"]],[]],[[[41,[30,2],[[[41,[30,3],[[[1,"    "],[40,[[[18,4,null]],[]],"%cursor:0%",[28,[37,3],[[30,2]],null],null],[1,"\\n"]],[]],[[[1,"    "],[40,[[[18,4,null]],[]],"%cursor:1%",[28,[37,3],[[30,2]],null]],[1,"\\n"]],[]]]],[]],null]],[]]]],["@inline","@element","@append","&default"],false,["if","yield","in-element","-in-el-null"]]',moduleName:"discourse/components/conditional-in-element.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},89492:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(82099);const o=(0,n(8620).createTemplateFactory)({id:"liv03Qpv",block:'[[[41,[30,0,["isLoading"]],[[[1,"  "],[10,1],[14,0,"title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n  "],[10,0],[15,0,[29,["spinner ",[30,0,["size"]]]]],[12],[13],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/conditional-loading-section.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({classNames:["conditional-loading-section"],classNameBindings:["isLoading"],isLoading:!1,title:s.default.t("conditional_loading_section.loading")}))},72853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(55071),i=n(99230),s=n(18283),o=n(90311),a=n(8620),l=n(31691),c=n(91138),u=n.n(c);const d=(0,l.setComponentTemplate)((0,a.createTemplateFactory)({id:"UQjOlVwJ",block:'[[[1,"\\n  "],[8,[32,0],null,[["@name","@defaultGlimmer","@outletArgs"],["conditional-loading-spinner",true,[28,[32,1],null,[["condition","size"],[[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n    "],[10,0],[15,0,[28,[32,2],["loading-container",[52,[30,1],"visible"],[52,[28,[32,3],[[30,2],"small"],null],"inline-spinner"]],null]],[12],[1,"\\n"],[41,[30,1],[[[1,"        "],[10,0],[15,0,[29,["spinner ",[30,2]]]],[12],[13],[1,"\\n"]],[]],[[[1,"        "],[18,3,null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],["@condition","@size","&default"],false,["if","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/conditional-loading-spinner.js",scope:()=>[o.default,r.hash,i.default,s.default],isStrictMode:!0}),u()())},22108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(31691);const i=n.n(r)().extend()},97436:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a=n(94664),l=n(54001),c=n(82006),u=n(23183),d=n(48163),p=n(66373),h=n(17579),m=n(24705),g=n(3055),f=n(14201),b=n(35193),_=n(8620),y=n(31691);let w=(o=class extends c.default{constructor(e,t){super(e,t),(0,a.Z)(this,"siteSettings",i,this),(0,a.Z)(this,"cooked",s,this),this.loadCookedText()}async loadCookedText(){const e=await(0,b.cook)(this.args.rawText);this.cooked=e}calculateOffsetHeight(e){if(this.args.onOffsetHeightCalculated)return this.args.onOffsetHeightCalculated(e?.offsetHeight)}buildOneboxes(e){this.args.paintOneboxes&&null!==this.cooked&&(0,f.loadOneboxes)(e,g.ajax,this.args.topicId,this.args.categoryId,this.siteSettings.max_oneboxes_per_post,!1)}resolveShortUrls(e){(0,m.resolveAllShortUrls)(g.ajax,this.siteSettings,e,this.args.opts)}},(0,y.setComponentTemplate)((0,_.createTemplateFactory)({id:"Q8nmGpW2",block:'[[[1,"\\n    "],[11,0],[17,1],[4,[32,0],[[30,0,["buildOneboxes"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["resolveShortUrls"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["calculateOffsetHeight"]],[30,0,["cooked"]]],null],[4,[32,0],[[30,0,["loadCookedText"]],[30,2]],null],[12],[1,"\\n      "],[1,[30,0,["cooked"]]],[1,"\\n    "],[13],[1,"\\n  "]],["&attrs","@rawText"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/cook-text.js",scope:()=>[p.default],isStrictMode:!0}),o),r=o,i=(0,l.Z)(r.prototype,"siteSettings",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"cooked",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,l.Z)(r.prototype,"loadCookedText",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"loadCookedText"),r.prototype),(0,l.Z)(r.prototype,"calculateOffsetHeight",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"calculateOffsetHeight"),r.prototype),(0,l.Z)(r.prototype,"buildOneboxes",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"buildOneboxes"),r.prototype),(0,l.Z)(r.prototype,"resolveShortUrls",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"resolveShortUrls"),r.prototype),r)},14166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(56111),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"8eXQ7BvK",block:'[[[8,[39,0],[[16,0,[30,0,["copyClass"]]]],[["@icon","@action","@ariaLabel"],[[30,0,["copyIcon"]],[30,0,["copy"]],[30,0,["ariaLabel"]]]],null]],[],false,["d-button"]]',moduleName:"discourse/components/copy-button.hbs",isStrictMode:!1});var u;const d=(0,i.setComponentTemplate)(c,s().extend((u={tagName:"",copyIcon:"copy",copyClass:"btn-primary",_restoreButton(){this.isDestroying||this.isDestroyed||(this.set("copyIcon","copy"),this.set("copyClass","btn-primary"))},copy(){const e=document.querySelector(this.selector);e.select(),e.setSelectionRange(0,e.value.length);try{document.execCommand("copy"),this.copied&&this.copied(),this.set("copyIcon","check"),this.set("copyClass","btn-primary ok"),(0,a.default)(this._restoreButton,3e3)}catch(e){}}},(0,r.Z)(u,"_restoreButton",[l.bind],Object.getOwnPropertyDescriptor(u,"_restoreButton"),u),(0,r.Z)(u,"copy",[o.action],Object.getOwnPropertyDescriptor(u,"copy"),u),u)))},87588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(31691),i=n.n(r),s=n(24434),o=n(82099);const a=(0,n(8620).createTemplateFactory)({id:"xtZTkig+",block:'[[[1,[30,0,["i18nCount"]]]],[],false,[]]',moduleName:"discourse/components/count-i18n.hbs",isStrictMode:!1}),l=(0,r.setComponentTemplate)(a,i().extend({tagName:"span",i18nCount:null,didReceiveAttrs(){this._super(...arguments);let e=this.key+(this.suffix||"");this.currentUser?.new_new_view_enabled&&"topic_count_new"===e&&(e="topic_count_latest"),this.set("i18nCount",(0,s.htmlSafe)(o.default.t(e,{count:this.count})))}}))},64906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(88548),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"gBs5EjqI",block:'[[[18,1,[[28,[37,1],null,[["data","uploading","uploadProgress","uploaded","submitDisabled","startUpload"],[[30,0,["data"]],[30,0,["uploading"]],[30,0,["uploadProgress"]],[30,0,["uploaded"]],[30,0,["submitDisabled"]],[28,[37,2],[[30,0],"startUpload"],null]]]],[30,0,["setElement"]]]]],["&default"],false,["yield","hash","action"]]',moduleName:"discourse/components/create-invite-uploader.hbs",isStrictMode:!1});var u,d;const p=(0,i.setComponentTemplate)(c,s().extend(a.default,(u=(0,l.default)("filesAwaitingUpload","uploading"),d={id:"create-invite-uploader",tagName:"div",type:"csv",autoStartUploads:!1,uploadUrl:"/invites/upload_csv",preventDirectS3Uploads:!0,fileInputSelector:"#csv-file",validateUploadedFilesOptions:()=>({bypassNewUserRestriction:!0,csvOnly:!0}),submitDisabled:(e,t)=>!e||t,uploadDone(){this.set("uploaded",!0)},startUpload(){this._startUpload()},setElement(e){this.set("fileInputEl",e),this._initialize()}},(0,r.Z)(d,"submitDisabled",[u],Object.getOwnPropertyDescriptor(d,"submitDisabled"),d),(0,r.Z)(d,"startUpload",[o.action],Object.getOwnPropertyDescriptor(d,"startUpload"),d),(0,r.Z)(d,"setElement",[o.action],Object.getOwnPropertyDescriptor(d,"setElement"),d),d)))},97018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"daVYhCIf",block:'[[[41,[30,0,["canCreateTopic"]],[[[1,"  "],[8,[39,1],null,null,[["button","tooltip"],[[[[1,"\\n      "],[8,[39,2],[[24,1,"create-topic"],[16,0,[30,0,["btnClass"]]]],[["@action","@icon","@disabled","@label"],[[30,0,["action"]],"plus",[30,0,["disabled"]],[30,0,["label"]]]],null],[1,"\\n    "]],[]],[[[1,"\\n"],[41,[30,1],[[[1,"        "],[8,[39,3],null,[["@icon","@content"],["info-circle",[28,[37,4],["topic.create_disabled_category"],null]]],null],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n"]],[]],null]],["@disabled"],false,["if","d-button-tooltip","d-button","d-tooltip","i18n"]]',moduleName:"discourse/components/create-topic-button.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"",label:"topic.create",btnClass:"btn-default"}))},32229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(72326),i=n(31691),s=n.n(i),o=n(9726),a=n(54736),l=n(8620);const c=s().extend({triggerAppEvent:null,init(){this._super(...arguments);const e=this.name,t=(0,o.getCustomHTML)(e);if(t)this.set("html",t),this.set("layout",(0,l.createTemplateFactory)({id:"T9DcEvSe",block:'[[[1,[30,0,["html"]]]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/custom-html.js",isStrictMode:!1}));else{const t=(0,r.getOwner)(this).lookup(`template:${e}`);t&&((0,a.default)("Defining an hbs template for CustomHTML rendering is deprecated. Use plugin outlets instead.",{id:"discourse.custom_html_template"}),this.set("layout",t))}},didInsertElement(){this._super(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`inserted-custom-html:${this.name}`)},willDestroyElement(){this._super(...arguments),"true"===this.triggerAppEvent&&this.appEvents.trigger(`destroyed-custom-html:${this.name}`)}})},69338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(54001),m=n(48581),g=n(48163),f=n(6264),b=n(17579),_=n(24434),y=n(32593),w=n(99230),v=n(20229),k=n(40098),x=n(54736),T=n(82099),S=n(61777),C=n(8620),P=n(31691);const O=["DButton no longer supports @action as a string. Please refactor to use an closure action instead.",{id:"discourse.d-button-action-string"}];let E=(r=(0,f.notEmpty)("args.icon"),i=(0,f.equal)("args.display","link"),s=(0,f.empty)("computedLabel"),d=class extends y.default{constructor(){super(...arguments),(0,p.Z)(this,"router",a,this),(0,p.Z)(this,"btnIcon",l,this),(0,p.Z)(this,"btnLink",c,this),(0,p.Z)(this,"noText",u,this),"string"==typeof this.args.action&&(0,x.default)(...O)}get forceDisabled(){return!!this.args.isLoading}get isDisabled(){return this.forceDisabled||this.args.disabled}get btnType(){return this.args.icon?this.computedLabel?"btn-icon-text":"btn-icon":this.computedLabel?"btn-text":void 0}get computedTitle(){return this.args.title?T.default.t(this.args.title):this.args.translatedTitle}get computedLabel(){return this.args.label?T.default.t(this.args.label):this.args.translatedLabel}get computedAriaLabel(){return this.args.ariaLabel?T.default.t(this.args.ariaLabel):this.args.translatedAriaLabel?this.args.translatedAriaLabel:void 0}get computedAriaExpanded(){return!0===this.args.ariaExpanded?"true":!1===this.args.ariaExpanded?"false":void 0}keyDown(e){this.args.onKeyDown?(e.stopPropagation(),this.args.onKeyDown(e)):"Enter"===e.key&&this._triggerAction(e)}click(e){return this._triggerAction(e)}mouseDown(e){this.args.preventFocus&&e.preventDefault()}_triggerAction(e){const{action:t,route:n,href:r}=this.args;if(t||n||r?.length){if(t){const{actionParam:n,forwardEvent:r}=this.args;if("string"==typeof t){if((0,x.default)(...O),!this._target?.send)throw new Error("DButton could not find a target for the action. Use a closure action instead");this._target.send(t,n)}else"object"==typeof t&&t.value?r?t.value(n,e):t.value(n):"function"==typeof t&&(r?t(n,e):t(n))}else n?this.router.transitionTo(n):r?.length&&v.default.routeTo(r);return e.preventDefault(),e.stopPropagation(),!1}}},(0,P.setComponentTemplate)((0,C.createTemplateFactory)({id:"A64rljrz",block:'[[[1,"\\n"],[1,"    "],[11,"button"],[16,0,[28,[32,0],[[30,1],[52,[30,2],"is-loading"],[52,[30,0,["btnLink"]],"btn-link","btn"],[52,[30,0,["noText"]],"no-text"],[30,0,["btnType"]]],null]],[16,1,[30,3]],[16,"form",[30,4]],[16,"aria-controls",[30,5]],[16,"aria-expanded",[30,0,["computedAriaExpanded"]]],[16,"tabindex",[30,6]],[16,4,[28,[32,1],[[30,7],"button"],null]],[17,8],[16,"disabled",[30,0,["isDisabled"]]],[16,"title",[30,0,["computedTitle"]]],[16,"aria-label",[30,0,["computedAriaLabel"]]],[4,[32,2],["keydown",[30,0,["keyDown"]]],null],[4,[32,2],["click",[30,0,["click"]]],null],[4,[32,2],["mousedown",[30,0,["mouseDown"]]],null],[12],[1,"\\n"],[41,[30,2],[[[1,[28,[32,3],["spinner"],[["class"],["loading-icon"]]]]],[]],[[[41,[30,9],[[[41,[30,10],[[[1,"            "],[10,1],[14,"aria-hidden","true"],[12],[1,[28,[32,3],[[30,9]],null]],[13],[1,"\\n"]],[]],[[[1,[28,[32,3],[[30,9]],null]]],[]]]],[]],null]],[]]],[41,[30,0,["computedLabel"]],[[[10,1],[14,0,"d-button-label"],[12],[1,[28,[32,4],[[30,0,["computedLabel"]]],null]],[41,[30,11],[[[1,"…"]],[]],null],[13]],[]],[[[1,"​\\n"]],[]]],[18,12,null],[1,"\\n    "],[13],[1,"\\n  "]],["@class","@isLoading","@id","@form","@ariaControls","@tabindex","@type","&attrs","@icon","@ariaHidden","@ellipsis","&default"],false,["if","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-button.js",scope:()=>[w.default,S.default,m.on,k.default,_.htmlSafe],isStrictMode:!0}),d),o=d,a=(0,h.Z)(o.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.Z)(o.prototype,"btnIcon",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.Z)(o.prototype,"btnLink",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.Z)(o.prototype,"noText",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.Z)(o.prototype,"keyDown",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"keyDown"),o.prototype),(0,h.Z)(o.prototype,"click",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"click"),o.prototype),(0,h.Z)(o.prototype,"mouseDown",[g.action],Object.getOwnPropertyDescriptor(o.prototype,"mouseDown"),o.prototype),o)},33452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPluginDocumentTitleCounter:()=>h,default:()=>m});var r,i=n(54001),s=n(31691),o=n.n(s),a=n(17579),l=n(3055),c=n(28560),u=n(57555),d=n(82099);let p=[];function h(e){p.push(e)}const m=o().extend((r={tagName:"",documentTitle:(0,a.inject)(),dialog:(0,a.inject)(),_showingLogout:!1,didInsertElement(){this._super(...arguments),this.documentTitle.setTitle(document.title),document.addEventListener("visibilitychange",this._focusChanged),document.addEventListener("resume",this._focusChanged),document.addEventListener("freeze",this._focusChanged),this.session.hasFocus=!0,this.appEvents.on("notifications:changed",this,this._updateNotifications),(0,l.setLogoffCallback)((()=>this.displayLogoff()))},willDestroyElement(){this._super(...arguments),(0,l.setLogoffCallback)(null),document.removeEventListener("visibilitychange",this._focusChanged),document.removeEventListener("resume",this._focusChanged),document.removeEventListener("freeze",this._focusChanged),this.appEvents.off("notifications:changed",this,this._updateNotifications)},_updateNotifications(e){if(!this.currentUser)return;let t=p.reduce(((e,t)=>e+t()),0);t+=this.currentUser.all_unread_notifications_count,this.currentUser.unseen_reviewable_count&&(t+=this.currentUser.unseen_reviewable_count),this.documentTitle.updateNotificationCount(t,{forced:e?.forced})},_focusChanged(){"hidden"===document.visibilityState?this.session.hasFocus&&this.documentTitle.setFocus(!1):this.hasFocus||this.documentTitle.setFocus(!0)},displayLogoff(){this._showingLogout||(this._showingLogout=!0,this.messageBus.stop(),this.dialog.alert({message:d.default.t("logout"),confirmButtonLabel:"refresh",didConfirm:()=>(0,c.default)(),didCancel:()=>(0,c.default)()}))}},(0,i.Z)(r,"_focusChanged",[u.bind],Object.getOwnPropertyDescriptor(r,"_focusChanged"),r),r))},64280:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addToolbarCallback:()=>V,clearToolbarCallbacks:()=>G,default:()=>Q,onToolbarCreate:()=>Y});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(51372),l=n(17579),c=n(54712),u=n.n(c),d=n(71466),p=n.n(d),h=n(8253),m=n(33469),g=n(24705),f=n(10425),b=n(29093),_=n(3055),y=n(13680),w=n(41087),v=n(44743),k=n(77559),x=n(6677),T=n(4152),S=n(14201),C=n(18104),P=n(35193),O=n(43168),E=n(62617),D=n(32270),I=n(34405),j=n(56111),Z=n(54736),A=n(37080),M=n(21896),N=n(57555),z=n(82099);const L=(0,n(8620).createTemplateFactory)({id:"rQHcPAd/",block:'[[[10,0],[14,0,"d-editor-container"],[12],[1,"\\n  "],[10,0],[14,0,"d-editor-textarea-column"],[12],[1,"\\n    "],[18,6,null],[1,"\\n"],[41,[30,0,["showFormTemplateForm"]],[[[41,[28,[37,2],[[30,1,["length"]],1],null],[[[1,"        "],[8,[39,3],[[24,0,"composer-select-form-template"]],[["@filteredIds","@value","@onChange","@options"],[[30,1],[30,0,["selectedFormTemplateId"]],[30,0,["updateSelectedFormTemplateId"]],[28,[37,4],null,[["maximum"],[1]]]]],null],[1,"\\n"]],[]],null],[1,"      "],[10,"form"],[14,1,"form-template-form"],[12],[1,"\\n        "],[8,[39,5],null,[["@id","@initialValues","@onSelectFormTemplate"],[[30,0,["selectedFormTemplateId"]],[30,2],[30,3]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[15,0,[29,["d-editor-textarea-wrapper\\n          ",[52,[30,0,["disabled"]],"disabled"],"\\n          ",[52,[30,0,["isEditorFocused"]],"in-focus"]]]],[12],[1,"\\n        "],[10,0],[14,0,"d-editor-button-bar"],[14,"role","toolbar"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["toolbar","groups"]]],null]],null],null,[[[42,[28,[37,7],[[28,[37,7],[[30,4,["buttons"]]],null]],null],null,[[[41,[28,[30,5,["condition"]],[[30,0]],null],[[[41,[30,5,["popupMenu"]],[[[1,"                  "],[8,[39,8],[[16,0,[30,5,["className"]]]],[["@content","@onChange","@onOpen","@tabindex","@onKeydown","@options"],[[30,0,["popupMenuOptions"]],[30,0,["onPopupMenuAction"]],[28,[37,9],[[30,0],[30,5,["action"]],[30,5]],null],-1,[30,0,["rovingButtonBar"]],[28,[37,4],null,[["icon","focusAfterOnChange"],[[30,5,["icon"]],false]]]]],null],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,10],[[16,"tabindex",[30,5,["tabindex"]]],[16,0,[30,5,["className"]]]],[["@action","@translatedTitle","@label","@icon","@preventFocus","@onKeyDown"],[[28,[37,11],[[28,[37,9],[[30,0],[30,5,["action"]]],null],[30,5]],null],[30,5,["title"]],[30,5,["label"]],[30,5,["icon"]],[30,5,["preventFocus"]],[30,0,["rovingButtonBar"]]]],null],[1,"\\n"]],[]]]],[]],null]],[5]],null]],[4]],null],[1,"        "],[13],[1,"\\n\\n        "],[8,[39,12],null,[["@condition"],[[30,0,["loading"]]]],null],[1,"\\n        "],[8,[39,13],[[24,0,"d-editor-input"]],[["@autocomplete","@tabindex","@value","@placeholder","@aria-label","@disabled","@input","@focusIn","@focusOut"],["off",[30,0,["tabindex"]],[30,0,["value"]],[30,0,["placeholderTranslated"]],[30,0,["placeholderTranslated"]],[30,0,["disabled"]],[30,0,["change"]],[28,[37,9],[[30,0],"focusIn"],null],[28,[37,9],[[30,0],"focusOut"],null]]],null],[1,"\\n        "],[8,[39,14],null,[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n        "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["after-d-editor","div",[30,0,["outletArgs"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n  "],[10,0],[15,0,[29,["d-editor-preview-wrapper ",[52,[30,0,["forcePreview"]],"force-preview"]]]],[12],[1,"\\n    "],[10,0],[14,0,"d-editor-preview"],[12],[1,"\\n"],[41,[51,[30,0,["siteSettings","enable_diffhtml_preview"]]],[[[1,"        "],[1,[28,[35,17],[[30,0,["preview"]]],null]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,1],[14,0,"d-editor-plugin"],[12],[1,"\\n      "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["editor-preview","div",[30,0,["outletArgs"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,18],null,[["@isActive","@isEditorFocused","@initialFilter","@emojiSelected","@onEmojiPickerClose"],[[30,0,["emojiPickerIsActive"]],[30,0,["isEditorFocused"]],[30,0,["emojiFilter"]],[28,[37,9],[[30,0],"emojiSelected"],null],[30,0,["onEmojiPickerClose"]]]],null]],["@formTemplateIds","@formTemplateInitialValues","@onSelectFormTemplate","group","b","&default"],false,["yield","if","gt","form-template-chooser","hash","form-template-field/wrapper","each","-track-array","toolbar-popup-menu-options","action","d-button","fn","conditional-loading-spinner","d-textarea","popup-input-tip","plugin-outlet","unless","html-safe","emoji-picker"]]',moduleName:"discourse/components/d-editor.hbs",isStrictMode:!1});var F,U,R,B,$,q;function H(e,t){return z.default.t(e)===t?null:e}let W=[];class K{constructor(e){var t=this;const{siteSettings:n,capabilities:r}=e;this.shortcuts={},this.context=null,this.groups=[{group:"fontStyles",buttons:[]},{group:"insertions",buttons:[]},{group:"extras",buttons:[]}];const i=H("composer.bold_label","B"),s=i?null:"bold";this.addButton({id:"bold",group:"fontStyles",icon:s,label:i,shortcut:"B",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("**","**","bold_text")});const o=H("composer.italic_label","I"),a=o?null:"italic";this.addButton({id:"italic",group:"fontStyles",icon:a,label:o,shortcut:"I",preventFocus:!0,trimLeading:!0,perform:e=>e.applySurround("*","*","italic_text")}),e.showLink&&this.addButton({id:"link",icon:"link",group:"insertions",shortcut:"K",preventFocus:!0,trimLeading:!0,sendAction:e=>this.context.send("showLinkModal",e)}),this.addButton({id:"blockquote",group:"insertions",icon:"quote-right",shortcut:"Shift+9",preventFocus:!0,perform:e=>e.applyList("> ","blockquote_text",{applyEmptyLines:!0,multiline:!0})}),r.touch||(this.addButton({id:"code",group:"insertions",shortcut:"E",icon:"code",preventFocus:!0,trimLeading:!0,action:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.context.send("formatCode",n)}}),this.addButton({id:"bullet",group:"extras",icon:"list-ul",shortcut:"Shift+8",title:"composer.ulist_title",preventFocus:!0,perform:e=>e.applyList("* ","list_item")}),this.addButton({id:"list",group:"extras",icon:"list-ol",shortcut:"Shift+7",title:"composer.olist_title",preventFocus:!0,perform:e=>e.applyList((e=>e?`${parseInt(e,10)+1}. `:"1. "),"list_item")})),n.support_mixed_text_direction&&this.addButton({id:"toggle-direction",group:"extras",icon:"exchange-alt",shortcut:"Shift+6",title:"composer.toggle_direction",preventFocus:!0,perform:e=>e.toggleDirection()}),this.groups[this.groups.length-1].lastGroup=!0}addButton(e){const t=this.groups.findBy("group",e.group);if(!t)throw new Error(`Couldn't find toolbar group ${e.group}`);const n={id:e.id,tabindex:e.tabindex||"-1",className:e.className||e.id,label:e.label,icon:e.icon,action:e.action||(e=>this.context.send("toolbarButton",e)),perform:e.perform||function(){},trimLeading:e.trimLeading,popupMenu:e.popupMenu||!1,preventFocus:e.preventFocus||!1,condition:e.condition||(()=>!0)};e.sendAction&&(n.sendAction=e.sendAction);const r=z.default.t(e.title||`composer.${e.id}_title`);if(e.shortcut){const t=`${(0,E.translateModKey)(x.PLATFORM_KEY_MODIFIER+"+")}${(0,E.translateModKey)(e.shortcut)}`;n.title=`${r} (${t})`,this.shortcuts[`${x.PLATFORM_KEY_MODIFIER}+${e.shortcut}`.toLowerCase()]=n}else n.title=r;e.unshift?t.buttons.unshift(n):t.buttons.push(n)}}function V(e){W.push(e)}function G(){W=[]}function Y(e){(0,Z.default)("`onToolbarCreate` is deprecated, use the plugin api instead.",{id:"discourse.d-editor.on-toolbar-create"}),V(e)}const Q=(0,i.setComponentTemplate)(L,s().extend(D.default,(F=(0,N.default)("formTemplateIds","replyingToTopic","editingPost"),U=(0,N.default)("placeholder"),R=(0,N.on)("willDestroyElement"),B=(0,N.default)(),$=(0,N.observes)("ready","value","processPreview"),q={emojiStore:(0,l.inject)("emoji-store"),modal:(0,l.inject)(),classNames:["d-editor"],ready:!1,lastSel:null,_itsatrap:null,showLink:!0,emojiPickerIsActive:!1,emojiFilter:"",isEditorFocused:!1,processPreview:!0,composerFocusSelector:"#reply-control .d-editor-input",selectedFormTemplateId:(0,o.computed)("formTemplateIds",{get(){return this._selectedFormTemplateId?this._selectedFormTemplateId:this.formTemplateIds?.[0]},set(e,t){return this._selectedFormTemplateId=t}}),updateSelectedFormTemplateId(e){this.selectedFormTemplateId=e},showFormTemplateForm:(e,t,n)=>e?.length>0&&!t&&!n,placeholderTranslated:e=>e?z.default.t(e):null,_readyNow(){this.set("ready",!0),this.autofocus&&this._textarea.focus()},init(){this._super(...arguments),this.register=(0,A.getRegister)(this)},didInsertElement(){this._super(...arguments),this._previewMutationObserver=this._disablePreviewTabIndex(),this._textarea=this.element.querySelector("textarea.d-editor-input"),this._$textarea=p()(this._textarea),this._applyEmojiAutocomplete(this._$textarea),this._applyHashtagAutocomplete(this._$textarea),(0,a.scheduleOnce)("afterRender",this,this._readyNow),this._itsatrap=new(u())(this._textarea);const e=this.get("toolbar.shortcuts");Object.keys(e).forEach((t=>{const n=e[t];this._itsatrap.bind(t,(()=>(n.action(n),!1)))})),this._itsatrap.bind("tab",(()=>this.indentSelection("right"))),this._itsatrap.bind("shift+tab",(()=>this.indentSelection("left"))),this._itsatrap.bind(`${x.PLATFORM_KEY_MODIFIER}+shift+.`,(()=>this.send("insertCurrentTime"))),this.element.querySelector(".d-editor-preview").addEventListener("click",this._handlePreviewLinkClick),this.composerEvents&&(this.appEvents.on("composer:insert-block",this,"insertBlock"),this.appEvents.on("composer:insert-text",this,"insertText"),this.appEvents.on("composer:replace-text",this,"replaceText"),this.appEvents.on("composer:apply-surround",this,"_applySurround"),this.appEvents.on("composer:indent-selected-text",this,"indentSelection"))},_handlePreviewLinkClick(e){if(!(0,k.wantsNewWindow)(e))return"A"===e.target.tagName?(e.target.classList.contains("mention")&&this.appEvents.trigger("click.discourse-preview-user-card-mention",p()(e.target)),e.target.classList.contains("mention-group")&&this.appEvents.trigger("click.discourse-preview-group-card-mention-group",p()(e.target)),e.preventDefault(),!1):void 0},_shutDown(){this.composerEvents&&(this.appEvents.off("composer:insert-block",this,"insertBlock"),this.appEvents.off("composer:insert-text",this,"insertText"),this.appEvents.off("composer:replace-text",this,"replaceText"),this.appEvents.off("composer:apply-surround",this,"_applySurround"),this.appEvents.off("composer:indent-selected-text",this,"indentSelection")),this._itsatrap?.destroy(),this._itsatrap=null,this.element.querySelector(".d-editor-preview")?.removeEventListener("click",this._handlePreviewLinkClick),this._previewMutationObserver?.disconnect(),(0,I.isTesting)()&&this.element.removeEventListener("paste",this.paste),this._cachedCookFunction=null},toolbar(){const e=new K(this.getProperties("site","siteSettings","showLink","capabilities"));e.context=this,W.forEach((t=>t(e))),this.extraButtons&&this.extraButtons(e);const t=e.groups.mapBy("buttons").flat().firstObject;return t&&(t.tabindex=0),e},cachedCookAsync(e){if(this._cachedCookFunction)return f.Promise.resolve(this._cachedCookFunction(e));const t=this.markdownOptions||{};return(0,P.generateCookFunction)(t).then((t=>(this._cachedCookFunction=t,t(e))))},_updatePreview(){if("inDOM"!==this._state||!this.processPreview)return;const e=this.value;this.cachedCookAsync(e).then((e=>{if(this.isDestroyed)return;if(this.preview===e)return;this.set("preview",e);let t=f.Promise.resolve();if(this.siteSettings.enable_diffhtml_preview){const n=document.createElement("div");n.innerHTML=e,(0,v.linkSeenHashtagsInContext)(this.site.hashtag_configurations["topic-composer"],n),(0,T.linkSeenMentions)(n,this.siteSettings),(0,g.resolveCachedShortUrls)(this.siteSettings,n),(0,S.loadOneboxes)(n,_.ajax,null,null,this.siteSettings.max_oneboxes_per_post,!1,!0),t=(0,C.default)("/javascripts/diffhtml.min.js").then((()=>{const e=this.element.querySelector(".d-editor-preview");window.diff.innerHTML(e,n.innerHTML)}))}t.then((()=>{(0,a.schedule)("afterRender",(()=>{if("inDOM"!==this._state||!this.element)return;const e=this.element.querySelector(".d-editor-preview");e&&this.previewUpdated&&this.previewUpdated(e)}))}))}))},_watchForChanges(){this.ready&&((0,I.isTesting)()?this._updatePreview():(0,j.default)(this,this._updatePreview,30))},_applyHashtagAutocomplete(){(0,w.setupHashtagAutocomplete)(this.site.hashtag_configurations["topic-composer"],this._$textarea,this.siteSettings,{afterComplete:e=>{this.set("value",e),(0,a.schedule)("afterRender",this,this.focusTextArea)}})},_applyEmojiAutocomplete(e){this.siteSettings.enable_emoji&&e.autocomplete({template:(0,M.findRawTemplate)("emoji-selector-autocomplete"),key:":",afterComplete:e=>{this.set("value",e),(0,a.schedule)("afterRender",this,this.focusTextArea)},onKeyUp:(e,t)=>{if((0,E.inCodeBlock)(e,t))return!1;const n=/(?:^|[\s.\?,@\/#!%&*;:\[\]{}=\-_()])(:(?!:).?[\w-]*:?(?!:)(?:t\d?)?:?) ?$/gi.exec(e.substring(0,t));return n&&n[1]?[n[1]]:void 0},transformComplete:t=>t.code?(this.emojiStore.track(t.code),`${t.code}:`):(e.autocomplete({cancel:!0}),this.set("emojiPickerIsActive",!0),this.set("emojiFilter",t.term),""),dataSource:e=>new f.Promise((t=>{const n=`:${e}`;if((e=e.toLowerCase()).length<this.siteSettings.emoji_autocomplete_min_chars)return t(y.SKIP);if(""===e)return this.emojiStore.favorites.length?t(this.emojiStore.favorites.filter((e=>!this.site.denied_emojis?.includes(e))).slice(0,5)):t(["slight_smile","smile","wink","sunny","blush"]);const r=this.get("site.custom_emoji_translation")||{},i=Object.assign({},m.translations,r);if(i[n])return t([i[n]]);const s=this.get("site.denied_emojis")||[],o=e.match(/^:?(.*?):t([2-6])?$/);if(o){const e=o[1],n=o[2];if((0,h.isSkinTonableEmoji)(e)&&!s.includes(e))return t(n?[`${e}:t${n}`]:[2,3,4,5,6].map((t=>`${e}:t${t}`)))}return t((0,h.emojiSearch)(e,{maxResults:5,diversity:this.emojiStore.diversity,exclude:s}))})).then((e=>e===y.SKIP?[]:e.map((e=>({code:e,src:(0,P.emojiUrlFor)(e)}))))).then((t=>(t.length&&t.push({label:z.default.t("composer.more_emoji"),term:e}),t))),triggerRule:e=>!(0,E.inCodeBlock)(e.value,(0,E.caretPosition)(e))})},_applyList(e,t,n,r){if(e.value.includes("\n"))this.applySurround(e,t,"",n,r);else{const[r,i]=(0,D.getHead)(t);e.start===e.end&&(e.value=z.default.t(`composer.${n}`));const s=e.pre.trim(),o=e.value.startsWith(r)?e.value.slice(i):`${r}${e.value}`,a=s.length?`${s}\n\n`:"",l=e.post.trim(),c=l.length?`\n\n${l}`:l;this.set("value",`${a}${o}${c}`),this.selectText(a.length,o.length)}},_applySurround(e,t,n,r){const i=this.getSelected();this.applySurround(i,e,t,n,r)},_toggleDirection(){let e="ltr"===(this._$textarea.attr("dir")?this._$textarea.attr("dir"):(0,O.siteDir)())?"rtl":"ltr";this._$textarea.attr("dir",e).focus()},rovingButtonBar(e){let t,n=e.target;if("ArrowRight"===e.code)t="nextElementSibling";else{if("ArrowLeft"!==e.code)return!0;t="previousElementSibling"}for(;n.parentNode&&!n.parentNode.classList.contains("d-editor-button-bar");)n=n.parentNode;let r=n[t];if(r){for(;"BUTTON"!==r.tagName&&!r.classList.contains("select-kit")||r.classList.contains("hidden");)r=r[t];"DETAILS"===r?.tagName&&(r=r.querySelector("summary")),r?.focus()}return!0},onEmojiPickerClose(){this.isDestroyed||this.isDestroying||this.set("emojiPickerIsActive",!1)},actions:{emoji(){this.disabled||this.set("emojiPickerIsActive",!this.emojiPickerIsActive)},toolbarButton(e){var t=this;if(this.disabled)return;const n=this.getSelected(e.trimLeading),r={selected:n,selectText:(e,t)=>this.selectText(e,t,{scroll:!1}),applySurround:(e,t,r,i)=>this.applySurround(n,e,t,r,i),applyList:(e,t,r)=>this._applyList(n,e,t,r),formatCode:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.send("formatCode",n)},addText:e=>this.addText(n,e),getText:()=>this.value,toggleDirection:()=>this._toggleDirection()};if(e.sendAction)return e.sendAction(r);e.perform(r)},showLinkModal(e){if(this.disabled)return;let t="";this._lastSel=e.selected,this._lastSel&&(t=this._lastSel.value),this.modal.show(b.default,{model:{linkText:t,toolbarEvent:e}})},formatCode(){if(this.disabled)return;const e=this.getSelected("",{lineVal:!0}),t=e.value,n=t.includes("\n"),r=0===e.lineVal.trim().length,i="4-spaces-indent"===this.siteSettings.code_formatting_style;if(n){if(i)return this.applySurround(e,"    ","","code_text");{const t="\n"!==e.pre[-1]&&""!==e.pre?"\n":"",n="\n"!==e.post[0]?"\n":"";return this.addText(e,`${t}\`\`\`\n${e.value}\n\`\`\`${n}`)}}if(0===t.length&&r){if(i){const t=z.default.t("composer.code_text");return this.set("value",`${e.pre}    ${t}${e.post}`),this.selectText(e.pre.length+4,t.length)}return this.applySurround(e,"```\n","\n```","paste_code_text")}return this.applySurround(e,"`","`","code_title")},insertCurrentTime(){const e=this.getSelected("",{lineVal:!0}),t=this.currentUser.user_option.timezone,n=moment().format("HH:mm:ss"),r=moment().format("YYYY-MM-DD");this.addText(e,`[date=${r} time=${n} timezone="${t}"]`)},focusIn(){this.set("isEditorFocused",!0)},focusOut(){this.set("isEditorFocused",!1)}},_disablePreviewTabIndex(){const e=new MutationObserver((function(){document.querySelectorAll(".d-editor-preview a").forEach((e=>{e.setAttribute("tabindex","-1")}))}));return e.observe(document.querySelector(".d-editor-preview"),{childList:!0,subtree:!0,attributes:!1,characterData:!0}),e}},(0,r.Z)(q,"updateSelectedFormTemplateId",[o.action],Object.getOwnPropertyDescriptor(q,"updateSelectedFormTemplateId"),q),(0,r.Z)(q,"showFormTemplateForm",[F],Object.getOwnPropertyDescriptor(q,"showFormTemplateForm"),q),(0,r.Z)(q,"placeholderTranslated",[U],Object.getOwnPropertyDescriptor(q,"placeholderTranslated"),q),(0,r.Z)(q,"_handlePreviewLinkClick",[N.bind],Object.getOwnPropertyDescriptor(q,"_handlePreviewLinkClick"),q),(0,r.Z)(q,"_shutDown",[R],Object.getOwnPropertyDescriptor(q,"_shutDown"),q),(0,r.Z)(q,"toolbar",[B],Object.getOwnPropertyDescriptor(q,"toolbar"),q),(0,r.Z)(q,"_watchForChanges",[$],Object.getOwnPropertyDescriptor(q,"_watchForChanges"),q),(0,r.Z)(q,"rovingButtonBar",[o.action],Object.getOwnPropertyDescriptor(q,"rovingButtonBar"),q),(0,r.Z)(q,"onEmojiPickerClose",[o.action],Object.getOwnPropertyDescriptor(q,"onEmojiPickerClose"),q),q)))},27428:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(17579),c=n(24434),u=n(66196),d=n(14331),p=n(12933),h=n(57555);const m=(0,n(8620).createTemplateFactory)({id:"2ipLCSNn",block:'[[[11,"section"],[24,"tabindex","-1"],[16,1,[30,0,["elementId"]]],[16,"aria-hidden",[28,[37,0],[[30,0,["isVisible"]]],null]],[16,0,[30,0,["HTMLClassList"]]],[4,[38,1],[[30,0,["registerAppEventListeners"]]],null],[4,[38,2],[[30,0,["deregisterAppEventListeners"]]],null],[12],[1,"\\n"],[41,[30,0,["isVisible"]],[[[1,"    "],[11,0],[24,"aria-hidden","false"],[24,"tabindex","0"],[24,"role","document"],[24,0,"d-lightbox__content"],[16,5,[30,0,["CSSVars"]]],[16,"aria-labelledby",[30,0,["titleElementId"]]],[4,[38,4],["keydown",[30,0,["onKeydown"]]],[["passive","capture"],[false,true]]],[4,[38,4],["keyup",[30,0,["onKeyup"]]],[["passive","capture"],[true,true]]],[12],[1,"\\n      "],[10,0],[14,0,"d-lightbox__focus-trap"],[14,"tabindex","0"],[12],[13],[1,"\\n      "],[8,[39,5],null,[["@canDownload","@canFullscreen","@canNavigate","@close","@openInNewTab","@toggleCarousel","@toggleFullScreen","@totalItemCount","@counterIndex"],[[30,0,["canDownload"]],[30,0,["canFullscreen"]],[30,0,["canNavigate"]],[30,0,["close"]],[30,0,["openInNewTab"]],[30,0,["toggleCarousel"]],[30,0,["toggleFullScreen"]],[30,0,["totalItemCount"]],[30,0,["counterIndex"]]]],null],[1,"\\n      "],[8,[39,6],null,[["@close","@centerZoomedBackgroundPosition","@currentItem","@hasLoadingError","@isLoading","@isZoomed","@nextButtonIcon","@onTouchend","@onTouchstart","@previousButtonIcon","@reloadImage","@shouldDisplayMainImageArrows","@showNextItem","@showPreviousItem","@toggleZoom","@zoomOnMouseover"],[[30,0,["close"]],[30,0,["centerZoomedBackgroundPosition"]],[30,0,["currentItem"]],[30,0,["hasLoadingError"]],[30,0,["isLoading"]],[30,0,["isZoomed"]],[30,0,["nextButtonIcon"]],[30,0,["onTouchend"]],[30,0,["onTouchstart"]],[30,0,["previousButtonIcon"]],[30,0,["reloadImage"]],[30,0,["shouldDisplayMainImageArrows"]],[30,0,["showNextItem"]],[30,0,["showPreviousItem"]],[30,0,["toggleZoom"]],[30,0,["zoomOnMouseover"]]]],null],[1,"\\n"],[41,[30,0,["shouldDisplayCarousel"]],[[[1,"        "],[8,[39,7],null,[["@currentIndex","@items","@nextButtonIcon","@previousButtonIcon","@showNextItem","@showPreviousItem","@showSelectedImage","@shouldDisplayCarouselArrows"],[[30,0,["currentIndex"]],[30,0,["items"]],[30,0,["nextButtonIcon"]],[30,0,["previousButtonIcon"]],[30,0,["showNextItem"]],[30,0,["showPreviousItem"]],[30,0,["showSelectedImage"]],[30,0,["shouldDisplayCarouselArrows"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[8,[39,8],null,[["@canDownload","@canRotate","@canZoom","@currentItem","@downloadImage","@rotateImage","@shouldDisplayTitle","@toggleExpandTitle","@toggleZoom","@zoomButtonIcon"],[[30,0,["canDownload"]],[30,0,["canRotate"]],[30,0,["canZoom"]],[30,0,["currentItem"]],[30,0,["downloadImage"]],[30,0,["rotateImage"]],[30,0,["shouldDisplayTitle"]],[30,0,["toggleExpandTitle"]],[30,0,["toggleZoom"]],[30,0,["zoomButtonIcon"]]]],null],[1,"\\n\\n      "],[8,[39,9],null,[["@currentItem","@counterIndex","@totalItemCount","@titleElementId"],[[30,0,["currentItem"]],[30,0,["counterIndex"]],[30,0,["totalItemCount"]],[30,0,["titleElementId"]]]],null],[1,"\\n      "],[10,0],[14,0,"d-lightbox__focus-trap"],[14,"tabindex","0"],[12],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["not","did-insert","will-destroy","if","on","d-lightbox/header","d-lightbox/body","d-lightbox/carousel","d-lightbox/footer","d-lightbox/screen-reader-announcer"]]',moduleName:"discourse/components/d-lightbox.hbs",isStrictMode:!1});var g,f,b,_,y,w,v,k,x,T,S,C,P,O,E,D,I=n(31691);function j(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Z(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let A=(O=new WeakSet,E=new WeakSet,D=new WeakSet,g=class extends o.default{constructor(){super(...arguments),j(this,D),j(this,E),j(this,O),(0,r.Z)(this,"appEvents",f,this),(0,r.Z)(this,"items",b,this),(0,r.Z)(this,"isVisible",_,this),(0,r.Z)(this,"isLoading",y,this),(0,r.Z)(this,"currentIndex",w,this),(0,r.Z)(this,"currentItem",v,this),(0,r.Z)(this,"isZoomed",k,this),(0,r.Z)(this,"isRotated",x,this),(0,r.Z)(this,"isFullScreen",T,this),(0,r.Z)(this,"rotationAmount",S,this),(0,r.Z)(this,"hasCarousel",C,this),(0,r.Z)(this,"hasExpandedTitle",P,this),(0,i.Z)(this,"options",{}),(0,i.Z)(this,"callbacks",{}),(0,i.Z)(this,"willClose",!1),(0,i.Z)(this,"elementId",u.LIGHTBOX_ELEMENT_ID),(0,i.Z)(this,"titleElementId",u.TITLE_ELEMENT_ID),(0,i.Z)(this,"animationDuration",u.ANIMATION_DURATION),(0,i.Z)(this,"scrollPosition",0)}get layoutType(){return window.innerWidth>window.innerHeight?u.LAYOUT_TYPES.HORIZONTAL:u.LAYOUT_TYPES.VERTICAL}get CSSVars(){const e="--d-lightbox-image",t=[`${e}-animation-duration: ${this.animationDuration}ms;`];if(!this.currentItem)return(0,c.htmlSafe)(t.join(""));const{width:n,height:r,aspectRatio:i,dominantColor:s,fullsizeURL:o}=this.currentItem;return t.push(`${e}-rotation: ${this.rotationAmount}deg`,`${e}-width: ${n}px`,`${e}-height: ${r}px`,`${e}-aspect-ratio: ${i}`,`${e}-dominant-color: #${s}`,`${e}-full-size-url: url(${encodeURI(o)})`),(0,c.htmlSafe)(t.filter(Boolean).join(";"))}get HTMLClassList(){const e=["d-lightbox"];return this.isVisible?(e.push(this.layoutType&&`is-${this.layoutType}`,this.isVisible&&"is-visible",this.isLoading?"is-loading":"is-finished-loading",this.isFullScreen&&"is-fullscreen",this.isZoomed&&"is-zoomed",this.isRotated&&"is-rotated",this.canZoom&&"can-zoom",this.hasExpandedTitle&&"has-expanded-title",this.hasCarousel&&"has-carousel",this.hasLoadingError&&"has-loading-error",this.willClose&&"will-close",this.isRotated&&this.rotationAmount&&`is-rotated-${this.rotationAmount}`),e.filter(Boolean).join(" ")):e.join("")}get shouldDisplayMainImageArrows(){return!this.options.isMobile&&this.canNavigate&&!this.hasCarousel&&!this.isZoomed&&!this.isRotated}get shouldDisplayCarousel(){return this.hasCarousel&&this.totalItemCount>=this.options.minCarouselItemCount&&!this.isZoomed&&!this.isRotated}get shouldDisplayCarouselArrows(){return!this.options.isMobile&&this.totalItemCount>=this.options.minCarouselArrowItemCount}get shouldDisplayTitle(){return!this.hasLoadingError&&!this.isZoomed&&!this.isRotated}get totalItemCount(){return this.items?.length||0}get counterIndex(){return this.currentIndex?this.currentIndex+1:1}get canNavigate(){return this.items?.length>1}get canZoom(){return!this.hasLoadingError&&this.currentItem?.canZoom}get canRotate(){return!this.hasLoadingError}get canDownload(){return!this.hasLoadingError&&this.options.canDownload}get canFullscreen(){return!this.hasLoadingError}get hasLoadingError(){return this.currentItem?.hasLoadingError}get nextButtonIcon(){return this.options.isRTL?"chevron-left":"chevron-right"}get previousButtonIcon(){return this.options.isRTL?"chevron-right":"chevron-left"}get zoomButtonIcon(){return this.isZoomed?"search-minus":"search-plus"}registerAppEventListeners(){this.appEvents.on(u.LIGHTBOX_APP_EVENT_NAMES.OPEN,this.open),this.appEvents.on(u.LIGHTBOX_APP_EVENT_NAMES.CLOSE,this.close)}deregisterAppEventListeners(){this.appEvents.off(u.LIGHTBOX_APP_EVENT_NAMES.OPEN,this.open),this.appEvents.off(u.LIGHTBOX_APP_EVENT_NAMES.CLOSE,this.close)}open(e){let{items:t,startingIndex:n,callbacks:r,options:i}=e;this.options=i,this.items=t,this.currentIndex=n,this.callbacks=r,this.isLoading=!0,this.isVisible=!0,this.scrollPosition=window.scrollY,Z(this,O,M).call(this,this.currentIndex),this.options.zoomOnOpen&&this.currentItem?.canZoom&&!this.currentItem?.isZoomed&&this.toggleZoom(),this.callbacks.onOpen?.({items:this.items,currentItem:this.currentItem})}close(){this.willClose=!0,(0,p.default)(this.cleanup,this.animationDuration),this.callbacks.onClose?.()}centerZoomedBackgroundPosition(e){return!!this.options.isMobile&&(0,d.scrollParentToElementCenter)({element:e,isRTL:this.options.isRTL})}zoomOnMouseover(e){const t=e.target,n=e.offsetX,r=e.offsetY,i=n/t.offsetWidth*100,s=r/t.offsetHeight*100;t.style.backgroundPosition=i+"% "+s+"%"}toggleZoom(){!this.isLoading&&this.canZoom&&(this.isZoomed=!this.isZoomed,document.querySelector(".d-lightbox__close-button")?.focus())}rotateImage(){this.rotationAmount=(this.rotationAmount+90)%360,this.isRotated=0!==this.rotationAmount}toggleFullScreen(){return this.isFullScreen=!this.isFullScreen,this.isFullScreen?document.documentElement.requestFullscreen():document.exitFullscreen()}downloadImage(){return(0,d.createDownloadLink)(this.currentItem)}openInNewTab(){return(0,d.openImageInNewTab)(this.currentItem)}reloadImage(){Z(this,O,M).call(this,this.currentIndex)}toggleCarousel(){this.hasCarousel=!this.hasCarousel,requestAnimationFrame(d.setCarouselScrollPosition)}showNextItem(){Z(this,O,M).call(this,this.currentIndex+1)}showPreviousItem(){Z(this,O,M).call(this,this.currentIndex-1)}showSelectedImage(e){const t=e.target.dataset?.lightboxItemIndex;return!!t&&Z(this,O,M).call(this,Number(t))}toggleExpandTitle(){this.hasExpandedTitle=!this.hasExpandedTitle}onKeydown(e){if(e.key===u.KEYBOARD_SHORTCUTS.CLOSE)return e.preventDefault(),e.stopPropagation(),this.close()}onKeyup(e){let{key:t}=e;return u.KEYBOARD_SHORTCUTS.PREVIOUS.includes(t)?this.showPreviousItem():u.KEYBOARD_SHORTCUTS.NEXT.includes(t)?this.showNextItem():t===u.KEYBOARD_SHORTCUTS.ZOOM?this.toggleZoom():t===u.KEYBOARD_SHORTCUTS.FULLSCREEN?this.toggleFullScreen():t===u.KEYBOARD_SHORTCUTS.ROTATE?this.rotateImage():t===u.KEYBOARD_SHORTCUTS.DOWNLOAD?this.downloadImage():t===u.KEYBOARD_SHORTCUTS.CAROUSEL?this.toggleCarousel():t===u.KEYBOARD_SHORTCUTS.TITLE?this.toggleExpandTitle():t===u.KEYBOARD_SHORTCUTS.NEWTAB?this.openInNewTab():void 0}onTouchstart(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Event;if(this.isZoomed)return!1;this.touchstartX=e.changedTouches[0].screenX,this.touchstartY=e.changedTouches[0].screenY}async onTouchend(e){if(this.isZoomed)return!1;e.stopPropagation();const t=e.changedTouches[0].screenY,n=e.changedTouches[0].screenX;switch(await(0,d.getSwipeDirection)({touchstartX:this.touchstartX,touchstartY:this.touchstartY,touchendX:n,touchendY:t})){case u.SWIPE_DIRECTIONS.LEFT:this.options.isRTL?this.showNextItem():this.showPreviousItem();break;case u.SWIPE_DIRECTIONS.RIGHT:this.options.isRTL?this.showPreviousItem():this.showNextItem();break;case u.SWIPE_DIRECTIONS.DOWN:this.close()}}cleanup(){this.isVisible&&(this.hasCarousel=!0,this.hasExpandedTitle=!1,this.isLoading=!1,this.items=[],this.currentIndex=0,this.isZoomed=!1,this.isRotated=!1,this.rotationAmount=0,this.isFullScreen&&(this.toggleFullScreen(),this.isFullScreen=!1),this.isVisible=!1,this.willClose=!1,this.resetScrollPosition(),this.callbacks.onCleanup?.(),this.callbacks={},this.options={})}resetScrollPosition(){window.scrollY!==this.scrollPosition&&window.scrollTo({left:0,top:parseInt(this.scrollPosition,10),behavior:"instant"})}willDestroy(){super.willDestroy(...arguments),this.cleanup()}},f=(0,s.Z)(g.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,s.Z)(g.prototype,"items",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=(0,s.Z)(g.prototype,"isVisible",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,s.Z)(g.prototype,"isLoading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=(0,s.Z)(g.prototype,"currentIndex",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),v=(0,s.Z)(g.prototype,"currentItem",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),k=(0,s.Z)(g.prototype,"isZoomed",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,s.Z)(g.prototype,"isRotated",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=(0,s.Z)(g.prototype,"isFullScreen",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=(0,s.Z)(g.prototype,"rotationAmount",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),C=(0,s.Z)(g.prototype,"hasCarousel",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),P=(0,s.Z)(g.prototype,"hasExpandedTitle",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(g.prototype,"registerAppEventListeners",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"registerAppEventListeners"),g.prototype),(0,s.Z)(g.prototype,"deregisterAppEventListeners",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"deregisterAppEventListeners"),g.prototype),(0,s.Z)(g.prototype,"open",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"open"),g.prototype),(0,s.Z)(g.prototype,"close",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"close"),g.prototype),(0,s.Z)(g.prototype,"centerZoomedBackgroundPosition",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"centerZoomedBackgroundPosition"),g.prototype),(0,s.Z)(g.prototype,"toggleZoom",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"toggleZoom"),g.prototype),(0,s.Z)(g.prototype,"rotateImage",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"rotateImage"),g.prototype),(0,s.Z)(g.prototype,"toggleFullScreen",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"toggleFullScreen"),g.prototype),(0,s.Z)(g.prototype,"downloadImage",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"downloadImage"),g.prototype),(0,s.Z)(g.prototype,"openInNewTab",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"openInNewTab"),g.prototype),(0,s.Z)(g.prototype,"reloadImage",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"reloadImage"),g.prototype),(0,s.Z)(g.prototype,"toggleCarousel",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"toggleCarousel"),g.prototype),(0,s.Z)(g.prototype,"showNextItem",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"showNextItem"),g.prototype),(0,s.Z)(g.prototype,"showPreviousItem",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"showPreviousItem"),g.prototype),(0,s.Z)(g.prototype,"showSelectedImage",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"showSelectedImage"),g.prototype),(0,s.Z)(g.prototype,"toggleExpandTitle",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"toggleExpandTitle"),g.prototype),(0,s.Z)(g.prototype,"onKeydown",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"onKeydown"),g.prototype),(0,s.Z)(g.prototype,"onKeyup",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"onKeyup"),g.prototype),(0,s.Z)(g.prototype,"onTouchstart",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"onTouchstart"),g.prototype),(0,s.Z)(g.prototype,"onTouchend",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"onTouchend"),g.prototype),(0,s.Z)(g.prototype,"cleanup",[h.bind],Object.getOwnPropertyDescriptor(g.prototype,"cleanup"),g.prototype),g);async function M(e){Z(this,E,N).call(this),this.currentIndex=(e+this.totalItemCount)%this.totalItemCount,this.currentItem=await(0,d.preloadItemImages)(this.items[this.currentIndex]),Z(this,D,z).call(this)}function N(){this.callbacks.onItemWillChange?.({currentItem:this.currentItem}),this.isLoading=!0,this.isZoomed=!1,this.isRotated=!1}function z(){this.isLoading=!1,this.currentItem.dominantColor&&(0,d.setSiteThemeColor)(this.currentItem.dominantColor),(0,d.setCarouselScrollPosition)({behavior:"smooth"}),this.callbacks.onItemDidChange?.({currentItem:this.currentItem});const e=this.items[this.currentIndex+1];return!!e&&(0,d.preloadItemImages)(e)}(0,I.setComponentTemplate)(m,A)},33529:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"VyInGRq1",block:'[[[11,0],[24,"aria-hidden","true"],[24,0,"d-lightbox__backdrop"],[24,"tabindex","-1"],[4,[38,0],["click",[30,1]],[["passive","capture"],[true,true]]],[12],[13]],["@close"],false,["on"]]',moduleName:"discourse/components/d-lightbox/backdrop.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},87714:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Lpo2iDEQ",block:'[[[11,0],[24,0,"d-lightbox__body"],[24,"tabindex","-1"],[4,[38,0],["touchstart",[30,1]],[["passive","capture"],[true,true]]],[4,[38,0],["touchend",[30,2]],[["passive","capture"],[true,true]]],[4,[38,0],["click",[30,3]],[["passive"],[true]]],[12],[1,"\\n"],[41,[30,4],[[[1,"    "],[8,[39,2],[[24,0,"d-lightbox__previous-button btn-flat"],[4,[38,0],["click",[30,6]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.previous",[30,5],"true"]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1,"    "],[10,1],[14,0,"d-lightbox__loading-spinner"],[12],[1,"\\n      "],[1,[28,[35,3],null,[["size"],["large"]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,8],[[[1,"    "],[10,1],[14,0,"d-lightbox__error-message"],[12],[1,"\\n      "],[8,[39,2],[[24,0,"d-lightbox__retry-button btn-flat"],[4,[38,0],["click",[30,9]],[["passive","capture"],[true,true]]]],[["@title","@icon"],["experimental_lightbox.buttons.redo","redo"]],null],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["experimental_lightbox.image_load_error"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,10],[[[1,"    "],[11,0],[24,0,"d-lightbox__zoomed-image-container"],[24,"tabindex","-1"],[4,[38,5],[[30,11]],null],[4,[38,0],["mousemove",[30,12]],[["passive","capture"],[true,true]]],[12],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,6],null,[["@close"],[[30,13]]],null],[1,"\\n    "],[10,"img"],[14,"aria-hidden","true"],[14,"draggable","false"],[14,"fetchPriority","high"],[14,"decoding","async"],[14,"tabindex","-1"],[14,0,"d-lightbox__main-image"],[15,"src",[30,14,["fullsizeURL"]]],[12],[13],[1,"\\n  "]],[]]]],[]]]],[]]],[41,[30,4],[[[1,"    "],[8,[39,2],[[24,0,"d-lightbox__next-button btn-flat"],[4,[38,0],["click",[30,16]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.next",[30,15],"true"]],null],[1,"\\n"]],[]],null],[13]],["@onTouchstart","@onTouchend","@toggleZoom","@shouldDisplayMainImageArrows","@previousButtonIcon","@showPreviousItem","@isLoading","@hasLoadingError","@reloadImage","@isZoomed","@centerZoomedBackgroundPosition","@zoomOnMouseover","@close","@currentItem","@nextButtonIcon","@showNextItem"],false,["on","if","d-button","loading-spinner","i18n","did-insert","d-lightbox/backdrop"]]',moduleName:"discourse/components/d-lightbox/body.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},82794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"6sNCM/sw",block:'[[[10,0],[14,0,"d-lightbox__carousel"],[12],[1,"\\n"],[41,[30,1],[[[1,"    "],[8,[39,1],[[24,0,"d-lightbox__carousel-previous-button btn-flat"],[4,[38,2],["click",[30,3]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.previous",[30,2],"true"]],null],[1,"\\n"]],[]],null],[1,"  "],[11,0],[24,0,"d-lightbox__carousel-items"],[24,"tabindex","-1"],[24,"role","list"],[24,"aria-hidden","true"],[4,[38,2],["click",[30,4]],[["passive","capture"],[true,true]]],[4,[38,2],["focus",[30,4]],[["passive","capture"],[true,true]]],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,5]],null]],null],null,[[[1,"      "],[10,"img"],[15,"data-lightbox-carousel-item",[52,[28,[37,5],[[30,6,["index"]],[30,7]],null],"current",""]],[14,"fetchPriority","low"],[14,"decoding","async"],[14,"loading","lazy"],[14,"tabindex","-1"],[15,"src",[30,6,["smallURL"]]],[15,"data-lightbox-item-index",[30,6,["index"]]],[15,5,[30,6,["cssVars"]]],[15,0,[28,[37,6],["d-lightbox__carousel-item",[52,[28,[37,5],[[30,6,["index"]],[30,7]],null]," is-current"]],null]],[12],[13],[1,"\\n"]],[6]],null],[1,"  "],[13],[1,"\\n"],[41,[30,1],[[[1,"    "],[8,[39,1],[[24,0,"d-lightbox__carousel-next-button btn-flat"],[4,[38,2],["click",[30,9]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.next",[30,8],"true"]],null],[1,"\\n"]],[]],null],[13]],["@shouldDisplayCarouselArrows","@previousButtonIcon","@showPreviousItem","@showSelectedImage","@items","item","@currentIndex","@nextButtonIcon","@showNextItem"],false,["if","d-button","on","each","-track-array","eq","concat"]]',moduleName:"discourse/components/d-lightbox/carousel.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},1545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"nAFbNfLK",block:'[[[10,0],[14,0,"d-lightbox__footer"],[12],[1,"\\n"],[41,[30,1],[[[1,"    "],[11,0],[24,"aria-hidden","true"],[24,0,"d-lightbox__main-title"],[24,"tabindex","0"],[4,[38,1],["click",[30,2]],[["passive","capture"],[true,true]]],[12],[1,"\\n      "],[10,1],[14,0,"d-lightbox__item-title"],[12],[1,[30,3,["title"]]],[13],[1,"\\n      "],[10,1],[14,0,"d-lightbox__item-file-details"],[12],[1,[30,3,["fileDetails"]]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"d-lightbox__footer-buttons"],[12],[1,"\\n"],[41,[30,4],[[[1,"      "],[8,[39,2],[[24,"aria-hidden","true"],[24,0,"d-lightbox__zoom-button btn-flat"],[4,[38,1],["click",[30,6]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.zoom",[30,5],"true"]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1,"      "],[8,[39,2],[[24,"aria-hidden","true"],[24,0,"d-lightbox__rotate-button btn-flat"],[4,[38,1],["click",[30,8]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.rotate","redo","true"]],null],[1,"\\n"]],[]],null],[41,[30,9],[[[1,"      "],[8,[39,2],[[24,0,"d-lightbox__download-button btn-flat"],[4,[38,1],["click",[30,10]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.download","download","true"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@shouldDisplayTitle","@toggleExpandTitle","@currentItem","@canZoom","@zoomButtonIcon","@toggleZoom","@canRotate","@rotateImage","@canDownload","@downloadImage"],false,["if","on","d-button"]]',moduleName:"discourse/components/d-lightbox/footer.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},26890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"znqQ0ZHG",block:'[[[10,0],[14,0,"d-lightbox__header"],[12],[1,"\\n"],[41,[30,1],[[[1,"    "],[10,0],[14,"aria-hidden","true"],[14,0,"d-lightbox__multi-item-controls"],[12],[1,"\\n      "],[8,[39,1],[[24,"aria-hidden","true"],[24,0,"d-lightbox__carousel-button btn-flat"],[4,[38,2],["click",[30,2]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.carousel","images","true"]],null],[1,"\\n      "],[10,0],[14,0,"d-lightbox__counters"],[12],[1,"\\n        "],[10,1],[14,0,"d-lightbox__counter-current"],[12],[1,[30,3]],[13],[1,"\\n        "],[10,1],[14,0,"d-lightbox__counter-separator"],[12],[1,"\\n          "],[10,1],[12],[1,"/"],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,1],[14,0,"d-lightbox__counter-total"],[12],[1,[30,4]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"d-lightbox__header-buttons"],[12],[1,"\\n"],[41,[30,5],[[[1,"      "],[8,[39,1],[[24,"aria-hidden","true"],[24,0,"d-lightbox__new-tab-button btn-flat"],[4,[38,2],["click",[30,6]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.newtab","external-link-alt","true"]],null],[1,"\\n"]],[]],null],[41,[30,7],[[[1,"      "],[8,[39,1],[[24,"aria-hidden","true"],[24,0,"d-lightbox__full-screen-button btn-flat"],[4,[38,2],["click",[30,8]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.fullscreen","discourse-expand","true"]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,1],[[24,0,"d-lightbox__close-button btn-flat"],[4,[38,2],["click",[30,9]],[["passive","capture"],[true,true]]]],[["@title","@icon","@ariaHidden"],["experimental_lightbox.buttons.close","times","true"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@canNavigate","@toggleCarousel","@counterIndex","@totalItemCount","@canDownload","@openInNewTab","@canFullscreen","@toggleFullScreen","@close"],false,["if","d-button","on"]]',moduleName:"discourse/components/d-lightbox/header.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},72591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"jSaUuuX1",block:'[[[10,0],[14,0,"d-lightbox__screen-reader-announcer"],[14,"tabindex","-1"],[12],[1,"\\n  "],[10,"h2"],[14,"aria-live","polite"],[14,"aria-level","2"],[14,"aria-atomic","true"],[14,0,"d-lightbox__screen-reader-title"],[15,1,[30,1]],[12],[1,"\\n"],[41,[30,2,["title"]],[[[1,"      "],[1,[28,[35,1],["experimental_lightbox.screen_reader_image_title"],[["current","total","title"],[[30,3],[30,4],[30,2,["title"]]]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@titleElementId","@currentItem","@counterIndex","@totalItemCount"],false,["if","i18n"]]',moduleName:"discourse/components/d-lightbox/screen-reader-announcer.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},92108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(71466),u=n.n(c),d=n(46646);const p=(0,n(8620).createTemplateFactory)({id:"1xFN9sSk",block:'[[[1,"\\n"],[11,0],[16,1,[30,1]],[16,0,[28,[37,0],["modal-body",[30,2]],null]],[24,"tabindex","-1"],[17,3],[4,[38,1],[[30,0,["didInsert"]]],null],[4,[38,2],[[30,0,["willDestroy"]]],null],[12],[1,"\\n  "],[18,4,null],[1,"\\n"],[13]],["@id","@class","&attrs","&default"],false,["concat-class","did-insert","will-destroy","yield"]]',moduleName:"discourse/components/d-modal-body.hbs",isStrictMode:!1});var h,m,g,f,b,_=n(31691);let y=(0,d.disableImplicitInjections)((m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",g,this),(0,r.Z)(this,"modal",f,this),(0,r.Z)(this,"fixed",b,this)}didInsert(e){e.closest(".d-modal:not(.d-modal-legacy)")&&console.error("d-modal-body should only be used inside a legacy controller-based d-modal. https://meta.discourse.org/t/268057"),this.appEvents.trigger("modal-body:clearFlash");const t=e.closest(".d-modal.fixed-modal");t&&(this.fixed=!0,u()(t).modal("show"),this.modal.hidden=!1),this.appEvents.trigger("modal:body-shown",function(e,t){const n={};for(const t of["title","rawTitle","fixed","subtitle","rawSubtitle","submitOnEnter","dismissable","headerClass","modalClass","titleAriaElementId"])t in e&&(n[t]=e[t]);return n}(this.args))}willDestroy(){super.willDestroy(...arguments),this.appEvents.trigger("modal:body-dismissed")}},g=(0,i.Z)(m.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"modal",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"fixed",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(m.prototype,"didInsert",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"didInsert"),m.prototype),(0,i.Z)(m.prototype,"willDestroy",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"willDestroy"),m.prototype),h=m))||h;(0,_.setComponentTemplate)(p,y)},84244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"/jbbeH0V",block:'[[[8,[39,0],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@translatedLabel"],[[30,1],[28,[37,1],["cancel"],null]]],null]],["@close"],false,["d-button","i18n"]]',moduleName:"discourse/components/d-modal-cancel.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},2735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a,l,c,u=n(94664),d=n(54001),p=n(82006),h=n(23183),m=n(48163),g=n(51372),f=n(17579),b=n(46646),_=n(57555),y=n(82099);let w=(0,b.disableImplicitInjections)((i=class extends p.default{constructor(){super(...arguments),(0,u.Z)(this,"appEvents",s,this),(0,u.Z)(this,"modal",o,this),(0,u.Z)(this,"wrapperElement",a,this),(0,u.Z)(this,"modalBodyData",l,this),(0,u.Z)(this,"flash",c,this)}get modalStyle(){return"inline-modal"===this.args.modalStyle?"inline-modal":"fixed-modal"}get submitOnEnter(){return!("submitOnEnter"in this.modalBodyData)||this.modalBodyData.submitOnEnter}get dismissable(){return!("dismissable"in this.modalBodyData)||this.modalBodyData.dismissable}get title(){return this.modalBodyData.title?y.default.t(this.modalBodyData.title):this.modalBodyData.rawTitle?this.modalBodyData.rawTitle:this.args.title}get subtitle(){return this.modalBodyData.subtitle?y.default.t(this.modalBodyData.subtitle):this.modalBodyData.rawSubtitle||this.args.subtitle}get headerClass(){return this.modalBodyData.headerClass}get panels(){return this.args.panels}get errors(){return this.args.errors}setupListeners(e){this.appEvents.on("modal:body-shown",this._modalBodyShown),this.appEvents.on("modal-body:flash",this._flash),this.appEvents.on("modal-body:clearFlash",this._clearFlash),document.documentElement.addEventListener("keydown",this._handleModalEvents),this.wrapperElement=e}cleanupListeners(){this.appEvents.off("modal:body-shown",this._modalBodyShown),this.appEvents.off("modal-body:flash",this._flash),this.appEvents.off("modal-body:clearFlash",this._clearFlash),document.documentElement.removeEventListener("keydown",this._handleModalEvents)}get ariaLabelledby(){return this.modalBodyData.titleAriaElementId?this.modalBodyData.titleAriaElementId:this.args.titleAriaElementId?this.args.titleAriaElementId:this.args.title?"discourse-modal-title":void 0}get modalClass(){return this.modalBodyData.modalClass||this.args.modalClass}triggerClickOnEnter(e){return!!this.submitOnEnter&&!(e.target.closest("form")||document.activeElement&&"TEXTAREA"===document.activeElement.nodeName)}handleMouseDown(e){if(this.dismissable)return e.target.classList.contains("modal-middle-container")||e.target.classList.contains("modal-outer-container")?this.args.closeModal?.("initiatedByClickOut"):void 0}_modalBodyShown(e){this.isDestroying||this.isDestroyed||(e.fixed&&(this.modal.hidden=!1),this.modalBodyData=e,(0,g.next)((()=>{(0,g.schedule)("afterRender",(()=>{this._trapTab()}))})))}_handleModalEvents(e){this.args.hidden||("Escape"===e.key&&this.dismissable&&(0,g.next)((()=>this.args.closeModal("initiatedByESC"))),"Enter"===e.key&&this.triggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".modal-footer .btn-primary")?.click(),e.preventDefault()),"Tab"===e.key&&this._trapTab(e))}_trapTab(e){if(this.args.hidden)return!0;const t=this.wrapperElement.querySelector(".modal-inner-container");if(!t)return;let n='[autofocus], a, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])';if(!e){const e=t.querySelector("[autofocus]");return void(e&&document.activeElement===e||(e||t.querySelector(n+", button:not(.modal-close)")||t.querySelector(".modal-body"))?.focus())}n+=", button:enabled";const r=t.querySelector(n),i=t.querySelectorAll(n),s=i[i.length-1];e.shiftKey?document.activeElement===r&&(s?.focus(),e.preventDefault()):document.activeElement===s&&((t.querySelector(".modal-close")||r)?.focus(),e.preventDefault())}_clearFlash(){this.flash=null}_flash(e){this.flash=e}},s=(0,d.Z)(i.prototype,"appEvents",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(i.prototype,"modal",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(i.prototype,"wrapperElement",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.Z)(i.prototype,"modalBodyData",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),c=(0,d.Z)(i.prototype,"flash",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(i.prototype,"setupListeners",[m.action],Object.getOwnPropertyDescriptor(i.prototype,"setupListeners"),i.prototype),(0,d.Z)(i.prototype,"cleanupListeners",[m.action],Object.getOwnPropertyDescriptor(i.prototype,"cleanupListeners"),i.prototype),(0,d.Z)(i.prototype,"handleMouseDown",[m.action],Object.getOwnPropertyDescriptor(i.prototype,"handleMouseDown"),i.prototype),(0,d.Z)(i.prototype,"_modalBodyShown",[_.bind],Object.getOwnPropertyDescriptor(i.prototype,"_modalBodyShown"),i.prototype),(0,d.Z)(i.prototype,"_handleModalEvents",[_.bind],Object.getOwnPropertyDescriptor(i.prototype,"_handleModalEvents"),i.prototype),(0,d.Z)(i.prototype,"_clearFlash",[_.bind],Object.getOwnPropertyDescriptor(i.prototype,"_clearFlash"),i.prototype),(0,d.Z)(i.prototype,"_flash",[_.bind],Object.getOwnPropertyDescriptor(i.prototype,"_flash"),i.prototype),r=i))||r},83116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLOSE_INITIATED_BY_BUTTON:()=>b,CLOSE_INITIATED_BY_CLICK_OUTSIDE:()=>y,CLOSE_INITIATED_BY_ESC:()=>_,CLOSE_INITIATED_BY_MODAL_SHOW:()=>w,default:()=>k});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(31691),c=n.n(l),u=n(48163),d=n(17579);const p=(0,n(8620).createTemplateFactory)({id:"DI0bdHRB",block:'[[[1,"\\n"],[8,[39,0],null,[["@element","@inline","@append"],[[30,0,["modal","containerElement"]],[30,1],true]],[["default"],[[[[1,"\\n  "],[8,[30,0,["dynamicElement"]],[[16,0,[28,[37,1],["modal","d-modal",[52,[30,1],"-inline"]],null]],[24,"data-keyboard","false"],[24,"aria-modal","true"],[24,"role","dialog"],[16,"aria-labelledby",[52,[30,2],"discourse-modal-title"]],[17,3],[4,[38,3],[[30,0,["setupListeners"]]],null],[4,[38,4],[[30,0,["cleanupListeners"]]],null],[4,[38,5],null,[["preventScroll"],[false]]]],null,[["default"],[[[[1,"\\n\\n    "],[10,0],[14,0,"d-modal__container"],[12],[1,"\\n      "],[18,10,null],[1,"\\n\\n"],[41,[28,[37,7],[[28,[37,8],[[30,4]],null],[28,[37,9],[[30,0,["dismissable"]],[30,2],[48,[30,11]],[48,[30,12]]],null]],null],[[[1,"        "],[10,0],[15,0,[28,[37,1],["d-modal__header",[30,5]],null]],[12],[1,"\\n\\n          "],[18,12,null],[1,"\\n\\n"],[41,[30,2],[[[1,"            "],[10,0],[14,0,"d-modal__title"],[12],[1,"\\n              "],[10,"h3"],[14,1,"discourse-modal-title"],[14,0,"d-modal__title-text"],[12],[1,[30,2]],[13],[1,"\\n\\n"],[41,[30,6],[[[1,"                "],[10,2],[14,0,"d-modal__subtitle-text"],[12],[1,[30,6]],[13],[1,"\\n"]],[]],null],[1,"\\n              "],[18,13,null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[18,11,null],[1,"\\n\\n"],[41,[30,0,["dismissable"]],[[[1,"            "],[8,[39,11],[[24,0,"btn-flat modal-close"]],[["@icon","@action","@title"],["times",[30,0,["handleCloseButton"]],"modal.close"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[18,14,null],[1,"\\n\\n      "],[1,[28,[30,0,["validateFlashType"]],[[30,7]],null]],[1,"\\n"],[41,[30,8],[[[1,"        "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[28,[37,1],["alert",[52,[30,7],[28,[37,12],["alert-",[30,7]],null]]],null]],[12],[1,[30,8]],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[15,0,[28,[37,1],["d-modal__body",[30,9]],null]],[14,"tabindex","-1"],[12],[1,"\\n"],[41,[48,[30,15]],[[[1,"          "],[18,15,null],[1,"\\n"]],[]],[[[1,"          "],[18,16,null],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n\\n"],[41,[48,[30,17]],[[[1,"        "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n          "],[18,17,null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[18,18,null],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"],[41,[51,[30,1]],[[[1,"    "],[11,0],[24,0,"d-modal__backdrop"],[4,[38,14],["click",[30,0,["handleWrapperClick"]]],null],[12],[13],[1,"\\n"]],[]],null]],[]]]]]],["@inline","@title","&attrs","@hideHeader","@headerClass","@subtitle","@flashType","@flash","@bodyClass","&aboveHeader","&headerBelowTitle","&headerAboveTitle","&belowModalTitle","&belowHeader","&body","&default","&footer","&belowFooter"],false,["conditional-in-element","concat-class","if","did-insert","will-destroy","trap-tab","yield","and","not","or","has-block","d-button","concat","unless","on"]]',moduleName:"discourse/components/d-modal.hbs",isStrictMode:!1});var h,m,g;let f=(0,n(91649).Z)(n(23183)).cached;const b="initiatedByCloseButton",_="initiatedByESC",y="initiatedByClickOut",w="initiatedByModalShow",v=["success","error","warning","info"];let k=(h=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"modal",m,this),(0,r.Z)(this,"wrapperElement",g,this)}setupListeners(e){document.documentElement.addEventListener("keydown",this.handleDocumentKeydown),this.wrapperElement=e}cleanupListeners(){document.documentElement.removeEventListener("keydown",this.handleDocumentKeydown)}get dismissable(){return!!this.args.closeModal&&(!("dismissable"in this.args)||this.args.dismissable)}shouldTriggerClickOnEnter(e){return!1!==this.args.submitOnEnter&&!e.target.closest("form")&&"TEXTAREA"!==document.activeElement?.nodeName}handleWrapperClick(e){if(0===e.button&&this.dismissable)return this.args.closeModal?.({initiatedBy:y})}handleDocumentKeydown(e){this.args.hidden||("Escape"===e.key&&this.dismissable&&(e.stopPropagation(),this.args.closeModal({initiatedBy:_})),"Enter"===e.key&&this.shouldTriggerClickOnEnter(e)&&(this.wrapperElement.querySelector(".d-modal__footer .btn-primary")?.click(),e.preventDefault()))}handleCloseButton(){this.args.closeModal({initiatedBy:b})}validateFlashType(e){if(e&&!v.includes(e))throw`@flashType must be one of ${v.join(", ")}`}get dynamicElement(){const e=this.args.tagName||"div";if(!["div","form"].includes(e))throw"@tagName must be form or div";return class extends(c()){constructor(){super(...arguments),(0,i.Z)(this,"tagName",e)}}}},m=(0,s.Z)(h.prototype,"modal",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(h.prototype,"wrapperElement",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(h.prototype,"setupListeners",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"setupListeners"),h.prototype),(0,s.Z)(h.prototype,"cleanupListeners",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"cleanupListeners"),h.prototype),(0,s.Z)(h.prototype,"handleWrapperClick",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"handleWrapperClick"),h.prototype),(0,s.Z)(h.prototype,"handleDocumentKeydown",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"handleDocumentKeydown"),h.prototype),(0,s.Z)(h.prototype,"handleCloseButton",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"handleCloseButton"),h.prototype),(0,s.Z)(h.prototype,"validateFlashType",[u.action],Object.getOwnPropertyDescriptor(h.prototype,"validateFlashType"),h.prototype),(0,s.Z)(h.prototype,"dynamicElement",[f],Object.getOwnPropertyDescriptor(h.prototype,"dynamicElement"),h.prototype),h);(0,l.setComponentTemplate)(p,k)},54568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(17579),a=n(61369);const l=(0,n(8620).createTemplateFactory)({id:"HJnqsYNC",block:'[[[11,"li"],[16,"aria-current",[30,0,["ariaCurrent"]]],[16,"title",[30,1]],[16,0,[30,2]],[17,3],[12],[1,"\\n"],[41,[30,0,["models"]],[[[1,"    "],[8,[39,1],null,[["@route","@models"],[[30,4],[30,0,["models"]]]],[["default"],[[[[1,"\\n      "],[18,5,null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],[[[1,"    "],[8,[39,1],null,[["@route"],[[30,4]]],[["default"],[[[[1,"\\n      "],[18,5,null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]]],[13]],["@title","@class","&attrs","@route","&default"],false,["if","link-to","yield"]]',moduleName:"discourse/components/d-navigation-item.hbs",isStrictMode:!1});var c,u,d=n(31691);let p=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",u,this)}get ariaCurrent(){return"parentNav"===this.args.ariaCurrentContext&&this.router.currentRouteName!==this.args.route&&this.router.currentRoute.parent.name.includes(this.args.route)?"page":this.router.currentRouteName!==this.args.route?null:"subNav"===this.args.ariaCurrentContext?"location":"page"}get models(){return(0,a.makeArray)(this.args.models||this.args.model)}},u=(0,i.Z)(c.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c);(0,d.setComponentTemplate)(l,p)},80530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r=n(54001),i=n(23183),s=n(31691),o=n.n(s),a=n(48163),l=n(39840),c=n(17579),u=n(24434),d=n(63319),p=n(79593),h=n(35814),m=n(62047),g=n(57555);const f=(0,n(8620).createTemplateFactory)({id:"lhdL43nl",block:'[[[8,[39,0],null,[["@categories","@category","@noSubcategories","@tag","@additionalTags"],[[30,0,["categories"]],[30,0,["category"]],[30,0,["noSubcategories"]],[30,0,["tag"]],[30,0,["additionalTags"]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["additionalTags"]]],[[[1,"  "],[8,[39,2],null,[["@navItems","@filterMode","@category","@tag"],[[30,0,["navItems"]],[30,0,["filterMode"]],[30,0,["category"]],[30,0,["tag"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"navigation-controls"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["notCategoriesRoute"]],[30,0,["site","mobileView"]],[30,1]],null],[[[1,"    "],[8,[39,5],null,[["@bulkSelectHelper"],[[30,2]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCategoryAdmin"]],[[[41,[30,0,["fixedCategoryPositions"]],[[[1,"      "],[8,[39,6],null,[["@onChange","@options"],[[28,[37,7],[[30,0],"selectCategoryAdminDropdownAction"],null],[28,[37,8],null,[["triggerOnChangeOnTab"],[false]]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,9],[[24,0,"btn-default"],[24,1,"create-category"]],[["@action","@icon","@label"],[[30,0,["createCategory"]],"plus",[52,[30,0,["site","mobileView"]],"categories.category","category.create"]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[28,[37,4],[[30,0,["category"]],[30,0,["showCategoryEdit"]]],null],[[[1,"    "],[8,[39,9],[[24,0,"btn-default edit-category"]],[["@action","@icon","@title"],[[30,0,["editCategory"]],"wrench","category.edit_title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[30,0,["showToggleInfo"]],[[[1,"      "],[8,[39,9],[[24,1,"show-tag-info"],[24,0,"btn-default"]],[["@icon","@ariaLabel","@action"],[[52,[30,0,["currentUser","staff"]],"wrench","info-circle"],"tagging.info",[30,0,["toggleInfo"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n  "],[8,[39,10],null,[["@name","@outletArgs"],["before-create-topic-button",[28,[37,8],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","additionalTags","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["additionalTags"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n  "],[8,[39,11],null,[["@canCreateTopic","@action","@disabled","@label","@btnClass","@canCreateTopicOnTag"],[[30,0,["canCreateTopic"]],[28,[37,7],[[30,0],"clickCreateTopicButton"],null],[30,0,["createTopicButtonDisabled"]],[30,0,["createTopicLabel"]],[30,0,["createTopicClass"]],[30,0,["canCreateTopicOnTag"]]]],null],[1,"\\n\\n  "],[8,[39,10],null,[["@name","@outletArgs"],["after-create-topic-button",[28,[37,8],null,[["canCreateTopic","createTopicDisabled","createTopicLabel","category","tag"],[[30,0,["canCreateTopic"]],[30,0,["createTopicDisabled"]],[30,0,["createTopicLabel"]],[30,0,["category"]],[30,0,["tag"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category"]],[[[41,[51,[30,0,["tag"]]],[[[41,[30,0,["showCategoryNotifications"]],[[[1,"        "],[8,[39,12],null,[["@value","@category","@onChange"],[[30,0,["categoryNotificationLevel"]],[30,0,["category"]],[28,[37,7],[[30,0],"changeCategoryNotificationLevel"],null]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["tag"]],[[[41,[51,[30,0,["category"]]],[[[41,[30,0,["showTagNotifications"]],[[[1,"        "],[8,[39,13],null,[["@onChange","@value"],[[30,0,["changeTagNotificationLevel"]],[30,0,["tagNotification","notification_level"]]]],null],[1,"\\n"]],[]],null]],[]],null]],[]],null],[13]],["@canBulkSelect","@bulkSelectHelper"],false,["bread-crumbs","unless","navigation-bar","if","and","bulk-select-toggle","categories-admin-dropdown","action","hash","d-button","plugin-outlet","create-topic-button","category-notifications-button","tag-notifications-button"]]',moduleName:"discourse/components/d-navigation.hbs",isStrictMode:!1});var b,_,y,w,v,k,x,T,S,C,P,O,E,D;const I=(0,s.setComponentTemplate)(f,o().extend((b=(0,g.default)(),_=(0,g.default)("category"),y=(0,g.default)("category.notification_level"),w=(0,g.default)("tagNotification","additionalTags"),v=(0,g.default)("category","createTopicDisabled"),k=(0,g.default)("createTopicDisabled","hasDraft","categoryReadOnlyBanner","canCreateTopicOnTag","tag.id"),x=(0,g.default)("categoryReadOnlyBanner","hasDraft"),T=(0,g.default)("hasDraft"),S=(0,g.default)("category.can_edit"),C=(0,g.default)("additionalTags","category","tag.id"),P=(0,g.default)("filterType","category","noSubcategories","tag.id","router.currentRoute.queryParams","skipCategoriesNavItem"),O=(0,g.default)("filterType"),E={router:(0,c.inject)(),dialog:(0,c.inject)(),tagName:"",filterMode:(0,i.tracked)(),fixedCategoryPositions:(0,d.setting)("fixed_category_positions"),get filterType(){return(0,p.filterTypeForMode)(this.filterMode)},categories(){let e=this.site.categoriesList;return this.siteSettings.allow_uncategorized_topics||(e=e.filter((e=>e.id!==this.site.uncategorized_category_id))),this.currentUser?.indirectly_muted_category_ids&&(e=e.filter((e=>!this.currentUser.indirectly_muted_category_ids.includes(e.id)))),e},showCategoryNotifications(e){return e&&this.currentUser},categoryNotificationLevel(e){return this.currentUser?.indirectly_muted_category_ids?.includes(this.category.id)?h.NotificationLevels.MUTED:e},showTagNotifications:(e,t)=>e&&!t,categoryReadOnlyBanner(e,t){if(e&&this.currentUser&&t)return e.read_only_banner},createTopicButtonDisabled:(e,t,n,r,i)=>!(!i||r)||!(n&&!t)&&e,createTopicClass(e,t){let n=["btn-default"];return t?n.push("open-draft"):e&&n.push("disabled"),n.join(" ")},createTopicLabel:e=>e?"topic.open_draft":"topic.create",showCategoryEdit:e=>e,showToggleInfo:(e,t,n)=>!e&&!t&&"none"!==n,navItems(e,t,n,r,i,s){return m.default.buildList(t,{filterType:e,noSubcategories:n,currentRouteQueryParams:i,tagId:r,siteSettings:this.siteSettings,skipCategoriesNavItem:s})},notCategoriesRoute:e=>"categories"!==e,async changeTagNotificationLevel(e){const t=(await this.tagNotification.update({notification_level:e})).responseJson;this.tagNotification.set("notification_level",e),this.currentUser.setProperties({watched_tags:t.watched_tags,watching_first_post_tags:t.watching_first_post_tags,tracked_tags:t.tracked_tags,muted_tags:t.muted_tags,regular_tags:t.regular_tags})},actions:{changeCategoryNotificationLevel(e){this.category.setNotification(e)},selectCategoryAdminDropdownAction(e){switch(e){case"create":this.createCategory();break;case"reorder":this.reorderCategories()}},clickCreateTopicButton(){this.categoryReadOnlyBanner&&!this.hasDraft?this.dialog.alert({message:(0,u.htmlSafe)(this.categoryReadOnlyBanner)}):this.createTopic()}}},(0,r.Z)(E,"filterType",[l.dependentKeyCompat],Object.getOwnPropertyDescriptor(E,"filterType"),E),(0,r.Z)(E,"categories",[b],Object.getOwnPropertyDescriptor(E,"categories"),E),(0,r.Z)(E,"showCategoryNotifications",[_],Object.getOwnPropertyDescriptor(E,"showCategoryNotifications"),E),(0,r.Z)(E,"categoryNotificationLevel",[y],Object.getOwnPropertyDescriptor(E,"categoryNotificationLevel"),E),(0,r.Z)(E,"showTagNotifications",[w],Object.getOwnPropertyDescriptor(E,"showTagNotifications"),E),(0,r.Z)(E,"categoryReadOnlyBanner",[v],Object.getOwnPropertyDescriptor(E,"categoryReadOnlyBanner"),E),(0,r.Z)(E,"createTopicButtonDisabled",[k],Object.getOwnPropertyDescriptor(E,"createTopicButtonDisabled"),E),(0,r.Z)(E,"createTopicClass",[x],Object.getOwnPropertyDescriptor(E,"createTopicClass"),E),(0,r.Z)(E,"createTopicLabel",[T],Object.getOwnPropertyDescriptor(E,"createTopicLabel"),E),(0,r.Z)(E,"showCategoryEdit",[S],(D=(D=Object.getOwnPropertyDescriptor(E,"showCategoryEdit"))?D.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return D}}),E),(0,r.Z)(E,"showToggleInfo",[C],Object.getOwnPropertyDescriptor(E,"showToggleInfo"),E),(0,r.Z)(E,"navItems",[P],Object.getOwnPropertyDescriptor(E,"navItems"),E),(0,r.Z)(E,"notCategoriesRoute",[O],Object.getOwnPropertyDescriptor(E,"notCategoriesRoute"),E),(0,r.Z)(E,"changeTagNotificationLevel",[a.action],Object.getOwnPropertyDescriptor(E,"changeTagNotificationLevel"),E),E)))},35453:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(82006),s=n(55071),o=n(56244),a=n(54736),l=n(6709),c=n(8620),u=n(31691);class d extends i.default{constructor(){super(...arguments),(0,a.default)('<DSection> is deprecated. Use {{body-class "foo-page" "bar"}} and/or <section></section> instead.',{since:"3.2.0.beta1",dropFrom:"3.3.0.beta1",id:"discourse.d-section"})}}r=d,(0,u.setComponentTemplate)((0,c.createTemplateFactory)({id:"ipxGTzR1",block:'[[[1,"\\n"],[41,[30,1],[[[1,"      "],[1,[28,[32,0],[[28,[32,1],[[30,1],"-page"],null]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1,"      "],[1,[28,[32,0],[[30,2]],null]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,2],[[30,3],""],null],[[[1,"      "],[11,"section"],[16,1,[30,4]],[16,0,[30,5]],[17,6],[12],[18,7,null],[13],[1,"\\n"]],[]],[[[1,"      "],[18,7,null],[1,"\\n"]],[]]],[1,"  "]],["@pageClass","@bodyClass","@tagName","@id","@class","&attrs","&default"],false,["if","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-section.js",scope:()=>[o.default,s.concat,l.default],isStrictMode:!0}),r)},17233:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(89906).TextArea.extend({attributeBindings:["aria-label"]})},41769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(82006),s=n(40098),o=n(82099),a=n(8620),l=n(31691);class c extends i.default{get computedLabel(){return this.args.label?o.default.t(this.args.label):this.args.translatedLabel}get checked(){return this.args.state?"true":"false"}}r=c,(0,l.setComponentTemplate)((0,a.createTemplateFactory)({id:"lmM6pAU0",block:'[[[1,"\\n    "],[10,0],[14,0,"d-toggle-switch"],[12],[1,"\\n      "],[10,"label"],[14,0,"d-toggle-switch--label"],[12],[1,"\\n"],[1,"        "],[11,"button"],[24,0,"d-toggle-switch__checkbox"],[24,4,"button"],[24,"role","switch"],[16,"aria-checked",[30,0,["checked"]]],[17,1],[12],[13],[1,"\\n"],[1,"\\n        "],[10,1],[14,0,"d-toggle-switch__checkbox-slider"],[12],[1,"\\n"],[41,[30,2],[[[1,"            "],[1,[28,[32,0],["check"],null]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,1],[14,0,"d-toggle-switch__checkbox-label"],[12],[1,"\\n        "],[1,[30,0,["computedLabel"]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["&attrs","@state"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-toggle-switch.js",scope:()=>[s.default],isStrictMode:!0}),r)},51803:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(51372),l=n(10425),c=n(18104),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"1XRLewO+",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[16,1,[30,0,["inputId"]]],[4,[38,2],["input",[28,[37,3],[[30,0],"onChangeDate"],null]],null]],[["@type","@value"],[[30,0,["inputType"]],[28,[37,1],[[30,0,["value"]]],null]]],null],[1,"\\n\\n"],[41,[51,[30,0,["useGlobalPickerContainer"]]],[[[1,"  "],[10,0],[14,0,"picker-container"],[12],[13],[1,"\\n"]],[]],null]],[],false,["input","readonly","on","action","unless"]]',moduleName:"discourse/components/date-input.hbs",isStrictMode:!1});var h,m,g,f,b;const _=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.default)("site.mobileView"),m=(0,u.on)("willDestroyElement"),g=(0,u.default)("_placeholder"),f={classNames:["d-date-input"],date:null,_picker:null,inputType(){return this.useNativePicker?"date":"text"},useNativePicker:function(){const e=document.createElement("input");return e.setAttribute("type","date"),e.setAttribute("value","a"),"a"!==e.value}(),click(e){e.stopPropagation()},didInsertElement(){this._super(...arguments),(0,a.schedule)("afterRender",(()=>{if(!this.element||this.isDestroying||this.isDestroying)return;let e;const t=document.getElementById(this.containerId);e=this.useNativePicker?this._loadNativePicker(t):this._loadPikadayPicker(t),e.then((e=>{if(this._picker=e,this._picker&&this.date){const e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}}))}))},didUpdateAttrs(){if(this._super(...arguments),this._picker&&this.date){const e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}if(this._picker&&this.relativeDate){const e=this.relativeDate instanceof moment?this.relativeDate:moment(this.relativeDate);this._picker.setMinDate(e,!0)}this._picker&&!this.date&&this._picker.setDate(null)},_loadPikadayPicker(e){return(0,c.default)("/javascripts/pikaday.js").then((()=>{let t={field:this.element.querySelector(".date-picker"),container:e||this.element.querySelector(".picker-container"),bound:null===e,format:"LL",firstDay:1,i18n:{previousMonth:d.default.t("dates.previous_month"),nextMonth:d.default.t("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysShort()},onSelect:e=>this._handleSelection(e)};return this.relativeDate&&(t.minDate=moment(this.relativeDate).toDate()),new Pikaday({...t,...this._opts()})}))},_loadNativePicker(e){const t=(e||this.element).querySelector("input.date-picker");return t.onchange=()=>this._handleSelection(t.value),t.hide=()=>{},t.destroy=()=>{},t.setDate=e=>{t.value=e?moment(e).format("YYYY-MM-DD"):null},t.setMinDate=e=>{t.min=e},this.date&&t.setDate(this.date),l.Promise.resolve(t)},_handleSelection(e){!this.element||this.isDestroying||this.isDestroyed||this.onChange&&this.onChange(e?moment(e):null)},_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)},placeholder:{get:e=>e||d.default.t("dates.placeholder"),set(e){return this.set("_placeholder",e),e}},_opts:()=>null,onChangeDate(e){this._handleSelection(e.target.value)}},(0,r.Z)(f,"inputType",[h],Object.getOwnPropertyDescriptor(f,"inputType"),f),(0,r.Z)(f,"_destroy",[m],Object.getOwnPropertyDescriptor(f,"_destroy"),f),(0,r.Z)(f,"placeholder",[g],(b=(b=Object.getOwnPropertyDescriptor(f,"placeholder"))?b.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return b}}),f),(0,r.Z)(f,"onChangeDate",[o.action],Object.getOwnPropertyDescriptor(f,"onChangeDate"),f),f)))},34362:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(7353).default.extend({_opts(){return{defaultDate:this.defaultDate||moment().add(1,"day").toDate(),setDefaultDate:!!this.defaultDate,minDate:this.minDate||moment().toDate()}}})},79005:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(7353).default.extend({_opts(){return{defaultDate:moment(this.defaultDate,"YYYY-MM-DD").toDate()||new Date,setDefaultDate:!!this.defaultDate,maxDate:new Date}}})},7353:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(54001),i=n(31691),s=n.n(i),o=n(51372),a=n(18104),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"kT0NJodg",block:'[[[8,[39,0],[[24,0,"date-picker"],[16,"placeholder",[30,0,["placeholder"]]],[24,"autocomplete","off"]],[["@type","@value"],[[30,0,["inputType"]],[30,0,["value"]]]],null]],[],false,["input"]]',moduleName:"discourse/components/date-picker.hbs",isStrictMode:!1});var d,p,h,m,g,f;const b="YYYY-MM-DD",_=(0,i.setComponentTemplate)(u,s().extend((d=(0,l.default)("site.mobileView"),p=(0,l.on)("didInsertElement"),h=(0,l.on)("willDestroyElement"),m=(0,l.default)("_placeholder"),g={classNames:["date-picker-wrapper"],_picker:null,value:null,inputType:e=>e?"date":"text",_loadDatePicker(){if(this.site.mobileView)this._loadNativePicker();else{const e=document.getElementById(this.containerId);this._loadPikadayPicker(e)}},_loadPikadayPicker(e){(0,a.default)("/javascripts/pikaday.js").then((()=>{(0,o.schedule)("afterRender",(()=>{const t={field:this.element.querySelector(".date-picker"),container:e||null,bound:null===e,format:b,firstDay:1,i18n:{previousMonth:c.default.t("dates.previous_month"),nextMonth:c.default.t("dates.next_month"),months:moment.months(),weekdays:moment.weekdays(),weekdaysShort:moment.weekdaysMin()},onSelect:e=>this._handleSelection(e)};this._picker=new Pikaday(Object.assign(t,this._opts()))}))}))},_loadNativePicker(){const e=this.element.querySelector("input.date-picker");e.onchange=()=>this._handleSelection(e.value),e.hide=()=>{},e.destroy=()=>{},this._picker=e},_handleSelection(e){const t=moment(e).format(b);!this.element||this.isDestroying||this.isDestroyed||this.onSelect&&this.onSelect(t)},_destroy(){this._picker&&(this._picker.destroy(),this._picker=null)},placeholder:{get:e=>e||c.default.t("dates.placeholder"),set(e){return this.set("_placeholder",e),e}},_opts:()=>null},(0,r.Z)(g,"inputType",[d],Object.getOwnPropertyDescriptor(g,"inputType"),g),(0,r.Z)(g,"_loadDatePicker",[p],Object.getOwnPropertyDescriptor(g,"_loadDatePicker"),g),(0,r.Z)(g,"_destroy",[h],Object.getOwnPropertyDescriptor(g,"_destroy"),g),(0,r.Z)(g,"placeholder",[m],(f=(f=Object.getOwnPropertyDescriptor(g,"placeholder"))?f.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return f}}),g),g)))},49229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"wBVuhpzf",block:'[[[8,[39,0],[[24,0,"from"]],[["@date","@onChange","@showTime","@placeholder","@timezone"],[[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["from"]]]],null],[30,0,["showFromTime"]],[28,[37,3],["dates.from_placeholder"],null],[30,1]]],null],[1,"\\n\\n"],[8,[39,0],[[24,0,"to"]],[["@date","@relativeDate","@onChange","@timeFirst","@showTime","@clearable","@placeholder","@timezone"],[[30,0,["to"]],[30,0,["from"]],[28,[37,1],[[30,0],"onChangeRanges",[28,[37,2],null,[["prop"],["to"]]]],null],[30,0,["toTimeFirst"]],[30,0,["showToTime"]],[30,0,["clearable"]],[28,[37,3],["dates.to_placeholder"],null],[30,1]]],null]],["@timezone"],false,["date-time-input","action","hash","i18n"]]',moduleName:"discourse/components/date-time-input-range.hbs",isStrictMode:!1});var l;const c=(0,i.setComponentTemplate)(a,s().extend((l={classNames:["d-date-time-input-range"],from:null,to:null,onChangeTo:null,onChangeFrom:null,toTimeFirst:!1,showToTime:!0,showFromTime:!0,clearable:!1,onChangeRanges(e,t){if(this.onChange){const n={from:this.from,to:this.to},r={};"from"===e.prop&&(this.to&&t?.isAfter(this.to)?(r[e.prop]=t,r.to=t.clone().add(1,"hour")):r[e.prop]=t),"to"===e.prop&&(t&&t.isBefore(this.from)?r[e.prop]=this.from.clone().add(1,"hour"):r[e.prop]=t);const i={...n,...r};this.onChange(i)}}},(0,r.Z)(l,"onChangeRanges",[o.action],Object.getOwnPropertyDescriptor(l,"onChangeRanges"),l),l)))},96462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"cH9xoPRR",block:'[[[41,[51,[30,0,["timeFirst"]]],[[[1,"  "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showTime"]],[[[1,"  "],[8,[39,4],null,[["@date","@relativeDate","@onChange"],[[30,0,["date"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeTime"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["timeFirst"]],[[[1,"  "],[8,[39,1],null,[["@date","@placeholder","@relativeDate","@onChange","@useGlobalPickerContainer"],[[30,0,["date"]],[30,0,["placeholder"]],[30,0,["relativeDate"]],[28,[37,2],[[30,0],"onChangeDate"],null],[30,0,["useGlobalPickerContainer"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["clearable"]],[[[1,"  "],[8,[39,5],[[24,0,"btn-default clear-date-time"]],[["@icon","@action"],["times",[30,0,["onClear"]]]],null],[1,"\\n"]],[]],null]],[],false,["unless","date-input","action","if","time-input","d-button"]]',moduleName:"discourse/components/date-time-input.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.computed)("timezone"),c={classNames:["d-date-time-input"],date:null,relativeDate:null,showTime:!0,clearable:!1,hours:(0,o.computed)("date","showTime",(function(){return this.date&&this.get("showTime")?this.date.hours():null})),minutes:(0,o.computed)("date","showTime",(function(){return this.date&&this.get("showTime")?this.date.minutes():null})),onClear(){this.onChange(null)},onChangeTime(e){if(this.onChange){const t=this.date?this.date:this.relativeDate?this.relativeDate:moment.tz(this.resolvedTimezone);this.onChange(moment.tz({year:t.year(),month:t.month(),day:t.date(),hours:e.hours,minutes:e.minutes},this.resolvedTimezone))}},onChangeDate(e){e?this.onChange?.(moment.tz({year:e.year(),month:e.month(),day:e.date(),hours:this.hours||0,minutes:this.minutes||0},this.resolvedTimezone)):this.onClear()},get resolvedTimezone(){return this.timezone||moment.tz.guess()}},(0,r.Z)(c,"onClear",[o.action],Object.getOwnPropertyDescriptor(c,"onClear"),c),(0,r.Z)(c,"onChangeTime",[o.action],Object.getOwnPropertyDescriptor(c,"onChangeTime"),c),(0,r.Z)(c,"onChangeDate",[o.action],Object.getOwnPropertyDescriptor(c,"onChangeDate"),c),(0,r.Z)(c,"resolvedTimezone",[l],Object.getOwnPropertyDescriptor(c,"resolvedTimezone"),c),c)))},88101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(17579),u=n(69338),d=n(91423),p=n(8620),h=n(31691);let m=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"desktopNotifications",i,this)}},(0,h.setComponentTemplate)((0,p.createTemplateFactory)({id:"ieAgS0g+",block:'[[[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[30,0,["desktopNotifications","isNotSupported"]],[[[1,"        "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@disabled"],["bell-slash","user.desktop_notifications.not_supported","true"]],null],[1,"\\n"]],[]],null],[41,[30,0,["desktopNotifications","isDeniedPermission"]],[[[1,"        "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@disabled"],["bell-slash","user.desktop_notifications.perm_denied_btn","true"]],null],[1,"\\n        "],[1,[28,[32,1],["user.desktop_notifications.perm_denied_expl"],null]],[1,"\\n"]],[]],[[[41,[30,0,["desktopNotifications","isSubscribed"]],[[[1,"          "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@action"],["far-bell-slash","user.desktop_notifications.disable",[30,0,["desktopNotifications","disable"]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[32,0],[[24,0,"btn-default"]],[["@icon","@label","@action"],["far-bell","user.desktop_notifications.enable",[30,0,["desktopNotifications","enable"]]]],null],[1,"\\n"]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],[],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/desktop-notification-config.js",scope:()=>[u.default,d.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"desktopNotifications",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},94549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,i,s,o,a,l,c=n(94664),u=n(49246),d=n(54001),p=n(82006),h=n(23183),m=n(31691),g=n(48163),f=n(17579),b=n(69338),_=n(17209),y=n(3055),w=n(38864),v=n(78580),k=n(82099),x=n(8620);let T=(l=class extends p.default{constructor(){super(...arguments),(0,c.Z)(this,"dialog",i,this),(0,c.Z)(this,"currentUser",s,this),(0,c.Z)(this,"siteSettings",o,this),(0,c.Z)(this,"errorMessage",a,this),(0,u.Z)(this,"passwordLabel",k.default.t("user.password.title")),(0,u.Z)(this,"instructions",k.default.t("user.confirm_access.instructions")),(0,u.Z)(this,"loggedInAs",k.default.t("user.confirm_access.logged_in_as")),(0,u.Z)(this,"finePrint",k.default.t("user.confirm_access.fine_print"))}get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&this.currentUser.user_passkeys?.length>0&&(0,v.isWebauthnSupported)()}async confirmWithPasskey(){try{const e=await(0,v.getPasskeyCredential)((e=>this.dialog.alert(e)));if(!e)return;(await(0,y.ajax)("/u/confirm-session.json",{type:"POST",data:{publicKeyCredential:e}})).success?(this.errorMessage=null,this.dialog.didConfirmWrapped()):this.errorMessage=k.default.t("user.confirm_access.incorrect_passkey")}catch(e){(0,w.popupAjaxError)(e)}}async submit(){this.errorMessage=this.password?null:k.default.t("user.confirm_access.incorrect_password"),(await(0,y.ajax)("/u/confirm-session.json",{type:"POST",data:{password:this.password}})).success?(this.errorMessage=null,this.dialog.didConfirmWrapped()):this.errorMessage=k.default.t("user.confirm_access.incorrect_password")}},(0,m.setComponentTemplate)((0,x.createTemplateFactory)({id:"J0B5oeVA",block:'[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"      "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n        "],[1,[30,0,["errorMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group confirm-session"],[12],[1,"\\n      "],[10,0],[14,0,"confirm-session__instructions"],[12],[1,"\\n        "],[1,[30,0,["instructions"]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"confirm-session__instructions"],[12],[1,"\\n        "],[10,1],[12],[1,[30,0,["loggedInAs"]]],[13],[1,"\\n        "],[8,[32,0],null,[["@user"],[[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n          "],[1,[30,0,["currentUser","username"]]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"form"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["passwordLabel"]]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,0],[14,0,"inline-form"],[12],[1,"\\n            "],[8,[32,1],[[24,1,"password"],[24,0,"input-large"],[24,"autofocus","autofocus"]],[["@value","@type"],[[30,0,["password"]],"password"]],null],[1,"\\n            "],[8,[32,2],[[24,0,"btn-primary"]],[["@type","@action","@label"],["submit",[30,0,["submit"]],"user.password.confirm"]],null],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["canUsePasskeys"]],[[[1,"            "],[10,0],[14,0,"confirm-session__passkey"],[12],[1,"\\n              "],[8,[32,2],[[24,0,"btn-flat"]],[["@action","@label"],[[30,0,["confirmWithPasskey"]],"user.passkeys.confirm_button"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"confirm-session__fine-print"],[12],[1,"\\n        "],[1,[30,0,["finePrint"]]],[1,"\\n      "],[13],[1,"\\n\\n    "],[13],[1,"\\n  "]],[],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/dialog-messages/confirm-session.js",scope:()=>[_.default,m.Input,b.default],isStrictMode:!0}),l),r=l,i=(0,d.Z)(r.prototype,"dialog",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.Z)(r.prototype,"currentUser",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(r.prototype,"siteSettings",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(r.prototype,"errorMessage",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(r.prototype,"confirmWithPasskey",[g.action],Object.getOwnPropertyDescriptor(r.prototype,"confirmWithPasskey"),r.prototype),(0,d.Z)(r.prototype,"submit",[g.action],Object.getOwnPropertyDescriptor(r.prototype,"submit"),r.prototype),r)},87683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"dD9SF6Sc",block:'[[[41,[30,1,["members","length"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[1,[28,[35,1],["users"],null]],[1,"\\n    "],[1,[28,[35,2],["admin.groups.delete_details"],[["count"],[[30,1,["members","length"]]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message_count"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[1,[28,[35,1],["envelope"],null]],[1,"\\n    "],[1,[28,[35,2],["admin.groups.delete_with_messages_confirm"],[["count"],[[30,1,["message_count"]]]]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[12],[1,"\\n  "],[1,[28,[35,1],["exclamation-triangle"],null]],[1,"\\n  "],[1,[28,[35,2],["admin.groups.delete_warning"],null]],[1,"\\n"],[13]],["@model"],false,["if","d-icon","i18n"]]',moduleName:"discourse/components/dialog-messages/group-delete.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},82100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"5+JmmGB3",block:'[[[1,[28,[35,0],["user.second_factor.delete_confirm_header"],null]],[1,"\\n\\n"],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1,["totps"]]],null]],null],null,[[[1,"    "],[10,"li"],[12],[1,[30,2,["name"]]],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1,["security_keys"]]],null]],null],null,[[[1,"    "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["currentUser","second_factor_backup_enabled"]],[[[1,"    "],[10,"li"],[12],[1,[28,[35,0],["user.second_factor_backup.title"],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,2],[12],[1,"\\n  "],[1,[28,[35,4],[[28,[37,0],["user.second_factor.delete_confirm_instruction"],[["confirm"],[[30,0,["disabledString"]]]]]],null]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,5],[[4,[38,6],["input",[30,0,["onConfirmPhraseInput"]]],null]],[["@value","@id","@autocorrect","@autocapitalize"],[[30,0,["confirmPhraseInput"]],"confirm-phrase","off","off"]],null]],["@model","totp","sk"],false,["i18n","each","-track-array","if","html-safe","text-field","on"]]',moduleName:"discourse/components/dialog-messages/second-factor-confirm-phrase.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"dialog",h,this),(0,r.Z)(this,"currentUser",m,this),(0,r.Z)(this,"confirmPhraseInput",g,this),(0,i.Z)(this,"disabledString",u.default.t("user.second_factor.disable"))}onConfirmPhraseInput(){this.confirmPhraseInput===this.disabledString?this.dialog.set("confirmButtonDisabled",!1):this.dialog.set("confirmButtonDisabled",!0)}},h=(0,s.Z)(p.prototype,"dialog",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,s.Z)(p.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(p.prototype,"confirmPhraseInput",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,s.Z)(p.prototype,"onConfirmPhraseInput",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"onConfirmPhraseInput"),p.prototype),p);(0,f.setComponentTemplate)(d,b)},323:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(63319);const o=(0,n(8620).createTemplateFactory)({id:"bO8B+DJZ",block:'[[[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n  "],[8,[39,0],null,[["@user"],[[30,0,["item","user"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["columns"]]],null]],null],null,[[[41,[28,[37,4],null,[["column"],[[30,1]]]],[[[1,"    "],[10,0],[14,0,"directory-table__cell--user-field"],[12],[1,"\\n      "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n        "],[10,1],[12],[1,[30,1,["name"]]],[13],[1,"\\n      "],[13],[1,"\\n      "],[1,[28,[35,5],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"directory-table__cell"],[12],[1,"\\n      "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n        "],[10,1],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1,"            "],[1,[28,[35,6],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],null],[1,"          "],[1,[28,[35,7],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[1,[28,[35,8],null,[["item","column"],[[30,0,["item"]],[30,1]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1,"  "],[10,0],[14,0,"directory-table__cell time-read"],[12],[1,"\\n    "],[10,1],[14,0,"directory-table__label"],[12],[1,"\\n      "],[10,1],[12],[1,[28,[35,9],["directory.time_read"],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,1],[14,0,"directory-table__value"],[12],[1,"\\n      "],[1,[28,[35,10],[[30,0,["item","time_read"]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["column"],false,["user-info","each","-track-array","if","directory-column-is-user-field","directory-item-user-field-value","d-icon","directory-item-label","directory-item-value","i18n","format-duration"]]',moduleName:"discourse/components/directory-item.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({tagName:"div",classNames:["directory-table__row"],classNameBindings:["me"],me:(0,s.propertyEqual)("item.user.id","currentUser.id"),columns:null}))},26003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"l/tNHSdq",block:'[[[8,[39,0],null,null,[["header","body"],[[[[1,"\\n    "],[8,[39,1],null,[["@field","@order","@asc"],["username",[30,0,["order"]],[30,0,["asc"]]]],null],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["columns"]]],null]],null],null,[[[1,"      "],[8,[39,1],null,[["@field","@icon","@order","@asc","@automatic","@translated","@onActiveRender"],[[30,1,["name"]],[30,1,["icon"]],[30,0,["order"]],[30,0,["asc"]],[28,[37,4],null,[["column"],[[30,1]]]],[30,1,["user_field_id"]],[30,0,["setActiveHeader"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showTimeRead"]],[[[1,"      "],[10,0],[14,0,"directory-table__column-header"],[12],[1,"\\n        "],[10,0],[14,0,"header-contents"],[12],[1,"\\n          "],[1,[28,[35,6],["directory.time_read"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]],[[[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["items"]]],null]],null],null,[[[1,"      "],[8,[39,7],null,[["@item","@columns","@showTimeRead"],[[30,2],[30,0,["columns"]],[30,0,["showTimeRead"]]]],null],[1,"\\n"]],[2]],null],[1,"  "]],[]]]]]],["column","item"],false,["responsive-table","table-header-toggle","each","-track-array","directory-column-is-automatic","if","i18n","directory-item"]]',moduleName:"discourse/components/directory-table.hbs",isStrictMode:!1});var l;const c=(0,i.setComponentTemplate)(a,s().extend((l={_table:null,didInsertElement(){this._super(...arguments),this.setProperties({_table:this.element.querySelector(".directory-table"),_columnCount:this.showTimeRead?this.columns.length+1:this.columns.length}),this._table.style.gridTemplateColumns=`minmax(13em, 3fr) repeat(${this._columnCount}, minmax(max-content, 1fr))`},setActiveHeader(e){this._table||this.set("_table",document.querySelector(".directory-table"));const t=e.offsetLeft+e.offsetWidth+10-this._table.offsetWidth;t>0&&(this._table.scrollLeft=t)}},(0,r.Z)(l,"setActiveHeader",[o.action],Object.getOwnPropertyDescriptor(l,"setActiveHeader"),l),l)))},61274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Yu+SPuoe",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],[["class"],["fa-stack-1x"]]]],[1,"\\n\\n"],[41,[30,0,["disabled"]],[[[1,"  "],[1,[28,[35,0],["ban"],[["class"],["fa-stack-2x"]]]],[1,"\\n"]],[]],null]],[],false,["d-icon","if"]]',moduleName:"discourse/components/disabled-icon.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"span",classNameBindings:[":fa-stack"]}))},44631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"XjgQHLMN",block:'[[[41,[30,0,["visible"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,1,"banner"],[15,0,[30,0,["overlay"]]],[12],[1,"\\n      "],[10,0],[14,0,"floated-buttons"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"          "],[10,3],[15,6,[30,0,["banner","url"]]],[14,0,"btn btn-transparent edit-banner"],[12],[1,"\\n            "],[1,[28,[35,1],["pencil-alt"],null]],[1,"\\n"],[41,[51,[30,0,["site","mobileView"]]],[[[1,"              "],[1,[28,[35,3],[[28,[37,4],["banner.edit"],null]],null]],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"\\n        "],[8,[39,5],[[24,0,"btn-transparent close"]],[["@icon","@action","@title"],["times",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,1,"banner-content"],[12],[1,"\\n        "],[1,[28,[35,3],[[30,0,["content"]]],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon","unless","html-safe","i18n","d-button"]]',moduleName:"discourse/components/discourse-banner.hbs",isStrictMode:!1});var u,d,p;const h=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("banner.html"),d=(0,l.default)("currentUser.dismissed_banner_key","banner.key","hide"),p={hide:!1,banner:(0,a.readOnly)("site.banner"),content(e){const t=document.createElement("div");return t.innerHTML=e,t.querySelectorAll("[id^='heading--']").forEach((e=>{e.removeAttribute("id")})),t.innerHTML},visible(e,t,n){return e=e||this.keyValueStore.get("dismissed_banner_key"),t&&(t=parseInt(t,10)),e&&(e=parseInt(e,10)),!n&&t&&e!==t},dismiss(){this.currentUser?this.currentUser.dismissBanner(this.get("banner.key")):(this.set("hide",!0),this.keyValueStore.set({key:"dismissed_banner_key",value:this.get("banner.key")}))},didInsertElement(){this._super(...arguments),this.appEvents.trigger("decorate-non-stream-cooked-element",this.element)}},(0,r.Z)(p,"content",[u],Object.getOwnPropertyDescriptor(p,"content"),p),(0,r.Z)(p,"visible",[d],Object.getOwnPropertyDescriptor(p,"visible"),p),(0,r.Z)(p,"dismiss",[o.action],Object.getOwnPropertyDescriptor(p,"dismiss"),p),p)))},15314:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555),a=n(82099);const l=(0,n(8620).createTemplateFactory)({id:"DQBQg4Aa",block:'[[[1,[28,[35,0],[[30,0,["translatedText"]]],null]]],[],false,["html-safe"]]',moduleName:"discourse/components/discourse-linked-text.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,o.default)("text","textParams"),u={tagName:"span",translatedText(e){if(e)return a.default.t(...arguments)},click(e){return"A"===e.target.tagName.toUpperCase()&&this.action(this.actionParam),!1}},(0,r.Z)(u,"translatedText",[c],Object.getOwnPropertyDescriptor(u,"translatedText"),u),u)))},70729:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(31691);const i=n.n(r)().extend({tagName:"div",classNames:["discourse-root"]})},94417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(47582),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"MDll+Ehk",block:'[[[1,[30,0,["tagRecord","id"]]]],[],false,[]]',moduleName:"discourse/components/discourse-tag-bound.hbs",isStrictMode:!1});var c,u,d;const p=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("tagRecord.id"),u=(0,a.default)("tagRecord.id"),d={tagName:"a",classNameBindings:[":discourse-tag","style","tagClass"],attributeBindings:["href"],tagClass:e=>"tag-"+e,href:e=>(0,o.default)("/tag/"+e)},(0,r.Z)(d,"tagClass",[c],Object.getOwnPropertyDescriptor(d,"tagClass"),d),(0,r.Z)(d,"href",[u],Object.getOwnPropertyDescriptor(d,"href"),d),d)))},83679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r,i,s,o=n(54001),a=n(72326),l=n(31691),c=n.n(l),u=n(6264),d=n(51372),p=n(33217),h=n(71466),m=n.n(h),g=n(78480),f=n(20229),b=n(62617),_=n(53909),y=n(38101),w=n(63374),v=n(12933),k=n(57555);const x=c().extend(_.default,w.default,y.default,(r=(0,k.observes)("enteredAt"),i=(0,k.observes)("mobileScrollDirection"),s={userFilters:(0,u.alias)("topic.userFilters"),classNameBindings:["multiSelect","topic.archetype","topic.is_warning","topic.category.read_restricted:read_restricted","topic.deleted:deleted-topic"],menuVisible:!0,SHORT_POST:1200,postStream:(0,u.alias)("topic.postStream"),archetype:(0,u.alias)("topic.archetype"),dockAt:0,_lastShowTopic:null,mobileScrollDirection:null,pauseHeaderTopicUpdate:!1,_enteredTopic(){this.enteredAt&&this.lastEnteredAt!==this.enteredAt&&(this._lastShowTopic=null,(0,d.schedule)("afterRender",this.scrolled),this.set("lastEnteredAt",this.enteredAt))},_highlightPost(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};((0,p.isBlank)(t.jump)||!1!==t.jump)&&(0,d.scheduleOnce)("afterRender",null,b.highlightPost,e)},_hideTopicInHeader(){this.appEvents.trigger("header:hide-topic"),this._lastShowTopic=!1},_showTopicInHeader(e){this.pauseHeaderTopicUpdate||(this.appEvents.trigger("header:show-topic",e),this._lastShowTopic=!0)},_updateTopic(e,t){if(null===e)return this._hideTopicInHeader(),void(t&&!this.pauseHeaderTopicUpdate&&(this.pauseHeaderTopicUpdate=!0,this._lastShowTopic=!0,(0,v.default)((()=>{this._lastShowTopic=!1,this.pauseHeaderTopicUpdate=!1}),t)));const n=window.pageYOffset||document.documentElement.scrollTop;this._lastShowTopic=this.shouldShowTopicInHeader(e,n),this._lastShowTopic?this._showTopicInHeader(e):this._hideTopicInHeader()},didInsertElement(){this._super(...arguments),this.bindScrolling(),window.addEventListener("resize",this.scrolled),m()(this.element).on("click.discourse-redirect",".cooked a, a.track-link",(e=>g.default.trackClick(e,(0,a.getOwner)(this)))),this.appEvents.on("discourse:focus-changed",this,"gotFocus"),this.appEvents.on("post:highlight",this,"_highlightPost"),this.appEvents.on("header:update-topic",this,"_updateTopic")},willDestroyElement(){this._super(...arguments),this.unbindScrolling(),window.removeEventListener("resize",this.scrolled),m()(this.element).off("click.discourse-redirect",".cooked a, a.track-link"),this.resetExamineDockCache(),this._hideTopicInHeader(),this.appEvents.off("discourse:focus-changed",this,"gotFocus"),this.appEvents.off("post:highlight",this,"_highlightPost"),this.appEvents.off("header:update-topic",this,"_updateTopic")},gotFocus(e){e&&this.scrolled()},resetExamineDockCache(){this.set("dockAt",0)},shouldShowTopicInHeader(e,t){return t>this.dockAt&&(!this.site.mobileView||"down"===this.mobileScrollDirection)},scrolled(){if(this.isDestroyed||this.isDestroying||"inDOM"!==this._state)return;const e=window.pageYOffset||document.documentElement.scrollTop;if(0===this.dockAt){const e=document.querySelector("#topic-title");e&&this.set("dockAt",e.getBoundingClientRect().top+window.scrollY)}this.set("hasScrolled",e>0);const t=this.shouldShowTopicInHeader(this.topic,e);t!==this._lastShowTopic&&(t?this._showTopicInHeader(this.topic):f.default.isJumpScheduled()||1===(this.topic.get("postStream.loadingNearPost")||1)&&this._hideTopicInHeader()),this.site.mobileView&&this.hasScrolled&&(0,d.throttle)(this,this.calculateDirection,e,300),this.appEvents.trigger("topic:scrolled",e)},toggleMobileHeaderTopic(){return this.appEvents.trigger("header:update-topic","down"===this.mobileScrollDirection?this.topic:null)}},(0,o.Z)(s,"_enteredTopic",[r],Object.getOwnPropertyDescriptor(s,"_enteredTopic"),s),(0,o.Z)(s,"scrolled",[k.bind],Object.getOwnPropertyDescriptor(s,"scrolled"),s),(0,o.Z)(s,"toggleMobileHeaderTopic",[i],Object.getOwnPropertyDescriptor(s,"toggleMobileHeaderTopic"),s),s))},93001:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a=n(54001),l=n(31691),c=n.n(l),u=n(17579),d=n(71466),p=n.n(d),h=n(81533),m=n(57555);const g=c().extend(h.default,(r=(0,m.on)("didInsertElement"),i=(0,m.on)("willDestroyElement"),s=(0,m.observes)("incomingCount"),o={classNames:["contents"],eyelineSelector:".topic-list-item",documentTitle:(0,u.inject)(),_monitorTrackingState(){this.stateChangeCallbackId=this.topicTrackingState.onStateChange((()=>this._updateTrackingTopics()))},_removeTrackingStateChangeMonitor(){this.stateChangeCallbackId&&this.topicTrackingState.offStateChange(this.stateChangeCallbackId)},_updateTrackingTopics(){this.topicTrackingState.updateTopics(this.model.topics)},_updateTitle(){this.documentTitle.updateContextCount(this.incomingCount)},actions:{loadMore(){var e=this;this.documentTitle.updateContextCount(0),this.model.loadMore().then((function(){let{moreTopicsUrl:t,newTopics:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n&&n.length&&e.bulkSelectHelper?.bulkSelectEnabled&&e.bulkSelectHelper.addTopics(n),t&&p()(window).height()>=p()(document).height()&&e.send("loadMore")}))}}},(0,a.Z)(o,"_monitorTrackingState",[r],Object.getOwnPropertyDescriptor(o,"_monitorTrackingState"),o),(0,a.Z)(o,"_removeTrackingStateChangeMonitor",[i],Object.getOwnPropertyDescriptor(o,"_removeTrackingStateChangeMonitor"),o),(0,a.Z)(o,"_updateTitle",[s],Object.getOwnPropertyDescriptor(o,"_updateTitle"),o),o))},18749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r,i,s,o,a,l,c=n(94664),u=n(32758),d=n(54001),p=n(82006),h=n(55071),m=n(17579),g=n(56900),f=n(37706),b=n(29082),_=n(82466),y=n(57755),w=n(96193),v=n(72853),k=n(87996),x=n(90311),T=n(53793),S=n(8620),C=n(31691);function P(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}const O=["categories_with_featured_topics","subcategories_with_featured_topics"],E={boxes_with_featured_topics:_.default,boxes:b.default,rows_with_featured_topics:w.default,rows:y.default},D={categories_and_latest_topics_created_date:g.default,categories_and_latest_topics:g.default,categories_and_top_topics:f.default,categories_boxes_with_topics:_.default,categories_boxes:b.default,categories_only:y.default,categories_with_featured_topics:w.default,subcategories_with_featured_topics:T.default};let I=(a=new WeakMap,l=new WeakMap,o=class extends p.default{constructor(){super(...arguments),P(this,l,{get:Z,set:void 0}),P(this,a,{get:j,set:void 0}),(0,c.Z)(this,"siteSettings",i,this),(0,c.Z)(this,"site",s,this)}get categoriesComponent(){return this.args.parentCategory?(0,u.Z)(this,a):(0,u.Z)(this,l)}get canLoadMore(){return this.site.lazy_load_categories&&this.args.loadMore}},(0,C.setComponentTemplate)((0,S.createTemplateFactory)({id:"0EbojIH5",block:'[[[1,"\\n    "],[8,[32,0],null,[["@name","@connectorTagName","@outletArgs"],["above-discovery-categories","div",[28,[32,1],null,[["categories","topics"],[[30,1],[30,2]]]]]],null],[1,"\\n"],[41,[30,0,["canLoadMore"]],[[[1,"      "],[8,[32,2],null,[["@selector","@action"],[".category:not(.muted-categories *)",[30,3]]],[["default"],[[[[1,"\\n        "],[8,[30,0,["categoriesComponent"]],null,[["@categories","@topics"],[[30,1],[30,2]]],null],[1,"\\n        "],[8,[32,3],null,[["@condition"],[[30,4]]],null],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[8,[30,0,["categoriesComponent"]],null,[["@categories","@topics"],[[30,1],[30,2]]],null],[1,"\\n"]],[]]],[1,"  "]],["@categories","@topics","@loadMore","@loadingMore"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/discovery/categories-display.js",scope:()=>[x.default,h.hash,k.default,v.default],isStrictMode:!0}),o),r=o,i=(0,d.Z)(r.prototype,"siteSettings",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.Z)(r.prototype,"site",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);function j(){const e=this.args.parentCategory.subcategory_list_style;return E[e]||(console.error("Unknown subcategory list style: "+e),y.default)}function Z(){let e=this.siteSettings.desktop_category_page_style;this.site.mobileView&&!O.includes(e)&&(e=O[0]);return D[e]||(console.error("Unknown category list style: "+e),y.default)}},38005:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(88981),c=n(56111),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"dW6FS8Vl",block:'[[[1,[28,[35,0],["navigation-filter"],null]],[1,"\\n\\n"],[10,"section"],[14,0,"navigation-container"],[12],[1,"\\n  "],[10,0],[14,0,"topic-query-filter"],[12],[1,"\\n    "],[10,0],[14,0,"topic-query-filter__input"],[12],[1,"\\n      "],[1,[28,[35,1],["filter"],[["class"],["topic-query-filter__icon"]]]],[1,"\\n      "],[8,[39,2],[[24,0,"topic-query-filter__filter-term"],[24,1,"queryStringInput"],[24,"autocomplete","off"]],[["@value","@enter","@type"],[[30,0,["newQueryString"]],[28,[37,3],[[30,0],[30,1],[30,0,["newQueryString"]]],null],"text"]],null],[1,"\\n"],[1,"      "],[8,[39,4],null,[["@name","@outletArgs"],["below-filter-input",[28,[37,5],null,[["updateQueryString","newQueryString"],[[30,0,["updateQueryString"]],[30,0,["newQueryString"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["newQueryString"]],[[[1,"      "],[10,0],[14,0,"topic-query-filter__controls"],[12],[1,"\\n        "],[8,[39,7],null,[["@icon","@action","@disabled"],["times",[30,0,["clearInput"]],[52,[51,[30,0,["newQueryString"]]],"true"]]],null],[1,"\\n\\n"],[41,[30,0,["discoveryFilter","q"]],[[[1,"          "],[8,[39,7],[[16,0,[30,0,["copyClass"]]]],[["@icon","@action","@disabled"],[[30,0,["copyIcon"]],[30,0,["copyQueryString"]],[52,[51,[30,0,["newQueryString"]]],"true"]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@updateTopicsListQueryParams"],false,["body-class","d-icon","input","action","plugin-outlet","hash","if","d-button","unless"]]',moduleName:"discourse/components/discovery/filter-navigation.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"copyIcon",h,this),(0,r.Z)(this,"copyClass",m,this),(0,r.Z)(this,"newQueryString",g,this)}updateQueryString(e){this.newQueryString=e}clearInput(){this.newQueryString="",this.args.updateTopicsListQueryParams(this.newQueryString)}copyQueryString(){this.copyIcon="check",this.copyClass="btn-default ok",navigator.clipboard.writeText(window.location),(0,c.default)(this._restoreButton,3e3)}_restoreButton(){this.isDestroying||this.isDestroyed||(this.copyIcon="link",this.copyClass="btn-default")}},h=(0,i.Z)(p.prototype,"copyIcon",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"link"}}),m=(0,i.Z)(p.prototype,"copyClass",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"btn-default"}}),g=(0,i.Z)(p.prototype,"newQueryString",[l.resettableTracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.queryString}}),(0,i.Z)(p.prototype,"updateQueryString",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"updateQueryString"),p.prototype),(0,i.Z)(p.prototype,"clearInput",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"clearInput"),p.prototype),(0,i.Z)(p.prototype,"copyQueryString",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"copyQueryString"),p.prototype),(0,i.Z)(p.prototype,"_restoreButton",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"_restoreButton"),p.prototype),p);(0,f.setComponentTemplate)(d,b)},18988:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"1ZDdUQzU",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[8,[39,0],null,null,null],[1,"\\n"],[41,[30,1,["category"]],[[[1,"    "],[8,[39,2],null,[["@category","@readOnly"],[[30,1,["category"]],[30,2]]],null],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-controls-above","div",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"list-controls"],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["discovery-navigation-bar-above","div",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"container"],[12],[1,"\\n    "],[18,3,null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["discovery-above","div",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n\\n"],[10,0],[14,0,"container list-container"],[12],[1,"\\n  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"full-width"],[12],[1,"\\n      "],[10,0],[14,1,"header-list-area"],[12],[1,"\\n        "],[18,4,null],[1,"\\n        "],[8,[39,3],null,[["@name","@outletArgs"],["header-list-container-bottom",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"full-width"],[12],[1,"\\n      "],[8,[39,3],null,[["@name","@outletArgs"],["before-list-area",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n      "],[10,0],[14,1,"list-area"],[12],[1,"\\n        "],[8,[39,3],null,[["@name","@outletArgs","@defaultGlimmer"],["discovery-list-area",[28,[37,4],null,[["category","tag","model"],[[30,1,["category"]],[30,1,["tag"]],[30,1]]]],true]],[["default"],[[[[1,"\\n          "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["discovery-list-container-top","span",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n          "],[18,5,null],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["discovery-below","div",[28,[37,4],null,[["category","tag"],[[30,1,["category"]],[30,1,["tag"]]]]]]],null],[1,"\\n"],[13]],["@model","@createTopicDisabled","&navigation","&header","&list"],false,["discourse-banner","if","category-read-only-banner","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/discovery/layout.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},11960:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(94191),c=n(79593),u=n(79461),d=n(20229),p=n(56746);const h=(0,n(8620).createTemplateFactory)({id:"QUMZu6Jc",block:'[[[8,[39,0],null,[["@category","@tags"],[[30,1],[28,[37,1],[[30,2,["id"]]],null]]],null],[1,"\\n\\n"],[41,[30,1],[[[1,"  "],[8,[39,3],null,[["@name","@outletArgs"],["above-category-heading",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n\\n  "],[10,"section"],[14,0,"category-heading"],[12],[1,"\\n"],[41,[30,1,["uploaded_logo","url"]],[[[1,"      "],[8,[39,5],null,[["@category"],[[30,1]]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1,"        "],[10,2],[12],[1,[28,[35,6],[[30,1,["description"]]],[["htmlSafe"],["true"]]]],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["category-heading","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,[28,[35,7],[[30,0,["bodyClass"]]],null]],[1,"\\n\\n"],[10,"section"],[15,0,[28,[37,8],["navigation-container",[52,[30,1],"category-navigation"]],null]],[12],[1,"\\n  "],[8,[39,9],null,[["@category","@tag","@additionalTags","@filterMode","@noSubcategories","@canCreateTopic","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@hasDraft","@editCategory","@showCategoryAdmin","@createCategory","@reorderCategories","@canBulkSelect","@bulkSelectHelper","@skipCategoriesNavItem","@toggleInfo","@tagNotification"],[[30,1],[30,2],[30,3],[30,0,["filterMode"]],[30,4],[30,0,["canCreateTopic"]],[30,5],[30,6],[30,7],[30,0,["currentUser","has_topic_draft"]],[30,0,["editCategory"]],[30,8],[30,0,["createCategory"]],[30,0,["reorderCategories"]],[30,9],[30,10],[30,0,["skipCategoriesNavItem"]],[30,11],[30,12]]],null],[1,"\\n\\n"],[41,[30,1],[[[1,"    "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["category-navigation","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1,"    "],[8,[39,3],null,[["@name","@connectorTagName","@outletArgs"],["tag-navigation","div",[28,[37,4],null,[["category","tag"],[[30,1],[30,2]]]]]],null],[1,"\\n"]],[]],null],[13]],["@category","@tag","@additionalTags","@noSubcategories","@canCreateTopicOnTag","@createTopic","@createTopicDisabled","@showCategoryAdmin","@canBulkSelect","@bulkSelectHelper","@toggleTagInfo","@tagNotification"],false,["add-category-tag-classes","array","if","plugin-outlet","hash","category-logo","dir-span","body-class","concat-class","d-navigation"]]',moduleName:"discourse/components/discovery/navigation.hbs",isStrictMode:!1});var m,g,f,b,_=n(31691);let y=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",g,this),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"modal",b,this)}get filterMode(){return(0,c.calculateFilterMode)({category:this.args.category,filterType:this.args.filterType,noSubcategories:this.args.noSubcategories})}get skipCategoriesNavItem(){return this.router.currentRoute.queryParams.f===u.TRACKED_QUERY_PARAM_VALUE}get canCreateTopic(){return this.currentUser?.can_create_topic}get bodyClass(){return this.args.tag?["tags-page",this.args.additionalTags?"tags-intersection":null].filter(Boolean).join(" "):"categories"===this.filterMode?"navigation-categories":this.args.category?"navigation-category":"navigation-topics"}editCategory(){d.default.routeTo(`/c/${p.default.slugFor(this.args.category)}/edit`)}createCategory(){this.router.transitionTo("newCategory")}reorderCategories(){this.modal.show(l.default)}},g=(0,i.Z)(m.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"editCategory",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"editCategory"),m.prototype),(0,i.Z)(m.prototype,"createCategory",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"createCategory"),m.prototype),(0,i.Z)(m.prototype,"reorderCategories",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"reorderCategories"),m.prototype),m);(0,_.setComponentTemplate)(h,y)},47931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(42692),c=n(79593),u=n(20229),d=n(92635),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"RHd66uA4",block:'[[[41,[30,1,["canLoadMore"]],[[[1,"  "],[1,[34,1]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["redirectedReason"]],[[[1,"  "],[10,0],[14,0,"alert alert-info"],[12],[1,[30,0,["redirectedReason"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,2],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["top",[30,2,["selected"]],[30,1],[30,3],[30,4],[30,0,["resetNew"]],[30,0,["dismissRead"]]]],null],[1,"\\n\\n"],[41,[30,1,["sharedDrafts"]],[[[1,"  "],[8,[39,3],[[24,0,"shared-drafts"]],[["@listTitle","@top","@hideCategory","@category","@topics","@discoveryList"],["shared_drafts.title",[30,0,["top"]],"true",[30,5],[30,1,["sharedDrafts"]],true]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,4],null,[["@model","@incomingCount","@bulkSelectHelper"],[[30,1],[30,0,["topicTrackingState","incomingCount"]],[30,2]]],[["default"],[[[[1,"\\n"],[41,[30,0,["top"]],[[[1,"    "],[10,0],[14,0,"top-lists"],[12],[1,"\\n      "],[8,[39,5],null,[["@period","@action","@fullDay"],[[30,6],[30,7],false]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicTrackingState","hasIncoming"]],[[[1,"      "],[10,0],[15,0,[29,["show-more ",[52,[30,0,["hasTopics"]],"has-topics"]]]],[12],[1,"\\n        "],[11,3],[24,"tabindex","0"],[24,6,""],[24,0,"alert alert-info clickable"],[4,[38,6],["click",[30,0,["showInserted"]]],null],[12],[1,"\\n          "],[8,[39,7],null,[["@key","@suffix","@count"],["topic_count_",[30,0,["topicTrackingState","filter"]],[30,0,["topicTrackingState","incomingCount"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["renderNewListHeaderControls"]],[[[1,"    "],[8,[39,8],null,[["@current","@newRepliesCount","@newTopicsCount","@changeNewListSubset"],[[30,1,["params","subset"]],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]],[30,8]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["before-topic-list","div",[28,[37,10],null,[["category","tag"],[[30,5],[30,9]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["hasTopics"]],[[[1,"    "],[8,[39,3],null,[["@highlightLastVisited","@top","@showTopicPostBadges","@showPosters","@canBulkSelect","@bulkSelectHelper","@changeSort","@hideCategory","@order","@ascending","@expandGloballyPinned","@expandAllPinned","@category","@topics","@discoveryList","@focusLastVisitedTopic","@showTopicsAndRepliesToggle","@newListSubset","@changeNewListSubset","@newRepliesCount","@newTopicsCount"],[true,[30,0,["top"]],[30,0,["showTopicPostBadges"]],true,[30,10],[30,2],[30,11],[30,1,["hideCategory"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,5],[30,1,["topics"]],true,true,[30,0,["showTopicsAndRepliesToggle"]],[30,1,["params","subset"]],[30,8],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[10,1],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-topic-list","div",[28,[37,10],null,[["category","tag"],[[30,5],[30,9]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[10,"footer"],[14,0,"topic-list-bottom"],[12],[1,"\\n  "],[8,[39,11],null,[["@condition"],[[30,1,["loadingMore"]]]],null],[1,"\\n"],[41,[30,0,["allLoaded"]],[[[1,"    "],[8,[39,9],null,[["@name","@outletArgs"],["topic-list-bottom",[28,[37,10],null,[["category","tag","allLoaded","model"],[[30,5],[30,9],[30,0,["allLoaded"]],[30,1]]]]]],[["default"],[[[[1,"\\n      "],[8,[39,2],null,[["@position","@selectedTopics","@model","@showResetNew","@showDismissRead","@resetNew","@dismissRead"],["bottom",[30,2,["selected"]],[30,1],[30,3],[30,4],[30,0,["resetNew"]],[30,0,["dismissRead"]]]],null],[1,"\\n\\n      "],[8,[39,12],null,[["@education","@message"],[[30,0,["footerEducation"]],[30,0,["footerMessage"]]]],[["default"],[[[[1,"\\n"],[41,[30,9],[[[1,"          "],[1,[28,[35,13],[[28,[37,14],["topic.browse_all_tags_or_latest"],[["basePath"],[[28,[37,15],null,null]]]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["latest"]],[[[41,[30,5,["canCreateTopic"]],[[[1,"            "],[8,[39,16],null,[["@action","@text"],[[28,[37,17],[[30,0,["composer","openNewTopic"]],[28,[37,10],null,[["category","preferDraft"],[[30,5],true]]]],null],"topic.suggest_create_topic"]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["top"]],[[[1,"          "],[1,[28,[35,13],[[28,[37,14],["topic.browse_all_categories_latest_or_top"],[["basePath"],[[28,[37,15],null,null]]]]],null]],[1,"\\n          "],[8,[39,18],null,[["@period","@action"],[[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,13],[[28,[37,14],["topic.browse_all_categories_latest"],[["basePath"],[[28,[37,15],null,null]]]]],null]],[1,"\\n        "]],[]]]],[]]]],[]]],[1,"      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[]],null],[13]],["@model","@bulkSelectHelper","@showResetNew","@showDismissRead","@category","@period","@changePeriod","@changeNewListSubset","@tag","@canBulkSelect","@changeSort"],false,["if","hide-application-footer","topic-dismiss-buttons","topic-list","discovery-topics-list","period-chooser","on","count-i18n","new-list-header-controls-wrapper","plugin-outlet","hash","conditional-loading-spinner","footer-message","html-safe","i18n","base-path","discourse-linked-text","fn","top-period-buttons"]]',moduleName:"discourse/components/discovery/topics.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v=n(31691);let k=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",g,this),(0,r.Z)(this,"composer",f,this),(0,r.Z)(this,"modal",b,this),(0,r.Z)(this,"currentUser",_,this),(0,r.Z)(this,"topicTrackingState",y,this),(0,r.Z)(this,"site",w,this)}get redirectedReason(){return this.currentUser?.user_option.redirected_to_top?.reason}get order(){return this.args.model.get("params.order")}get ascending(){return"true"===this.args.model.get("params.ascending")}get hasTopics(){return this.args.model.get("topics.length")>0}get allLoaded(){return!this.args.model.get("more_topics_url")}get latest(){return"latest"===(0,c.filterTypeForMode)(this.args.model.filter)}get top(){return"top"===(0,c.filterTypeForMode)(this.args.model.filter)}get new(){return"new"===(0,c.filterTypeForMode)(this.args.model.filter)}async callResetNew(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter);let i=this.args.bulkSelectHelper.selected.map((e=>e.id));const s=await d.default.resetNew(this.args.category,!this.args.noSubcategories,{tracked:r,tag:this.args.tag,topicIds:i,dismissPosts:e,dismissTopics:t,untrack:n});s.topic_ids&&this.topicTrackingState.removeTopics(s.topic_ids),this.router.refresh()}resetNew(){if(!this.currentUser.new_new_view_enabled)return this.callResetNew();this.modal.show(l.default,{model:{selectedTopics:this.args.bulkSelectHelper.selected,subset:this.args.model.listParams?.subset,dismissCallback:e=>{let{dismissPosts:t,dismissTopics:n,untrack:r}=e;this.callResetNew(t,n,r)}}})}showInserted(e){e?.preventDefault();const t=this.topicTrackingState;this.args.model.loadBefore(t.get("newIncoming"),!0),t.resetTracking()}get showTopicsAndRepliesToggle(){return this.new&&this.currentUser?.new_new_view_enabled}get newRepliesCount(){return this.topicTrackingState.get("messageCount"),this.currentUser?.new_new_view_enabled?this.topicTrackingState.countUnread({categoryId:this.args.category?.id,noSubcategories:this.args.noSubcategories,tagId:this.args.tag?.id}):0}get newTopicsCount(){return this.topicTrackingState.get("messageCount"),this.currentUser?.new_new_view_enabled?this.topicTrackingState.countNew({categoryId:this.args.category?.id,noSubcategories:this.args.noSubcategories,tagId:this.args.tag?.id}):0}get showTopicPostBadges(){return!this.new||this.currentUser?.new_new_view_enabled}get footerMessage(){const e=this.args.model.get("topics.length");if(!this.allLoaded)return;const{category:t,tag:n}=this.args;if(t)return p.default.t("topics.bottom.category",{category:t.get("name")});if(n)return p.default.t("topics.bottom.tag",{tag:n.id});{const t=(this.args.model.get("filter")||"").split("/");return 0===e?p.default.t("topics.none."+t[0],{category:t[1]}):p.default.t("topics.bottom."+t[0],{category:t[1]})}}get footerEducation(){const e=this.args.model.get("topics.length");if(!this.allLoaded||e>0||!this.currentUser)return;const t=(this.args.model.get("filter")||"").split("/");let n=t[t.length-1];return"new"===n||"unread"===n?("new"===n&&this.currentUser.new_new_view_enabled&&(n="new_new"),p.default.t("topics.none.educate."+n,{userPrefsUrl:(0,u.userPath)(`${this.currentUser.get("username_lower")}/preferences/tracking`)})):void 0}get renderNewListHeaderControls(){return this.site.mobileView&&this.showTopicsAndRepliesToggle&&!this.args.bulkSelectEnabled}get expandGloballyPinned(){return!this.expandAllPinned}get expandAllPinned(){return this.args.tag||this.args.category}dismissRead(e){const t=e?"topics":"posts";this.args.bulkSelectHelper.dismissRead(t,{categoryId:this.args.category?.id,tagName:this.args.tag?.id,includeSubcategories:this.args.noSubcategories})}},g=(0,i.Z)(m.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"composer",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(m.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.Z)(m.prototype,"topicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(m.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"resetNew",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"resetNew"),m.prototype),(0,i.Z)(m.prototype,"showInserted",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"showInserted"),m.prototype),(0,i.Z)(m.prototype,"dismissRead",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"dismissRead"),m.prototype),m);(0,v.setComponentTemplate)(h,k)},41927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(54001),i=n(48163),s=n(6264),o=n(51372),a=n(33217),l=n(93596),c=n(6659),u=n(56746),d=n(47582),p=n(12933),h=n(57555);const m=(0,n(8620).createTemplateFactory)({id:"GSIS/xih",block:'[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1,"  "],[10,2],[14,0,"warning"],[12],[1,"\\n    "],[1,[28,[35,1],["exclamation-triangle"],null]],[1,"\\n    "],[1,[28,[35,2],[[28,[37,3],["category.uncategorized_general_warning"],[["settingLink","customizeLink"],[[30,0,["uncategorizedSiteSettingLink"]],[30,0,["customizeTextContentLink"]]]]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"form"],[12],[1,"\\n  "],[8,[39,4],null,[["@category","@tagName"],[[30,0,["category"]],""]],null],[1,"\\n\\n"],[41,[30,0,["canSelectParentCategory"]],[[[1,"    "],[10,"section"],[14,0,"field parent-category"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,3],["category.parent"],null]],[13],[1,"\\n      "],[8,[39,5],null,[["@value","@categories","@allowSubCategories","@allowRestrictedCategories","@onChange","@options"],[[30,0,["category","parent_category_id"]],[30,0,["parentCategories"]],true,true,[28,[37,6],[[30,0],[28,[37,7],[[30,0,["category","parent_category_id"]]],null]],null],[28,[37,8],null,[["allowUncategorized","excludeCategoryId","none"],[false,[30,0,["category","id"]],true]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["subCategories"]],[[[1,"    "],[10,"section"],[14,0,"field subcategories"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,3],["categories.subcategories"],null]],[13],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["subCategories"]]],null]],null],null,[[[1,"        "],[1,[28,[35,11],[[30,1]],[["hideParent"],["true"]]]],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1,"    "],[10,"section"],[14,0,"field description"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,3],["category.description"],null]],[13],[1,"\\n"],[41,[30,0,["category","description"]],[[[1,"        "],[1,[28,[35,2],[[30,0,["category","description"]]],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,3],["category.no_description"],null]],[1,"\\n"]],[]]],[41,[30,0,["category","topic_url"]],[[[1,"        "],[10,"br"],[12],[13],[1,"\\n        "],[8,[39,12],[[24,0,"btn-default edit-category-description"]],[["@action","@icon","@label"],[[30,0,["showCategoryTopic"]],"pencil-alt","category.change_in_category_topic"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field category-colors"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,3],["category.badge_colors"],null]],[13],[1,"\\n    "],[10,0],[14,0,"category-color-editor"],[12],[1,"\\n      "],[1,[28,[35,2],[[30,0,["categoryBadgePreview"]]],null]],[1,"\\n\\n      "],[10,"section"],[14,0,"field"],[12],[1,"\\n        "],[10,1],[14,0,"color-title"],[12],[1,[28,[35,3],["category.background_color"],null]],[1,":"],[13],[1,"\\n        "],[10,0],[14,0,"colorpicker-wrapper"],[12],[1,"\\n          "],[8,[39,13],null,[["@hexValue","@valid"],[[30,0,["category","color"]],[30,0,["category","colorValid"]]]],null],[1,"\\n          "],[8,[39,14],null,[["@colors","@usedColors","@value"],[[30,0,["backgroundColors"]],[30,0,["usedBackgroundColors"]],[30,0,["category","color"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"section"],[14,0,"field"],[12],[1,"\\n        "],[10,1],[14,0,"color-title"],[12],[1,[28,[35,3],["category.foreground_color"],null]],[1,":"],[13],[1,"\\n        "],[10,0],[14,0,"colorpicker-wrapper edit-text-color"],[12],[1,"\\n          "],[8,[39,13],null,[["@hexValue"],[[30,0,["category","text_color"]]]],null],[1,"\\n          "],[8,[39,14],null,[["@colors","@value","@id"],[[30,0,["foregroundColors"]],[30,0,["category","text_color"]],"edit-text-color"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["s"],false,["if","d-icon","html-safe","i18n","category-name-fields","category-chooser","action","mut","hash","each","-track-array","category-badge","d-button","color-input","color-picker"]]',moduleName:"discourse/components/edit-category-general.hbs",isStrictMode:!1});var g,f,b,_,y;const w=(0,n(31691).setComponentTemplate)(m,(0,l.buildCategoryPanel)("general",(g=(0,h.default)("category.id","category.color"),f=(0,h.default)("category.parent_category_id","category.name","category.color","category.text_color"),b=(0,h.default)("category.id"),_=(0,h.default)("category.isUncategorizedCategory","category.id","category.topic_url"),y={init(){this._super(...arguments),this.foregroundColors=["FFFFFF","000000"]},didInsertElement(){this._super(...arguments),this._focusCategoryName()},willDestroyElement(){this._super(...arguments),this._laterFocus&&(0,o.cancel)(this._laterFocus)},canSelectParentCategory:(0,s.not)("category.isUncategorizedCategory"),uncategorizedSiteSettingLink:(0,d.default)("/admin/site_settings/category/all_results?filter=allow_uncategorized_topics"),customizeTextContentLink:(0,d.default)("/admin/customize/site_texts?q=uncategorized"),backgroundColors(){const e=this.site.get("categoriesList");return this.siteSettings.category_colors.split("|").map((function(e){return e.toUpperCase()})).concat(e.map((function(e){return e.color.toUpperCase()}))).uniq()},usedBackgroundColors(e,t){return this.site.get("categoriesList").map((function(n){return e&&t.toUpperCase()===n.color.toUpperCase()?null:n.color.toUpperCase()}),this).compact()},parentCategories(){return this.site.get("categoriesList").filter((e=>e.level+1<this.siteSettings.max_category_nesting))},categoryBadgePreview(e,t,n,r){const i=this.category,s=u.default.create({name:t,color:n,id:i.id,text_color:r,parent_category_id:parseInt(e,10),read_restricted:i.get("read_restricted")});return(0,c.categoryBadgeHTML)(s,{link:!1,previewColor:!0})},subCategories:e=>(0,a.isEmpty)(e)?null:u.default.list().filterBy("parent_category_id",e),showDescription:(e,t,n)=>!e&&t&&n,showCategoryTopic(){return window.open(this.get("category.topic_url"),"_blank").focus(),!1},_focusCategoryName(){this._laterFocus=(0,p.default)((()=>{const e=this.element.querySelector(".category-name");e&&e.focus()}),25)}},(0,r.Z)(y,"backgroundColors",[h.default],Object.getOwnPropertyDescriptor(y,"backgroundColors"),y),(0,r.Z)(y,"usedBackgroundColors",[g],Object.getOwnPropertyDescriptor(y,"usedBackgroundColors"),y),(0,r.Z)(y,"parentCategories",[h.default],Object.getOwnPropertyDescriptor(y,"parentCategories"),y),(0,r.Z)(y,"categoryBadgePreview",[f],Object.getOwnPropertyDescriptor(y,"categoryBadgePreview"),y),(0,r.Z)(y,"subCategories",[b],Object.getOwnPropertyDescriptor(y,"subCategories"),y),(0,r.Z)(y,"showDescription",[_],Object.getOwnPropertyDescriptor(y,"showDescription"),y),(0,r.Z)(y,"showCategoryTopic",[i.action],Object.getOwnPropertyDescriptor(y,"showCategoryTopic"),y),y)))},24891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(48163),s=n.n(i),o=n(93596),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"fflhgRgt",block:'[[[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.logo"],null]],[13],[1,"\\n  "],[8,[39,1],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageUrl"]],[28,[37,2],[[30,0],"logoUploadDone"],null],[28,[37,2],[[30,0],"logoUploadDeleted"],null],"category_logo","category-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-logo"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.logo_dark"],null]],[13],[1,"\\n  "],[8,[39,1],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["logoImageDarkUrl"]],[28,[37,2],[[30,0],"logoDarkUploadDone"],null],[28,[37,2],[[30,0],"logoDarkUploadDeleted"],null],"category_logo_dark","category-dark-logo-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.background_image"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundImageUrl"]],[28,[37,2],[[30,0],"backgroundUploadDone"],null],[28,[37,2],[[30,0],"backgroundUploadDeleted"],null],"category_background","category-background-uploader"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field category-background-image"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.background_image_dark"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["backgroundDarkImageUrl"]],[28,[37,2],[[30,0],"backgroundDarkUploadDone"],null],[28,[37,2],[[30,0],"backgroundDarkUploadDeleted"],null],"category_background_dark","category-dark-background-uploader"]],null],[1,"\\n"],[13]],[],false,["i18n","uppy-image-uploader","action"]]',moduleName:"discourse/components/edit-category-images.hbs",isStrictMode:!1});var c,u,d,p,h;const m=(0,n(31691).setComponentTemplate)(l,(0,o.buildCategoryPanel)("images").extend((c=(0,a.default)("category.uploaded_background.url"),u=(0,a.default)("category.uploaded_background_dark.url"),d=(0,a.default)("category.uploaded_logo.url"),p=(0,a.default)("category.uploaded_logo_dark.url"),h={backgroundImageUrl:e=>e||"",backgroundDarkImageUrl:e=>e||"",logoImageUrl:e=>e||"",logoImageDarkUrl:e=>e||"",actions:{logoUploadDone(e){this._setFromUpload("category.uploaded_logo",e)},logoUploadDeleted(){this._deleteUpload("category.uploaded_logo")},logoDarkUploadDone(e){this._setFromUpload("category.uploaded_logo_dark",e)},logoDarkUploadDeleted(){this._deleteUpload("category.uploaded_logo_dark")},backgroundUploadDone(e){this._setFromUpload("category.uploaded_background",e)},backgroundUploadDeleted(){this._deleteUpload("category.uploaded_background")},backgroundDarkUploadDone(e){this._setFromUpload("category.uploaded_background_dark",e)},backgroundDarkUploadDeleted(){this._deleteUpload("category.uploaded_background_dark")}},_deleteUpload(e){this.set(e,s().create({id:null,url:null}))},_setFromUpload(e,t){this.set(e,s().create({url:t.url,id:t.id}))}},(0,r.Z)(h,"backgroundImageUrl",[c],Object.getOwnPropertyDescriptor(h,"backgroundImageUrl"),h),(0,r.Z)(h,"backgroundDarkImageUrl",[u],Object.getOwnPropertyDescriptor(h,"backgroundDarkImageUrl"),h),(0,r.Z)(h,"logoImageUrl",[d],Object.getOwnPropertyDescriptor(h,"logoImageUrl"),h),(0,r.Z)(h,"logoImageDarkUrl",[p],Object.getOwnPropertyDescriptor(h,"logoImageDarkUrl"),h),h)))},93596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildCategoryPanel:()=>c,default:()=>l});var r=n(31691),i=n.n(r),s=n(6264);const o=(0,n(8620).createTemplateFactory)({id:"j67r9u89",block:'[[[46,[30,0,["customComponent"]],null,[["tab","selectedTab","category"],[[30,0,["tab"]],[30,0,["selectedTab"]],[30,0,["category"]]]],null]],[],false,["component"]]',moduleName:"discourse/components/edit-category-panel.hbs",isStrictMode:!1}),a=i().extend({}),l=(0,r.setComponentTemplate)(o,a);function c(e,t){return a.extend({activeTab:(0,s.equal)("selectedTab",e),classNameBindings:[":edit-category-tab","activeTab::hide",`:edit-category-tab-${e}`]},t||{})}},3136:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(54001),i=n(6264),s=n(93596),o=n(12506),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"mPtc5+WY",block:'[[[10,"section"],[14,0,"field"],[12],[1,"\\n"],[41,[30,0,["category","is_special"]],[[[41,[30,0,["category","isUncategorizedCategory"]],[[[1,"      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,1],["category.uncategorized_security_warning"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,1],["category.special_warning"],null]],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[51,[30,0,["category","is_special"]]],[[[1,"    "],[10,0],[14,0,"category-permissions-table"],[12],[1,"\\n      "],[10,0],[14,0,"permission-row row-header"],[12],[1,"\\n        "],[10,1],[14,0,"group-name"],[12],[1,[28,[35,1],["category.permissions.group"],null]],[13],[1,"\\n        "],[10,1],[14,0,"options"],[12],[1,"\\n          "],[10,1],[14,0,"cell"],[12],[1,[28,[35,1],["category.permissions.see"],null]],[13],[1,"\\n          "],[10,1],[14,0,"cell"],[12],[1,[28,[35,1],["category.permissions.reply"],null]],[13],[1,"\\n          "],[10,1],[14,0,"cell"],[12],[1,[28,[35,1],["category.permissions.create"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["category","permissions"]]],null]],null],null,[[[1,"        "],[8,[39,5],null,[["@group_name","@type","@category","@everyonePermission"],[[30,1,["group_name"]],[30,1,["permission_type"]],[30,0,["category"]],[30,0,["everyonePermission"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[51,[30,0,["category","permissions"]]],[[[1,"        "],[10,0],[14,0,"permission-row row-empty"],[12],[1,"\\n          "],[1,[28,[35,1],["category.permissions.no_groups_selected"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","availableGroups"]],[[[1,"        "],[10,0],[14,0,"add-group"],[12],[1,"\\n          "],[10,1],[14,0,"group-name"],[12],[1,"\\n            "],[8,[39,6],[[24,0,"available-groups"]],[["@content","@onChange","@value","@valueProperty","@nameProperty","@options"],[[30,0,["category","availableGroups"]],[28,[37,7],[[30,0],"onSelectGroup"],null],null,null,null,[28,[37,8],null,[["none"],["category.security_add_group"]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["everyoneGrantedFull"]],[[[1,"      "],[10,2],[14,0,"warning"],[12],[1,[28,[35,1],["category.permissions.everyone_has_access"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[8,[39,9],null,[["@name","@outletArgs"],["category-custom-security",[28,[37,8],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],["p"],false,["if","i18n","unless","each","-track-array","category-permission-row","combo-box","action","hash","plugin-outlet"]]',moduleName:"discourse/components/edit-category-security.hbs",isStrictMode:!1});var c,u,d,p;const h=(0,n(31691).setComponentTemplate)(l,(0,s.buildCategoryPanel)("security",(c=(0,a.default)("category.permissions.@each.permission_type"),u=(0,a.default)("category.permissions.@each.permission_type"),d=(0,a.default)("everyonePermission"),p={selectedGroup:null,noGroupSelected:(0,i.not)("selectedGroup"),everyonePermission:e=>e.findBy("group_name","everyone"),everyoneGrantedFull(){return this.everyonePermission&&this.everyonePermission.permission_type===o.default.FULL},minimumPermission:e=>e?e.permission_type:o.default.READONLY,actions:{onSelectGroup(e){this.category.addPermission({group_name:e,permission_type:this.minimumPermission})}}},(0,r.Z)(p,"everyonePermission",[c],Object.getOwnPropertyDescriptor(p,"everyonePermission"),p),(0,r.Z)(p,"everyoneGrantedFull",[u],Object.getOwnPropertyDescriptor(p,"everyoneGrantedFull"),p),(0,r.Z)(p,"minimumPermission",[d],Object.getOwnPropertyDescriptor(p,"minimumPermission"),p),p)))},10374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addCategorySortCriteria:()=>_,default:()=>y});var r=n(54001),i=n(48163),s=n(6264),o=n(93596),a=n(63319),l=n(24307),c=n(5751),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"cf8s6DLD",block:'[[[10,"section"],[12],[1,"\\n"],[41,[30,0,["showPositionInput"]],[[[1,"    "],[10,"section"],[14,0,"field position-fields"],[12],[1,"\\n      "],[10,"label"],[14,"for","category-position"],[12],[1,"\\n        "],[1,[28,[35,1],["category.position"],null]],[1,"\\n      "],[13],[1,"\\n      "],[11,"input"],[16,2,[30,0,["category","position"]]],[24,"min","0"],[24,1,"category-position"],[24,0,"position-input"],[24,4,"number"],[4,[38,2],["input",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","position"]]],null]],[["value"],["target.value"]]]],null],[12],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["showPositionInput"]]],[[[1,"    "],[10,"section"],[14,0,"field position-disabled"],[12],[1,"\\n      "],[1,[28,[35,6],[[28,[37,1],["category.position_disabled"],[["url"],[[28,[37,7],["/admin/site_settings/category/all_results?filter=fixed_category_positions"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field num-featured-topics"],[12],[1,"\\n    "],[10,"label"],[14,"for","category-number-featured-topics"],[12],[1,"\\n"],[41,[30,0,["category","parent_category_id"]],[[[1,"        "],[1,[28,[35,1],["category.subcategory_num_featured_topics"],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,1],["category.num_featured_topics"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[11,"input"],[16,2,[30,0,["category","num_featured_topics"]]],[24,"min","1"],[24,1,"category-number-featured-topics"],[24,4,"number"],[4,[38,2],["input",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","num_featured_topics"]]],null]],[["value"],["target.value"]]]],null],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field search-priority"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.search_priority.label"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,8],null,[["@valueProperty","@id","@content","@value","@onChange","@options"],["value","category-search-priority",[30,0,["searchPrioritiesOptions"]],[30,0,["category","search_priority"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","search_priority"]]],null]],null],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_badges"]],[[[1,"    "],[10,"section"],[14,0,"field allow-badges"],[12],[1,"\\n      "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_badges"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.allow_badges_label"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1,"    "],[10,"section"],[14,0,"field topic-featured-link-allowed"],[12],[1,"\\n      "],[10,0],[14,0,"allowed-topic-featured-link-category"],[12],[1,"\\n        "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n          "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","topic_featured_link_allowed"]]]],null],[1,"\\n          "],[1,[28,[35,1],["category.topic_featured_link_allowed"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field navigate-to-first-post-after-read"],[12],[1,"\\n    "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","navigate_to_first_post_after_read"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.navigate_to_first_post_after_read"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field all-topics-wiki"],[12],[1,"\\n    "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","all_topics_wiki"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.all_topics_wiki"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field allow-unlimited-owner-edits-on-first-post"],[12],[1,"\\n    "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","allow_unlimited_owner_edits_on_first_post"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.allow_unlimited_owner_edits_on_first_post"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,1],["category.settings_sections.moderation"],null]],[13],[1,"\\n"],[41,[30,0,["siteSettings","enable_category_group_moderation"]],[[[1,"    "],[10,"section"],[14,0,"field reviewable-by-group"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["category.reviewable_by_group"],null]],[13],[1,"\\n      "],[8,[39,11],null,[["@groupFinder","@single","@groupNames","@placeholderKey"],[[30,0,["groupFinder"]],"true",[30,0,["category","reviewable_by_group_name"]],"category.review_group_name"]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field require-topic-approval"],[12],[1,"\\n    "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","category_setting","require_topic_approval"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.require_topic_approval"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field require-reply-approval"],[12],[1,"\\n    "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n      "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","category_setting","require_reply_approval"]]]],null],[1,"\\n      "],[1,[28,[35,1],["category.require_reply_approval"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-slow-mode"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","category-default-slow-mode"],[12],[1,"\\n        "],[1,[28,[35,1],["category.default_slow_mode"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"category-default-slow-mode-seconds"],[12],[1,"\\n        "],[8,[39,12],null,[["@id","@durationMinutes","@onChange"],["category-default-slow-mode",[30,0,["category","defaultSlowModeMinutes"]],[28,[37,3],[[30,0],"onDefaultSlowModeDurationChange"],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field auto-close"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","topic-auto-close"],[12],[1,"\\n        "],[1,[28,[35,1],["topic.auto_close.label"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"category-topic-auto-close-hours"],[12],[1,"\\n        "],[8,[39,12],null,[["@id","@durationHours","@hiddenIntervals","@onChange"],["topic-auto-close",[30,0,["category","auto_close_hours"]],[30,0,["hiddenRelativeIntervals"]],[28,[37,3],[[30,0],"onAutoCloseDurationChange"],null]]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","auto_close_based_on_last_post"]]]],null],[1,"\\n        "],[1,[28,[35,1],["topic.auto_close.based_on_last_post"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field num-auto-bump-daily"],[12],[1,"\\n    "],[10,"label"],[14,"for","category-number-daily-bump"],[12],[1,"\\n      "],[1,[28,[35,1],["category.num_auto_bump_daily"],null]],[1,"\\n    "],[13],[1,"\\n    "],[11,"input"],[16,2,[30,0,["category","category_setting","num_auto_bump_daily"]]],[24,"min","0"],[24,1,"category-number-daily-bump"],[24,4,"number"],[4,[38,2],["input",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","category_setting","num_auto_bump_daily"]]],null]],[["value"],["target.value"]]]],null],[12],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field auto-bump-cooldown-days"],[12],[1,"\\n    "],[10,"label"],[14,"for","category-auto-bump-cooldown-days"],[12],[1,"\\n      "],[1,[28,[35,1],["category.auto_bump_cooldown_days"],null]],[1,"\\n    "],[13],[1,"\\n    "],[11,"input"],[16,2,[30,0,["category","category_setting","auto_bump_cooldown_days"]]],[24,"min","0"],[24,1,"category-auto-bump-cooldown-days"],[24,4,"number"],[4,[38,2],["input",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","category_setting","auto_bump_cooldown_days"]]],null]],[["value"],["target.value"]]]],null],[12],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,1],["category.settings_sections.appearance"],null]],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-view-field"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.default_view"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,8],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-view",[30,0,["availableViews"]],[30,0,["category","default_view"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-top-period-field"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.default_top_period"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,8],null,[["@valueProperty","@id","@content","@value","@options"],["value","category-default-period",[30,0,["availableTopPeriods"]],[30,0,["category","default_top_period"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field sort-order"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.sort_order"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,8],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["availableSorts"]],[30,0,["category","sort_order"]],[28,[37,9],null,[["none"],["category.sort_options.default"]]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","sort_order"]]],null]],null]]],null],[1,"\\n"],[41,[51,[30,0,["isDefaultSortOrder"]]],[[[1,"        "],[8,[39,8],null,[["@valueProperty","@content","@value","@options","@onChange"],["value",[30,0,["sortAscendingOptions"]],[30,0,["sortAscendingOption"]],[28,[37,9],null,[["none","placementStrategy"],["category.sort_options.default","absolute"]]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","sort_ascending"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"section"],[14,0,"field default-filter"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["category.default_list_filter"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[8,[39,8],null,[["@id","@valueProperty","@content","@value"],["category-default-filter","value",[30,0,["availableListFilters"]],[30,0,["category","default_list_filter"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["isParentCategory"]],[[[1,"    "],[10,"section"],[14,0,"field show-subcategory-list-field"],[12],[1,"\\n      "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","show_subcategory_list"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.show_subcategory_list"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showSubcategoryListStyle"]],[[[1,"    "],[10,"section"],[14,0,"field subcategory-list-style-field"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[1,[28,[35,1],["category.subcategory_list_style"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,8],null,[["@valueProperty","@id","@content","@value","@options"],["value","subcategory-list-style",[30,0,["availableSubcategoryListStyles"]],[30,0,["category","subcategory_list_style"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"section"],[14,0,"field category-read-only-banner"],[12],[1,"\\n    "],[10,"label"],[14,"for","read-only-message"],[12],[1,[28,[35,1],["category.read_only_banner"],null]],[13],[1,"\\n    "],[8,[39,13],null,[["@valueProperty","@id","@value","@options"],["value","read-only-message",[30,0,["category","read_only_banner"]],[28,[37,9],null,[["placementStrategy"],["absolute"]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,1],["category.settings_sections.email"],null]],[13],[1,"\\n\\n"],[41,[30,0,["emailInEnabled"]],[[[1,"    "],[10,"section"],[14,0,"field category-email-in"],[12],[1,"\\n      "],[10,"label"],[14,"for","category-email-in"],[12],[1,"\\n        "],[1,[28,[35,14],["envelope"],null]],[1,"\\n        "],[1,[28,[35,1],["category.email_in"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,13],[[24,0,"email-in"]],[["@id","@value"],["category-email-in",[30,0,["category","email_in"]]]],null],[1,"\\n\\n    "],[13],[1,"\\n\\n    "],[10,"section"],[14,0,"field email-in-allow-strangers"],[12],[1,"\\n      "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","email_in_allow_strangers"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.email_in_allow_strangers"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"section"],[14,0,"field mailinglist-mirror"],[12],[1,"\\n      "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n        "],[8,[39,10],null,[["@type","@checked"],["checkbox",[30,0,["category","mailinglist_mirror"]]]],null],[1,"\\n        "],[1,[28,[35,1],["category.mailinglist_mirror"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,15],null,[["@name","@connectorTagName","@outletArgs"],["category-email-in","div",[28,[37,9],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[51,[30,0,["emailInEnabled"]]],[[[1,"    "],[10,"section"],[14,0,"field email-in-disabled"],[12],[1,"\\n      "],[1,[28,[35,6],[[28,[37,1],["category.email_in_disabled"],[["setting_url"],[[28,[37,7],["/admin/site_settings/category/all_results?filter=email_in"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,"section"],[12],[1,"\\n  "],[8,[39,15],null,[["@name","@outletArgs"],["category-custom-settings",[28,[37,9],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","i18n","on","action","mut","unless","html-safe","get-url","combo-box","hash","input","group-selector","relative-time-picker","text-field","d-icon","plugin-outlet"]]',moduleName:"discourse/components/edit-category-settings.hbs",isStrictMode:!1});var h,m,g,f=n(31691);const b=[];function _(e){b.push(e)}const y=(0,f.setComponentTemplate)(p,(0,o.buildCategoryPanel)("settings",(h=(0,u.default)("category.isParent","category.parent_category_id"),m=(0,u.default)("category.sort_ascending"),g={emailInEnabled:(0,a.setting)("email_in"),showPositionInput:(0,a.setting)("fixed_category_positions"),isParentCategory:(e,t)=>e||!t,showSubcategoryListStyle:(0,s.and)("category.show_subcategory_list","isParentCategory"),isDefaultSortOrder:(0,s.empty)("category.sort_order"),availableSubcategoryListStyles:()=>[{name:d.default.t("category.subcategory_list_styles.rows"),value:"rows"},{name:d.default.t("category.subcategory_list_styles.rows_with_featured_topics"),value:"rows_with_featured_topics"},{name:d.default.t("category.subcategory_list_styles.boxes"),value:"boxes"},{name:d.default.t("category.subcategory_list_styles.boxes_with_featured_topics"),value:"boxes_with_featured_topics"}],groupFinder:e=>c.default.findAll({term:e,ignore_automatic:!0}),availableViews:()=>[{name:d.default.t("filters.latest.title"),value:"latest"},{name:d.default.t("filters.top.title"),value:"top"}],availableTopPeriods:()=>["all","yearly","quarterly","monthly","weekly","daily"].map((e=>({name:d.default.t(`filters.top.${e}.title`),value:e}))),availableListFilters:()=>["all","none"].map((e=>({name:d.default.t(`category.list_filters.${e}`),value:e}))),searchPrioritiesOptions(){const e=[];return Object.entries(l.SEARCH_PRIORITIES).forEach((t=>{const[n,r]=t;e.push({name:d.default.t(`category.search_priority.options.${n}`),value:r})})),e},availableSorts:()=>["likes","op_likes","views","posts","activity","posters","category","created"].concat(b).map((e=>({name:d.default.t("category.sort_options."+e),value:e}))).sort(((e,t)=>e.name.localeCompare(t.name))),sortAscendingOption:e=>"false"!==e&&("true"===e||e),sortAscendingOptions:()=>[{name:d.default.t("category.sort_ascending"),value:!0},{name:d.default.t("category.sort_descending"),value:!1}],hiddenRelativeIntervals:()=>["mins"],onAutoCloseDurationChange(e){let t=e?e/60:null;this.set("category.auto_close_hours",t)},onDefaultSlowModeDurationChange(e){let t=e?60*e:null;this.set("category.default_slow_mode_seconds",t)}},(0,r.Z)(g,"isParentCategory",[h],Object.getOwnPropertyDescriptor(g,"isParentCategory"),g),(0,r.Z)(g,"availableSubcategoryListStyles",[u.default],Object.getOwnPropertyDescriptor(g,"availableSubcategoryListStyles"),g),(0,r.Z)(g,"availableViews",[u.default],Object.getOwnPropertyDescriptor(g,"availableViews"),g),(0,r.Z)(g,"availableTopPeriods",[u.default],Object.getOwnPropertyDescriptor(g,"availableTopPeriods"),g),(0,r.Z)(g,"availableListFilters",[u.default],Object.getOwnPropertyDescriptor(g,"availableListFilters"),g),(0,r.Z)(g,"searchPrioritiesOptions",[u.default],Object.getOwnPropertyDescriptor(g,"searchPrioritiesOptions"),g),(0,r.Z)(g,"availableSorts",[u.default],Object.getOwnPropertyDescriptor(g,"availableSorts"),g),(0,r.Z)(g,"sortAscendingOption",[m],Object.getOwnPropertyDescriptor(g,"sortAscendingOption"),g),(0,r.Z)(g,"sortAscendingOptions",[u.default],Object.getOwnPropertyDescriptor(g,"sortAscendingOptions"),g),(0,r.Z)(g,"hiddenRelativeIntervals",[u.default],Object.getOwnPropertyDescriptor(g,"hiddenRelativeIntervals"),g),(0,r.Z)(g,"onAutoCloseDurationChange",[i.action],Object.getOwnPropertyDescriptor(g,"onAutoCloseDurationChange"),g),(0,r.Z)(g,"onDefaultSlowModeDurationChange",[i.action],Object.getOwnPropertyDescriptor(g,"onDefaultSlowModeDurationChange"),g),g)))},58037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(51372),c=n(16572),u=n(63319),d=n(20229),p=n(47582),h=n(57555),m=n(82099);const g=(0,n(8620).createTemplateFactory)({id:"KoewHw43",block:'[[[11,3],[24,6,""],[16,0,[52,[30,0,["active"]],"active"]],[4,[38,1],["click",[30,0,["select"]]],null],[12],[1,[30,0,["title"]]],[13]],[],false,["if","on"]]',moduleName:"discourse/components/edit-category-tab.hbs",isStrictMode:!1});var f,b,_,y;const w=(0,i.setComponentTemplate)(g,s().extend((f=(0,h.default)("tab"),b=(0,h.default)("tab"),_=(0,h.default)("params.slug","params.parentSlug"),y={tagName:"li",classNameBindings:["active","tabClassName"],newCategory:(0,a.empty)("params.slug"),tabClassName:e=>"edit-category-"+e,active:(0,u.propertyEqual)("selectedTab","tab"),title:e=>m.default.t(`category.${(0,c.underscore)(e)}`),didInsertElement(){this._super(...arguments),(0,l.scheduleOnce)("afterRender",this,this._addToCollection)},willDestroyElement(){this._super(...arguments),this.setProperties({selectedTab:"general",params:{}})},_addToCollection(){this.panels.addObject(this.tabClassName)},fullSlug(e,t){const n=t&&e?`${t}/${e}`:e;return(0,p.default)(`/c/${n}/edit/${this.tab}`)},select(e){e?.preventDefault(),this.set("selectedTab",this.tab),this.newCategory||d.default.routeTo(this.fullSlug)}},(0,r.Z)(y,"tabClassName",[f],Object.getOwnPropertyDescriptor(y,"tabClassName"),y),(0,r.Z)(y,"title",[b],Object.getOwnPropertyDescriptor(y,"title"),y),(0,r.Z)(y,"fullSlug",[_],Object.getOwnPropertyDescriptor(y,"fullSlug"),y),(0,r.Z)(y,"select",[o.action],Object.getOwnPropertyDescriptor(y,"select"),y),y)))},24004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(48163),s=n(6264),o=n(93596);const a=(0,n(8620).createTemplateFactory)({id:"1ApJJPaX",block:'[[[10,"section"],[14,0,"field minimum-required-tags"],[12],[1,"\\n  "],[10,"label"],[14,"for","category-minimum-tags"],[12],[1,"\\n    "],[1,[28,[35,0],["category.minimum_required_tags"],null]],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,1],null,[["@value","@id","@type","@min"],[[30,0,["category","minimum_required_tags"]],"category-minimum-tags","number","0"]],null],[1,"\\n"],[13],[1,"\\n"],[10,"section"],[14,0,"field allowed-tags"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.tags_allowed_tags"],null]],[13],[1,"\\n  "],[8,[39,2],null,[["@id","@tags","@everyTag","@excludeSynonyms","@unlimitedTagCount","@onChange","@options"],["category-allowed-tags",[30,0,["category","allowed_tags"]],true,true,true,[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","allowed_tags"]]],null]],null],[28,[37,5],null,[["filterPlaceholder"],["category.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allowed-tag-groups"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["category.tags_allowed_tag_groups"],null]],[13],[1,"\\n  "],[8,[39,6],null,[["@id","@tagGroups","@onChange"],["category-allowed-tag-groups",[30,0,["category","allowed_tag_groups"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["category","allowed_tag_groups"]]],null]],null]]],null],[1,"\\n  "],[8,[39,7],[[24,0,"manage-tag-groups"]],[["@route"],["tagGroups"]],[["default"],[[[[1,[28,[35,0],["category.manage_tag_groups_link"],null]]],[]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field allow-global-tags"],[12],[1,"\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,8],[[24,1,"allow_global_tags"],[16,"disabled",[30,0,["disableAllowGlobalTags"]]]],[["@type","@checked"],["checkbox",[30,0,["category","allow_global_tags"]]]],null],[1,"\\n    "],[1,[28,[35,0],["category.allow_global_tags_label"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field tags-tab-description"],[12],[1,"\\n  "],[1,[28,[35,0],["category.tags_tab_description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field required-tag-group-description"],[12],[1,"\\n  "],[1,[28,[35,0],["category.required_tag_group.description"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"field with-items"],[12],[1,"\\n  "],[10,"section"],[14,0,"field-item required-tag-groups"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["category","required_tag_groups"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"required-tag-group-row"],[12],[1,"\\n        "],[8,[39,1],null,[["@value","@type","@min"],[[30,1,["min_count"]],"number","1"]],null],[1,"\\n        "],[8,[39,6],null,[["@tagGroups","@onChange","@options"],[[52,[30,1,["name"]],[28,[37,12],[[30,1,["name"]]],null],[28,[37,12],null,null]],[28,[37,3],[[30,0],"onTagGroupChange",[30,1]],null],[28,[37,5],null,[["maximum","filterPlaceholder"],[1,"category.required_tag_group.placeholder"]]]]],null],[1,"\\n        "],[8,[39,13],[[24,0,"delete-required-tag-group"]],[["@label","@action","@icon"],["category.required_tag_group.delete",[28,[37,14],[[30,0,["deleteRequiredTagGroup"]],[30,1]],null],"trash-alt"]],null],[1,"\\n      "],[13],[1,"\\n"]],[1]],null],[1,"    "],[8,[39,13],[[24,0,"add-required-tag-group"]],[["@label","@action","@icon"],["category.required_tag_group.add",[30,0,["addRequiredTagGroup"]],"plus"]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["rtg"],false,["i18n","text-field","tag-chooser","action","mut","hash","tag-group-chooser","link-to","input","each","-track-array","if","array","d-button","fn"]]',moduleName:"discourse/components/edit-category-tags.hbs",isStrictMode:!1});var l;const c=(0,n(31691).setComponentTemplate)(a,(0,o.buildCategoryPanel)("tags",(l={allowedTagsEmpty:(0,s.empty)("category.allowed_tags"),allowedTagGroupsEmpty:(0,s.empty)("category.allowed_tag_groups"),disableAllowGlobalTags:(0,s.and)("allowedTagsEmpty","allowedTagGroupsEmpty"),onTagGroupChange(e,t){(0,i.set)(e,"name",t[0])},addRequiredTagGroup(){this.category.required_tag_groups.pushObject({min_count:1})},deleteRequiredTagGroup(e){this.category.required_tag_groups.removeObject(e)}},(0,r.Z)(l,"onTagGroupChange",[i.action],Object.getOwnPropertyDescriptor(l,"onTagGroupChange"),l),(0,r.Z)(l,"addRequiredTagGroup",[i.action],Object.getOwnPropertyDescriptor(l,"addRequiredTagGroup"),l),(0,r.Z)(l,"deleteRequiredTagGroup",[i.action],Object.getOwnPropertyDescriptor(l,"deleteRequiredTagGroup"),l),l)))},7700:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(48163),s=n(51372),o=n(93596),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"3iCoMDjS",block:'[[[41,[30,0,["siteSettings","experimental_form_templates"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"toggle-template-type"],[4,[38,2],["click",[30,0,["toggleTemplateType"]]],null]],[["@state","@label"],[[30,0,["showFormTemplate"]],[30,0,["templateTypeToggleLabel"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showFormTemplate"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,3],[[24,0,"select-category-template"]],[["@value","@onChange"],[[30,0,["category","form_template_ids"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["category","form_template_ids"]]],null]],null]]],null],[1,"\\n\\n      "],[10,2],[14,0,"select-category-template__info desc"],[12],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"          "],[8,[39,6],null,[["@route"],["adminCustomizeFormTemplates"]],[["default"],[[[[1,"\\n            "],[1,[28,[35,7],["admin.form_templates.edit_category.select_template_help"],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,8],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[]],[[[1,"  "],[8,[39,8],null,[["@value","@showLink"],[[30,0,["category","topic_template"]],[30,0,["showInsertLinkButton"]]]],null],[1,"\\n"]],[]]]],[],false,["if","d-toggle-switch","on","form-template-chooser","action","mut","link-to","i18n","d-editor"]]',moduleName:"discourse/components/edit-category-topic-template.hbs",isStrictMode:!1});var c,u,d;const p=(0,n(31691).setComponentTemplate)(l,(0,o.buildCategoryPanel)("topic-template",(c=(0,a.default)("showFormTemplate"),u=(0,a.observes)("activeTab","showFormTemplate"),d={showFormTemplate:(0,i.computed)("category.form_template_ids",{get(){return Boolean(this.category.form_template_ids.length)},set:(e,t)=>t}),templateTypeToggleLabel:e=>e?"admin.form_templates.edit_category.toggle_form_template":"admin.form_templates.edit_category.toggle_freeform",toggleTemplateType(){this.toggleProperty("showFormTemplate"),this.showFormTemplate||this.set("category.form_template_ids",[])},_activeTabChanged(){this.activeTab&&!this.showFormTemplate&&(0,s.schedule)("afterRender",(()=>this.element.querySelector(".d-editor-input").focus()))}},(0,r.Z)(d,"templateTypeToggleLabel",[c],Object.getOwnPropertyDescriptor(d,"templateTypeToggleLabel"),d),(0,r.Z)(d,"toggleTemplateType",[i.action],Object.getOwnPropertyDescriptor(d,"toggleTemplateType"),d),(0,r.Z)(d,"_activeTabChanged",[u],Object.getOwnPropertyDescriptor(d,"_activeTabChanged"),d),d)))},98244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(33217),c=n(54712),u=n.n(c),d=n(61016),p=n(6677),h=n(50459),m=n(57555),g=n(82099),f=n(53314);const b=(0,n(8620).createTemplateFactory)({id:"8JQs9v/+",block:'[[[10,"form"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,0],[[24,0,"timer-type"]],[["@onChange","@content","@value"],[[30,0,["onChangeStatusType"]],[30,0,["timerTypes"]],[30,0,["statusType"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["publishToCategory"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["topic.topic_status_update.publish_to"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@value","@onChange","@options"],[[30,0,["topicTimer","category_id"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["topicTimer","category_id"]]],null]],null],[28,[37,6],null,[["excludeCategoryId"],[[30,0,["excludeCategoryId"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showFutureDateInput"]],[[[1,"    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["topic.topic_status_update.when"],null]],[13],[1,"\\n    "],[8,[39,7],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@_itsatrap"],[[30,0,["timeOptions"]],[30,0,["topicTimer","execute_at"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["useDuration"]],[[[1,"    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,2],["topic.topic_status_update.duration"],null]],[13],[1,"\\n      "],[8,[39,8],null,[["@onChange","@durationMinutes"],[[28,[37,4],[[30,0],"durationChanged"],null],[28,[37,9],[[30,0,["topicTimer","duration_minutes"]]],null]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["willCloseImmediately"]],[[[1,"    "],[10,0],[14,0,"warning"],[12],[1,"\\n      "],[1,[28,[35,10],["exclamation-triangle"],null]],[1,"\\n      "],[1,[30,0,["willCloseI18n"]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showTopicTimerInfo"]],[[[1,"    "],[10,0],[14,0,"alert alert-info modal-topic-timer-info"],[12],[1,"\\n      "],[8,[39,11],null,[["@statusType","@executeAt","@basedOnLastPost","@durationMinutes","@categoryId"],[[30,0,["statusType"]],[30,0,["executeAt"]],[30,0,["topicTimer","based_on_last_post"]],[30,0,["topicTimer","duration_minutes"]],[30,0,["topicTimer","category_id"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["combo-box","if","i18n","category-chooser","action","mut","hash","time-shortcut-picker","relative-time-picker","readonly","d-icon","topic-timer-info"]]',moduleName:"discourse/components/edit-topic-timer-form.hbs",isStrictMode:!1});var _,y,w,v,k,x,T,S,C;const P=(0,i.setComponentTemplate)(b,s().extend((_=(0,m.default)("autoDeleteReplies"),y=(0,m.default)("topic.visible"),w=(0,m.default)(),v=(0,m.default)("topicTimer.updateTime","topicTimer.duration_minutes","useDuration"),k=(0,m.default)("isBasedOnLastPost","topicTimer.duration_minutes","topic.last_posted_at"),x=(0,m.default)("isBasedOnLastPost","topic.last_posted_at"),T=(0,m.default)("durationType"),S=(0,m.default)("statusType","isCustom","topicTimer.updateTime","willCloseImmediately","topicTimer.category_id","useDuration","topicTimer.duration_minutes"),C={statusType:(0,a.readOnly)("topicTimer.status_type"),autoOpen:(0,a.equal)("statusType",d.OPEN_STATUS_TYPE),autoClose:(0,a.equal)("statusType",d.CLOSE_STATUS_TYPE),autoCloseAfterLastPost:(0,a.equal)("statusType",d.CLOSE_AFTER_LAST_POST_STATUS_TYPE),autoDelete:(0,a.equal)("statusType",d.DELETE_STATUS_TYPE),autoBump:(0,a.equal)("statusType",d.BUMP_TYPE),publishToCategory:(0,a.equal)("statusType",d.PUBLISH_TO_CATEGORY_STATUS_TYPE),autoDeleteReplies:(0,a.equal)("statusType",d.DELETE_REPLIES_TYPE),showTimeOnly:(0,a.or)("autoOpen","autoDelete","autoBump"),showFutureDateInput:(0,a.or)("showTimeOnly","publishToCategory","autoClose"),useDuration:(0,a.or)("isBasedOnLastPost","autoDeleteReplies","autoCloseAfterLastPost"),duration:null,_itsatrap:null,init(){this._super(...arguments),p.default.pause(),this.set("_itsatrap",new(u())),this.set("duration",this.initialDuration)},get initialDuration(){return this.useDuration&&this.topicTimer.duration_minutes?"days"===this.durationType?this.topicTimer.duration_minutes/60/24:this.topicTimer.duration_minutes/60:null},willDestroyElement(){this._super(...arguments),this._itsatrap.destroy(),this.set("_itsatrap",null),p.default.unpause()},durationType:e=>e?"days":"hours",excludeCategoryId(e){if(e)return this.get("topic.category_id")},timeOptions(){const e=this.currentUser.user_option.timezone,t=(0,h.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.sixMonths()]},hiddenTimeShortcutOptions:()=>[h.TIME_SHORTCUT_TYPES.NONE,h.TIME_SHORTCUT_TYPES.LATER_TODAY,h.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK],isCustom:(0,a.equal)("timerType","custom"),isBasedOnLastPost:(0,a.equal)("statusType","close_after_last_post"),executeAt:(e,t,n)=>n?moment().add(parseFloat(t),"minutes").format(f.FORMAT):e,willCloseImmediately(e,t,n){if(e&&t){let e=moment(n);return e=e.add(t,"minutes"),e<moment()}},willCloseI18n(e,t){if(e){const e=Math.round((new Date-new Date(t))/36e5);return g.default.t("topic.auto_close_momentarily",{count:e})}},durationLabel:e=>g.default.t(`topic.topic_status_update.num_of_${e}`),showTopicTimerInfo(e,t,n,r,i,s,o){if(!e||r)return!1;if(e===d.PUBLISH_TO_CATEGORY_STATUS_TYPE&&(0,l.isEmpty)(i))return!1;if(t&&n){if(moment(n)<moment())return!1}else if(s)return o;return n},onTimeSelected(e,t){this.set("timerType",e),this.onChangeInput(e,t)},durationChanged(e){this.set("topicTimer.duration_minutes",e)}},(0,r.Z)(C,"durationType",[_],Object.getOwnPropertyDescriptor(C,"durationType"),C),(0,r.Z)(C,"excludeCategoryId",[y],Object.getOwnPropertyDescriptor(C,"excludeCategoryId"),C),(0,r.Z)(C,"timeOptions",[w],Object.getOwnPropertyDescriptor(C,"timeOptions"),C),(0,r.Z)(C,"hiddenTimeShortcutOptions",[m.default],Object.getOwnPropertyDescriptor(C,"hiddenTimeShortcutOptions"),C),(0,r.Z)(C,"executeAt",[v],Object.getOwnPropertyDescriptor(C,"executeAt"),C),(0,r.Z)(C,"willCloseImmediately",[k],Object.getOwnPropertyDescriptor(C,"willCloseImmediately"),C),(0,r.Z)(C,"willCloseI18n",[x],Object.getOwnPropertyDescriptor(C,"willCloseI18n"),C),(0,r.Z)(C,"durationLabel",[T],Object.getOwnPropertyDescriptor(C,"durationLabel"),C),(0,r.Z)(C,"showTopicTimerInfo",[S],Object.getOwnPropertyDescriptor(C,"showTopicTimerInfo"),C),(0,r.Z)(C,"onTimeSelected",[o.action],Object.getOwnPropertyDescriptor(C,"onTimeSelected"),C),(0,r.Z)(C,"durationChanged",[o.action],Object.getOwnPropertyDescriptor(C,"durationChanged"),C),C)))},9482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(54001),s=n(48163),o=n(17579),a=n(82099);const l=n(50073).default.extend((r={router:(0,o.inject)(),classNames:["email-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,s.computed)("email",(function(){const e=[];return this.email.primary&&e.push({id:"updateEmail",icon:"pencil-alt",name:a.default.t("user.email.update_email"),description:""}),!this.email.primary&&this.email.confirmed&&e.push({id:"setPrimaryEmail",icon:"star",name:a.default.t("user.email.set_primary"),description:""}),this.email.primary||e.push({id:"destroyEmail",icon:"times",name:a.default.t("user.email.destroy"),description:""}),e})),onChange(e){switch(e){case"updateEmail":this.router.transitionTo("preferences.email");break;case"setPrimaryEmail":this.setPrimaryEmail(this.email.email);break;case"destroyEmail":this.destroyEmail(this.email.email)}}},(0,i.Z)(r,"onChange",[s.action],Object.getOwnPropertyDescriptor(r,"onChange"),r),r))},77775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"iC9BVZ2M",block:'[[[1,"\\n"],[11,"button"],[24,"data-section","smileys_&_emotion"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"smileys_&_emotion"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":grinning:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","people_&_body"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"people_&_body"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":wave:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","animals_&_nature"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"animals_&_nature"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":evergreen_tree:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","food_&_drink"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"food_&_drink"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":hamburger:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","travel_&_places"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"travel_&_places"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":airplane:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","activities"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"activities"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":soccer:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","objects"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"objects"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":eyeglasses:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","symbols"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"symbols"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":white_check_mark:"],null]],[1,"\\n"],[13],[1,"\\n"],[11,"button"],[24,"data-section","flags"],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,0],["click",[28,[37,1],[[30,0,["onCategorySelection"]],"flags"],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],[":checkered_flag:"],null]],[1,"\\n"],[13]],[],false,["on","fn","replace-emoji"]]',moduleName:"discourse/components/emoji-group-buttons.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},87421:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"gU4b+9w9",block:'[[[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","smileys_&_emotion"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.smileys_&_emotion"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":grinning:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiley:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":laughing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweat_smile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rofl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":joy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slightly_smiling_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":upside_down_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":melting_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wink:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blush:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":innocent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_face_with_three_hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star_struck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_closed_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_smiling_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_face_with_tear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuck_out_tongue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuck_out_tongue_winking_eye:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crazy_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuck_out_tongue_closed_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":money_mouth_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hugs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_hand_over_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_open_eyes_and_hand_over_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_peeking_eye:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shushing_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thinking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":saluting_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zipper_mouth_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_raised_eyebrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":neutral_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":expressionless:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dotted_line_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_in_clouds:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smirk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":unamused:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roll_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grimacing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_exhaling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lying_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":relieved:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pensive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sleepy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":drooling_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sleeping:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mask:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_thermometer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_head_bandage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nauseated_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_vomiting:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sneezing_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hot_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cold_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woozy_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dizzy_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_spiral_eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":exploding_head:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cowboy_hat_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":partying_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":disguised_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunglasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nerd_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_monocle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":confused:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_diagonal_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":worried:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slightly_frowning_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hushed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":astonished:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flushed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pleading_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_holding_back_tears:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_with_open_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anguished:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fearful:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cold_sweat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":disappointed_relieved:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sob:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scream:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":confounded:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":persevere:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":disappointed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":weary:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tired_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yawning_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":triumph:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":angry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":face_with_symbols_over_mouth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiling_imp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":imp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skull:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skull_and_crossbones:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clown_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japanese_ogre:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japanese_goblin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ghost:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":alien:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":space_invader:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":robot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smiley_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smile_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":joy_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_eyes_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smirk_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kissing_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scream_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crying_cat_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouting_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":see_no_evil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hear_no_evil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speak_no_evil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiss:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":love_letter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cupid:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gift_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkling_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heartpulse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heartbeat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":revolving_hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two_hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_decoration:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_heart_exclamation:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":broken_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_on_fire:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mending_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yellow_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purple_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brown_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":100:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dizzy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweat_drops:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hole:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bomb:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speech_balloon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eye_in_speech_bubble:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":left_speech_bubble:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":right_anger_bubble:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thought_balloon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zzz:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","people_&_body"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.people_&_body"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":wave:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_back_of_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_hand_with_fingers_splayed:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vulcan_salute:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rightwards_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leftwards_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palm_down_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palm_up_hand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pinched_fingers:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pinching_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":v:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crossed_fingers:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hand_with_index_finger_and_thumb_crossed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":love_you_gesture:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":metal:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":call_me_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_left:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_right:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_up_2:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fu:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_down:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":point_up:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":index_pointing_at_the_viewer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":+1:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":-1:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":facepunch:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fist_left:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fist_right:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clap:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raised_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heart_hands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palms_up_together:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":handshake:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pray:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":writing_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nail_care:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":selfie:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":muscle:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mechanical_arm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mechanical_leg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leg:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":foot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ear:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hear_with_hearing_aid:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nose:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anatomical_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lungs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tooth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eyes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eye:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tongue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lips:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biting_lip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":child:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":girl:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":adult:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blonde_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bearded_person:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_beard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_beard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_red_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_curly_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_white_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_bald:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_red_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_red_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_curly_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_curly_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_white_haired:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_white_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_bald:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_bald:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blonde_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_blond_hair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":older_adult:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":older_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":older_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_frowning:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frowning_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_pouting:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouting_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouting_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_gesturing_no:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_good_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_good_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_gesturing_ok:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_tipping_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tipping_hand_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tipping_hand_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_raising_hand:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raising_hand_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raising_hand_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deaf_person:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deaf_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deaf_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_bowing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowing_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_facepalming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_facepalming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_facepalming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_shrugging:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_shrugging:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_shrugging:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":health_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_health_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_health_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":student:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_student:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_student:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":teacher:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_teacher:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_teacher:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":judge:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_judge:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_judge:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":farmer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_farmer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_farmer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cook:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_cook:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_cook:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mechanic:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_mechanic:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_mechanic:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":factory_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_factory_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_factory_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":office_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_office_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_office_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scientist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_scientist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_scientist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":technologist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_technologist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_technologist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":singer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_singer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_singer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":artist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_artist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_artist:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pilot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_pilot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_pilot:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":astronaut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_astronaut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_astronaut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":firefighter:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_firefighter:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_firefighter:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":policeman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_police_officer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":policewoman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":male_detective:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_detective:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":female_detective:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guardsman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_guard:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guardswoman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ninja:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":construction_worker_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_construction_worker:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":construction_worker_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_with_crown:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":prince:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":princess:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_turban:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_wearing_turban:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_turban:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_gua_pi_mao:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_headscarf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_tuxedo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_tuxedo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_tuxedo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bride_with_veil:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_veil:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_veil:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pregnant_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pregnant_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pregnant_person:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":breast_feeding:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_feeding_baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_feeding_baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_feeding_baby:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":angel:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":santa:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mrs_claus:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mx_claus:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":superhero:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_superhero:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_superhero:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":supervillain:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_supervillain:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_supervillain:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_mage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_mage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fairy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_fairy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_fairy:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vampire:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_vampire:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_vampire:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":merperson:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":merman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mermaid:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":elf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_elf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_elf:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":genie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_genie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_genie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zombie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_zombie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_zombie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":troll:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_getting_massage:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":massage_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":massage_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_getting_haircut:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":haircut_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":haircut_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":walking_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_walking:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":walking_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_standing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_standing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_standing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_kneeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_kneeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_kneeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_with_white_cane:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_with_probing_cane:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_with_probing_cane:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_motorized_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_motorized_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_motorized_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_manual_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_manual_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_manual_wheelchair:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":running_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_running:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":running_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dancer:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_dancing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":business_suit_levitating:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dancing_women:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dancing_men:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":women_with_bunny_ears:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_steamy_room:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_steamy_room:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_steamy_room:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_climbing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_climbing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_climbing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_fencing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":horse_racing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skier:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowboarder:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":golfing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_golfing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":golfing_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":surfing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_surfing:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":surfing_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rowing_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_rowing_boat:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rowing_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swimming_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_swimming:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swimming_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basketball_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_bouncing_ball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basketball_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":weight_lifting_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_lifting_weights:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":weight_lifting_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biking_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_biking:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biking_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_biking_man:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_mountain_biking:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_biking_woman:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_cartwheeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_cartwheeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_cartwheeling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":people_wrestling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":men_wrestling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":women_wrestling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_playing_water_polo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_playing_water_polo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_playing_water_polo:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_playing_handball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_playing_handball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_playing_handball:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_juggling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_juggling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_juggling:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":person_in_lotus_position:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":man_in_lotus_position:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":woman_in_lotus_position:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bath:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sleeping_bed:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":people_holding_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two_women_holding_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two_men_holding_hands:",[28,[37,2],null,[["lazy","class","tabIndex"],[true,"diversity","0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couplekiss_man_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiss_woman_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couplekiss_man_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couplekiss_woman_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart_woman_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart_man_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couple_with_heart_woman_woman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_woman_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_man_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_woman_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_man_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_boy_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_girl_boy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":family_woman_girl_girl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speaking_head:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bust_in_silhouette:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":busts_in_silhouette:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":people_hugging:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":footprints:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","animals_&_nature"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.animals_&_nature"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":monkey_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":monkey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gorilla:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orangutan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dog2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guide_dog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":service_dog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poodle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wolf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fox_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":raccoon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cat2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_cat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tiger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tiger2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leopard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":horse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":racehorse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":unicorn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zebra:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bison:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":water_buffalo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cow2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pig:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pig2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pig_nose:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ram:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sheep:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":goat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dromedary_camel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":llama:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":giraffe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":elephant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mammoth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rhinoceros:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hippopotamus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mouse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mouse2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hamster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rabbit:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rabbit2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chipmunk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beaver:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hedgehog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":polar_bear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":koala:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":panda_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sloth:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":otter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skunk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kangaroo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":badger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paw_prints:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turkey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chicken:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rooster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hatching_chick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby_chick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hatched_chick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bird:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":penguin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dove:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eagle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":duck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":owl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dodo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":feather:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flamingo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peacock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parrot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":frog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crocodile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turtle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lizard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dragon_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dragon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sauropod:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":t_rex:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":whale:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":whale2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dolphin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tropical_fish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blowfish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":octopus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coral:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":butterfly:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bug:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":honeybee:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beetle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lady_beetle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cricket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cockroach:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spider:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spider_web:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scorpion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mosquito:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fly:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":worm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":microbe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bouquet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cherry_blossom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_flower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lotus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rosette:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rose:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wilted_flower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hibiscus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunflower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blossom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tulip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seedling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":potted_plant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":evergreen_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":deciduous_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palm_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cactus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ear_of_rice:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":herb:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shamrock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":four_leaf_clover:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":maple_leaf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fallen_leaf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leaves:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":empty_nest:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nest_with_eggs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","food_&_drink"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.food_&_drink"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":grapes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":melon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":watermelon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tangerine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lemon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":banana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pineapple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mango:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":apple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_apple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peach:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cherries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":strawberry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blueberries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiwi_fruit:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tomato:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":olive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coconut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":avocado:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eggplant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":potato:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":carrot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":corn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hot_pepper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bell_pepper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cucumber:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leafy_green:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":broccoli:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":garlic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":onion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mushroom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peanuts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beans:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chestnut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":croissant:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baguette_bread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flatbread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pretzel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bagel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pancakes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waffle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cheese:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":meat_on_bone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poultry_leg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cut_of_meat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bacon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hamburger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pizza:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hotdog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sandwich:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taco:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":burrito:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tamale:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stuffed_flatbread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":falafel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":egg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fried_egg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shallow_pan_of_food:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stew:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fondue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowl_with_spoon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_salad:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":popcorn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":butter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":salt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canned_food:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bento:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice_cracker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ramen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spaghetti:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweet_potato:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oden:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sushi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fried_shrimp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fish_cake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moon_cake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dango:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dumpling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fortune_cookie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":takeout_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crab:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lobster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shrimp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":squid:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oyster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":icecream:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shaved_ice:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_cream:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":doughnut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cookie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":birthday:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cupcake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chocolate_bar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":candy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lollipop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":custard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":honey_pot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby_bottle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":milk_glass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coffee:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":teapot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":champagne:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wine_glass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cocktail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tropical_drink:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beers:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clinking_glasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tumbler_glass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouring_liquid:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cup_with_straw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bubble_tea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beverage_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":maté:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_cube:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chopsticks:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":plate_with_cutlery:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fork_and_knife:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spoon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hocho:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":amphora:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","travel_&_places"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.travel_&_places"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":earth_africa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":earth_americas:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":earth_asia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":globe_with_meridians:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":world_map:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":compass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_snow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":volcano:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mount_fuji:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camping:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beach_umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":desert:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":desert_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":national_park:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stadium:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":classical_building:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":building_construction:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wood:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hut:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":houses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":derelict_house:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":house:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":house_with_garden:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":office:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":post_office:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":european_post_office:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hospital:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bank:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hotel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":love_hotel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":convenience_store:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":school:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":department_store:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":factory:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":japanese_castle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":european_castle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wedding:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tokyo_tower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":statue_of_liberty:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":church:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mosque:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hindu_temple:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":synagogue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shinto_shrine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kaaba:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fountain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":foggy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":night_with_stars:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cityscape:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunrise_over_mountains:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunrise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":city_sunset:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":city_sunrise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bridge_at_night:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hotsprings:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":carousel_horse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":playground_slide:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ferris_wheel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roller_coaster:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":barber:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":circus_tent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":steam_locomotive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":railway_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bullettrain_side:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bullettrain_front:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":train2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":metro:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":light_rail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":station:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tram:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":monorail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_railway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":train:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_bus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trolleybus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":minibus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ambulance:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fire_engine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":police_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_police_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taxi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_taxi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oncoming_automobile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pickup_truck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":truck:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":articulated_lorry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tractor:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":racing_car:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motorcycle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motor_scooter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":manual_wheelchair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motorized_wheelchair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":auto_rickshaw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bike:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kick_scooter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":skateboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roller_skate:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":busstop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motorway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":railway_track:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oil_drum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fuelpump:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wheel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rotating_light:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":traffic_light:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vertical_traffic_light:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stop_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":construction:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anchor:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ring_buoy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sailboat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speedboat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":passenger_ship:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ferry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":motor_boat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ship:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":airplane:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_airplane:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flight_departure:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flight_arrival:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parachute:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":helicopter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":suspension_railway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mountain_cableway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aerial_tramway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":artificial_satellite:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rocket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flying_saucer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bellhop_bell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":luggage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hourglass:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hourglass_flowing_sand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":watch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":alarm_clock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stopwatch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":timer_clock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mantelpiece_clock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock12:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1230:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock130:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock230:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock3:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock330:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock4:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock430:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock5:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock530:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock6:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock630:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock7:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock730:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock8:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock830:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock9:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock930:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock10:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1030:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock11:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clock1130:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waxing_crescent_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":first_quarter_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waxing_gibbous_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":full_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waning_gibbous_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":last_quarter_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":waning_crescent_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crescent_moon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":first_quarter_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":last_quarter_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thermometer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sunny:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":full_moon_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_with_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ringer_planet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stars:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":milky_way:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":partly_sunny:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_lightning_and_rain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_behind_small_cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_behind_large_cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sun_behind_rain_cloud:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_rain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_snow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cloud_with_lightning:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tornado:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fog:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wind_face:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cyclone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rainbow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":closed_umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":umbrella:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parasol_on_ground:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowflake:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowman_with_snow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":snowman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":comet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fire:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":droplet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ocean:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","activities"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.activities"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":jack_o_lantern:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":christmas_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fireworks:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkler:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":firecracker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":balloon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tada:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":confetti_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tanabata_tree:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bamboo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dolls:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flags:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wind_chime:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rice_scene:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_gift_envelope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ribbon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gift:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":reminder_ribbon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tickets:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ticket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":medal_military:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trophy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":medal_sports:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":1st_place_medal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":2nd_place_medal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":3rd_place_medal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":soccer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baseball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":softball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basketball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":volleyball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":football:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rugby_football:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tennis:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flying_disc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bowling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cricket_bat_and_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":field_hockey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_hockey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lacrosse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ping_pong:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":badminton:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boxing_glove:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":martial_arts_uniform:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":goal_net:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":golf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ice_skate:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fishing_pole_and_fish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diving_mask:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":running_shirt_with_sash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ski:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sled:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curling_stone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yo-yo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kite:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":8ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crystal_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":magic_wand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nazar_amulet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hamsa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":video_game:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":joystick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slot_machine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":game_die:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jigsaw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":teddy_bear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":piñata:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mirror_ball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nesting_dolls:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spades:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hearts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diamonds:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clubs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chess_pawn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_joker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mahjong:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flower_playing_cards:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":performing_arts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":framed_picture:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":art:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thread:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sewing_needle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yarn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":knot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","objects"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.objects"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":eyeglasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dark_sunglasses:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":goggles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lab_coat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":safety_vest:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":necktie:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tshirt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jeans:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scarf:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gloves:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":socks:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dress:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kimono:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sari:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":one_piece_swimsuit:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":briefs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shorts:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bikini:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":womans_clothes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":handbag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pouch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shopping:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":school_satchel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thong_sandal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mans_shoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":athletic_shoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hiking_boot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flat_shoe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":high_heel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sandal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ballet_shoes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boot:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crown:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":womans_hat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tophat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mortar_board:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":billed_cap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":military_helmet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rescue_worker_helmet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":prayer_beads:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lipstick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ring:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gem:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mute:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":speaker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sound:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":loud_sound:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":loudspeaker:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mega:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":postal_horn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_bell:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":musical_score:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":musical_note:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":notes:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":studio_microphone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":level_slider:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":control_knobs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":microphone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":headphones:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":radio:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":saxophone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":accordion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guitar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":musical_keyboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trumpet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":violin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":banjo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":drum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":long_drum:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iphone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":calling:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":phone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":telephone_receiver:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pager:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fax:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":battery:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":low_battery:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":electric_plug:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":computer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":desktop_computer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":printer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":keyboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":computer_mouse:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trackball:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":minidisc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":floppy_disk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dvd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":abacus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":movie_camera:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":film_strip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":film_projector:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clapper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tv:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camera:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":camera_flash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":video_camera:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vhs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mag_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":candle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bulb:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":flashlight:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":izakaya_lantern:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diya_lamp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":notebook_with_decorative_cover:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":closed_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_book:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":books:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":notebook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ledger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":page_with_curl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scroll:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":page_facing_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":newspaper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":newspaper_roll:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bookmark_tabs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bookmark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":label:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moneybag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dollar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":euro:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pound:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":money_with_wings:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":credit_card:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":receipt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":email:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":e-mail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":incoming_envelope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":envelope_with_arrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":outbox_tray:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":inbox_tray:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":package:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox_closed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox_with_mail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mailbox_with_no_mail:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":postbox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ballot_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pencil2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_nib:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fountain_pen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paintbrush:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crayon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":memo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":briefcase:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":file_folder:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":open_file_folder:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":card_index_dividers:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":date:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":calendar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spiral_notepad:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":spiral_calendar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":card_index:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chart_with_upwards_trend:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chart_with_downwards_trend:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bar_chart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clipboard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pushpin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":round_pushpin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paperclip:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paperclips:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":straight_ruler:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":triangular_ruler:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scissors:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":card_file_box:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":file_cabinet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wastebasket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":unlock:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lock_with_ink_pen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":closed_lock_with_key:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":key:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":old_key:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hammer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":axe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hammer_and_pick:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hammer_and_wrench:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dagger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crossed_swords:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gun:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":boomerang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bow_and_arrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shield:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":carpentry_saw:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wrench:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":screwdriver:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nut_and_bolt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gear:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clamp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":balance_scale:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":probing_cane:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":link:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chains:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":toolbox:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":magnet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ladder:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":alembic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":test_tube:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":petri_dish:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dna:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":microscope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":telescope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":satellite:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":syringe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":drop_of_blood:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pill:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":adhesive_bandage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crutch:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stethoscope:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":xray:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":door:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":elevator:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mirror:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":window:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bed:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":couch_and_lamp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":toilet:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":plunger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shower:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bathtub:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mouse_trap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":razor:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lotion_bottle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":safety_pin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":broom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":basket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":roll_of_toilet_paper:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bucket:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":soap:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bubbles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":toothbrush:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sponge:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fire_extinguisher:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":shopping_cart:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":smoking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":coffin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":headstone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":funeral_urn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moyai:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":placard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":identification_card:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","symbols"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.symbols"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":atm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":put_litter_in_its_place:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":potable_water:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wheelchair:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mens:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":womens:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":restroom:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baby_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":passport_control:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":customs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":baggage_claim:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":left_luggage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":warning:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":children_crossing:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_entry:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_entry_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_bicycles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_smoking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":do_not_litter:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":non-potable_water:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_pedestrians:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":no_mobile_phones:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":underage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":radioactive:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":biohazard:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_upper_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_lower_right:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_lower_left:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_left:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_upper_left:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_up_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":left_right_arrow:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leftwards_arrow_with_hook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_right_hook:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_heading_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_heading_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrows_clockwise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrows_counterclockwise:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":back:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":end:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":on:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":soon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":top:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":place_of_worship:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":atom_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":om:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star_of_david:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wheel_of_dharma:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yin_yang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":latin_cross:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orthodox_cross:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":star_and_crescent:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peace_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":menorah:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":six_pointed_star:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aries:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taurus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gemini:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cancer:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":leo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":virgo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":libra:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scorpius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sagittarius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":capricorn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aquarius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pisces:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ophiuchus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":twisted_rightwards_arrows:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":repeat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":repeat_one:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_forward:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fast_forward:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":next_track_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":play_or_pause_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_backward:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rewind:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":previous_track_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_up_small:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_double_up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_down_small:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":arrow_double_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pause_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":stop_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":record_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eject_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cinema:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":low_brightness:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":high_brightness:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":signal_strength:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vibration_mode:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mobile_phone_off:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":female_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":male_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":transgender_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_multiplication_x:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_plus_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_minus_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_division_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_equals_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":infinity:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bangbang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":interrobang:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":question:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grey_question:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grey_exclamation:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":exclamation:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wavy_dash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":currency_exchange:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_dollar_sign:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":medical_symbol:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":recycle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fleur_de_lis:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trident:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":name_badge:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":beginner:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":o:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_check_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ballot_box_with_check:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heavy_check_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":x:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":negative_squared_cross_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curly_loop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":loop:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":part_alternation_mark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eight_spoked_asterisk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eight_pointed_black_star:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sparkle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":copyright:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":registered:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tm:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hash:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":asterisk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zero:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":one:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":two:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":three:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":four:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":five:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":six:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seven:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eight:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":keycap_ten:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":capital_abcd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":abcd:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":1234:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":symbols:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":abc:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":a:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ab:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":b:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cl:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cool:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":free:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":information_source:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":id:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":m:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ng:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":o2:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ok:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":parking:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sos:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":up:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vs:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":koko:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6708:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6709:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6307:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ideograph_advantage:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u5272:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7121:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7981:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":accept:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7533:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u5408:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u7a7a:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":congratulations:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":secret:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u55b6:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":u6e80:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yellow_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":large_blue_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purple_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brown_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_circle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":red_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":orange_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yellow_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":green_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":blue_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":purple_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brown_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_large_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_large_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_medium_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_medium_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_medium_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_medium_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_small_square:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":large_orange_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":large_blue_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_orange_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_blue_diamond:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_red_triangle:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":small_red_triangle_down:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diamond_shape_with_a_dot_inside:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":radio_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_square_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_square_button:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"section"],[14,"data-section","flags"],[12],[1,"\\n  "],[10,0],[14,0,"section-header"],[12],[1,"\\n    "],[10,1],[14,0,"title"],[12],[1,[28,[35,0],["emoji_picker.flags"],null]],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"section-group"],[12],[1,"\\n    "],[1,[28,[35,1],[":checkered_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":triangular_flag_on_post:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":crossed_flags:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":black_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":white_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rainbow_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":transgender_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pirate_flag:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ascension_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":andorra:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":united_arab_emirates:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":afghanistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":antigua_barbuda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":anguilla:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":albania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":armenia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":angola:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":antarctica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":argentina:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":american_samoa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":austria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":australia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aruba:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":aland_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":azerbaijan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bosnia_herzegovina:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":barbados:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bangladesh:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":belgium:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":burkina_faso:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bulgaria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bahrain:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":burundi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":benin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_barthelemy:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bermuda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brunei:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bolivia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":caribbean_netherlands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":brazil:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bahamas:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bhutan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":bouvet_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":botswana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":belarus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":belize:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canada:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cocos_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":congo_kinshasa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":central_african_republic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":congo_brazzaville:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":switzerland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cote_divoire:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cook_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chile:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cameroon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cn:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":colombia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":clipperton_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":costa_rica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cuba:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cape_verde:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":curacao:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":christmas_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cyprus:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":czech_republic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":de:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":diego_garcia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":djibouti:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":denmark:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dominica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":dominican_republic:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":algeria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ceuta_and_melilla:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ecuador:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":estonia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":egypt:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":western_sahara:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eritrea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":es:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ethiopia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":eu:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":finland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fiji:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":falkland_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":micronesia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":faroe_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":fr:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gabon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uk:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":grenada:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":georgia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":french_guiana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guernsey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ghana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gibraltar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":greenland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":gambia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guinea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guadeloupe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":equatorial_guinea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":greece:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":south_georgia_south_sandwich_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guatemala:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guam:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guinea_bissau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":guyana:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hong_kong:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":heard_and_mc_donald_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":honduras:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":croatia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":haiti:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":hungary:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":canary_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":indonesia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ireland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":israel:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":isle_of_man:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":india:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":british_indian_ocean_territory:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iraq:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iran:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":iceland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":it:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jersey:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jamaica:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jordan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":jp:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kenya:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kyrgyzstan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cambodia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kiribati:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":comoros:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_kitts_nevis:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":north_korea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kr:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kuwait:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":cayman_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kazakhstan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":laos:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lebanon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_lucia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":liechtenstein:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sri_lanka:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":liberia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lesotho:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":lithuania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":luxembourg:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":latvia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":libya:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":morocco:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":monaco:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":moldova:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":montenegro:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_martin:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":madagascar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":marshall_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":macedonia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mali:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":myanmar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mongolia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":macau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":northern_mariana_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":martinique:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mauritania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":montserrat:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":malta:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mauritius:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":maldives:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":malawi:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mexico:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":malaysia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mozambique:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":namibia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_caledonia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":niger:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":norfolk_island:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nigeria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nicaragua:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":netherlands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":norway:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nepal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":nauru:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":niue:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":new_zealand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":oman:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":panama:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":peru:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":french_polynesia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":papua_new_guinea:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":philippines:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pakistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":poland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_pierre_miquelon:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":pitcairn_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":puerto_rico:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palestinian_territories:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":portugal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":palau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":paraguay:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":qatar:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":reunion:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":romania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":serbia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ru:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":rwanda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":saudi_arabia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":solomon_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":seychelles:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sudan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sweden:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":singapore:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_helena:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slovenia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":svalbard_and_jan_mayen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":slovakia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sierra_leone:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":san_marino:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":senegal:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":somalia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":suriname:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":south_sudan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sao_tome_principe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":el_salvador:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":sint_maarten:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":syria:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":swaziland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tristan_da_cunha:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turks_caicos_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":chad:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":french_southern_territories:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":togo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":thailand:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tajikistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tokelau:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":timor_leste:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":turkmenistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tunisia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tonga:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tr:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":trinidad_tobago:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tuvalu:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":taiwan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":tanzania:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":ukraine:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uganda:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":us_outlying_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":united_nations:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":us:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uruguay:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":uzbekistan:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vatican_city:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":st_vincent_grenadines:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":venezuela:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":british_virgin_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":us_virgin_islands:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vietnam:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":vanuatu:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wallis_futuna:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":samoa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":kosovo:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":yemen:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":mayotte:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":south_africa:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zambia:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":zimbabwe:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":england:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":scotland:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n    "],[1,[28,[35,1],[":wales:",[28,[37,2],null,[["lazy","tabIndex"],[true,"0"]]]],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","replace-emoji","hash"]]',moduleName:"discourse/components/emoji-group-sections.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},31319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(51372),l=n(17579),c=n(16572),u=n(24434),d=n(83844),p=n(8253),h=n(35193),m=n(62617),g=n(12933),f=n(57555);const b=(0,n(8620).createTemplateFactory)({id:"8Pi6nSa+",block:'[[[41,[30,0,["isActive"]],[[[1,"  "],[11,0],[16,0,[29,["emoji-picker ",[52,[30,0,["isActive"]],"opened"]]]],[4,[38,1],["keydown",[28,[37,2],[[30,0],"keydown"],null]],null],[12],[1,"\\n"],[1,"    "],[10,0],[14,0,"emoji-picker-category-buttons"],[12],[1,"\\n"],[41,[30,0,["recentEmojis","length"]],[[[1,"        "],[11,"button"],[24,"data-section","recent"],[24,0,"btn btn-flat category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,3],[[30,0,["onCategorySelection"]],"recent"],null]],null],[12],[1,"\\n          "],[1,[28,[35,4],[":star:"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,5],null,[["@onCategorySelection","@tagName"],[[30,0,["onCategorySelection"]],""]],null],[1,"\\n\\n"],[42,[28,[37,7],[[30,0,["customEmojis"]]],null],null,[[[1,"        "],[11,"button"],[16,"data-section",[28,[37,8],["custom-",[30,2]],null]],[24,0,"btn btn-default category-button emoji"],[24,4,"button"],[4,[38,1],["click",[28,[37,3],[[30,0,["onCategorySelection"]],[28,[37,8],["custom-",[30,2]],null]],null]],null],[12],[1,"\\n          "],[1,[28,[35,4],[[28,[37,8],[":",[28,[37,9],[[30,1],"0.code"],null],":"],null]],null]],[1,"\\n        "],[13],[1,"\\n"]],[1,2]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"emoji-picker-content"],[12],[1,"\\n      "],[10,0],[14,0,"emoji-picker-search-container"],[12],[1,"\\n        "],[8,[39,10],[[24,0,"filter"],[24,3,"filter"],[16,"placeholder",[28,[37,11],["emoji_picker.filter_placeholder"],null]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[4,[38,1],["input",[28,[37,2],[[30,0],"onFilterChange"],null]],null]],[["@value","@type"],[[30,3],"search"]],null],[1,"\\n\\n        "],[1,[28,[35,12],["search"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[11,0],[24,0,"emoji-picker-emoji-area"],[24,"role","button"],[4,[38,1],["click",[30,0,["onEmojiSelection"]]],null],[4,[38,1],["mouseover",[30,0,["onEmojiHover"]]],null],[12],[1,"\\n        "],[10,0],[14,0,"results"],[12],[13],[1,"\\n\\n        "],[10,0],[14,0,"emojis-container"],[12],[1,"\\n"],[41,[30,0,["recentEmojis","length"]],[[[1,"            "],[10,0],[14,0,"section recent"],[14,"data-section","recent"],[12],[1,"\\n              "],[10,0],[14,0,"section-header"],[12],[1,"\\n                "],[10,1],[14,0,"title"],[12],[1,[28,[35,11],["emoji_picker.recent"],null]],[13],[1,"\\n                "],[8,[39,13],[[24,0,"trash-recent"]],[["@icon","@action"],["trash-alt",[30,0,["onClearRecent"]]]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"section-group"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["recentEmojis"]]],null]],null],null,[[[1,"                  "],[1,[28,[35,4],[[28,[37,8],[":",[30,4],":"],null],[28,[37,15],null,[["lazy","tabIndex","class"],[true,"0","recent-emoji"]]]],null]],[1,"\\n"]],[4]],null],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,16],null,null,null],[1,"\\n\\n"],[42,[28,[37,7],[[30,0,["customEmojis"]]],null],null,[[[1,"            "],[10,0],[14,0,"section"],[15,"data-section",[29,["custom-",[30,6]]]],[12],[1,"\\n              "],[10,0],[14,0,"section-header"],[12],[1,"\\n                "],[10,1],[14,0,"title"],[12],[1,"\\n                  "],[1,[28,[35,11],[[28,[37,8],["emoji_picker.",[30,6]],null]],[["translatedFallback"],[[30,6]]]]],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"],[41,[30,5,["length"]],[[[1,"                "],[10,0],[14,0,"section-group"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,5]],null]],null],null,[[[1,"                    "],[10,1],[12],[1,"\\n                      "],[10,"img"],[15,"title",[30,7,["code"]]],[14,"width","20"],[14,"height","20"],[14,"loading","lazy"],[14,0,"emoji"],[15,"src",[30,7,["src"]]],[12],[13],[1,"\\n                    "],[13],[1,"\\n"]],[7]],null],[1,"                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[5,6]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"emoji-picker-footer"],[12],[1,"\\n        "],[10,0],[14,0,"emoji-picker-emoji-info"],[12],[1,"\\n"],[41,[30,0,["hoveredEmoji"]],[[[1,"            "],[1,[28,[35,4],[[28,[37,8],[":",[30,0,["hoveredEmoji"]],":"],null]],null]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"emoji-picker-diversity-picker"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["diversityScales"]]],null]],null],null,[[[1,"            "],[8,[39,13],[[16,0,[28,[37,17],["diversity-scale",[30,8,["name"]]],null]]],[["@icon","@title","@action"],[[30,8,["icon"]],[30,8,["title"]],[28,[37,3],[[30,0,["onDiversitySelection"]],[30,9]],null]]],null],[1,"\\n"]],[8,9]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[11,0],[24,"role","button"],[24,0,"emoji-picker-modal-overlay"],[4,[38,1],["click",[30,0,["onClose"]]],null],[12],[13],[1,"\\n"]],[]],null]],[]],null]],["emojis","group","@initialFilter","emoji","emojis","group","emoji","diversityScale","index"],false,["if","on","action","fn","replace-emoji","emoji-group-buttons","each","-each-in","concat","get","input","i18n","d-icon","d-button","-track-array","hash","emoji-group-sections","concat-class"]]',moduleName:"discourse/components/emoji-picker.hbs",isStrictMode:!1});var _,y,w;const v=(0,i.setComponentTemplate)(b,s().extend((_=(0,f.default)("emojiStore.diversity"),y=(0,f.observes)("isActive"),w={emojiStore:(0,l.inject)("emoji-store"),tagName:"",customEmojis:null,recentEmojis:null,hoveredEmoji:null,isActive:!1,usePopper:!0,placement:"auto",initialFilter:"",elements:{searchInput:".emoji-picker-search-container input",picker:".emoji-picker-emoji-area"},init(){this._super(...arguments),this.set("customEmojis",function(){const e=(0,p.extendedEmojiList)(),t=[];for(const[n,r]of e.entries())t[r.group]=t[r.group]||[],t[r.group].push({code:n,src:(0,h.emojiUrlFor)(n)});return t}()),"IntersectionObserver"in window&&(this._sectionObserver=this._setupSectionObserver())},didInsertElement(){this._super(...arguments),this.appEvents.on("emoji-picker:close",this,"onClose")},selectedDiversity:e=>e,_setup(){this.isActive?this.onShow():this.onClose()},willDestroyElement(){this._super(...arguments),this._sectionObserver&&this._sectionObserver.disconnect(),this.appEvents.off("emoji-picker:close",this,"onClose")},onShow(){this.set("recentEmojis",this.emojiStore.favorites),(0,a.schedule)("afterRender",(()=>{this._applyFilter(this.initialFilter),document.addEventListener("click",this.handleOutsideClick);const e=document.querySelector(".emoji-picker");if(!e)return;const t=this._getPopperAnchor();if(!this.site.isMobileDevice&&this.usePopper&&t){const n=[{name:"preventOverflow"},{name:"offset",options:{offset:[5,5]}}];"auto"===this.placement&&window.innerWidth<2*t.clientWidth&&n.push({name:"computeStyles",enabled:!0,fn(e){let{state:t}=e;return t.styles.popper={...t.styles.popper,position:"fixed",left:(window.innerWidth-t.rects.popper.width)/2+"px",top:"50%",transform:"translateY(-50%)"},t}}),this._popper=(0,d.fi)(t,e,{placement:this.placement})}(0,g.default)((()=>{(0,a.schedule)("afterRender",(()=>{if(!this.site.isMobileDevice||this.isEditorFocused){const t=e.querySelector("input.filter");t&&t.focus(),this._sectionObserver&&e.querySelectorAll(".emojis-container .section .section-header").forEach((e=>this._sectionObserver.observe(e)))}0!==this.selectedDiversity&&this._applyDiversity(this.selectedDiversity)}))}),50)}))},onClose(e){e?.stopPropagation(),document.removeEventListener("click",this.handleOutsideClick),this.onEmojiPickerClose&&this.onEmojiPickerClose(e)},diversityScales:(0,o.computed)("selectedDiversity",(function(){return["default","light","medium-light","medium","medium-dark","dark"].map(((e,t)=>({name:e,title:`emoji_picker.${(0,c.underscore)(e)}_tone`,icon:t+1===this.selectedDiversity?"check":""})))})),onClearRecent(){this.emojiStore.favorites=[],this.set("recentEmojis",[])},onDiversitySelection(e){const t=e+1;this.emojiStore.diversity=t,this._applyDiversity(t)},onEmojiHover(e){const t=e.target;if(!t.classList.contains("emoji")||"IMG"!==t.tagName)return!1;this._updateEmojiPreview(e.target.title)},onEmojiSelection(e){const t=e.target;if(!t.classList.contains("emoji")||"IMG"!==t.tagName)return!1;let n=e.target.title;n=this._codeWithDiversity(n,this.selectedDiversity),this.emojiSelected(n),this._trackEmojiUsage(n,{refresh:!t.parentNode.parentNode.classList.contains("recent")}),this.site.isMobileDevice&&this.onClose(e)},onCategorySelection(e,t){t?.preventDefault();const n=document.querySelector(`.emoji-picker-emoji-area .section[data-section="${e}"]`);n&&n.scrollIntoView()},keydown(e){const t=document.querySelectorAll(".emoji-picker-emoji-area .emoji");let n;if("ArrowDown"===e.key&&this._focusedOn(this.elements.searchInput))return this._updateEmojiPreview(t[0].title),t[0].focus(),e.preventDefault(),!1;if("Escape"===e.key){this.onClose(e);const t=e.path||e.composedPath&&e.composedPath(),n=t.find((e=>e?.classList?.contains("chat-composer-container")));return t.find((e=>e?.classList?.contains("d-editor")))?document.querySelector(".d-editor-input")?.focus():n?document.querySelector(".chat-composer__input")?.focus():document.querySelector("textarea")?.focus(),!1}if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.key)){if(!this._focusedOn(this.elements.picker))return;if(Array.from(t).find(((t,r)=>(n=r,t.isEqualNode(e.target)))),"ArrowRight"===e.key){let e=n+1;e<t.length?(this._updateEmojiPreview(t[e].title),t[e].focus()):e>=t.length&&(this._updateEmojiPreview(t[0].title),t[0].focus())}if("ArrowLeft"===e.key){const e=n-1;n>0&&(this._updateEmojiPreview(t[e].title),t[e].focus())}const r=t[n];if("ArrowDown"===e.key){const e=[...t].filter((e=>e.offsetTop>r.offsetTop)).find((e=>e.offsetLeft===r.offsetLeft));this._updateEmojiPreview(e.title),e?.focus()}if("ArrowUp"===e.key){const e=[...t].reverse().filter((e=>e.offsetTop<r.offsetTop)).find((e=>e.offsetLeft===r.offsetLeft));e?(this._updateEmojiPreview(e.title),e.focus()):(this.set("hoveredEmoji",null),document.querySelector(this.elements.searchInput).focus())}return e.preventDefault(),!1}if("Enter"===e.key){if(!this._focusedOn(".emoji"))return;return this.onEmojiSelection(e),this.onClose(e),e.preventDefault(),!1}},onFilterChange(e){this._applyFilter(e.target.value)},_focusedOn:e=>document.activeElement.closest(e)?document.activeElement:null,_applyFilter(e){const t=document.querySelector(".emoji-picker"),n=document.querySelector(".emoji-picker-emoji-area .results");n.innerHTML="",e?(n.innerHTML=(0,p.emojiSearch)(e.toLowerCase(),{diversity:this.emojiStore.diversity,exclude:this.site.denied_emojis}).map(this._replaceEmoji).join(""),t.classList.add("has-filter"),n.scrollIntoView()):t.classList.remove("has-filter")},_trackEmojiUsage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emojiStore.track(e),t.refresh&&this.set("recentEmojis",[...this.emojiStore.favorites])},_replaceEmoji(e){const t=(0,h.emojiUnescape)(`:${(0,m.escapeExpression)(e)}:`,{lazy:!0,tabIndex:"0"});return(0,u.htmlSafe)(t)},_codeWithDiversity:(e,t)=>/:t\d/.test(e)?e:t>1&&(0,p.isSkinTonableEmoji)(e)?`${e}:t${t}`:e,_applyDiversity(e){const t=document.querySelector(".emoji-picker-emoji-area");t&&t.querySelectorAll(".emoji.diversity").forEach((t=>{const n=this._codeWithDiversity(t.title,e);t.src=(0,h.emojiUrlFor)(n)}))},_setupSectionObserver:()=>new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.parentNode.dataset.section,n=document.querySelector(".emoji-picker .emoji-picker-category-buttons");if(!n)return;const r=n.querySelector(`.category-button[data-section="${t}"]`);n.querySelectorAll(".category-button").forEach((e=>e.classList.remove("current"))),r&&r.classList.add("current")}}))}),{threshold:1}),_getPopperAnchor:()=>document.querySelector(".emoji-picker-anchor")??document.querySelector(".d-editor-textarea-wrapper"),_updateEmojiPreview(e){return this.set("hoveredEmoji",this._codeWithDiversity(e,this.selectedDiversity))},handleOutsideClick(e){const t=document.querySelector(".emoji-picker");t&&!t.contains(e.target)&&this.onClose(e)}},(0,r.Z)(w,"selectedDiversity",[_],Object.getOwnPropertyDescriptor(w,"selectedDiversity"),w),(0,r.Z)(w,"_setup",[y],Object.getOwnPropertyDescriptor(w,"_setup"),w),(0,r.Z)(w,"onShow",[o.action],Object.getOwnPropertyDescriptor(w,"onShow"),w),(0,r.Z)(w,"onClose",[o.action],Object.getOwnPropertyDescriptor(w,"onClose"),w),(0,r.Z)(w,"onClearRecent",[o.action],Object.getOwnPropertyDescriptor(w,"onClearRecent"),w),(0,r.Z)(w,"onDiversitySelection",[o.action],Object.getOwnPropertyDescriptor(w,"onDiversitySelection"),w),(0,r.Z)(w,"onEmojiHover",[o.action],Object.getOwnPropertyDescriptor(w,"onEmojiHover"),w),(0,r.Z)(w,"onEmojiSelection",[o.action],Object.getOwnPropertyDescriptor(w,"onEmojiSelection"),w),(0,r.Z)(w,"onCategorySelection",[o.action],Object.getOwnPropertyDescriptor(w,"onCategorySelection"),w),(0,r.Z)(w,"keydown",[o.action],Object.getOwnPropertyDescriptor(w,"keydown"),w),(0,r.Z)(w,"onFilterChange",[o.action],Object.getOwnPropertyDescriptor(w,"onFilterChange"),w),(0,r.Z)(w,"handleOutsideClick",[f.bind],Object.getOwnPropertyDescriptor(w,"handleOutsideClick"),w),w)))},44364:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(33217),c=n(88548),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"qwt0idAX",block:'[[[10,0],[14,0,"emoji-uploader form-horizontal"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,1],[14,0,"label"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.emoji.name"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"input"],[12],[1,"\\n      "],[8,[39,1],[[24,1,"emoji-name"],[24,3,"name"],[16,"placeholder",[28,[37,0],["admin.emoji.name"],null]],[4,[38,3],["input",[28,[37,4],[[30,0],[28,[37,5],[[30,0,["name"]]],null]],[["value"],["target.value"]]]],null]],[["@value"],[[28,[37,2],[[30,0,["name"]]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,1],[14,0,"label"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.emoji.group"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"input"],[12],[1,"\\n      "],[8,[39,6],null,[["@name","@id","@value","@content","@onChange","@valueProperty","@nameProperty","@options"],["group","emoji-group-selector",[30,0,["group"]],[30,0,["newEmojiGroups"]],[28,[37,4],[[30,0],"createEmojiGroup"],null],null,null,[28,[37,7],null,[["allowAny"],[true]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,0],[14,0,"input"],[12],[1,"\\n      "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"multiple","true"],[14,"accept",".png,.gif"],[14,4,"file"],[12],[13],[1,"\\n      "],[8,[39,8],[[24,0,"btn-primary"]],[["@translatedLabel","@icon","@action","@disabled"],[[30,0,["buttonLabel"]],"plus",[30,0,["chooseFiles"]],[30,0,["uploading"]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","input","readonly","on","action","mut","combo-box","hash","d-button"]]',moduleName:"discourse/components/emoji-uploader.hbs",isStrictMode:!1});var h,m,g;const f="default",b=(0,i.setComponentTemplate)(p,s().extend(c.default,(h=(0,u.default)("uploading","uploadProgress"),m=(0,u.default)("uploading"),g={type:"emoji",uploadUrl:"/admin/customize/emojis",hasName:(0,a.notEmpty)("name"),hasGroup:(0,a.notEmpty)("group"),group:"default",emojiGroups:null,newEmojiGroups:null,tagName:null,preventDirectS3Uploads:!0,didReceiveAttrs(){this._super(...arguments),this.set("newEmojiGroups",this.emojiGroups)},createEmojiGroup(e){let t=this.newEmojiGroups;e!==f&&(t=this.emojiGroups.concat([e]).uniq()),this.setProperties({newEmojiGroups:t,group:e})},_perFileData(){const e={};return(0,l.isEmpty)(this.name)||(e.name=this.name,this.set("name",null)),(0,l.isEmpty)(this.group)||this.group===f||(e.group=this.group),e},validateUploadedFilesOptions:()=>({imagesOnly:!0}),uploadDone(e){this.done(e,this.group),this.set("name",null)},chooseFiles(){this.fileInputEl.click()},buttonLabel:(e,t)=>e?`${d.default.t("admin.emoji.uploading")} ${t}%`:d.default.t("admin.emoji.add"),buttonIcon:e=>e?"spinner":"plus"},(0,r.Z)(g,"createEmojiGroup",[o.action],Object.getOwnPropertyDescriptor(g,"createEmojiGroup"),g),(0,r.Z)(g,"chooseFiles",[o.action],Object.getOwnPropertyDescriptor(g,"chooseFiles"),g),(0,r.Z)(g,"buttonLabel",[h],Object.getOwnPropertyDescriptor(g,"buttonLabel"),g),(0,r.Z)(g,"buttonIcon",[m],Object.getOwnPropertyDescriptor(g,"buttonIcon"),g),g)))},58271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"JYBJpchh",block:'[[[10,0],[14,0,"empty-state-container"],[12],[1,"\\n  "],[10,0],[14,0,"empty-state"],[12],[1,"\\n    "],[10,1],[14,0,"empty-state-title"],[12],[1,[30,1]],[13],[1,"\\n    "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n      "],[10,2],[12],[1,[30,2]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@title","@body"],false,[]]',moduleName:"discourse/components/empty-state.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},61111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(3055);const o=(0,n(8620).createTemplateFactory)({id:"ySzYa6KQ",block:'[[[41,[30,0,["item","truncated"]],[[[1,"  "],[10,3],[14,6,""],[15,0,[52,[30,0,["expanded"]],"collapse-item","expand-item"]],[15,"onclick",[28,[37,1],[[30,0],"toggleItem"],null]],[15,"title",[28,[37,2],["post.expand_collapse"],null]],[12],[1,"\\n"],[41,[30,0,["expanded"]],[[[1,"      "],[1,[28,[35,3],["chevron-up"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,3],["chevron-down"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","action","i18n","d-icon"]]',moduleName:"discourse/components/expand-post.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({tagName:"",expanded:null,_loading:!1,actions:{toggleItem(){if(this._loading)return!1;const e=this.item;if(this.expanded)return this.set("expanded",!1),e.set("expandedExcerpt",null),!1;const t=e.get("topic_id"),n=e.get("post_number");return this._loading=!0,(0,s.ajax)(`/posts/by_number/${t}/${n}.json`).then((t=>{this.set("expanded",!0),e.set("expandedExcerpt",t.cooked)})).finally((()=>this._loading=!1)),!1}}}))},41030:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o,a=n(54001),l=n(89906),c=n(51372),u=n(71466),d=n.n(u),p=n(64383),h=n(57555);const m=l.TextArea.extend((r=(0,h.on)("didInsertElement"),i=(0,h.observes)("value"),s=(0,h.on)("willDestroyElement"),o={_startWatching(){(0,c.schedule)("afterRender",(()=>{d()(this.element).focus(),(0,p.default)(this.element)}))},_updateAutosize(){this.element.value=this.value;const e=new Event("autosize:update",{bubbles:!0,cancelable:!1});this.element.dispatchEvent(e)},_disableAutosize(){p.default.destroy(d()(this.element))}},(0,a.Z)(o,"_startWatching",[r],Object.getOwnPropertyDescriptor(o,"_startWatching"),o),(0,a.Z)(o,"_updateAutosize",[i],Object.getOwnPropertyDescriptor(o,"_updateAutosize"),o),(0,a.Z)(o,"_disableAutosize",[s],Object.getOwnPropertyDescriptor(o,"_disableAutosize"),o),o))},23151:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r,i,s,o,a=n(94664),l=n(49246),c=n(54001),u=n(82006),d=n(23183),p=n(55071),h=n(48581),m=n(48163),g=n(69338),f=n(90311),b=n(76301),_=n(3055),y=n(38864),w=n(62617),v=n(67835),k=n(82099),x=n(8620),T=n(31691);let S=(o=class extends u.default{constructor(){super(...arguments),(0,a.Z)(this,"isSaving",i,this),(0,a.Z)(this,"value",s,this),(0,l.Z)(this,"buttonTitle",k.default.t("composer.title",{modifier:(0,w.translateModKey)("Meta+")}))}get disabled(){return this.value===this.args.initialValue}onKeydown(e){"Enter"!==e.key||!e.ctrlKey&&!e.metaKey||this.disabled||this.save()}updateValue(e){e.preventDefault(),this.value=e.target.value}updateValueProperty(e){this.value=e}async save(){this.isSaving=!0;try{const e=(await(0,_.ajax)(`/posts/${this.args.post.id}`)).raw.replace((0,b.fixQuotes)(this.args.initialValue),(0,b.fixQuotes)(this.value));await this.args.post.save({raw:e})}catch(e){(0,y.popupAjaxError)(e)}finally{this.isSaving=!1,this.args.close()}}},(0,T.setComponentTemplate)((0,x.createTemplateFactory)({id:"OfMEh+is",block:'[[[1,"\\n"],[1,"    "],[11,0],[24,0,"fast-edit-container"],[4,[32,0],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n      "],[11,"textarea"],[24,1,"fast-edit-input"],[4,[32,0],["input",[30,0,["updateValue"]]],null],[4,[32,1],null,null],[12],[1,[30,0,["value"]]],[13],[1,"\\n\\n      "],[10,0],[14,0,"fast-edit-container__footer"],[12],[1,"\\n        "],[8,[32,2],[[24,0,"btn-small btn-primary save-fast-edit"]],[["@action","@icon","@label","@translatedTitle","@isLoading","@disabled"],[[30,0,["save"]],"pencil-alt","composer.save_edit",[30,0,["buttonTitle"]],[30,0,["isSaving"]],[30,0,["disabled"]]]],null],[1,"\\n\\n        "],[8,[32,3],null,[["@name","@defaultGlimmer","@outletArgs"],["fast-edit-footer-after",true,[28,[32,4],null,[["initialValue","newValue","updateValue"],[[30,1],[30,2],[30,0,["updateValueProperty"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@initialValue","@newValue"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/fast-edit.js",scope:()=>[h.on,v.default,g.default,f.default,p.hash],isStrictMode:!0}),o),r=o,i=(0,c.Z)(r.prototype,"isSaving",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,c.Z)(r.prototype,"value",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.newValue||this.args.initialValue}}),(0,c.Z)(r.prototype,"onKeydown",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"onKeydown"),r.prototype),(0,c.Z)(r.prototype,"updateValue",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"updateValue"),r.prototype),(0,c.Z)(r.prototype,"updateValueProperty",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"updateValueProperty"),r.prototype),(0,c.Z)(r.prototype,"save",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"save"),r.prototype),r)},66263:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(31691),i=n.n(r),s=n(71466),o=n.n(s);const a=(0,n(8620).createTemplateFactory)({id:"3LpWP1hz",block:'[[[1,[28,[35,0],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n"],[10,3],[15,6,[30,0,["topic","lastUnreadUrl"]]],[14,0,"title"],[12],[1,[28,[35,1],[[30,0,["topic","fancyTitle"]]],null]],[13],[1,"\\n"],[8,[39,2],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n\\n"],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[14,0,"last-posted-at"],[12],[1,[28,[35,3],[[30,0,["topic","last_posted_at"]]],null]],[13]],[],false,["raw","html-safe","topic-post-badges","format-age"]]',moduleName:"discourse/components/featured-topic.hbs",isStrictMode:!1}),l=(0,r.setComponentTemplate)(a,i().extend({classNameBindings:[":featured-topic"],attributeBindings:["topic.id:data-topic-id"],click(e){if(e.target.closest(".last-posted-at"))return this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:o()(e.target).offset()}),!1}}))},88278:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(77348),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"WoX//RzN",block:'[[[10,0],[15,0,[30,0,["wrapperClassNames"]]],[12],[1,"\\n"],[41,[30,0,["isNotifyUser"]],[[[1,"    "],[10,"h3"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n      "],[10,"label"],[14,0,"radio checkbox-label"],[12],[1,"\\n        "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,1],["click",[28,[37,2],[[30,0],"changePostActionType",[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n\\n        "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n          "],[10,1],[14,0,"description"],[12],[1,[28,[35,3],[[30,0,["flag","description"]]],null]],[13],[1,"\\n"],[41,[30,0,["showMessageInput"]],[[[1,"            "],[8,[39,4],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,5],["flagging.notify_user_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1,"            "],[10,0],[15,0,[28,[37,6],["custom-message-length",[30,0,["customMessageLengthClasses"]]],null]],[12],[1,"\\n              "],[1,[30,0,["customMessageLength"]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["staffFlagsAvailable"]],[[[1,"      "],[10,"hr"],[12],[13],[1,"\\n      "],[10,"h3"],[12],[1,[28,[35,5],["flagging.notify_staff"],null]],[13],[1,"\\n"]],[]],null]],[]],[[[1,"    "],[10,0],[15,0,[29,["controls ",[30,0,["flag","name_key"]]]]],[12],[1,"\\n      "],[10,"label"],[14,0,"radio checkbox-label"],[12],[1,"\\n        "],[11,"input"],[16,1,[29,["radio_",[30,0,["flag","name_key"]]]]],[24,3,"post_action_type_index"],[24,4,"radio"],[4,[38,1],["click",[28,[37,2],[[30,0],"changePostActionType",[30,0,["flag"]]],null]],null],[12],[13],[1,"\\n        "],[10,0],[14,0,"flag-action-type-details"],[12],[1,"\\n          "],[10,"strong"],[12],[1,[30,0,["formattedName"]]],[13],[1,"\\n"],[41,[30,0,["showDescription"]],[[[1,"            "],[10,0],[14,0,"description"],[12],[1,[28,[35,3],[[30,0,["description"]]],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["showMessageInput"]],[[[1,"            "],[8,[39,4],[[24,3,"message"],[24,0,"flag-message"],[16,"placeholder",[30,0,["customPlaceholder"]]],[16,"aria-label",[28,[37,5],["flagging.notify_moderators_textarea_label"],null]]],[["@value"],[[30,0,["message"]]]],null],[1,"            "],[10,0],[15,0,[28,[37,6],["custom-message-length",[30,0,["customMessageLengthClasses"]]],null]],[12],[1,"\\n              "],[1,[30,0,["customMessageLength"]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],[],false,["if","on","action","html-safe","textarea","i18n","concat-class"]]',moduleName:"discourse/components/flag-action-type.hbs",isStrictMode:!1});var d,p,h,m,g,f,b,_;const y=(0,i.setComponentTemplate)(u,s().extend((d=(0,l.default)("flag.name_key"),p=(0,l.default)("flag.name_key"),h=(0,l.default)("flag.name","flag.name_key","flag.is_custom_flag","username"),m=(0,l.default)("flag","selectedFlag"),g=(0,l.default)("flag.description","flag.short_description"),f=(0,l.default)("message.length"),b=(0,l.default)("message.length"),_={tagName:"",wrapperClassNames:e=>`flag-action-type ${e}`,customPlaceholder:e=>c.default.t("flagging.custom_placeholder_"+e),formattedName:(e,t,n,r)=>n?e.replace(/{{username}}|%{username}/,r):c.default.t("flagging.formatted_name."+t),selected:(e,t)=>e===t,showMessageInput:(0,o.and)("flag.is_custom_flag","selected"),showDescription:(0,o.not)("showMessageInput"),isNotifyUser:(0,o.equal)("flag.name_key","notify_user"),description(e,t){return this.site.mobileView?t:e},customMessageLengthClasses(e){return e<this.siteSettings.min_personal_message_post_length?"too-short":"ok"},customMessageLength(e){const t=e||0,n=this.siteSettings.min_personal_message_post_length;return 0===t?c.default.t("flagging.custom_message.at_least",{count:n}):t<n?c.default.t("flagging.custom_message.more",{count:n-t}):c.default.t("flagging.custom_message.left",{count:a.MAX_MESSAGE_LENGTH-t})},actions:{changePostActionType(e){this.changePostActionType(e)}}},(0,r.Z)(_,"wrapperClassNames",[d],Object.getOwnPropertyDescriptor(_,"wrapperClassNames"),_),(0,r.Z)(_,"customPlaceholder",[p],Object.getOwnPropertyDescriptor(_,"customPlaceholder"),_),(0,r.Z)(_,"formattedName",[h],Object.getOwnPropertyDescriptor(_,"formattedName"),_),(0,r.Z)(_,"selected",[m],Object.getOwnPropertyDescriptor(_,"selected"),_),(0,r.Z)(_,"description",[g],Object.getOwnPropertyDescriptor(_,"description"),_),(0,r.Z)(_,"customMessageLengthClasses",[f],Object.getOwnPropertyDescriptor(_,"customMessageLengthClasses"),_),(0,r.Z)(_,"customMessageLength",[b],Object.getOwnPropertyDescriptor(_,"customMessageLength"),_),_)))},52465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(51372),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"US7eVXzz",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["flags"]]],null]],null],null,[[[1,"  "],[18,2,[[30,1]]],[1,"\\n"]],[1]],[[[1,"  "],[1,[28,[35,3],["flagging.cant"],null]],[1,"\\n"]],[]]]],["f","&default"],false,["each","-track-array","yield","i18n"]]',moduleName:"discourse/components/flag-selection.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.observes)("nameKey"),u={_selectRadio(){this.element.querySelector("input[type='radio']").checked=!1;const e=this.nameKey;if(!e)return;const t=this.element.querySelector("#radio_"+e);t&&(t.checked="true")},selectedChanged(){(0,o.next)(this,this._selectRadio)}},(0,r.Z)(u,"selectedChanged",[c],Object.getOwnPropertyDescriptor(u,"selectedChanged"),u),u)))},88601:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555),a=n(82099);const l=(0,n(8620).createTemplateFactory)({id:"Y4OXmcyw",block:'[[[1,[28,[35,0],[[30,0,["icon"]]],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/flat-button.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,o.default)("title"),u={tagName:"button",classNames:["btn-flat"],attributeBindings:["disabled","translatedTitle:title"],translatedTitle(e){if(e)return a.default.t(e)},keyDown(e){if("Enter"===e.key)return this.action?.(),!1},click(){return this.action?.(),!1}},(0,r.Z)(u,"translatedTitle",[c],Object.getOwnPropertyDescriptor(u,"translatedTitle"),u),u)))},6810:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"A55koHGZ",block:'[[[10,"h3"],[12],[1,"\\n  "],[1,[30,0,["message"]]],[1,"\\n  "],[18,1,null],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["education"]],[[[1,"  "],[10,0],[14,0,"education"],[12],[1,"\\n    "],[1,[28,[35,2],[[30,0,["education"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["&default"],false,["yield","if","html-safe"]]',moduleName:"discourse/components/footer-message.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({classNames:["footer-message"]}))},78754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(54001),a=n(51372),l=n(17238),c=n(62617),u=n(38101),d=n(63374),p=n(57555);const h=l.default.extend(d.default,u.default,(r=(0,p.observes)("mobileScrollDirection"),i=(0,p.observes)("currentRouteIndex"),s={widget:"footer-nav",mobileScrollDirection:null,scrollEventDisabled:!1,classNames:["footer-nav","visible"],routeHistory:[],currentRouteIndex:0,canGoBack:!1,canGoForward:!1,backForwardClicked:null,buildArgs(){return{canGoBack:this.canGoBack,canGoForward:this.canGoForward}},didInsertElement(){this._super(...arguments),this.appEvents.on("page:changed",this,"_routeChanged"),this.capabilities.isAppWebview&&(this.appEvents.on("modal:body-shown",this,"_modalOn"),this.appEvents.on("modal:body-dismissed",this,"_modalOff")),this.capabilities.isIpadOS?document.body.classList.add("footer-nav-ipad"):(this.bindScrolling(),window.addEventListener("resize",this.scrolled,!1),this.appEvents.on("composer:opened",this,"_composerOpened"),this.appEvents.on("composer:closed",this,"_composerClosed"),document.body.classList.add("footer-nav-visible"))},willDestroyElement(){this._super(...arguments),this.appEvents.off("page:changed",this,"_routeChanged"),this.capabilities.isAppWebview&&(this.appEvents.off("modal:body-shown",this,"_modalOn"),this.appEvents.off("modal:body-removed",this,"_modalOff")),this.capabilities.isIpadOS?document.body.classList.remove("footer-nav-ipad"):(this.unbindScrolling(),window.removeEventListener("resize",this.scrolled),this.appEvents.off("composer:opened",this,"_composerOpened"),this.appEvents.off("composer:closed",this,"_composerClosed"))},scrolled(){this.isDestroyed||this.isDestroying||"inDOM"!==this._state||this.scrollEventDisabled||(0,a.throttle)(this,this.calculateDirection,window.pageYOffset,150)},toggleMobileFooter(){this.element.classList.toggle("visible",null===this.mobileScrollDirection),document.body.classList.toggle("footer-nav-visible",null===this.mobileScrollDirection)},_routeChanged(e){this.backForwardClicked?this.backForwardClicked=null:(this.routeHistory.push(e.url),this.set("currentRouteIndex",this.routeHistory.length),this.queueRerender())},_composerOpened(){this.set("mobileScrollDirection","down"),this.set("scrollEventDisabled",!0)},_composerClosed(){this.set("mobileScrollDirection",null),this.set("scrollEventDisabled",!1)},_modalOn(){const e=document.querySelector(".modal-backdrop");e&&(0,c.postRNWebviewMessage)("headerBg",getComputedStyle(e)["background-color"])},_modalOff(){const e=document.querySelector(".d-header");e&&(0,c.postRNWebviewMessage)("headerBg",getComputedStyle(e)["background-color"])},goBack(){this.set("currentRouteIndex",this.currentRouteIndex-1),this.backForwardClicked=!0,window.history.back()},goForward(){this.set("currentRouteIndex",this.currentRouteIndex+1),this.backForwardClicked=!0,window.history.forward()},setBackForward(){let e=this.currentRouteIndex;this.set("canGoBack",!!(e>1||document.referrer)),this.set("canGoForward",e<this.routeHistory.length)}},(0,o.Z)(s,"toggleMobileFooter",[r],Object.getOwnPropertyDescriptor(s,"toggleMobileFooter"),s),(0,o.Z)(s,"setBackForward",[i],Object.getOwnPropertyDescriptor(s,"setBackForward"),s),s))},77069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"GQeqc3ut",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","checkbox"],[12],[1,"\\n  "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n    "],[8,[39,0],[[16,3,[30,1]],[24,0,"form-template-field__checkbox"],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@checked","@type"],[[30,3],"checkbox"]],null],[1,"\\n    "],[1,[30,4,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"      "],[1,[28,[35,2],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,4,["description"]],[[[1,"    "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n      "],[1,[28,[35,3],[[30,4,["description"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["@id","@validations","@value","@attributes"],false,["input","if","d-icon","html-safe"]]',moduleName:"discourse/components/form-template-field/checkbox.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},56502:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"J7lnQKqp",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","dropdown"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1,"    "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n      "],[1,[28,[35,2],[[30,1,["description"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,"  "],[10,"select"],[15,3,[30,3]],[14,0,"form-template-field__dropdown"],[15,"required",[52,[30,2,["required"]],"required",""]],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1,"      "],[10,"option"],[14,0,"form-template-field__dropdown-placeholder"],[14,2,""],[14,"disabled",""],[14,"selected",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,4],[[28,[37,4],[[30,4]],null]],null],null,[[[1,"      "],[10,"option"],[15,2,[30,5]],[15,"selected",[28,[37,5],[[30,6],[30,5]],null]],[12],[1,[30,5]],[13],[1,"\\n"]],[5]],null],[1,"  "],[13],[1,"\\n"],[13]],["@attributes","@validations","@id","@choices","choice","@value"],false,["if","d-icon","html-safe","each","-track-array","eq"]]',moduleName:"discourse/components/form-template-field/dropdown.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},41747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"QDj+yBnh",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","input"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1,"    "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n      "],[1,[28,[35,2],[[30,1,["description"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,3],[[16,3,[30,3]],[24,0,"form-template-field__input"],[16,"placeholder",[30,1,["placeholder"]]],[16,"required",[52,[30,2,["required"]],"required",""]],[16,"pattern",[30,2,["pattern"]]],[16,"minlength",[30,2,["minimum"]]],[16,"maxlength",[30,2,["maximum"]]]],[["@value","@type"],[[30,4],[52,[30,2,["type"]],[30,2,["type"]],"text"]]],null],[1,"\\n"],[13]],["@attributes","@validations","@id","@value"],false,["if","d-icon","html-safe","input"]]',moduleName:"discourse/components/form-template-field/input.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},58455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(82006),s=n(48163);const o=(0,n(8620).createTemplateFactory)({id:"NKMFiY6D",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","multi-select"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1,"    "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n      "],[1,[28,[35,2],[[30,1,["description"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[1,"  "],[10,"select"],[15,3,[30,3]],[14,0,"form-template-field__multi-select"],[15,"required",[52,[30,2,["required"]],"required",""]],[14,"multiple","multiple"],[12],[1,"\\n"],[41,[30,1,["none_label"]],[[[1,"      "],[10,"option"],[14,0,"form-template-field__multi-select-placeholder"],[14,2,""],[14,"disabled",""],[14,"hidden",""],[12],[1,[30,1,["none_label"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,4],[[28,[37,4],[[30,4]],null]],null],null,[[[1,"      "],[10,"option"],[15,2,[30,5]],[15,"selected",[28,[30,0,["isSelected"]],[[30,5]],null]],[12],[1,[30,5]],[13],[1,"\\n"]],[5]],null],[1,"  "],[13],[1,"\\n"],[13]],["@attributes","@validations","@id","@choices","choice"],false,["if","d-icon","html-safe","each","-track-array"]]',moduleName:"discourse/components/form-template-field/multi-select.hbs",isStrictMode:!1});var a,l=n(31691);let c=(a=class extends i.default{isSelected(e){return this.args.value?.includes(e)}},(0,r.Z)(a.prototype,"isSelected",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"isSelected"),a.prototype),a);(0,l.setComponentTemplate)(o,c)},38431:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"mpc65LYI",block:'[[[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","textarea"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"    "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n      "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"        "],[1,[28,[35,1],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1,"    "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n      "],[1,[28,[35,2],[[30,1,["description"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,3],[[16,3,[30,3]],[24,0,"form-template-field__textarea"],[16,"placeholder",[30,1,["placeholder"]]],[16,"pattern",[30,2,["pattern"]]],[16,"minlength",[30,2,["minimum"]]],[16,"maxlength",[30,2,["maximum"]]],[16,"required",[52,[30,2,["required"]],"required",""]]],[["@value"],[[30,4]]],null],[1,""],[13]],["@attributes","@validations","@id","@value"],false,["if","d-icon","html-safe","textarea"]]',moduleName:"discourse/components/form-template-field/textarea.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},73790:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r,i,s,o,a,l,c,u,d=n(94664),p=n(49246),h=n(54001),m=n(23183),g=n(31691),f=n.n(g),b=n(48163),_=n(16572),y=n(24434),w=n(27805),v=n(29966),k=n(88548),x=n(40098),T=n(8620);let S=(r=(0,b.computed)("uploadingOrProcessing"),u=class extends(f().extend(k.default)){constructor(){super(...arguments),(0,d.Z)(this,"uploadValue",s,this),(0,d.Z)(this,"uploadedFiles",o,this),(0,d.Z)(this,"disabled",a,this),(0,d.Z)(this,"fileUploadElementId",l,this),(0,d.Z)(this,"fileInputSelector",c,this),(0,p.Z)(this,"type","composer")}get uploadStatusLabel(){return this.uploadingOrProcessing?"form_templates.upload_field.uploading":"form_templates.upload_field.upload"}isUploadedFileAllowed(e){const t=this.attributes.file_types,n=e.name.split(".").pop();return!t||t.includes(`.${n}`)||t.includes(e.type)}uploadDone(e){!this.attributes.allow_multiple&&this.uploadValue&&(this.uploadedFiles=[],this.uploadValue=""),this.uploadedFiles.pushObject(e);const t=this.buildMarkdown(e);this.uploadValue&&this.allowMultipleFiles?this.uploadValue=`${this.uploadValue}\n${t}`:this.uploadValue=t}buildMarkdown(e){return(0,v.isImage)(e.url)?`![${e.file_name}|${e.width}x${e.height}](${e.short_url})`:(0,v.isAudio)(e.url)?`![${e.file_name}|audio](${e.short_url})`:(0,v.isVideo)(e.url)?`![${e.file_name}|video](${e.short_url})`:`[${e.file_name}|attachment](${e.short_url}) (${e.human_filesize})`}},(0,g.setComponentTemplate)((0,T.createTemplateFactory)({id:"Mdkkg/8a",block:'[[[1,"\\n    "],[10,0],[14,0,"control-group form-template-field"],[14,"data-field-type","upload"],[12],[1,"\\n"],[41,[30,1,["label"]],[[[1,"        "],[10,"label"],[14,0,"form-template-field__label"],[12],[1,"\\n          "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,2,["required"]],[[[1,"            "],[1,[28,[32,0],["asterisk"],[["class"],["form-template-field__required-indicator"]]]],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["description"]],[[[1,"        "],[10,1],[14,0,"form-template-field__description"],[12],[1,"\\n          "],[1,[28,[32,1],[[30,1,["description"]]],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,"input"],[15,3,[30,3]],[15,2,[30,0,["uploadValue"]]],[14,4,"hidden"],[12],[13],[1,"\\n\\n      "],[8,[32,2],null,[["@fileInputClass","@fileInputId","@allowMultiple","@showButton","@onFilesPicked","@icon","@label","@fileInputDisabled","@acceptedFormatsOverride","@acceptedFileTypesString"],["form-template-field__upload",[30,0,["fileUploadElementId"]],[30,1,["allow_multiple"]],true,true,"upload",[30,0,["uploadStatusLabel"]],[30,0,["disabled"]],[30,1,["file_types"]],[30,1,["file_types"]]]],null],[1,"\\n\\n"],[41,[30,0,["uploadedFiles"]],[[[1,"        "],[10,"ul"],[14,0,"form-template-field__uploaded-files"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["uploadedFiles"]]],null]],null],null,[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[1,[28,[32,0],["file"],null]],[1,"\\n              "],[10,3],[15,6,[30,4,["url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,4,["file_name"]]],[13],[1,"\\n              "],[10,1],[12],[1,[30,4,["human_filesize"]]],[13],[1,"\\n            "],[13],[1,"\\n"]],[4]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],["@attributes","@validations","@id","file"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/upload.js",scope:()=>[x.default,y.htmlSafe,w.default],isStrictMode:!0}),u),i=u,s=(0,h.Z)(i.prototype,"uploadValue",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,h.Z)(i.prototype,"uploadedFiles",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),a=(0,h.Z)(i.prototype,"disabled",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.uploadingOrProcessing}}),l=(0,h.Z)(i.prototype,"fileUploadElementId",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`${(0,_.dasherize)(this.id)}-uploader`}}),c=(0,h.Z)(i.prototype,"fileInputSelector",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return`#${this.fileUploadElementId}`}}),(0,h.Z)(i.prototype,"uploadStatusLabel",[r],Object.getOwnPropertyDescriptor(i.prototype,"uploadStatusLabel"),i.prototype),i)},86319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>an});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(66373);function u(e){return null==e}var d={isNothing:u,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:u(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,i,s;if(t)for(n=0,r=(s=Object.keys(t)).length;n<r;n+=1)e[i=s[n]]=t[i];return e}};function p(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function h(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=p(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=function(e){return this.name+": "+p(this,e)};var m=h;function g(e,t,n,r,i){var s="",o="",a=Math.floor(i/2)-1;return r-t>a&&(t=r-a+(s=" ... ").length),n-r>a&&(n=r+a-(o=" ...").length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+s.length}}function f(e,t){return d.repeat(" ",t-e.length)+e}var b=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],s=[],o=-1;n=r.exec(e.buffer);)s.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a,l,c="",u=Math.min(e.line+t.linesAfter,s.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)l=g(e.buffer,i[o-a],s[o-a],e.position-(i[o]-i[o-a]),p),c=d.repeat(" ",t.indent)+f((e.line-a+1).toString(),u)+" | "+l.str+"\n"+c;for(l=g(e.buffer,i[o],s[o],e.position,p),c+=d.repeat(" ",t.indent)+f((e.line+1).toString(),u)+" | "+l.str+"\n",c+=d.repeat("-",t.indent+u+3+l.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=s.length);a++)l=g(e.buffer,i[o+a],s[o+a],e.position-(i[o]-i[o+a]),p),c+=d.repeat(" ",t.indent)+f((e.line+a+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},_=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],y=["scalar","sequence","mapping"],w=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===_.indexOf(t))throw new m('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===y.indexOf(this.kind))throw new m('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function v(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function k(e){return this.extend(e)}k.prototype.extend=function(e){var t=[],n=[];if(e instanceof w)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new m("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof w))throw new m("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new m("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new m("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof w))throw new m("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(k.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=v(r,"implicit"),r.compiledExplicit=v(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var x=k,T=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),S=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),C=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),P=new x({explicit:[T,S,C]}),O=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),E=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function D(e){return 48<=e&&e<=55}function I(e){return 48<=e&&e<=57}var j=new w("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,s=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;s=!0}return s&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;s=!0}return s&&"_"!==t}if("o"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!D(e.charCodeAt(i)))return!1;s=!0}return s&&"_"!==t}}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(!I(e.charCodeAt(i)))return!1;s=!0}return!(!s||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!d.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Z=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),A=/^[-+]?[0-9]+e/,M=new w("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Z.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||d.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(d.isNegativeZero(e))return"-0.0";return n=e.toString(10),A.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),N=P.extend({implicit:[O,E,j,M]}),z=N,L=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),F=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),U=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==L.exec(e)||null!==F.exec(e))},construct:function(e){var t,n,r,i,s,o,a,l,c=0,u=null;if(null===(t=L.exec(e))&&(t=F.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,s,o,a,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),R=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",$=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,s=B;for(n=0;n<i;n++)if(!((t=s.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=B,o=0,a=[];for(t=0;t<i;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|s.indexOf(r.charAt(t));return 0==(n=i%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,s=e.length,o=B;for(t=0;t<s;t++)t%3==0&&t&&(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]),i=(i<<8)+e[t];return 0==(n=s%3)?(r+=o[i>>18&63],r+=o[i>>12&63],r+=o[i>>6&63],r+=o[63&i]):2===n?(r+=o[i>>10&63],r+=o[i>>4&63],r+=o[i<<2&63],r+=o[64]):1===n&&(r+=o[i>>2&63],r+=o[i<<4&63],r+=o[64],r+=o[64]),r}}),q=Object.prototype.hasOwnProperty,H=Object.prototype.toString,W=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,s,o=[],a=e;for(t=0,n=a.length;t<n;t+=1){if(r=a[t],s=!1,"[object Object]"!==H.call(r))return!1;for(i in r)if(q.call(r,i)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==o.indexOf(i))return!1;o.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),K=Object.prototype.toString,V=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],"[object Object]"!==K.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;s[t]=[i[0],r[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}}),G=Object.prototype.hasOwnProperty,Y=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(G.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Q=z.extend({implicit:[U,R],explicit:[$,W,V,Y]}),J=Object.prototype.hasOwnProperty,X=1,ee=2,te=3,ne=4,re=1,ie=2,se=3,oe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ae=/[\x85\u2028\u2029]/,le=/[,\[\]\{\}]/,ce=/^(?:!|!!|![a-z\-]+!)$/i,ue=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function de(e){return Object.prototype.toString.call(e)}function pe(e){return 10===e||13===e}function he(e){return 9===e||32===e}function me(e){return 9===e||32===e||10===e||13===e}function ge(e){return 44===e||91===e||93===e||123===e||125===e}function fe(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function be(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function _e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var ye=new Array(256),we=new Array(256),ve=0;ve<256;ve++)ye[ve]=be(ve)?1:0,we[ve]=be(ve);function ke(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Q,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function xe(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=b(n),new m(t,n)}function Te(e,t){throw xe(e,t)}function Se(e,t){e.onWarning&&e.onWarning.call(null,xe(e,t))}var Ce={YAML:function(e,t,n){var r,i,s;null!==e.version&&Te(e,"duplication of %YAML directive"),1!==n.length&&Te(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Te(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),s=parseInt(r[2],10),1!==i&&Te(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,1!==s&&2!==s&&Se(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&Te(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],ce.test(r)||Te(e,"ill-formed tag handle (first argument) of the TAG directive"),J.call(e.tagMap,r)&&Te(e,'there is a previously declared suffix for "'+r+'" tag handle'),ue.test(i)||Te(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){Te(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function Pe(e,t,n,r){var i,s,o,a;if(t<n){if(a=e.input.slice(t,n),r)for(i=0,s=a.length;i<s;i+=1)9===(o=a.charCodeAt(i))||32<=o&&o<=1114111||Te(e,"expected valid JSON character");else oe.test(a)&&Te(e,"the stream contains non-printable characters");e.result+=a}}function Oe(e,t,n,r){var i,s,o,a;for(d.isObject(n)||Te(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(i=Object.keys(n)).length;o<a;o+=1)s=i[o],J.call(t,s)||(t[s]=n[s],r[s]=!0)}function Ee(e,t,n,r,i,s,o,a,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&Te(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===de(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===de(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(s))for(c=0,u=s.length;c<u;c+=1)Oe(e,t,s[c],n);else Oe(e,t,s,n);else e.json||J.call(n,i)||!J.call(t,i)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,Te(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete n[i];return t}function De(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ie(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;he(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!pe(i))break;for(De(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&Se(e,"deficient indentation"),r}function je(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!me(t)))}function Ze(e,t){1===t?e.result+=" ":t>1&&(e.result+=d.repeat("\n",t-1))}function Ae(e,t){var n,r,i=e.tag,s=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Te(e,"tab characters must not be used in indentation")),45===r)&&me(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Ie(e,!0,-1)&&e.lineIndent<=t)o.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,ze(e,t,te,!1,!0),o.push(e.result),Ie(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)Te(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=s,e.kind="sequence",e.result=o,!0)}function Me(e){var t,n,r,i,s=!1,o=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Te(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(o=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):Te(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!me(i);)33===i&&(o?Te(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),ce.test(n)||Te(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),le.test(r)&&Te(e,"tag suffix cannot contain flow indicator characters")}r&&!ue.test(r)&&Te(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){Te(e,"tag name is malformed: "+r)}return s?e.tag=r:J.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:Te(e,'undeclared tag handle "'+n+'"'),!0}function Ne(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Te(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!me(n)&&!ge(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ze(e,t,n,r,i){var s,o,a,l,c,u,p,h,m,g=1,f=!1,b=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=ne===n||te===n,r&&Ie(e,!0,-1)&&(f=!0,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)),1===g)for(;Me(e)||Ne(e);)Ie(e,!0,-1)?(f=!0,a=s,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)):a=!1;if(a&&(a=f||i),1!==g&&ne!==n||(h=X===n||ee===n?t:t+1,m=e.position-e.lineStart,1===g?a&&(Ae(e,m)||function(e,t,n){var r,i,s,o,a,l,c,u=e.tag,d=e.anchor,p={},h=Object.create(null),m=null,g=null,f=null,b=!1,_=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(b||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Te(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,63!==c&&58!==c||!me(r)){if(o=e.line,a=e.lineStart,l=e.position,!ze(e,n,ee,!1,!0))break;if(e.line===s){for(c=e.input.charCodeAt(e.position);he(c);)c=e.input.charCodeAt(++e.position);if(58===c)me(c=e.input.charCodeAt(++e.position))||Te(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Ee(e,p,h,m,g,null,o,a,l),m=g=f=null),_=!0,b=!1,i=!1,m=e.tag,g=e.result;else{if(!_)return e.tag=u,e.anchor=d,!0;Te(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!_)return e.tag=u,e.anchor=d,!0;Te(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(b&&(Ee(e,p,h,m,g,null,o,a,l),m=g=f=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Te(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===s||e.lineIndent>t)&&(b&&(o=e.line,a=e.lineStart,l=e.position),ze(e,t,ne,!0,i)&&(b?g=e.result:f=e.result),b||(Ee(e,p,h,m,g,f,o,a,l),m=g=f=null),Ie(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&0!==c)Te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&Ee(e,p,h,m,g,null,o,a,l),_&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),_}(e,m,h))||function(e,t){var n,r,i,s,o,a,l,c,u,d,p,h,m=!0,g=e.tag,f=e.anchor,b=Object.create(null);if(91===(h=e.input.charCodeAt(e.position)))o=93,c=!1,s=[];else{if(123!==h)return!1;o=125,c=!0,s={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),h=e.input.charCodeAt(++e.position);0!==h;){if(Ie(e,!0,t),(h=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=g,e.anchor=f,e.kind=c?"mapping":"sequence",e.result=s,!0;m?44===h&&Te(e,"expected the node content, but found ','"):Te(e,"missed comma between flow collection entries"),p=null,a=l=!1,63===h&&me(e.input.charCodeAt(e.position+1))&&(a=l=!0,e.position++,Ie(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,ze(e,t,X,!1,!0),d=e.tag,u=e.result,Ie(e,!0,t),h=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==h||(a=!0,h=e.input.charCodeAt(++e.position),Ie(e,!0,t),ze(e,t,X,!1,!0),p=e.result),c?Ee(e,s,b,d,u,p,n,r,i):a?s.push(Ee(e,null,b,d,u,p,n,r,i)):s.push(u),Ie(e,!0,t),44===(h=e.input.charCodeAt(e.position))?(m=!0,h=e.input.charCodeAt(++e.position)):m=!1}Te(e,"unexpected end of the stream within a flow collection")}(e,h)?b=!0:(o&&function(e,t){var n,r,i,s,o,a=re,l=!1,c=!1,u=t,p=0,h=!1;if(124===(s=e.input.charCodeAt(e.position)))r=!1;else{if(62!==s)return!1;r=!0}for(e.kind="scalar",e.result="";0!==s;)if(43===(s=e.input.charCodeAt(++e.position))||45===s)re===a?a=43===s?se:ie:Te(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(o=s)&&o<=57?o-48:-1)>=0))break;0===i?Te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Te(e,"repeat of an indentation width identifier"):(u=t+i-1,c=!0)}if(he(s)){do{s=e.input.charCodeAt(++e.position)}while(he(s));if(35===s)do{s=e.input.charCodeAt(++e.position)}while(!pe(s)&&0!==s)}for(;0!==s;){for(De(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),pe(s))p++;else{if(e.lineIndent<u){a===se?e.result+=d.repeat("\n",l?1+p:p):a===re&&l&&(e.result+="\n");break}for(r?he(s)?(h=!0,e.result+=d.repeat("\n",l?1+p:p)):h?(h=!1,e.result+=d.repeat("\n",p+1)):0===p?l&&(e.result+=" "):e.result+=d.repeat("\n",p):e.result+=d.repeat("\n",l?1+p:p),l=!0,c=!0,p=0,n=e.position;!pe(s)&&0!==s;)s=e.input.charCodeAt(++e.position);Pe(e,n,e.position,!1)}}return!0}(e,h)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(Pe(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else pe(n)?(Pe(e,r,i,!0),Ze(e,Ie(e,!1,t)),r=i=e.position):e.position===e.lineStart&&je(e)?Te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Te(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var n,r,i,s,o,a,l;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Pe(e,n,e.position,!0),e.position++,!0;if(92===a){if(Pe(e,n,e.position,!0),pe(a=e.input.charCodeAt(++e.position)))Ie(e,!1,t);else if(a<256&&ye[a])e.result+=we[a],e.position++;else if((o=120===(l=a)?2:117===l?4:85===l?8:0)>0){for(i=o,s=0;i>0;i--)(o=fe(a=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+o:Te(e,"expected hexadecimal character");e.result+=_e(s),e.position++}else Te(e,"unknown escape sequence");n=r=e.position}else pe(a)?(Pe(e,n,r,!0),Ze(e,Ie(e,!1,t)),n=r=e.position):e.position===e.lineStart&&je(e)?Te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Te(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?b=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!me(r)&&!ge(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Te(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),J.call(e.anchorMap,n)||Te(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ie(e,!0,-1),!0}(e)?(b=!0,null===e.tag&&null===e.anchor||Te(e,"alias node should not have any properties")):function(e,t,n){var r,i,s,o,a,l,c,u,d=e.kind,p=e.result;if(me(u=e.input.charCodeAt(e.position))||ge(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(me(r=e.input.charCodeAt(e.position+1))||n&&ge(r)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,o=!1;0!==u;){if(58===u){if(me(r=e.input.charCodeAt(e.position+1))||n&&ge(r))break}else if(35===u){if(me(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&je(e)||n&&ge(u))break;if(pe(u)){if(a=e.line,l=e.lineStart,c=e.lineIndent,Ie(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=s,e.line=a,e.lineStart=l,e.lineIndent=c;break}}o&&(Pe(e,i,s,!1),Ze(e,e.line-a),i=s=e.position,o=!1),he(u)||(s=e.position+1),u=e.input.charCodeAt(++e.position)}return Pe(e,i,s,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,h,X===n)&&(b=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(b=a&&Ae(e,m))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Te(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((p=e.implicitTypes[l]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(J.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){p=u[l];break}p||Te(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Te(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||b}function Le(e){var t,n,r,i,s=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(Ie(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!me(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&Te(e,"directive name must not be less than one character in length");0!==i;){for(;he(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!pe(i));break}if(pe(i))break;for(t=e.position;0!==i&&!me(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&De(e),J.call(Ce,n)?Ce[n](e,n,r):Se(e,'unknown document directive "'+n+'"')}Ie(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Ie(e,!0,-1)):o&&Te(e,"directives end mark is expected"),ze(e,e.lineIndent-1,ne,!1,!0),Ie(e,!0,-1),e.checkLineBreaks&&ae.test(e.input.slice(s,e.position))&&Se(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&je(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Ie(e,!0,-1)):e.position<e.length-1&&Te(e,"end of the stream or a document separator is expected")}function Fe(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new ke(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,Te(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Le(n);return n.documents}var Ue={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=Fe(e,n);if("function"!=typeof t)return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])},load:function(e,t){var n=Fe(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new m("expected a single document in the stream, but found more")}}},Re=Object.prototype.toString,Be=Object.prototype.hasOwnProperty,$e=65279,qe=9,He=10,We=13,Ke=32,Ve=33,Ge=34,Ye=35,Qe=37,Je=38,Xe=39,et=42,tt=44,nt=45,rt=58,it=61,st=62,ot=63,at=64,lt=91,ct=93,ut=96,dt=123,pt=124,ht=125,mt={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},gt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ft=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function bt(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new m("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+d.repeat("0",r-t.length)+t}var _t=2;function yt(e){this.schema=e.schema||Q,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=d.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,s,o,a,l;if(null===t)return{};for(n={},i=0,s=(r=Object.keys(t)).length;i<s;i+=1)o=r[i],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(l=e.compiledTypeMap.fallback[o])&&Be.call(l.styleAliases,a)&&(a=l.styleAliases[a]),n[o]=a;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?_t:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function wt(e,t){for(var n,r=d.repeat(" ",t),i=0,s=-1,o="",a=e.length;i<a;)-1===(s=e.indexOf("\n",i))?(n=e.slice(i),i=a):(n=e.slice(i,s+1),i=s+1),n.length&&"\n"!==n&&(o+=r),o+=n;return o}function vt(e,t){return"\n"+d.repeat(" ",e.indent*t)}function kt(e){return e===Ke||e===qe}function xt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==$e||65536<=e&&e<=1114111}function Tt(e){return xt(e)&&e!==$e&&e!==We&&e!==He}function St(e,t,n){var r=Tt(e),i=r&&!kt(e);return(n?r:r&&e!==tt&&e!==lt&&e!==ct&&e!==dt&&e!==ht)&&e!==Ye&&!(t===rt&&!i)||Tt(t)&&!kt(t)&&e===Ye||t===rt&&i}function Ct(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Pt(e){return/^\n* /.test(e)}var Ot=1,Et=2,Dt=3,It=4,jt=5;function Zt(e,t,n,r,i){e.dump=function(){if(0===t.length)return e.quotingType===_t?'""':"''";if(!e.noCompatMode&&(-1!==gt.indexOf(t)||ft.test(t)))return e.quotingType===_t?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=r||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,r,i,s,o,a){var l,c,u=0,d=null,p=!1,h=!1,m=-1!==r,g=-1,f=xt(c=Ct(e,0))&&c!==$e&&!kt(c)&&c!==nt&&c!==ot&&c!==rt&&c!==tt&&c!==lt&&c!==ct&&c!==dt&&c!==ht&&c!==Ye&&c!==Je&&c!==et&&c!==Ve&&c!==pt&&c!==it&&c!==st&&c!==Xe&&c!==Ge&&c!==Qe&&c!==at&&c!==ut&&function(e){return!kt(e)&&e!==rt}(Ct(e,e.length-1));if(t||o)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!xt(u=Ct(e,l)))return jt;f=f&&St(u,d,a),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=Ct(e,l))===He)p=!0,m&&(h=h||l-g-1>r&&" "!==e[g+1],g=l);else if(!xt(u))return jt;f=f&&St(u,d,a),d=u}h=h||m&&l-g-1>r&&" "!==e[g+1]}return p||h?n>9&&Pt(e)?jt:o?s===_t?jt:Et:h?It:Dt:!f||o||i(e)?s===_t?jt:Et:Ot}(t,a,e.indent,o,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!r,i)){case Ot:return t;case Et:return"'"+t.replace(/'/g,"''")+"'";case Dt:return"|"+At(t,e.indent)+Mt(wt(t,s));case It:return">"+At(t,e.indent)+Mt(wt(function(e,t){for(var n,r,i,s=/(\n+)([^\n]*)/g,o=(i=-1!==(i=e.indexOf("\n"))?i:e.length,s.lastIndex=i,Nt(e.slice(0,i),t)),a="\n"===e[0]||" "===e[0];r=s.exec(e);){var l=r[1],c=r[2];n=" "===c[0],o+=l+(a||n||""===c?"":"\n")+Nt(c,t),a=n}return o}(t,o),s));case jt:return'"'+function(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)r=Ct(e,i),!(t=mt[r])&&xt(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||bt(r);return n}(t)+'"';default:throw new m("impossible error: invalid scalar style")}}()}function At(e,t){var n=Pt(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function Mt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Nt(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,s=0,o=0,a=0,l="";n=i.exec(e);)(a=n.index)-s>t&&(r=o>s?o:a,l+="\n"+e.slice(s,r),s=r+1),o=a;return l+="\n",e.length-s>t&&o>s?l+=e.slice(s,o)+"\n"+e.slice(o+1):l+=e.slice(s),l.slice(1)}function zt(e,t,n,r){var i,s,o,a="",l=e.tag;for(i=0,s=n.length;i<s;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(Ft(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Ft(e,t+1,null,!0,!0,!1,!0))&&(r&&""===a||(a+=vt(e,t)),e.dump&&He===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function Lt(e,t,n){var r,i,s,o,a,l;for(s=0,o=(i=n?e.explicitTypes:e.implicitTypes).length;s<o;s+=1)if(((a=i[s]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(n?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===Re.call(a.represent))r=a.represent(t,l);else{if(!Be.call(a.represent,l))throw new m("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');r=a.represent[l](t,l)}e.dump=r}return!0}return!1}function Ft(e,t,n,r,i,s,o){e.tag=null,e.dump=n,Lt(e,n,!1)||Lt(e,n,!0);var a,l=Re.call(e.dump),c=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===l||"[object Array]"===l;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(i=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var i,s,o,a,l,c,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new m("sortKeys must be a boolean or a function");for(i=0,s=p.length;i<s;i+=1)c="",r&&""===u||(c+=vt(e,t)),a=n[o=p[i]],e.replacer&&(a=e.replacer.call(n,o,a)),Ft(e,t+1,o,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&He===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=vt(e,t)),Ft(e,t+1,a,!0,l)&&(e.dump&&He===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,i),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,i,s,o,a,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),o=n[s=u[r]],e.replacer&&(o=e.replacer.call(n,s,o)),Ft(e,t,s,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ft(e,t,o,!1,!1)&&(l+=a+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l)r&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?zt(e,t-1,e.dump,i):zt(e,t,e.dump,i),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,i,s,o="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)s=n[r],e.replacer&&(s=e.replacer.call(n,String(r),s)),(Ft(e,t,s,!1,!1)||void 0===s&&Ft(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new m("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&Zt(e,e.dump,t,s,c)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Ut(e,t){var n,r,i=[],s=[];for(Rt(e,i,s),n=0,r=s.length;n<r;n+=1)t.duplicates.push(i[s[n]]);t.usedDuplicates=new Array(r)}function Rt(e,t,n){var r,i,s;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Rt(e[i],t,n);else for(i=0,s=(r=Object.keys(e)).length;i<s;i+=1)Rt(e[r[i]],t,n)}function Bt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}const $t={Type:w,Schema:x,FAILSAFE_SCHEMA:P,JSON_SCHEMA:N,CORE_SCHEMA:z,DEFAULT_SCHEMA:Q,load:Ue.load,loadAll:Ue.loadAll,dump:function(e,t){var n=new yt(t=t||{});n.noRefs||Ut(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Ft(n,0,r,!0,!0)?n.dump+"\n":""},YAMLException:m,types:{binary:$,float:M,map:C,null:O,pairs:V,set:Y,timestamp:U,bool:E,int:j,merge:R,omap:W,seq:S,str:T},safeLoad:Bt("safeLoad","load"),safeLoadAll:Bt("safeLoadAll","loadAll"),safeDump:Bt("safeDump","dump")};var qt,Ht,Wt,Kt,Vt=n(93264),Gt=n(77069),Yt=n(56502),Qt=n(41747),Jt=n(58455),Xt=n(38431),en=n(73790),tn=n(8620),nn=n(31691),rn=n(91138),sn=n.n(rn);const on=(0,nn.setComponentTemplate)((0,tn.createTemplateFactory)({id:"wDhODgwk",block:'[[[1,"\\n  "],[8,[30,1],null,[["@id","@attributes","@choices","@validations","@value"],[[30,2,["id"]],[30,2,["attributes"]],[30,2,["choices"]],[30,2,["validations"]],[30,3]]],null],[1,"\\n"]],["@component","@content","@initialValue"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/wrapper.js",isStrictMode:!0}),sn()());let an=(Kt=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"error",Ht,this),(0,r.Z)(this,"parsedTemplate",Wt,this),(0,i.Z)(this,"initialValues",this.args.initialValues??{}),(0,i.Z)(this,"fieldTypes",{checkbox:Gt.default,input:Qt.default,dropdown:Yt.default,"multi-select":Jt.default,textarea:Xt.default,upload:en.default}),this.args.content?this._loadTemplate(this.args.content):this.args.id&&this._fetchTemplate(this.args.id)}_loadTemplate(e){try{this.parsedTemplate=$t.load(e),this.args.onSelectFormTemplate?.(this.parsedTemplate)}catch(e){this.error=e}}refreshTemplate(){if(!Array.isArray(this.args?.id)||0!==this.args?.id.length)return this._fetchTemplate(this.args.id)}async _fetchTemplate(e){const t=await Vt.default.findById(e),n=await t.form_template.template;return this._loadTemplate(n)}},(0,nn.setComponentTemplate)((0,tn.createTemplateFactory)({id:"rnXMTCD1",block:'[[[1,"\\n"],[41,[30,0,["parsedTemplate"]],[[[1,"      "],[11,0],[24,0,"form-template-form__wrapper"],[4,[32,0],[[30,0,["refreshTemplate"]],[30,1]],null],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["parsedTemplate"]]],null]],null],null,[[[1,"          "],[8,[32,1],null,[["@component","@content","@initialValue"],[[28,[32,2],[[30,0,["fieldTypes"]],[30,2,["type"]]],null],[30,2],[28,[32,2],[[30,0,["initialValues"]],[30,2,["id"]]],null]]],null],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n        "],[1,[30,0,["error"]]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "]],["@id","content"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/form-template-field/wrapper.js",scope:()=>[c.default,on,l.get],isStrictMode:!0}),Kt),qt=Kt,Ht=(0,s.Z)(qt.prototype,"error",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Wt=(0,s.Z)(qt.prototype,"parsedTemplate",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,s.Z)(qt.prototype,"refreshTemplate",[l.action],Object.getOwnPropertyDescriptor(qt.prototype,"refreshTemplate"),qt.prototype),qt)},14490:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(50459),c=n(57555),u=n(82099),d=n(53314);const p=(0,n(8620).createTemplateFactory)({id:"h88ZSmfg",block:'[[[10,0],[14,0,"future-date-input"],[12],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[15,0,[30,0,["labelClasses"]]],[12],[1,"\\n      "],[41,[30,0,["displayLabelIcon"]],[[[1,[28,[35,1],[[30,0,["displayLabelIcon"]]],null]]],[]],null],[1,[30,0,["displayLabel"]]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],null,[["@value","@content","@clearable","@onChangeInput","@onChange","@options"],[[28,[37,3],[[30,0,["selection"]]],null],[30,0,["shortcuts"]],[30,0,["clearable"]],[30,0,["onChangeInput"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["selection"]]],null]],null],[28,[37,6],null,[["none"],["time_shortcut.select_timeframe"]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["displayDateAndTimePicker"]],[[[1,"    "],[10,0],[14,0,"control-group future-date-input-date-picker"],[12],[1,"\\n      "],[1,[28,[35,1],["calendar-alt"],null]],[1,"\\n      "],[8,[39,7],null,[["@value","@defaultDate","@onSelect"],[[30,0,["_date"]],[30,0,["_date"]],[28,[37,4],[[30,0],"onChangeDate"],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group future-date-input-time-picker"],[12],[1,"\\n      "],[1,[28,[35,1],["far-clock"],null]],[1,"\\n      "],[8,[39,8],[[24,"placeholder","--:--"],[24,0,"time-input"],[16,"disabled",[30,0,["timeInputDisabled"]]],[4,[38,9],["input",[28,[37,4],[[30,0],"onChangeTime"],[["value"],["target.value"]]]],null]],[["@type","@value"],["time",[30,0,["_time"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","d-icon","future-date-input-selector","readonly","action","mut","hash","date-picker-future","input","on"]]',moduleName:"discourse/components/future-date-input.hbs",isStrictMode:!1});var h,m;const g=(0,i.setComponentTemplate)(p,s().extend((h=(0,c.default)("customShortcuts"),m={selection:null,includeDateTime:!0,isCustom:(0,a.equal)("selection","custom"),displayDateAndTimePicker:(0,a.and)("includeDateTime","isCustom"),displayLabel:null,labelClasses:null,timeInputDisabled:(0,a.empty)("_date"),userTimezone:null,onChangeInput:null,_date:null,_time:null,init(){this._super(...arguments),this.userTimezone=this.currentUser.user_option.timezone},didReceiveAttrs(){if(this._super(...arguments),this.label&&this.set("displayLabel",u.default.t(this.label)),this.input){const e=moment(this.input),t=this._findClosestShortcut(e);t?this.set("selection",t.id):this.setProperties({selection:l.TIME_SHORTCUT_TYPES.CUSTOM,_date:e.format("YYYY-MM-DD"),_time:e.format("HH:mm")})}},shortcuts(e){let t;t=e&&e.length?e:(0,l.extendedDefaultTimeShortcuts)(this.userTimezone);const n=(0,l.timeShortcuts)(this.userTimezone);return this.includeDateTime&&t.push(n.custom()),this.includeNow&&t.push(n.now()),t=(0,l.hideDynamicTimeShortcuts)(t,this.userTimezone,this.siteSettings),t.map((e=>({id:e.id,name:u.default.t(e.label),time:e.time,timeFormatted:(0,l.formatTime)(e),icon:e.icon})))},onChangeDate(e){e||this.set("_time",null),this._dateTimeChanged(e,this._time)},onChangeTime(e){this._date&&this._dateTimeChanged(this._date,e)},_dateTimeChanged(e,t){t=t?` ${t}`:"";const n=moment(`${e}${t}`);n.isValid()?this.onChangeInput?.(n.format(d.FORMAT)):this.onChangeInput?.(null)},_findClosestShortcut(e){return this.shortcuts.find((t=>{if(t.time){const n=t.time.diff(e);return 0<=n&&n<6e4}}))}},(0,r.Z)(m,"shortcuts",[h],Object.getOwnPropertyDescriptor(m,"shortcuts"),m),(0,r.Z)(m,"onChangeDate",[o.action],Object.getOwnPropertyDescriptor(m,"onChangeDate"),m),(0,r.Z)(m,"onChangeTime",[o.action],Object.getOwnPropertyDescriptor(m,"onChangeTime"),m),m)))},57155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"cN5BYJjK",block:'[[[10,2],[12],[1,[28,[35,0],["user.invited.link_generated"],null]],[13],[1,"\\n"],[10,2],[12],[1,"\\n  "],[10,"input"],[15,2,[30,0,["link"]]],[14,0,"invite-link-input"],[14,4,"text"],[12],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["email"]],[[[1,"  "],[10,2],[12],[1,[28,[35,0],["user.invited.valid_for"],[["email"],[[30,0,["email"]]]]]],[13],[1,"\\n"]],[]],null]],[],false,["i18n","if"]]',moduleName:"discourse/components/generated-invite-link.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({didInsertElement(){this._super(...arguments);const e=this.element.querySelector(".invite-link-input");e.focus(),e.select()}}))},32593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(82006),i=n(89461),s=n(43122),o=n(20244);class a extends s.CustomComponentManager{create(e,t,n,r,i,s){const a=super.create(...arguments);return a.component.parentView=i.view,i.view=a.component,a.component._target=(0,o.valueForRef)(s),a}getCapabilities(){return{...super.getCapabilities(),createCaller:!0}}}class l extends r.default{}(0,s.setInternalComponentManager)(new a((e=>new i.default(e))),l)},32562:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addGlobalNotice:()=>C,default:()=>E});var r=n(94664),i=n(49246),s=n(54001),o=n(31691),a=n.n(o),l=n(48163),c=n.n(l),u=n(17579),d=n(24434),p=n(57959),h=n(62505),m=n(59469),g=n(57555),f=n(82099);const b=(0,n(8620).createTemplateFactory)({id:"pIyLazKR",block:'[[[10,0],[14,0,"global-notice"],[12],[1,"\\n"],[41,[30,0,["visible"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["notices"]]],null]],null],null,[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[10,0],[15,1,[29,["global-notice-",[30,1,["id"]]]]],[15,0,[29,["alert alert-",[30,1,["options","level"]]," ",[30,1,["id"]]]]],[12],[1,"\\n"],[41,[30,1,["options","html"]],[[[1,"            "],[1,[28,[35,3],[[30,1,["options","html"]]],null]],[1,"\\n"]],[]],null],[1,"\\n          "],[10,1],[14,0,"text"],[12],[1,[28,[35,3],[[30,1,["text"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["options","dismissable"]],[[[1,"            "],[8,[39,4],[[24,0,"btn-flat close"]],[["@icon","@action"],["times",[28,[37,5],[[30,0,["dismissNotice"]],[30,1]],null]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[1]],null]],[]],null],[13]],["notice"],false,["if","each","-track-array","html-safe","d-button","fn"]]',moduleName:"discourse/components/global-notice.hbs",isStrictMode:!1});var _,y,w,v,k,x,T;const S=new p.TrackedArray;function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S.push(O.create({text:e,id:t,options:n}))}const P="dismissed-global-notice-v2",O=c().extend({logsNoticeService:(0,u.inject)("logsNotice"),text:null,id:null,options:null,init(){this._super(...arguments),this.options=this.set("options",Object.assign({dismissable:!1,html:null,level:"info",persistentDismiss:!0,onDismiss:null,visibility:null,dismissDuration:null},this.options||{}))}});let E=(_=(0,h.tagName)(""),y=(0,u.inject)("logsNotice"),_((v=class extends(a()){constructor(){super(...arguments),(0,r.Z)(this,"keyValueStore",k,this),(0,r.Z)(this,"logsNoticeService",x,this),(0,r.Z)(this,"router",T,this),(0,i.Z)(this,"logNotice",null),this.logsNoticeService.addObserver("hidden",this._handleLogsNoticeUpdate),this.logsNoticeService.addObserver("text",this._handleLogsNoticeUpdate)}willDestroyElement(){super.willDestroyElement(...arguments),this.logsNoticeService.removeObserver("text",this._handleLogsNoticeUpdate),this.logsNoticeService.removeObserver("hidden",this._handleLogsNoticeUpdate)}get visible(){return!this.router.currentRouteName.startsWith("wizard.")}get notices(){let e=[];return"1"===(0,m.default)("dosp")&&((0,m.removeCookie)("dosp",{path:"/"}),e.push(O.create({text:this.siteSettings.login_required?f.default.t("forced_anonymous_login_required"):f.default.t("forced_anonymous"),id:"forced-anonymous"}))),this.session.get("safe_mode")&&e.push(O.create({text:f.default.t("safe_mode.enabled"),id:"safe-mode"})),this.site.get("isStaffWritesOnly")?e.push(O.create({text:f.default.t("staff_writes_only_mode.enabled"),id:"alert-staff-writes-only"})):this.site.get("isReadOnly")&&e.push(O.create({text:f.default.t("read_only_mode.enabled"),id:"alert-read-only"})),"yes"===this.siteSettings.disable_emails?e.push(O.create({text:f.default.t("emails_are_disabled"),id:"alert-emails-disabled",options:{dismissable:!0,persistentDismiss:!1}})):"non-staff"===this.siteSettings.disable_emails&&e.push(O.create({text:f.default.t("emails_are_disabled_non_staff"),id:"alert-emails-disabled",options:{dismissable:!0,persistentDismiss:!1}})),this.siteSettings.global_notice?.length>0&&e.push(O.create({text:this.siteSettings.global_notice,id:"alert-global-notice"})),this.get("logNotice")&&e.push(this.get("logNotice")),e.concat(S).filter((e=>{if(e.options.visibility)return e.options.visibility(e);const t=`${P}-${e.id}`,n=this.keyValueStore.get(t);if(!n)return!0;if(!e.options.persistentDismiss)return!0;if(e.options.dismissDuration){const t=moment(n).add(e.options.dismissDuration);return moment().isAfter(t)}return!1}))}dismissNotice(e){e.options.onDismiss?.(e),e.options.persistentDismiss&&this.keyValueStore.set({key:`${P}-${e.id}`,value:moment().toISOString(!0)});const t=document.getElementById(`global-notice-${e.id}`);t&&(t.style.display="none")}_handleLogsNoticeUpdate(){const e=O.create({text:(0,d.htmlSafe)(this.logsNoticeService.message),id:"alert-logs-notice",options:{dismissable:!0,persistentDismiss:!1,visibility:()=>!this.logsNoticeService.hidden,onDismiss:()=>this.logsNoticeService.set("text","")}});this.set("logNotice",e)}},k=(0,s.Z)(v.prototype,"keyValueStore",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,s.Z)(v.prototype,"logsNoticeService",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,s.Z)(v.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(v.prototype,"dismissNotice",[l.action],Object.getOwnPropertyDescriptor(v.prototype,"dismissNotice"),v.prototype),(0,s.Z)(v.prototype,"_handleLogsNoticeUpdate",[g.bind],Object.getOwnPropertyDescriptor(v.prototype,"_handleLogsNoticeUpdate"),v.prototype),w=v))||w);(0,o.setComponentTemplate)(b,E)},84722:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"di1pFoLw",block:'[[[10,"svg"],[14,0,"fa d-icon d-icon-custom-google-oauth2 svg-icon"],[14,"viewBox","0 0 48 48"],[12],[10,"defs"],[12],[10,"path"],[14,1,"google-icon-a"],[14,"d","M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4z"],[12],[13],[13],[10,"clipPath"],[14,1,"google-icon-b"],[12],[10,"use"],[14,6,"#google-icon-a"],[14,"overflow","visible"],[12],[13],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#FBBC05"],[14,"d","M0 37V11l17 13z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#EA4335"],[14,"d","M0 11l17 13 7-6.1L48 14V0H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#34A853"],[14,"d","M0 37l30-23 7.9 1L48 0v48H0z"],[12],[13],[10,"path"],[14,"clip-path","url(#google-icon-b)"],[14,"fill","#4285F4"],[14,"d","M48 48L17 24l-4-3 35-10z"],[12],[13],[13]],[],false,[]]',moduleName:"discourse/components/google-icon.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},71439:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(47582),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"g2bohitX",block:'[[[10,"form"],[14,"action","//google.com/search"],[14,1,"google-search"],[14,0,"inline-form"],[12],[1,"\\n  "],[10,"input"],[14,3,"q"],[15,"aria-label",[28,[37,0],["search.search_google"],null]],[15,2,[30,0,["searchTerm"]]],[14,4,"text"],[12],[13],[1,"\\n  "],[10,"input"],[14,3,"as_sitesearch"],[15,2,[30,0,["siteUrl"]]],[14,4,"hidden"],[12],[13],[1,"\\n  "],[10,"button"],[14,0,"btn btn-primary"],[14,4,"submit"],[12],[1,[28,[35,0],["search.search_google_button"],null]],[13],[1,"\\n"],[13]],[],false,["i18n"]]',moduleName:"discourse/components/google-search.hbs",isStrictMode:!1});var u;const d=(0,i.setComponentTemplate)(c,s().extend((u={classNames:["google-search-form"],classNameBindings:["hidden:hidden"],hidden:(0,o.alias)("siteSettings.login_required"),siteUrl:()=>`${location.protocol}//${location.host}${(0,a.default)("/")}`},(0,r.Z)(u,"siteUrl",[l.default],Object.getOwnPropertyDescriptor(u,"siteUrl"),u),u)))},96634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"BgR64wzx",block:'[[[8,[39,0],null,[["@route","@query"],[[28,[37,1],["group.activity.",[30,0,["filter"]]],null],[28,[37,2],null,[["category_id"],[[30,0,["categoryId"]]]]]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,3],[[28,[37,1],["groups.",[30,0,["filter"]]],null]],null]],[1,"\\n"]],[]]]]]],[],false,["link-to","concat","hash","i18n"]]',moduleName:"discourse/components/group-activity-filter.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"li"}))},43488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(17579),c=n(10425),u=n(63319),d=n(20229),p=n(62617),h=n(80471),m=n(10158),g=n(57555);const f=(0,n(8620).createTemplateFactory)({id:"d3Q1JQwE",block:'[[[41,[30,0,["visible"]],[[[1,"  "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n          "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"group-card-avatar"],[12],[1,"\\n          "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"card-huge-avatar"],[4,[38,1],["click",[28,[37,2],[[30,0,["handleShowGroup"]],[30,0,["group"]]],null]],null],[12],[1,"\\n            "],[8,[39,3],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["group","name"]],[30,0,["group","flair_url"]],[30,0,["group","flair_bg_color"]],[30,0,["group","flair_color"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"names"],[12],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[10,"h1"],[15,0,[30,0,["group","name"]]],[12],[1,"\\n              "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"group-page-link"],[4,[38,1],["click",[28,[37,2],[[30,0,["handleShowGroup"]],[30,0,["group"]]],null]],null],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n            "],[13],[1,"\\n"],[41,[30,0,["group","full_name"]],[[[1,"              "],[10,"h2"],[14,0,"full-name"],[12],[1,[30,0,["group","full_name"]]],[13],[1,"\\n"]],[]],[[[1,"              "],[10,"h2"],[14,0,"username"],[12],[1,[30,0,["group","name"]]],[13],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"ul"],[14,0,"usercard-controls group-details-button"],[12],[1,"\\n          "],[10,"li"],[12],[1,"\\n            "],[8,[39,4],null,[["@model","@showLogin"],[[30,0,["group"]],[28,[37,5],["showLogin"],null]]],null],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["group","messageable"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,6],[[24,0,"btn-primary group-message-button inline"]],[["@action","@icon","@label"],[[28,[37,7],[[30,0],"messageGroup"],null],"envelope","groups.message"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["group","bio_excerpt"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n          "],[10,0],[14,0,"bio"],[12],[1,"\\n            "],[1,[28,[35,8],[[30,0,["group","bio_excerpt"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["group","members"]],[[[1,"        "],[10,0],[14,0,"card-row third-row"],[12],[1,"\\n          "],[10,0],[14,0,"members metadata"],[12],[1,"\\n"],[42,[28,[37,10],[[28,[37,10],[[30,0,["highlightedMembers"]]],null]],null],null,[[[1,"              "],[11,3],[16,6,[30,1,["path"]]],[24,0,"card-tiny-avatar"],[4,[38,1],["click",[30,0,["close"]]],null],[12],[1,[28,[35,11],[[30,1],"tiny"],null]],[13],[1,"\\n"]],[1]],null],[41,[30,0,["showMoreMembers"]],[[[1,"              "],[11,3],[16,6,[30,0,["groupPath"]]],[24,0,"more-members-link"],[4,[38,1],["click",[28,[37,2],[[30,0,["handleShowGroup"]],[30,0,["group"]]],null]],null],[12],[1,"\\n                "],[10,1],[14,0,"more-members-count"],[12],[1,"+"],[1,[30,0,["moreMembersCount"]]],[1,"\\n                  "],[1,[28,[35,12],["more"],null]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["user"],false,["if","on","fn","avatar-flair","group-membership-button","route-action","d-button","action","html-safe","each","-track-array","bound-avatar","i18n"]]',moduleName:"discourse/components/group-card-contents.hbs",isStrictMode:!1});var b,_,y,w,v,k;const x=(0,i.setComponentTemplate)(f,s().extend(h.default,m.default,(b=(0,g.default)("group.members.[]"),_=(0,g.default)("group.user_count","group.members.[]"),y=(0,g.default)("group.name"),w=(0,g.default)("group"),v={composer:(0,l.inject)(),elementId:"group-card",mentionSelector:"a.mention-group",classNames:["no-bg","group-card"],classNameBindings:["visible:show","showBadges","hasCardBadgeImage","isFixed:fixed","groupClass"],allowBackgrounds:(0,u.setting)("allow_profile_backgrounds"),showBadges:(0,u.setting)("enable_badges"),postStream:(0,a.alias)("topic.postStream"),showMoreMembers:(0,a.gt)("moreMembersCount",0),group:null,highlightedMembers:e=>e.slice(0,10),moreMembersCount:e=>Math.max(e-10,0),groupClass:e=>e?`group-card-${e}`:"",groupPath:e=>(0,d.groupPath)(e.name),_showCallback(e,t){return this._positionCard(t),this.setProperties({visible:!0,loading:!0}),this.store.find("group",e).then((e=>(this.setProperties({group:e}),e.flair_url||e.flair_bg_color||e.set("flair_url","fa-users"),e.can_see_members&&e.members.length<10?e.reloadMembers({limit:10},!0):c.Promise.resolve()))).catch((()=>this._close())).finally((()=>this.set("loading",null)))},_close(){this.set("group",null),this._super(...arguments)},cleanUp(){this._close()},close(e){e?.preventDefault(),this._close()},handleShowGroup(e,t){if(t&&(0,p.modKeysPressed)(t).length>0)return!1;t?.preventDefault(),this.showGroup(e),this._close()},actions:{cancelFilter(){const e=this.postStream;e.cancelFilter(),e.refresh(),this._close()},messageGroup(){this.composer.openNewMessage({recipients:this.get("group.name"),hasGroups:!0})},showGroup(e){this.handleShowGroup(e)}}},(0,r.Z)(v,"highlightedMembers",[b],Object.getOwnPropertyDescriptor(v,"highlightedMembers"),v),(0,r.Z)(v,"moreMembersCount",[_],Object.getOwnPropertyDescriptor(v,"moreMembersCount"),v),(0,r.Z)(v,"groupClass",[y],(k=(k=Object.getOwnPropertyDescriptor(v,"groupClass"))?k.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return k}}),v),(0,r.Z)(v,"groupPath",[w],Object.getOwnPropertyDescriptor(v,"groupPath"),v),(0,r.Z)(v,"close",[o.action],Object.getOwnPropertyDescriptor(v,"close"),v),(0,r.Z)(v,"handleShowGroup",[o.action],Object.getOwnPropertyDescriptor(v,"handleShowGroup"),v),v)))},96016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(71466),l=n.n(a),c=n(3055),u=n(56111),d=n(47582),p=n(3961),h=n(57555),m=n(82099);const g=(0,n(8620).createTemplateFactory)({id:"3w/+Tn+B",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[14,"for","flair_url"],[12],[1,[28,[35,0],["groups.flair_url"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"radios"],[12],[1,"\\n    "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-icon"],[12],[1,"\\n      "],[8,[39,1],null,[["@name","@id","@value","@selection"],["avatar-flair-icon","avatar-flair-icon","icon",[30,0,["model","flair_type"]]]],null],[1,"\\n      "],[10,"b"],[12],[1,[28,[35,0],["groups.flair_type.icon"],null]],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"label"],[14,0,"radio-label"],[14,"for","avatar-flair-image"],[12],[1,"\\n      "],[8,[39,1],null,[["@name","@id","@value","@selection"],["avatar-flair-image","avatar-flair-image","image",[30,0,["model","flair_type"]]]],null],[1,"\\n      "],[10,"b"],[12],[1,[28,[35,0],["groups.flair_type.image"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1,"    "],[8,[39,3],null,[["@name","@value","@options","@onChange"],["icon",[30,0,["model","flair_icon"]],[28,[37,4],null,[["maximum"],[1]]],[28,[37,5],[[30,0],[28,[37,6],[[30,0,["model","flair_icon"]]],null]],null]]],null],[1,"\\n"]],[]],[[[41,[30,0,["flairPreviewImage"]],[[[1,"    "],[8,[39,7],[[24,0,"no-repeat contain-image"]],[["@imageUrl","@onUploadDone","@onUploadDeleted","@type","@id"],[[30,0,["flairImageUrl"]],[28,[37,5],[[30,0],"setFlairImage"],null],[28,[37,5],[[30,0],"removeFlairImage"],null],"group_flair","group-flair-uploader"]],null],[1,"\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.flair_upload_description"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]],null]],[]]],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[14,"for","flair_bg_color"],[12],[1,[28,[35,0],["groups.flair_bg_color"],null]],[13],[1,"\\n\\n  "],[8,[39,8],[[24,0,"group-flair-bg-color input-xxlarge"]],[["@name","@value","@placeholderKey"],["flair_bg_color",[30,0,["model","flair_bg_color"]],"groups.flair_bg_color_placeholder"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["flairPreviewIcon"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","flair_color"],[12],[1,[28,[35,0],["groups.flair_color"],null]],[13],[1,"\\n\\n    "],[8,[39,8],[[24,0,"group-flair-color input-xxlarge"]],[["@name","@value","@placeholderKey"],["flair_color",[30,0,["model","flair_color"]],"groups.flair_color_placeholder"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[30,0,["flairPreviewLabel"]]],[13],[1,"\\n\\n  "],[10,0],[14,0,"avatar-flair-preview"],[12],[1,"\\n    "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n      "],[10,"img"],[14,"width","45"],[14,"height","45"],[15,"src",[30,0,["demoAvatarUrl"]]],[14,0,"avatar actor"],[14,"alt",""],[12],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[28,[37,9],[[30,0,["model","flair_icon"]],[30,0,["flairImageUrl"]],[30,0,["model","flairBackgroundHexColor"]]],null],[[[1,"      "],[8,[39,10],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["model","name"]],[52,[30,0,["flairPreviewIcon"]],[30,0,["model","flair_icon"]],[52,[30,0,["flairPreviewImage"]],[30,0,["flairImageUrl"]],""]],[30,0,["model","flairBackgroundHexColor"]],[30,0,["model","flairHexColor"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],[],false,["i18n","radio-button","if","icon-picker","hash","action","mut","uppy-image-uploader","text-field","or","avatar-flair"]]',moduleName:"discourse/components/group-flair-inputs.hbs",isStrictMode:!1});var f,b,_,y,w,v,k,x;const T=(0,i.setComponentTemplate)(g,s().extend((f=(0,h.default)("model.flair_type"),b=(0,h.default)("model.flair_icon"),_=(0,h.on)("didInsertElement"),y=(0,h.observes)("model.flair_icon"),w=(0,h.default)("model.flair_type"),v=(0,h.default)("model.flair_url"),k=(0,h.default)("flairPreviewImage"),x={classNames:["group-flair-inputs"],demoAvatarUrl:()=>(0,d.default)("/images/avatar.png"),flairPreviewIcon:e=>e&&"icon"===e,flairPreviewIconUrl:e=>e?(0,p.convertIconClass)(e):"",_loadSVGIcon(e){e&&(0,u.default)(this,this._loadIcon,1e3)},_loadIcon(){if(!this.model.flair_icon)return;const e=(0,p.convertIconClass)(this.model.flair_icon),t="#svg-sprites",n="ajax-icon-holder",r=`${t} .${n}`;e&&(l()(`${t} symbol#${e}`).length||(0,c.ajax)(`/svg-sprite/search/${e}`).then((function(e){0===l()(r).length&&l()(t).append(`<div class="${n}">`),l()(r).html(`<svg xmlns='http://www.w3.org/2000/svg' style='display: none;'>${e}</svg>`)})))},flairPreviewImage:e=>e&&"image"===e,flairImageUrl:e=>e&&e.includes("/")?e:null,flairPreviewLabel(e){const t=e?"image":"icon";return m.default.t(`groups.flair_preview_${t}`)},setFlairImage(e){this.model.setProperties({flair_url:(0,d.default)(e.url),flair_upload_id:e.id})},removeFlairImage(){this.model.setProperties({flair_url:null,flair_upload_id:null})}},(0,r.Z)(x,"demoAvatarUrl",[h.default],Object.getOwnPropertyDescriptor(x,"demoAvatarUrl"),x),(0,r.Z)(x,"flairPreviewIcon",[f],Object.getOwnPropertyDescriptor(x,"flairPreviewIcon"),x),(0,r.Z)(x,"flairPreviewIconUrl",[b],Object.getOwnPropertyDescriptor(x,"flairPreviewIconUrl"),x),(0,r.Z)(x,"_loadSVGIcon",[_,y],Object.getOwnPropertyDescriptor(x,"_loadSVGIcon"),x),(0,r.Z)(x,"flairPreviewImage",[w],Object.getOwnPropertyDescriptor(x,"flairPreviewImage"),x),(0,r.Z)(x,"flairImageUrl",[v],Object.getOwnPropertyDescriptor(x,"flairImageUrl"),x),(0,r.Z)(x,"flairPreviewLabel",[k],Object.getOwnPropertyDescriptor(x,"flairPreviewLabel"),x),(0,r.Z)(x,"setFlairImage",[o.action],Object.getOwnPropertyDescriptor(x,"setFlairImage"),x),(0,r.Z)(x,"removeFlairImage",[o.action],Object.getOwnPropertyDescriptor(x,"removeFlairImage"),x),x)))},14829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(33217),c=n(3055),u=n(38864),d=n(85894),p=n(57555);const h=(0,n(8620).createTemplateFactory)({id:"nMjL2lYa",block:'[[[10,0],[14,0,"group-imap-email-settings"],[12],[1,"\\n  "],[10,"form"],[14,0,"groups-form form-horizontal groups-form-imap"],[12],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","imap_server"],[12],[1,[28,[35,0],["groups.manage.email.credentials.imap_server"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"imap_server"],[24,"tabindex","8"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_server"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"label"],[14,"for","enable_ssl_imap"],[12],[1,"\\n        "],[8,[39,1],[[24,1,"enable_ssl_imap"],[24,"tabindex","11"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@checked"],["checkbox",[30,0,["form","imap_ssl"]]]],null],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.credentials.imap_ssl"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","imap_port"],[12],[1,[28,[35,0],["groups.manage.email.credentials.imap_port"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"imap_port"],[24,"tabindex","9"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid",[30,0,["form","imap_port"]]],null]],null]],[["@type","@value"],["text",[30,0,["form","imap_port"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group group-imap-mailboxes"],[12],[1,"\\n"],[41,[30,0,["mailboxes"]],[[[1,"          "],[10,"label"],[14,"for","imap_mailbox_name"],[12],[1,[28,[35,0],["groups.manage.email.mailboxes.synchronized"],null]],[13],[1,"\\n          "],[8,[39,5],null,[["@name","@id","@value","@valueProperty","@content","@tabindex","@onChange","@options"],["imap_mailbox_name","imap_mailbox",[30,0,["group","imap_mailbox_name"]],"value",[30,0,["mailboxes"]],"10",[28,[37,3],[[30,0],[28,[37,6],[[30,0,["group","imap_mailbox_name"]]],null]],null],[28,[37,7],null,[["none"],["groups.manage.email.mailboxes.disabled"]]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,0],[14,0,"group-imap-prefill-options"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.email.prefill.title"],null]],[1,"\\n      "],[11,3],[24,1,"prefill_imap_gmail"],[24,6,""],[4,[38,2],["click",[28,[37,8],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[35,0],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[51,[30,0,["mailboxSelected"]]],[[[1,"    "],[10,0],[14,0,"alert alert-error imap-no-mailbox-selected"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.email.imap_mailbox_not_selected"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n    "],[8,[39,10],[[24,"tabindex","12"],[24,0,"btn-primary test-imap-settings"]],[["@disabled","@action","@icon","@label","@title"],[[28,[37,11],[[30,0,["missingSettings"]],[30,0,["testingSettings"]]],null],[30,0,["testImapSettings"]],"cog","groups.manage.email.test_settings","groups.manage.email.settings_required"]],null],[1,"\\n\\n    "],[8,[39,12],null,[["@size","@condition"],["small",[30,0,["testingSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["imapSettingsValid"]],[[[1,"      "],[10,1],[14,0,"imap-settings-ok"],[12],[1,"\\n        "],[1,[28,[35,13],["check-circle"],null]],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.imap_settings_valid"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_updated_at"]],[[[1,"    "],[10,0],[14,0,"group-email-last-updated-details for-imap"],[12],[1,"\\n      "],[10,"small"],[12],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated"],null]],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,14],[[30,0,["group","imap_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated_by"],null]],[1,"\\n        "],[8,[39,15],null,[["@route","@model"],["user",[30,0,["group","imap_updated_by","username"]]]],[["default"],[[[[1,[30,0,["group","imap_updated_by","username"]]]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","input","on","action","if","combo-box","mut","hash","fn","unless","d-button","or","conditional-loading-spinner","d-icon","format-date","link-to"]]',moduleName:"discourse/components/group-imap-email-settings.hbs",isStrictMode:!1});var m,g,f,b,_;const y=(0,i.setComponentTemplate)(h,s().extend((m=(0,p.default)("group.email_username","group.email_password","form.imap_server","form.imap_port"),g=(0,p.default)("group.imap_mailboxes"),f=(0,p.default)("group.imap_mailbox_name","mailboxes.length"),b=(0,p.on)("init"),_={tagName:"",form:null,missingSettings:(e,t,n,r)=>[e,t,n,r].some((e=>(0,l.isEmpty)(e))),mailboxes:e=>e?e.map((e=>({name:e,value:e}))):[],mailboxSelected:(e,t)=>0===t||!(0,l.isEmpty)(e),resetSettingsValid(){this.set("imapSettingsValid",!1)},_fillForm(){this.set("form",a().create({imap_server:this.group.imap_server,imap_port:(this.group.imap_port||"").toString(),imap_ssl:this.group.imap_ssl}))},prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,d.default)(e,"imap"))},testImapSettings(){const e={host:this.form.imap_server,port:this.form.imap_port,ssl:this.form.imap_ssl,username:this.group.email_username,password:this.group.email_password};return this.set("testingSettings",!0),this.set("imapSettingsValid",!1),(0,c.ajax)(`/groups/${this.group.id}/test_email_settings`,{type:"POST",data:Object.assign(e,{protocol:"imap"})}).then((()=>{this.set("imapSettingsValid",!0),this.group.setProperties({imap_server:this.form.imap_server,imap_port:this.form.imap_port,imap_ssl:this.form.imap_ssl})})).catch(u.popupAjaxError).finally((()=>this.set("testingSettings",!1)))}},(0,r.Z)(_,"missingSettings",[m],Object.getOwnPropertyDescriptor(_,"missingSettings"),_),(0,r.Z)(_,"mailboxes",[g],Object.getOwnPropertyDescriptor(_,"mailboxes"),_),(0,r.Z)(_,"mailboxSelected",[f],Object.getOwnPropertyDescriptor(_,"mailboxSelected"),_),(0,r.Z)(_,"resetSettingsValid",[o.action],Object.getOwnPropertyDescriptor(_,"resetSettingsValid"),_),(0,r.Z)(_,"_fillForm",[b],Object.getOwnPropertyDescriptor(_,"_fillForm"),_),(0,r.Z)(_,"prefillSettings",[o.action],Object.getOwnPropertyDescriptor(_,"prefillSettings"),_),(0,r.Z)(_,"testImapSettings",[o.action],Object.getOwnPropertyDescriptor(_,"testImapSettings"),_),_)))},34236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(17579),l=n(33217),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"DXpBXUXQ",block:'[[[10,0],[14,0,"group-manage-email-settings"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[28,[35,0],["groups.manage.email.smtp_title"],null]],[13],[1,"\\n  "],[10,2],[12],[1,[28,[35,0],["groups.manage.email.smtp_instructions"],null]],[13],[1,"\\n\\n  "],[10,"label"],[14,"for","enable_smtp"],[12],[1,"\\n    "],[8,[39,1],[[24,1,"enable_smtp"],[24,"tabindex","1"],[4,[38,2],["input",[30,0,["smtpEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","smtp_enabled"]]]],null],[1,"\\n    "],[1,[28,[35,0],["groups.manage.email.enable_smtp"],null]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["group","smtp_enabled"]],[[[1,"    "],[8,[39,4],null,[["@group","@smtpSettingsValid"],[[30,0,["group"]],[30,0,["smtpSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["siteSettings","enable_imap"]],[[[1,"    "],[10,0],[14,0,"group-manage-email-imap-wrapper"],[12],[1,"\\n      "],[10,"br"],[12],[13],[1,"\\n\\n      "],[10,"h3"],[12],[1,[28,[35,0],["groups.manage.email.imap_title"],null]],[13],[1,"\\n      "],[10,2],[12],[1,"\\n        "],[1,[28,[35,5],[[28,[37,0],["groups.manage.email.imap_instructions"],null]],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"alert alert-warning"],[12],[1,[28,[35,0],["groups.manage.email.imap_alpha_warning"],null]],[13],[1,"\\n\\n      "],[10,"label"],[14,"for","enable_imap"],[12],[1,"\\n        "],[8,[39,1],[[16,"disabled",[28,[37,6],[[30,0,["enableImapSettings"]]],null]],[24,1,"enable_imap"],[24,"tabindex","8"],[4,[38,2],["input",[30,0,["imapEnabledChange"]]],null]],[["@type","@checked"],["checkbox",[30,0,["group","imap_enabled"]]]],null],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.enable_imap"],null]],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["group","imap_enabled"]],[[[1,"        "],[8,[39,7],null,[["@group","@imapSettingsValid"],[[30,0,["group"]],[30,0,["imapSettingsValid"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"group-manage-email-additional-settings-wrapper"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"h3"],[12],[1,[28,[35,0],["groups.manage.email.imap_additional_settings"],null]],[13],[1,"\\n      "],[10,"label"],[14,0,"control-group-inline"],[14,"for","allow_unknown_sender_topic_replies"],[12],[1,"\\n        "],[8,[39,1],[[24,3,"allow_unknown_sender_topic_replies"],[24,1,"allow_unknown_sender_topic_replies"],[24,"tabindex","13"]],[["@type","@checked"],["checkbox",[30,0,["group","allow_unknown_sender_topic_replies"]]]],null],[1,"\\n        "],[10,1],[12],[1,[28,[35,0],["groups.manage.email.settings.allow_unknown_sender_topic_replies"],null]],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,2],[12],[1,[28,[35,0],["groups.manage.email.settings.allow_unknown_sender_topic_replies_hint"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"br"],[12],[13],[1,"\\n  "],[8,[39,8],null,[["@model","@disabled","@beforeSave","@afterSave","@tabindex"],[[30,0,["group"]],[28,[37,6],[[30,0,["emailSettingsValid"]]],null],[30,0,["beforeSave"]],[30,0,["afterSave"]],"15"]],null],[1,"\\n"],[13]],[],false,["i18n","input","on","if","group-smtp-email-settings","html-safe","not","group-imap-email-settings","group-manage-save-button"]]',moduleName:"discourse/components/group-manage-email-settings.hbs",isStrictMode:!1});var p,h,m,g;const f=(0,i.setComponentTemplate)(d,s().extend((p=(0,c.on)("init"),h=(0,c.default)("emailSettingsValid","group.smtp_enabled","group.imap_enabled"),m=(0,c.default)("smtpSettingsValid","imapSettingsValid","group.smtp_enabled","group.imap_enabled"),g={tagName:"",dialog:(0,a.inject)(),imapSettingsValid:!1,smtpSettingsValid:!1,_determineSettingsValid(){this.set("imapSettingsValid",this.group.imap_enabled&&this.group.imap_server),this.set("smtpSettingsValid",this.group.smtp_enabled&&this.group.smtp_server)},enableImapSettings:(e,t,n)=>t&&(e||n),emailSettingsValid:(e,t,n,r)=>(!n||e)&&(!r||t),_anySmtpFieldsFilled(){return[this.group.smtp_server,this.group.smtp_port,this.group.email_username,this.group.email_password].some((e=>!(0,l.isEmpty)(e)))},_anyImapFieldsFilled(){return[this.group.imap_server,this.group.imap_port].some((e=>!(0,l.isEmpty)(e)))},smtpEnabledChange(e){!e.target.checked&&this.group.smtp_enabled&&this._anySmtpFieldsFilled()&&this.dialog.confirm({message:u.default.t("groups.manage.email.smtp_disable_confirm"),didConfirm:()=>this.group.set("smtp_enabled",!0),didCancel:()=>this.group.set("imap_enabled",!1)}),this.group.set("smtp_enabled",e.target.checked)},imapEnabledChange(e){!e.target.checked&&this.group.imap_enabled&&this._anyImapFieldsFilled()&&this.dialog.confirm({message:u.default.t("groups.manage.email.imap_disable_confirm"),didConfirm:()=>this.group.set("imap_enabled",!0)}),this.group.set("imap_enabled",e.target.checked)},afterSave(){this.store.find("group",this.group.name).then((()=>{this._determineSettingsValid()}))}},(0,r.Z)(g,"_determineSettingsValid",[p],Object.getOwnPropertyDescriptor(g,"_determineSettingsValid"),g),(0,r.Z)(g,"enableImapSettings",[h],Object.getOwnPropertyDescriptor(g,"enableImapSettings"),g),(0,r.Z)(g,"emailSettingsValid",[m],Object.getOwnPropertyDescriptor(g,"emailSettingsValid"),g),(0,r.Z)(g,"smtpEnabledChange",[o.action],Object.getOwnPropertyDescriptor(g,"smtpEnabledChange"),g),(0,r.Z)(g,"imapEnabledChange",[o.action],Object.getOwnPropertyDescriptor(g,"imapEnabledChange"),g),(0,r.Z)(g,"afterSave",[o.action],Object.getOwnPropertyDescriptor(g,"afterSave"),g),g)))},80003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555),a=n(82099);const l=(0,n(8620).createTemplateFactory)({id:"i1Wa6NVJ",block:'[[[41,[30,0,["value"]],[[[1,"  "],[8,[39,1],[[24,0,"btn-default group-manage-logs-filter"]],[["@action","@icon","@translatedLabel"],[[28,[37,2],[[30,0,["clearFilter"]],[30,0,["type"]]],null],"times-circle",[28,[37,3],[[30,0,["label"]],": ",[30,0,["filterText"]]],null]]],null],[1,"\\n"]],[]],null]],[],false,["if","d-button","fn","concat"]]',moduleName:"discourse/components/group-manage-logs-filter.hbs",isStrictMode:!1});var c,u,d;const p=(0,i.setComponentTemplate)(l,s().extend((c=(0,o.default)("type"),u=(0,o.default)("value","type"),d={tagName:"",label:e=>a.default.t(`groups.manage.logs.${e}`),filterText:(e,t)=>"action"===t?a.default.t(`group_histories.actions.${e}`):e},(0,r.Z)(d,"label",[c],Object.getOwnPropertyDescriptor(d,"label"),d),(0,r.Z)(d,"filterText",[u],Object.getOwnPropertyDescriptor(d,"filterText"),d),d)))},54039:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"0X0OQHG3",block:'[[[10,"tr"],[14,0,"group-manage-logs-row"],[12],[1,"\\n  "],[10,"td"],[12],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,1],[[30,0,["filter"]],[28,[37,2],null,[["value","key"],[[30,0,["log","action"]],"action"]]]],null],[30,0,["log","actionTitle"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n    "],[10,1],[12],[1,[28,[35,3],[[30,0,["log","acting_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,1],[[30,0,["filter"]],[28,[37,2],null,[["value","key"],[[30,0,["log","acting_user","username"]],"acting_user"]]]],null],[30,0,["log","acting_user","username"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","target_user"]],[[[1,"      "],[10,1],[12],[1,[28,[35,3],[[30,0,["log","target_user"]]],[["imageSize"],["tiny"]]]],[13],[1,"\\n      "],[8,[39,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,1],[[30,0,["filter"]],[28,[37,2],null,[["value","key"],[[30,0,["log","target_user","username"]],"target_user"]]]],null],[30,0,["log","target_user","username"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["log","subject"]],[[[1,"      "],[8,[39,0],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,1],[[30,0,["filter"]],[28,[37,2],null,[["value","key"],[[30,0,["log","subject"]],"subject"]]]],null],[30,0,["log","subject"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,[28,[35,5],[[30,0,["log","created_at"]]],null]],[13],[1,"\\n\\n  "],[10,"td"],[14,0,"group-manage-logs-expand-details"],[12],[1,"\\n"],[41,[30,0,["log","prev_value"]],[[[1,"      "],[8,[39,0],null,[["@action","@icon"],[[30,0,["toggleDetails"]],[52,[30,0,["expandDetails"]],"angle-up","angle-down"]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["expandDetails"]],[[[1,"  "],[10,"tr"],[12],[1,"\\n    "],[10,"td"],[14,"colspan","6"],[12],[1,"\\n      "],[10,2],[12],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,6],["groups.manage.logs.from"],null]],[13],[1,":\\n        "],[10,"code"],[12],[1,[30,0,["log","prev_value"]]],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,2],[12],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,6],["groups.manage.logs.to"],null]],[13],[1,":\\n        "],[10,"code"],[12],[1,[30,0,["log","new_value"]]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["d-button","fn","hash","avatar","if","bound-date","i18n"]]',moduleName:"discourse/components/group-manage-logs-row.hbs",isStrictMode:!1});var l;const c=(0,i.setComponentTemplate)(a,s().extend((l={tagName:"",expandDetails:!1,toggleDetails(){this.toggleProperty("expandDetails")},filter(e){this.set(`filters.${e.key}`,e.value)}},(0,r.Z)(l,"toggleDetails",[o.action],Object.getOwnPropertyDescriptor(l,"toggleDetails"),l),(0,r.Z)(l,"filter",[o.action],Object.getOwnPropertyDescriptor(l,"filter"),l),l)))},63506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(17579),c=n(41511),u=n(44635),d=n(38864),p=n(57555),h=n(82099);const m=(0,n(8620).createTemplateFactory)({id:"oqs346Xw",block:'[[[41,[30,0,["privateGroupNameNotice"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"alert alert-warning alert-private-group-name"],[12],[1,"\\n      "],[1,[30,0,["privateGroupNameNotice"]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"control-group buttons group-manage-save-button"],[12],[1,"\\n  "],[8,[39,1],[[24,0,"btn-primary group-manage-save"]],[["@action","@disabled","@translatedLabel"],[[30,0,["save"]],[28,[37,2],[[30,0,["disabled"]],[30,0,["saving"]]],null],[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1,"    "],[10,1],[12],[1,[28,[35,3],["saved"],null]],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","d-button","or","i18n"]]',moduleName:"discourse/components/group-manage-save-button.hbs",isStrictMode:!1});var g,f,b;const _=(0,i.setComponentTemplate)(m,s().extend((g=(0,p.default)("saving"),f=(0,p.default)("model.visibility_level","model.primary_group","hasFlair"),b={modal:(0,l.inject)(),saving:null,disabled:!1,updateExistingUsers:null,hasFlair:(0,a.or)("model.flair_icon","model.flair_upload_id"),savingText:e=>e?h.default.t("saving"):h.default.t("save"),privateGroupNameNotice(e,t,n){if(0!==e)return t?h.default.t("admin.groups.manage.alert.primary_group",{group_name:this.model.name}):n?h.default.t("admin.groups.manage.alert.flair_group",{group_name:this.model.name}):void 0},setUpdateExistingUsers(e){this.updateExistingUsers=e},save(){this.beforeSave&&this.beforeSave(),this.set("saving",!0);const e=this.model;(0,u.popupAutomaticMembershipAlert)(e.id,e.automatic_membership_email_domains);const t={};return null!==this.updateExistingUsers&&(t.update_existing_users=this.updateExistingUsers),e.save(t).then((()=>{this.setProperties({saved:!0,updateExistingUsers:null}),this.afterSave&&this.afterSave()})).catch((e=>{const t=e.jqXHR.responseJSON;422===e.jqXHR.status&&t.user_count?this.editGroupNotifications(t):(0,d.popupAjaxError)(e)})).finally((()=>this.set("saving",!1)))},async editGroupNotifications(e){await this.modal.show(c.default,{model:{count:e.user_count,setUpdateExistingUsers:this.setUpdateExistingUsers}}),this.save()}},(0,r.Z)(b,"savingText",[g],Object.getOwnPropertyDescriptor(b,"savingText"),b),(0,r.Z)(b,"privateGroupNameNotice",[f],Object.getOwnPropertyDescriptor(b,"privateGroupNameNotice"),b),(0,r.Z)(b,"setUpdateExistingUsers",[o.action],Object.getOwnPropertyDescriptor(b,"setUpdateExistingUsers"),b),(0,r.Z)(b,"save",[o.action],Object.getOwnPropertyDescriptor(b,"save"),b),(0,r.Z)(b,"editGroupNotifications",[o.action],Object.getOwnPropertyDescriptor(b,"editGroupNotifications"),b),b)))},42093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({pluginApiIdentifiers:["group-member-dropdown"],classNames:["group-member-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,r.computed)("member.owner","member.primary",(function(){const e=[{id:"removeMember",name:i.default.t("groups.members.remove_member"),description:i.default.t("groups.members.remove_member_description",{username:this.get("member.username")}),icon:"user-times"}];return this.canAdminGroup?this.member.owner?e.push({id:"removeOwner",name:i.default.t("groups.members.remove_owner"),description:i.default.t("groups.members.remove_owner_description",{username:this.get("member.username")}),icon:"shield-alt"}):e.push({id:"makeOwner",name:i.default.t("groups.members.make_owner"),description:i.default.t("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-alt"}):this.canEditGroup&&!this.member.owner&&e.push({id:"makeOwner",name:i.default.t("groups.members.make_owner"),description:i.default.t("groups.members.make_owner_description",{username:this.get("member.username")}),icon:"shield-alt"}),this.currentUser.staff&&(this.member.primary?e.push({id:"removePrimary",name:i.default.t("groups.members.remove_primary"),description:i.default.t("groups.members.remove_primary_description",{username:this.get("member.username")}),icon:"id-card"}):e.push({id:"makePrimary",name:i.default.t("groups.members.make_primary"),description:i.default.t("groups.members.make_primary_description",{username:this.get("member.username")}),icon:"id-card"})),e}))})},66507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"BwRq/Bxa",block:'[[[10,3],[15,6,[30,0,["member","adminPath"]]],[12],[1,"\\n  "],[1,[28,[35,0],[[30,0,["member"]]],[["imageSize"],["small"]]]],[1,"\\n"],[13],[1,"\\n"],[10,1],[12],[1,[30,0,["member","username"]]],[13],[1,"\\n"],[41,[51,[30,0,["automatic"]]],[[[1,"  "],[11,3],[24,6,""],[24,0,"remove"],[4,[38,2],["click",[30,0,["remove"]]],null],[12],[1,"\\n    "],[1,[28,[35,3],["times"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["avatar","unless","on","d-icon"]]',moduleName:"discourse/components/group-member.hbs",isStrictMode:!1});var l;const c=(0,i.setComponentTemplate)(a,s().extend((l={classNames:["item"],remove(e){e?.preventDefault(),this.removeAction(this.member)}},(0,r.Z)(l,"remove",[o.action],Object.getOwnPropertyDescriptor(l,"remove"),l),l)))},76619:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(54001),i=n(31691),s=n.n(i),o=n(17579),a=n(38864),l=n(59469),c=n(57555),u=n(82099),d=n(87354);const p=(0,n(8620).createTemplateFactory)({id:"vF0M0d39",block:'[[[41,[30,0,["canJoinGroup"]],[[[1,"  "],[8,[39,1],[[24,0,"btn-default group-index-join"]],[["@action","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"joinGroup"],null],"user-plus","groups.join",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canLeaveGroup"]],[[[1,"  "],[8,[39,1],[[24,0,"btn-danger group-index-leave"]],[["@action","@icon","@label","@disabled"],[[28,[37,2],[[30,0],"leaveGroup"],null],"user-times","groups.leave",[30,0,["updatingMembership"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["canRequestMembership"]],[[[1,"  "],[8,[39,1],[[24,0,"btn-default group-index-request"]],[["@action","@disabled","@icon","@label"],[[28,[37,2],[[30,0],"showRequestMembershipForm"],null],[30,0,["loading"]],"user-plus","groups.request"]],null],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],[]]]],[]]]],["&default"],false,["if","d-button","action","yield"]]',moduleName:"discourse/components/group-membership-button.hbs",isStrictMode:!1});var h,m,g,f,b;const _=(0,i.setComponentTemplate)(p,s().extend((h=(0,c.default)("model.public_admission","userIsGroupUser"),m=(0,c.default)("model.public_exit","userIsGroupUser"),g=(0,c.default)("model.allow_membership_requests","userIsGroupUser"),f=(0,c.default)("model.is_group_user"),b={classNames:["group-membership-button"],appEvents:(0,o.inject)(),currentUser:(0,o.inject)(),dialog:(0,o.inject)(),modal:(0,o.inject)(),canJoinGroup:(e,t)=>e&&!t,canLeaveGroup:(e,t)=>e&&t,canRequestMembership:(e,t)=>e&&!t,userIsGroupUser:e=>!!e,_showLoginModal(){this.showLogin(),(0,l.default)("destination_url",window.location.href)},removeFromGroup(){const e=this.model;e.leave().then((()=>{e.set("is_group_user",!1),this.appEvents.trigger("group:leave",e)})).catch(a.popupAjaxError).finally((()=>this.set("updatingMembership",!1)))},actions:{joinGroup(){if(this.currentUser){this.set("updatingMembership",!0);const e=this.model;e.join().then((()=>{e.set("is_group_user",!0),this.appEvents.trigger("group:join",e)})).catch(a.popupAjaxError).finally((()=>{this.set("updatingMembership",!1)}))}else this._showLoginModal()},leaveGroup(){if(this.set("updatingMembership",!0),!this.model.public_admission)return this.dialog.yesNoConfirm({message:u.default.t("groups.confirm_leave"),didConfirm:()=>this.removeFromGroup(),didCancel:()=>this.set("updatingMembership",!1)});this.removeFromGroup()},showRequestMembershipForm(){this.currentUser?this.modal.show(d.default,{model:{group:this.model}}):this._showLoginModal()}}},(0,r.Z)(b,"canJoinGroup",[h],Object.getOwnPropertyDescriptor(b,"canJoinGroup"),b),(0,r.Z)(b,"canLeaveGroup",[m],Object.getOwnPropertyDescriptor(b,"canLeaveGroup"),b),(0,r.Z)(b,"canRequestMembership",[g],Object.getOwnPropertyDescriptor(b,"canRequestMembership"),b),(0,r.Z)(b,"userIsGroupUser",[f],Object.getOwnPropertyDescriptor(b,"userIsGroupUser"),b),b)))},43441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"q1H0cTMG",block:'[[[8,[39,0],[[24,0,"group-nav"]],[["@desktopClass"],["nav nav-pills"]],[["default"],[[[[1,"\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,2],null,[["@route"],["groups.index"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["groups.index.all"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,4],null,[["@groups","@value"],[[30,0,["group","extras","visible_group_names"]],[30,0,["group","name"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["tabs"]]],null]],null],null,[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[8,[39,2],[[16,"title",[30,1,["message"]]],[16,0,[30,1,["name"]]]],[["@route","@model"],[[30,1,["route"]],[30,0,["group"]]]],[["default"],[[[[1,"\\n        "],[41,[30,1,["icon"]],[[[1,[28,[35,7],[[30,1,["icon"]]],null]]],[]],null],[1,"\\n        "],[1,[30,1,["message"]]],[1,"\\n        "],[41,[30,1,["count"]],[[[10,1],[14,0,"count"],[12],[1,"("],[1,[30,1,["count"]]],[1,")"],[13]],[]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[1]],null],[1,"  "],[8,[39,8],null,[["@name","@outletArgs","@connectorTagName"],["group-reports-nav-item",[28,[37,9],null,[["group"],[[30,0,["group"]]]]],"li"]],null],[1,"\\n"]],[]]]]]],["tab"],false,["mobile-nav","if","link-to","i18n","group-dropdown","each","-track-array","d-icon","plugin-outlet","hash"]]',moduleName:"discourse/components/group-navigation.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:""}))},7343:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(63319),a=n(9387),l=n(20229),c=n(47582),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"jtc9DTuJ",block:'[[[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n  "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[30,0,["post","user","username"]]],[14,0,"avatar-link"],[12],[1,"\\n    "],[1,[28,[35,0],[[30,0,["post","user"]]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n    "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n      "],[10,1],[14,0,"title"],[12],[1,"\\n        "],[10,3],[15,6,[30,0,["postUrl"]]],[15,"aria-label",[30,0,["titleAriaLabel"]]],[12],[1,"\\n          "],[1,[28,[35,1],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"group-post-category"],[12],[1,[28,[35,2],[[30,0,["post","category"]]],null]],[13],[1,"\\n"],[41,[30,0,["post","user"]],[[[1,"      "],[10,0],[14,0,"group-member-info names"],[12],[1,"\\n        "],[10,1],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n        "],[41,[30,0,["post","user","title"]],[[[10,1],[14,0,"user-title"],[12],[1,[30,0,["post","user","title"]]],[13]],[]],null],[1,"\\n        "],[8,[39,4],null,[["@name","@outletArgs"],["group-post-additional-member-info",[28,[37,5],null,[["user"],[[30,0,["post","user"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[8,[39,6],null,[["@item"],[[30,0,["post"]]]],null],[1,"\\n  "],[10,1],[14,0,"time"],[12],[1,[28,[35,7],[[30,0,["post","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"excerpt"],[12],[1,"\\n"],[41,[30,0,["post","expandedExcerpt"]],[[[1,"    "],[1,[28,[35,1],[[30,0,["post","expandedExcerpt"]]],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,1],[[30,0,["post","excerpt"]]],null]],[1,"\\n"]],[]]],[13]],[],false,["avatar","html-safe","category-link","if","plugin-outlet","hash","expand-post","format-date"]]',moduleName:"discourse/components/group-post.hbs",isStrictMode:!1});var h,m,g,f,b,_;const y=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.default)("post.url"),m=(0,u.default)("post.user"),g=(0,u.default)("post.user"),f=(0,u.default)("post.user.username"),b=(0,u.default)("post.title","post.post_number"),_={classNameBindings:[":user-stream-item",":item","moderatorAction","primaryGroup"],postUrl:e=>(0,c.default)(e),moderatorAction:(0,o.propertyEqual)("post.post_type","site.post_types.moderator_action"),name:e=>(0,a.prioritizeNameInUx)(e.name)?e.name:e.username,primaryGroup(e){if(e.primary_group_name)return`group-${e.primary_group_name}`},userUrl:e=>(0,l.userPath)(e.toLowerCase()),titleAriaLabel:(e,t)=>d.default.t("groups.aria_post_number",{postNumber:t,title:e})},(0,r.Z)(_,"postUrl",[h],Object.getOwnPropertyDescriptor(_,"postUrl"),_),(0,r.Z)(_,"name",[m],Object.getOwnPropertyDescriptor(_,"name"),_),(0,r.Z)(_,"primaryGroup",[g],Object.getOwnPropertyDescriptor(_,"primaryGroup"),_),(0,r.Z)(_,"userUrl",[f],Object.getOwnPropertyDescriptor(_,"userUrl"),_),(0,r.Z)(_,"titleAriaLabel",[b],Object.getOwnPropertyDescriptor(_,"titleAriaLabel"),_),_)))},93978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(33217),a=n(71466),l=n.n(a),c=n(21896),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"xrzpIVwv",block:'[[[10,"input"],[15,"placeholder",[30,0,["placeholder"]]],[14,0,"group-selector"],[14,3,"groups"],[14,4,"text"],[12],[13]],[],false,[]]',moduleName:"discourse/components/group-selector.hbs",isStrictMode:!1});var h,m,g,f;const b=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.default)("placeholderKey"),m=(0,u.observes)("groupNames"),g=(0,u.on)("didInsertElement"),f={placeholder:e=>e?d.default.t(e):"",_update(){"true"===this.canReceiveUpdates&&this._initializeAutocomplete({updateData:!0})},_initializeAutocomplete(e){let t,n=this.groupNames;l()(this.element.querySelector("input")).autocomplete({debounced:!0,allowAny:!1,items:Array.isArray(n)?n:(0,o.isEmpty)(n)?[]:[n],single:this.single,fullWidthWrap:this.fullWidthWrap,updateData:!(!e||!e.updateData)&&e.updateData,onChangeItems:e=>{t=e,this.onChangeCallback?this.onChangeCallback(this.groupNames,t):this.set("groupNames",e.join(","))},transformComplete:e=>e.name,dataSource:e=>this.groupFinder(e).then((e=>t?e.filter((e=>!t.any((t=>t===e.name)))):e)),template:(0,c.findRawTemplate)("group-selector-autocomplete")})}},(0,r.Z)(f,"placeholder",[h],Object.getOwnPropertyDescriptor(f,"placeholder"),f),(0,r.Z)(f,"_update",[m],Object.getOwnPropertyDescriptor(f,"_update"),f),(0,r.Z)(f,"_initializeAutocomplete",[g],Object.getOwnPropertyDescriptor(f,"_initializeAutocomplete"),f),f)))},11564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(33217),c=n(3055),u=n(38864),d=n(85894),p=n(57555);const h=(0,n(8620).createTemplateFactory)({id:"xMjyA/5l",block:'[[[10,0],[14,0,"group-smtp-email-settings"],[12],[1,"\\n  "],[10,"form"],[14,0,"groups-form form-horizontal"],[12],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","username"],[12],[1,[28,[35,0],["groups.manage.email.credentials.username"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"username"],[24,"tabindex","1"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","email_username"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","smtp_server"],[12],[1,[28,[35,0],["groups.manage.email.credentials.smtp_server"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"smtp_server"],[24,"tabindex","4"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","smtp_server"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"label"],[14,"for","enable_ssl"],[12],[1,"\\n        "],[8,[39,1],[[24,1,"enable_ssl"],[24,"tabindex","6"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@checked"],["checkbox",[30,0,["form","smtp_ssl"]]]],null],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.credentials.smtp_ssl"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","password"],[12],[1,[28,[35,0],["groups.manage.email.credentials.password"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"password"],[24,"tabindex","2"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["password",[30,0,["form","email_password"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","smtp_port"],[12],[1,[28,[35,0],["groups.manage.email.credentials.smtp_port"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"smtp_port"],[24,"tabindex","5"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid",[30,0,["form","smtp_port"]]],null]],null]],[["@type","@value"],["text",[30,0,["form","smtp_port"]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,"for","from_alias"],[12],[1,[28,[35,0],["groups.manage.email.settings.from_alias"],null]],[13],[1,"\\n        "],[8,[39,1],[[24,3,"from_alias"],[24,1,"from_alias"],[24,"tabindex","3"],[4,[38,2],["change",[28,[37,3],[[30,0],"resetSettingsValid"],null]],null]],[["@type","@value"],["text",[30,0,["form","email_from_alias"]]]],null],[1,"\\n        "],[10,2],[12],[1,[28,[35,0],["groups.manage.email.settings.from_alias_hint"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,0],[14,0,"group-smtp-prefill-options"],[12],[1,"\\n      "],[1,[28,[35,0],["groups.manage.email.prefill.title"],null]],[1,"\\n      "],[11,3],[24,1,"prefill_smtp_gmail"],[24,6,""],[4,[38,2],["click",[28,[37,4],[[30,0,["prefillSettings"]],"gmail"],null]],null],[12],[1,[28,[35,0],["groups.manage.email.prefill.gmail"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group buttons"],[12],[1,"\\n    "],[8,[39,5],[[24,"tabindex","7"],[24,0,"btn-primary test-smtp-settings"]],[["@disabled","@action","@icon","@label","@title"],[[28,[37,6],[[30,0,["missingSettings"]],[30,0,["testingSettings"]]],null],[30,0,["testSmtpSettings"]],"cog","groups.manage.email.test_settings","groups.manage.email.settings_required"]],null],[1,"\\n\\n    "],[8,[39,7],null,[["@size","@condition"],["small",[30,0,["testingSettings"]]]],null],[1,"\\n\\n"],[41,[30,0,["smtpSettingsValid"]],[[[1,"      "],[10,1],[14,0,"smtp-settings-ok"],[12],[1,"\\n        "],[1,[28,[35,9],["check-circle"],null]],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.smtp_settings_valid"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["group","smtp_updated_at"]],[[[1,"    "],[10,0],[14,0,"group-email-last-updated-details for-smtp"],[12],[1,"\\n      "],[10,"small"],[12],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated"],null]],[1,"\\n        "],[10,"strong"],[12],[1,[28,[35,10],[[30,0,["group","smtp_updated_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n        "],[1,[28,[35,0],["groups.manage.email.last_updated_by"],null]],[1,"\\n        "],[8,[39,11],null,[["@route","@model"],["user",[30,0,["group","smtp_updated_by","username"]]]],[["default"],[[[[1,[30,0,["group","smtp_updated_by","username"]]]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","input","on","action","fn","d-button","or","conditional-loading-spinner","if","d-icon","format-date","link-to"]]',moduleName:"discourse/components/group-smtp-email-settings.hbs",isStrictMode:!1});var m,g,f;const b=(0,i.setComponentTemplate)(h,s().extend((m=(0,p.default)("form.email_username","form.email_password","form.smtp_server","form.smtp_port"),g=(0,p.on)("init"),f={tagName:"",form:null,missingSettings:(e,t,n,r)=>[e,t,n,r].some((e=>(0,l.isEmpty)(e))),resetSettingsValid(){this.set("smtpSettingsValid",!1)},_fillForm(){this.set("form",a().create({email_username:this.group.email_username,email_password:this.group.email_password,email_from_alias:this.group.email_from_alias,smtp_server:this.group.smtp_server,smtp_port:(this.group.smtp_port||"").toString(),smtp_ssl:this.group.smtp_ssl}))},prefillSettings(e,t){t?.preventDefault(),this.form.setProperties((0,d.default)(e,"smtp"))},testSmtpSettings(){const e={host:this.form.smtp_server,port:this.form.smtp_port,ssl:this.form.smtp_ssl,username:this.form.email_username,password:this.form.email_password};return this.set("testingSettings",!0),this.set("smtpSettingsValid",!1),(0,c.ajax)(`/groups/${this.group.id}/test_email_settings`,{type:"POST",data:Object.assign(e,{protocol:"smtp"})}).then((()=>{this.set("smtpSettingsValid",!0),this.group.setProperties({smtp_server:this.form.smtp_server,smtp_port:this.form.smtp_port,smtp_ssl:this.form.smtp_ssl,email_username:this.form.email_username,email_from_alias:this.form.email_from_alias,email_password:this.form.email_password})})).catch(u.popupAjaxError).finally((()=>this.set("testingSettings",!1)))}},(0,r.Z)(f,"missingSettings",[m],Object.getOwnPropertyDescriptor(f,"missingSettings"),f),(0,r.Z)(f,"resetSettingsValid",[o.action],Object.getOwnPropertyDescriptor(f,"resetSettingsValid"),f),(0,r.Z)(f,"_fillForm",[g],Object.getOwnPropertyDescriptor(f,"_fillForm"),f),(0,r.Z)(f,"prefillSettings",[o.action],Object.getOwnPropertyDescriptor(f,"prefillSettings"),f),(0,r.Z)(f,"testSmtpSettings",[o.action],Object.getOwnPropertyDescriptor(f,"testSmtpSettings"),f),f)))},86490:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(35814),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"+8hKCd8l",block:'[[[41,[30,0,["canAdminGroup"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.visibility"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.visibility_levels.title"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,2],[[24,0,"groups-form-visibility-level"]],[["@name","@valueProperty","@value","@content","@onChange","@options"],["alias","value",[30,0,["model","visibility_level"]],[30,0,["visibilityLevelOptions"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","visibility_level"]]],null]],null],[28,[37,5],null,[["castInteger"],[true]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.visibility_levels.description"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.members_visibility_levels.title"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,2],[[24,0,"groups-form-members-visibility-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["membersVisibilityLevel"]],[30,0,["visibilityLevelOptions"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","members_visibility_level"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["membersVisibilityPrivate"]],[[[1,"      "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n        "],[1,[28,[35,1],["admin.groups.manage.interaction.members_visibility_levels.description"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n    "],[1,[28,[35,1],["groups.manage.interaction.posting"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,1],["groups.alias_levels.mentionable"],null]],[13],[1,"\\n\\n  "],[8,[39,2],[[24,0,"groups-form-mentionable-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["mentionableLevel"]],[30,0,["aliasLevelOptions"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","mentionable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,"for","alias"],[12],[1,[28,[35,1],["groups.alias_levels.messageable"],null]],[13],[1,"\\n\\n  "],[8,[39,2],[[24,0,"groups-form-messageable-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["alias","value",[30,0,["messageableLevel"]],[30,0,["aliasLevelOptions"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","messageable_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canAdminGroup"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,6],[[24,0,"groups-form-publish-read-state"]],[["@type","@checked"],["checkbox",[30,0,["model","publish_read_state"]]]],null],[1,"\\n\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.publish_read_state"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showEmailSettings"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.email"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"label"],[14,"for","incoming_email"],[12],[1,"\\n      "],[1,[28,[35,1],["admin.groups.manage.interaction.incoming_email"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,7],[[24,0,"input-xxlarge groups-form-incoming-email"]],[["@name","@value","@placeholderKey"],["incoming_email",[30,0,["model","incoming_email"]],"admin.groups.manage.interaction.incoming_email_placeholder"]],null],[1,"\\n\\n    "],[8,[39,8],null,[["@icon","@content"],["info-circle",[28,[37,1],["admin.groups.manage.interaction.incoming_email_tooltip"],null]]],null],[1,"\\n\\n    "],[10,1],[12],[1,"\\n      "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["group-email-in","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"label"],[14,0,"control-label"],[12],[1,"\\n  "],[1,[28,[35,1],["groups.manage.interaction.notification"],null]],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,1],["groups.notification_level"],null]],[13],[1,"\\n\\n  "],[8,[39,10],[[24,0,"groups-form-default-notification-level"]],[["@value","@options","@onChange"],[[30,0,["defaultNotificationLevel"]],[28,[37,5],null,[["i18nPrefix"],["groups.notifications"]]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["model","default_notification_level"]]],null]],null]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["groups-interaction-custom-options","div",[28,[37,5],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","i18n","combo-box","action","mut","hash","input","text-field","d-tooltip","plugin-outlet","notifications-button"]]',moduleName:"discourse/components/groups-form-interaction-fields.hbs",isStrictMode:!1});var d,p,h,m,g;const f=(0,i.setComponentTemplate)(u,s().extend((d=(0,l.default)("model.default_notification_level","watchingNotificationLevel"),p=(0,l.default)("siteSettings.email_in","model.automatic","currentUser.admin"),h=(0,l.default)("model.isCreated","model.can_admin_group","currentUser.can_create_group"),m=(0,l.default)("membersVisibilityLevel"),g={init(){this._super(...arguments),this.visibilityLevelOptions=[{name:c.default.t("admin.groups.manage.interaction.visibility_levels.public"),value:0},{name:c.default.t("admin.groups.manage.interaction.visibility_levels.logged_on_users"),value:1},{name:c.default.t("admin.groups.manage.interaction.visibility_levels.members"),value:2},{name:c.default.t("admin.groups.manage.interaction.visibility_levels.staff"),value:3},{name:c.default.t("admin.groups.manage.interaction.visibility_levels.owners"),value:4}],this.aliasLevelOptions=[{name:c.default.t("groups.alias_levels.nobody"),value:0},{name:c.default.t("groups.alias_levels.only_admins"),value:1},{name:c.default.t("groups.alias_levels.mods_and_admins"),value:2},{name:c.default.t("groups.alias_levels.members_mods_and_admins"),value:3},{name:c.default.t("groups.alias_levels.owners_mods_and_admins"),value:4},{name:c.default.t("groups.alias_levels.everyone"),value:99}],this.watchingNotificationLevel=a.NotificationLevels.WATCHING},membersVisibilityLevel:(0,o.or)("model.members_visibility_level","visibilityLevelOptions.firstObject.value"),messageableLevel:(0,o.or)("model.messageable_level","aliasLevelOptions.firstObject.value"),mentionableLevel:(0,o.or)("model.mentionable_level","aliasLevelOptions.firstObject.value"),defaultNotificationLevel:(e,t)=>Object.values(a.NotificationLevels).includes(e)?e:t,showEmailSettings:(e,t,n)=>e&&n&&!t,canAdminGroup:(e,t,n)=>!e&&n||e&&t,membersVisibilityPrivate(e){return e!==this.visibilityLevelOptions.firstObject.value}},(0,r.Z)(g,"defaultNotificationLevel",[d],Object.getOwnPropertyDescriptor(g,"defaultNotificationLevel"),g),(0,r.Z)(g,"showEmailSettings",[p],Object.getOwnPropertyDescriptor(g,"showEmailSettings"),g),(0,r.Z)(g,"canAdminGroup",[h],Object.getOwnPropertyDescriptor(g,"canAdminGroup"),g),(0,r.Z)(g,"membersVisibilityPrivate",[m],Object.getOwnPropertyDescriptor(g,"membersVisibilityPrivate"),g),g)))},17056:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(14601),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"dT7w+Tw2",block:'[[[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["groups.manage.membership.access"],null]],[13],[1,"\\n\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"group-form-public-admission"],[16,"disabled",[30,0,["disablePublicSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","public_admission"]]]],null],[1,"\\n\\n    "],[1,[28,[35,0],["groups.public_admission"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"group-form-public-exit"]],[["@type","@checked"],["checkbox",[30,0,["model","public_exit"]]]],null],[1,"\\n\\n    "],[1,[28,[35,0],["groups.public_exit"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"group-form-allow-membership-requests"],[16,"disabled",[30,0,["disableMembershipRequestSetting"]]]],[["@type","@checked"],["checkbox",[30,0,["model","allow_membership_requests"]]]],null],[1,"\\n\\n    "],[1,[28,[35,0],["groups.allow_membership_requests"],null]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["model","allow_membership_requests"]],[[[1,"    "],[10,0],[12],[1,"\\n      "],[10,"label"],[14,"for","membership-request-template"],[12],[1,"\\n        "],[1,[28,[35,0],["groups.membership_request_template"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,3],[[24,0,"group-form-membership-request-template input-xxlarge"]],[["@name","@value"],["membership-request-template",[30,0,["model","membership_request_template"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[41,[30,0,["model","can_admin_group"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["admin.groups.manage.membership.automatic"],null]],[13],[1,"\\n\\n    "],[10,"label"],[14,"for","automatic_membership"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.groups.manage.membership.automatic_membership_email_domains"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,4],[[24,0,"group-form-automatic-membership-automatic"]],[["@name","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange","@options"],["automatic_membership",[30,0,["emailDomains"]],[30,0,["emailDomains"]],"name",null,null,[28,[37,5],[[30,0],"onChangeEmailDomainsSetting"],null],[28,[37,6],null,[["allowAny"],[true]]]]],null],[1,"\\n\\n"],[41,[30,0,["showAssociatedGroups"]],[[[1,"      "],[10,"label"],[14,"for","automatic_membership_associated_groups"],[12],[1,"\\n        "],[1,[28,[35,0],["admin.groups.manage.membership.automatic_membership_associated_groups"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,4],[[24,0,"group-form-automatic-membership-associated-groups"]],[["@name","@value","@choices","@settingName","@nameProperty","@valueProperty","@onChange"],["automatic_membership_associated_groups",[30,0,["model","associatedGroupIds"]],[30,0,["associatedGroups"]],"name","label","id",[28,[37,5],[[30,0],[28,[37,7],[[30,0,["model","associated_group_ids"]]],null]],null]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["groups-form-membership-below-automatic","div",[28,[37,6],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["admin.groups.manage.membership.effects"],null]],[13],[1,"\\n    "],[10,"label"],[14,"for","grant_trust_level"],[12],[1,[28,[35,0],["admin.groups.manage.membership.trust_levels_title"],null]],[13],[1,"\\n\\n    "],[8,[39,9],[[24,0,"groups-form-grant-trust-level"]],[["@name","@valueProperty","@value","@content","@onChange"],["grant_trust_level","value",[30,0,["groupTrustLevel"]],[30,0,["trustLevelOptions"]],[28,[37,5],[[30,0],[28,[37,7],[[30,0,["model","grant_trust_level"]]],null]],null]]],null],[1,"\\n    "],[10,"label"],[12],[1,"\\n      "],[8,[39,1],[[24,0,"groups-form-primary-group"]],[["@type","@checked"],["checkbox",[30,0,["model","primary_group"]]]],null],[1,"\\n\\n      "],[1,[28,[35,0],["admin.groups.manage.membership.primary_group"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","title"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.groups.default_title"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,1],[[24,3,"title"],[24,0,"input-xxlarge"]],[["@value"],[[30,0,["model","title"]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-instructions"],[12],[1,"\\n      "],[1,[28,[35,0],["admin.groups.default_title_description"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,10],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["i18n","input","if","expanding-text-area","list-setting","action","hash","mut","plugin-outlet","combo-box","group-flair-inputs"]]',moduleName:"discourse/components/groups-form-membership-fields.hbs",isStrictMode:!1});var p,h,m;const g=(0,i.setComponentTemplate)(d,s().extend((p=(0,c.default)("model.visibility_level","model.public_admission"),h=(0,c.default)("model.visibility_level","model.allow_membership_requests"),m={tokenSeparator:"|",showAssociatedGroups:(0,a.readOnly)("site.can_associate_groups"),init(){this._super(...arguments),this.set("trustLevelOptions",[{name:u.default.t("admin.groups.manage.membership.trust_levels_none"),value:0},{name:1,value:1},{name:2,value:2},{name:3,value:3},{name:4,value:4}]),this.showAssociatedGroups&&this.loadAssociatedGroups()},canEdit:(0,a.not)("model.automatic"),groupTrustLevel:(0,o.computed)("model.grant_trust_level","trustLevelOptions",(function(){return this.model.get("grant_trust_level")||this.trustLevelOptions.firstObject.value})),disableMembershipRequestSetting:(e,t)=>(e=parseInt(e,10),t||e>1),disablePublicSetting:(e,t)=>(e=parseInt(e,10),t||e>1),emailDomains:(0,o.computed)("model.emailDomains",(function(){return this.model.emailDomains.split(this.tokenSeparator).filter(Boolean)})),loadAssociatedGroups(){l.default.list().then((e=>this.set("associatedGroups",e)))},actions:{onChangeEmailDomainsSetting(e){this.set("model.automatic_membership_email_domains",e.join(this.tokenSeparator))}}},(0,r.Z)(m,"disableMembershipRequestSetting",[p],Object.getOwnPropertyDescriptor(m,"disableMembershipRequestSetting"),m),(0,r.Z)(m,"disablePublicSetting",[h],Object.getOwnPropertyDescriptor(m,"disablePublicSetting"),m),m)))},20076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(6264),c=n(33217),u=n(38864),d=n(5751),p=n(56111),h=n(57555),m=n(82099);const g=(0,n(8620).createTemplateFactory)({id:"XE4SOz2D",block:'[[[41,[30,0,["canEdit"]],[[[41,[30,0,["currentUser","can_create_group"]],[[[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[14,"for","name"],[12],[1,[28,[35,1],["groups.name"],null]],[13],[1,"\\n\\n      "],[8,[39,2],[[24,0,"input-xxlarge group-form-name"]],[["@name","@value","@placeholderKey"],["name",[30,0,["nameInput"]],"admin.groups.name_placeholder"]],null],[1,"\\n\\n      "],[8,[39,3],null,[["@validation"],[[30,0,["nameValidation"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[14,"for","full_name"],[12],[1,[28,[35,1],["groups.manage.full_name"],null]],[13],[1,"\\n\\n    "],[8,[39,2],[[24,0,"input-xxlarge group-form-full-name"]],[["@name","@value"],["full_name",[30,0,["model","full_name"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"control-group"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[14,"for","bio"],[12],[1,[28,[35,1],["groups.bio"],null]],[13],[1,"\\n  "],[8,[39,4],[[24,0,"group-form-bio input-xxlarge"]],[["@value"],[[30,0,["model","bio_raw"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["model","automatic"]],[[[1,"  "],[10,0],[14,0,"control-group"],[12],[1,"\\n    "],[8,[39,5],null,[["@model"],[[30,0,["model"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canEdit"]],[[[1,"  "],[18,1,null],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["group-edit","div",[28,[37,8],null,[["group"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["&default"],false,["if","i18n","text-field","input-tip","d-editor","group-flair-inputs","yield","plugin-outlet","hash"]]',moduleName:"discourse/components/groups-form-profile-fields.hbs",isStrictMode:!1});var f,b,_;const y=(0,i.setComponentTemplate)(g,s().extend((f=(0,h.default)("basicNameValidation","uniqueNameValidation"),b=(0,h.observes)("nameInput"),_={disableSave:null,nameInput:null,didInsertElement(){this._super(...arguments);const e=this.get("model.name");e?this.set("nameInput",e):this.set("disableSave",!0)},canEdit:(0,l.not)("model.automatic"),nameValidation:(e,t)=>t||e,_validateName(){if(this.nameInput!==this.get("model.name"))return void 0===this.nameInput?this._failedInputValidation():""===this.nameInput?(this.set("uniqueNameValidation",null),this._failedInputValidation(m.default.t("admin.groups.new.name.blank"))):this.nameInput.length<this.siteSettings.min_username_length?this._failedInputValidation(m.default.t("admin.groups.new.name.too_short")):this.nameInput.length>this.siteSettings.max_username_length?this._failedInputValidation(m.default.t("admin.groups.new.name.too_long")):(this.checkGroupNameDebounced(),this._failedInputValidation(m.default.t("admin.groups.new.name.checking")))},checkGroupNameDebounced(){(0,p.default)(this,this._checkGroupName,500)},_checkGroupName(){(0,c.isEmpty)(this.nameInput)||d.default.checkName(this.nameInput).then((e=>{const t="uniqueNameValidation";if(e.available)this.set(t,a().create({ok:!0,reason:m.default.t("admin.groups.new.name.available")})),this.set("disableSave",!1),this.set("model.name",this.nameInput);else{let n;n=e.errors?e.errors.join(" "):m.default.t("admin.groups.new.name.not_available"),this.set(t,this._failedInputValidation(n))}})).catch(u.popupAjaxError)},_failedInputValidation(e){this.set("disableSave",!0);const t={failed:!0};e&&(t.reason=e),this.set("basicNameValidation",a().create(t))}},(0,r.Z)(_,"nameValidation",[f],Object.getOwnPropertyDescriptor(_,"nameValidation"),_),(0,r.Z)(_,"_validateName",[b],Object.getOwnPropertyDescriptor(_,"_validateName"),_),_)))},4184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"xvzLkauX",block:'[[[41,[30,0,["showFullName"]],[[[1,"  "],[10,1],[14,0,"groups-info-name"],[12],[1,[30,0,["group","full_name"]]],[13],[1,"\\n"]],[]],[[[1,"  "],[10,1],[14,0,"groups-info-name"],[12],[1,[30,0,["group","displayName"]]],[13],[1,"\\n"]],[]]]],[],false,["if"]]',moduleName:"discourse/components/groups-info.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("group.full_name"),c={tagName:"span",classNames:["group-info-details"],showFullName:e=>e&&e.length},(0,r.Z)(c,"showFullName",[l],Object.getOwnPropertyDescriptor(c,"showFullName"),c),c)))},89337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{needsSecondRowIf:()=>i});var r=n(54736);function i(){(0,r.default)("`needsSecondRowIf` is deprecated. Use widget hooks on `header-second-row`",{id:"discourse.header-extra-info.needs-second-row-if"})}},51048:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"WChOohYK",block:'[[[41,[51,[30,0,["expanded"]]],[[[1,"  "],[8,[39,1],[[24,0,"btn-link"]],[["@action","@label"],[[30,0,["expand"]],[30,0,["label"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["expanded"]],[[[1,"  "],[10,1],[14,0,"description"],[14,"aria-live","assertive"],[12],[1,[30,0,["details"]]],[13],[1,"\\n"]],[]],null]],[],false,["unless","d-button","if"]]',moduleName:"discourse/components/hidden-details.hbs",isStrictMode:!1});var l;const c=(0,i.setComponentTemplate)(a,s().extend((l={expand(){this.set("expanded",!0)}},(0,r.Z)(l,"expand",[o.action],Object.getOwnPropertyDescriptor(l,"expand"),l),l)))},82729:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s,o=n(54001),a=n(31691),l=n.n(a),c=n(16289),u=n(57555);const d=l().extend((r=(0,u.on)("didInsertElement"),i=(0,u.observes)("highlight"),s={tagName:"span",_highlightOnInsert(){const e=this.highlight;(0,c.default)(this.element,e)}},(0,o.Z)(s,"_highlightOnInsert",[r,i],Object.getOwnPropertyDescriptor(s,"_highlightOnInsert"),s),s))},75890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i,s=n(54001),o=n(2825),a=n(57555);const l=o.default.extend((r=(0,a.on)("init"),i={_init(){navigator.userAgent.includes("Chrome")?this.set("type","text"):this.set("type","password")}},(0,s.Z)(i,"_init",[r],Object.getOwnPropertyDescriptor(i,"_init"),i),i))},49652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"6xDtbyK8",block:'[[[1,"\\n"],[10,"nav"],[15,0,[29,["horizontal-overflow-nav ",[52,[30,0,["hasScroll"]],"has-scroll"]]]],[15,"aria-label",[30,1]],[12],[1,"\\n"],[41,[30,0,["hasScroll"]],[[[1,"    "],[11,3],[24,"role","button"],[24,"data-direction","left"],[16,0,[28,[37,1],["horizontal-overflow-nav__scroll-left",[52,[30,0,["hideLeftScroll"]],"disabled"]],null]],[4,[38,2],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,2],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,2],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["chevron-left"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[11,"ul"],[16,0,[29,["nav-pills action-list ",[30,2]]]],[17,3],[4,[38,4],[[30,0,["checkScroll"]]],null],[4,[38,2],["scroll",[30,0,["watchScroll"]]],null],[4,[38,5],[[30,0,["scrollToActive"]]],null],[4,[38,2],["mousedown",[30,0,["scrollDrag"]]],null],[12],[1,"\\n    "],[18,4,null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["hasScroll"]],[[[1,"    "],[11,3],[24,"role","button"],[16,0,[28,[37,1],["horizontal-overflow-nav__scroll-right",[52,[30,0,["hideRightScroll"]],"disabled"]],null]],[4,[38,2],["mousedown",[30,0,["horizontalScroll"]]],null],[4,[38,2],["mouseup",[30,0,["stopScroll"]]],null],[4,[38,2],["mouseleave",[30,0,["stopScroll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["chevron-right"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["@ariaLabel","@className","&attrs","&default"],false,["if","concat-class","on","d-icon","on-resize","did-insert","yield"]]',moduleName:"discourse/components/horizontal-overflow-nav.hbs",isStrictMode:!1});var p,h,m,g,f,b=n(31691);let _=(p=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"site",h,this),(0,r.Z)(this,"hasScroll",m,this),(0,r.Z)(this,"hideRightScroll",g,this),(0,r.Z)(this,"hideLeftScroll",f,this),(0,i.Z)(this,"scrollInterval",void 0)}scrollToActive(e){const t=e.querySelector("a.active");t?.scrollIntoView({block:"nearest",inline:"center"})}checkScroll(e){this.site.mobileView||(this.watchScroll(e),this.hasScroll=e.target.scrollWidth>e.target.offsetWidth)}stopScroll(){clearInterval(this.scrollInterval)}watchScroll(e){this.site.mobileView||(e.target.offsetWidth+e.target.scrollLeft===e.target.scrollWidth?(this.hideRightScroll=!0,clearInterval(this.scrollInterval)):this.hideRightScroll=!1,0===e.target.scrollLeft?(this.hideLeftScroll=!0,clearInterval(this.scrollInterval)):this.hideLeftScroll=!1)}scrollDrag(e){if(this.site.mobileView||!this.hasScroll)return;e.preventDefault();const t=e.target.closest(".nav-pills"),n=t.scrollLeft,r=e.clientX,i=function(e){let i=e.clientX-r;t.scrollLeft=n-i};t.querySelectorAll("a").forEach((e=>{e.style.cursor="grabbing"})),document.addEventListener("mousemove",i),document.addEventListener("mouseup",(function(){document.removeEventListener("mousemove",i),t.querySelectorAll("a").forEach((e=>{e.style.cursor="pointer"}))}),{once:!0})}horizontalScroll(e){if(1!==e.which)return;let t=175,n=e.target.previousElementSibling;"left"===e.target.dataset.direction&&(t*=-1,n=e.target.nextElementSibling),n.scrollLeft+=t,this.scrollInterval=setInterval((function(){n.scrollLeft+=t}),50)}},h=(0,s.Z)(p.prototype,"site",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,s.Z)(p.prototype,"hasScroll",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(p.prototype,"hideRightScroll",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,s.Z)(p.prototype,"hideLeftScroll",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,s.Z)(p.prototype,"scrollToActive",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"scrollToActive"),p.prototype),(0,s.Z)(p.prototype,"checkScroll",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"checkScroll"),p.prototype),(0,s.Z)(p.prototype,"stopScroll",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"stopScroll"),p.prototype),(0,s.Z)(p.prototype,"watchScroll",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"watchScroll"),p.prototype),(0,s.Z)(p.prototype,"scrollDrag",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"scrollDrag"),p.prototype),(0,s.Z)(p.prototype,"horizontalScroll",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"horizontalScroll"),p.prototype),p);(0,b.setComponentTemplate)(d,_)},83435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r),s=n(78480);const o=i().extend({click(e){"A"===e?.target?.tagName&&(0,s.shouldOpenInNewTab)(e.target.href)&&(0,s.openLinkInNewTab)(e,e.target)}})},94708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(31691);const i=n.n(r)().extend({tagName:"iframe",html:null,classNameBindings:["html:iframed-html"],sandbox:"allow-same-origin",attributeBindings:["sandbox:sandbox"],didRender(){this._super(...arguments);const e=this.element.contentWindow.document;e.open("text/html","replace"),e.write(this.html),e.close()}})},45691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"yXL+wP+m",block:'[[[10,0],[14,0,"ignored-user-list-item"],[12],[1,"\\n  "],[10,1],[14,0,"ignored-user-name"],[12],[1,[30,0,["item"]]],[13],[1,"\\n  "],[8,[39,0],[[24,0,"remove-ignored-user no-text btn-icon"]],[["@action","@icon"],[[28,[37,1],[[28,[37,2],[[30,0],"removeIgnoredUser"],null],[30,0,["item"]]],null],"times"]],null],[1,"\\n"],[13]],[],false,["d-button","fn","action"]]',moduleName:"discourse/components/ignored-user-list-item.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"div",items:null,actions:{removeIgnoredUser(e){this.onRemoveIgnoredUser(e)}}}))},83382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(31691),i=n.n(r),s=n(17579),o=n(38864),a=n(7223),l=n(72261);const c=(0,n(8620).createTemplateFactory)({id:"aYvtZBmh",block:'[[[10,0],[14,0,"ignored-list"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["items"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@item","@onRemoveIgnoredUser"],[[30,1],[28,[37,3],[[30,0],"removeIgnoredUser"],null]]],null],[1,"\\n"]],[1]],[[[1,"    "],[1,[28,[35,4],["user.user_notifications.ignore_no_users"],null]],[1,"\\n"]],[]]],[13],[1,"\\n"],[10,0],[14,0,"instructions"],[12],[1,[28,[35,4],["user.ignored_users_instructions"],null]],[13],[1,"\\n"],[10,0],[12],[8,[39,5],[[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,3],[[30,0],"newIgnoredUser"],null],"plus","user.user_notifications.add_ignored_user"]],null],[13]],["item"],false,["each","-track-array","ignored-user-list-item","action","i18n","d-button"]]',moduleName:"discourse/components/ignored-user-list.hbs",isStrictMode:!1}),u=(0,r.setComponentTemplate)(c,i().extend({modal:(0,s.inject)(),item:null,actions:{removeIgnoredUser(e){this.set("saved",!1),this.items.removeObject(e),a.default.findByUsername(e).then((e=>{e.updateNotificationLevel({level:"normal",actingUser:this.model}).catch(o.popupAjaxError).finally((()=>this.set("saved",!0)))}))},newIgnoredUser(){this.modal.show(l.default,{model:{actingUser:this.model,ignoredUsername:null,onUserIgnored:e=>{this.items.addObject(e)}}})}}}))},14198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(88548),a=n(57555),l=n(82099);const c=(0,n(8620).createTemplateFactory)({id:"jrOoDhht",block:'[[[10,"label"],[14,0,"btn"],[15,"disabled",[30,0,["uploadingOrProcessing"]]],[15,"title",[28,[37,0],["admin.site_settings.uploaded_image_list.upload.title"],null]],[12],[1,"\\n  "],[1,[28,[35,1],["far-image"],null]],[1," "],[1,[30,0,["uploadButtonText"]]],[1,"\\n  "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"accept","image/*"],[14,"multiple",""],[14,4,"file"],[12],[13],[1,"\\n"],[13],[1,"\\n"],[41,[30,0,["uploadingOrProcessing"]],[[[1,"  "],[10,1],[12],[1,[28,[35,0],["upload_selector.uploading"],null]],[1," "],[1,[30,0,["uploadProgress"]]],[1,"%"],[13],[1,"\\n"]],[]],null]],[],false,["i18n","d-icon","if"]]',moduleName:"discourse/components/images-uploader.hbs",isStrictMode:!1});var u,d;const p=(0,i.setComponentTemplate)(c,s().extend(o.default,(u=(0,a.default)("uploadingOrProcessing"),d={type:"avatar",tagName:"span",uploadButtonText:e=>e?l.default.t("uploading"):l.default.t("upload"),validateUploadedFilesOptions:()=>({imagesOnly:!0}),uploadDone(e){this.done(e)}},(0,r.Z)(d,"uploadButtonText",[u],Object.getOwnPropertyDescriptor(d,"uploadButtonText"),d),d)))},84323:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(40098),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"rk+rCVgH",block:'[[[1,"\\n  "],[11,0],[16,0,[29,["tip ",[52,[30,1,["failed"]],"bad","good"]]]],[16,1,[30,2]],[17,3],[12],[1,"\\n"],[41,[30,1,["reason"]],[[[1,"      "],[1,[28,[32,0],[[52,[30,1,["failed"]],"times","check"]],null]],[1,"\\n      "],[1,[30,1,["reason"]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],["@validation","@id","&attrs"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/input-tip.js",scope:()=>[r.default],isStrictMode:!0}),a()())},45832:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(6264),c=n(33217),u=n(63319),d=n(60353),p=n(62617),h=n(5751),m=n(57555),g=n(82099);const f=(0,n(8620).createTemplateFactory)({id:"wX2HeAxG",block:'[[[41,[30,0,["inviteModel","error"]],[[[1,"  "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n    "],[1,[28,[35,1],[[30,0,["errorMessage"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"body"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[41,[30,0,["inviteModel","inviteLink"]],[[[1,"      "],[8,[39,2],null,[["@link","@email"],[[30,0,["inviteModel","inviteLink"]],[30,0,["invitee"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"success-message"],[12],[1,"\\n        "],[1,[28,[35,1],[[30,0,["successMessage"]]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]]]],[]],[[[1,"    "],[10,0],[14,0,"invite-user-control"],[12],[1,"\\n      "],[10,"label"],[14,0,"instructions"],[12],[1,[30,0,["inviteInstructions"]]],[13],[1,"\\n      "],[10,0],[14,0,"invite-user-input-wrapper"],[12],[1,"\\n"],[41,[30,0,["allowExistingMembers"]],[[[1,"          "],[8,[39,3],[[24,0,"invite-user-input"]],[["@value","@onChange","@options"],[[30,0,["invitee"]],[28,[37,4],[[30,0],"updateInvitee"],null],[28,[37,5],null,[["maximum","allowEmails","excludeCurrentUser","includeMessageableGroups","filterPlaceholder","fullWidthWrap"],[1,[30,0,["canInviteViaEmail"]],true,[30,0,["isPM"]],[30,0,["placeholderKey"]],true]]]]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[39,6],[[24,0,"email-or-username-input"]],[["@value","@placeholderKey"],[[30,0,["invitee"]],"topic.invite_reply.email_placeholder"]],null],[1,"\\n"]],[]]],[41,[30,0,["capabilities","hasContactPicker"]],[[[1,"          "],[8,[39,7],[[24,0,"btn-primary open-contact-picker"]],[["@icon","@action"],["address-book",[30,0,["searchContact"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["showGroups"]],[[[1,"      "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n        "],[10,"label"],[15,0,[29,["instructions ",[30,0,["showGroupsClass"]]]]],[12],[1,"\\n          "],[1,[28,[35,8],["topic.automatically_add_to_groups"],null]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,9],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,0,["groupIds"]],"name",[28,[37,4],[[30,0],[28,[37,10],[[30,0,["groupIds"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showCustomMessage"]],[[[1,"      "],[10,0],[14,0,"show-custom-message-control"],[12],[1,"\\n        "],[10,"label"],[14,0,"instructions"],[12],[1,"\\n          "],[8,[39,11],[[24,0,"optional"]],[["@action","@text"],[[28,[37,4],[[30,0],"showCustomMessageBox"],null],"invite.custom_message"]],null],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["hasCustomMessage"]],[[[1,"          "],[8,[39,12],[[16,"placeholder",[30,0,["customMessagePlaceholder"]]]],[["@value"],[[30,0,["customMessage"]]]],null],[1,""]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["showApprovalMessage"]],[[[1,"    "],[10,"label"],[14,0,"instructions approval-notice"],[12],[1,"\\n      "],[1,[28,[35,8],["invite.approval_not_required"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"footer"],[12],[1,"\\n"],[41,[30,0,["inviteModel","finished"]],[[[1,"    "],[8,[39,7],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"close"]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,7],[[24,0,"btn-primary send-invite"]],[["@icon","@action","@disabled","@label"],[[30,0,["inviteIcon"]],[30,0,["createInvite"]],[30,0,["disabled"]],[30,0,["buttonTitle"]]]],null],[1,"\\n"],[41,[30,0,["showCopyInviteButton"]],[[[1,"      "],[8,[39,7],[[24,0,"btn-primary generate-invite-link"]],[["@icon","@action","@disabled","@label"],["link",[30,0,["generateInviteLink"]],[30,0,["disabledCopyLink"]],"user.invited.generate_link"]],null],[1,"\\n"]],[]],null]],[]]],[13]],["@closeModal"],false,["if","html-safe","generated-invite-link","email-group-user-chooser","action","hash","text-field","d-button","i18n","group-chooser","mut","discourse-linked-text","textarea"]]',moduleName:"discourse/components/invite-panel.hbs",isStrictMode:!1});var b,_,y,w,v,k,x,T,S,C,P,O,E,D,I;const j=(0,i.setComponentTemplate)(f,s().extend((b=(0,m.default)("isAdmin","invitee","invitingToTopic","isPrivateTopic","groupIds","inviteModel.saving","inviteModel.details.can_invite_to"),_=(0,m.default)("isAdmin","invitee","inviteModel.saving","isPrivateTopic","groupIds","hasCustomMessage"),y=(0,m.default)("inviteModel.saving"),w=(0,m.default)("inviteModel"),v=(0,m.default)("inviteModel","inviteModel.details.can_invite_via_email"),k=(0,m.default)("isPM","canInviteViaEmail"),x=(0,m.default)("isAdmin","inviteModel.group_users"),T=(0,m.default)("isGroupOwnerOrAdmin","invitee","isPrivateTopic","isPM","invitingToTopic","canInviteViaEmail"),S=(0,m.default)("invitee"),C=(0,m.default)("isPM","invitingToTopic","invitee","isPrivateTopic","isAdmin","canInviteViaEmail"),P=(0,m.default)("isPrivateTopic"),O=(0,m.default)("isPM","invitee","invitingExistingUserToTopic"),E=(0,m.default)("isPM","ajaxError"),D=(0,m.default)("canInviteViaEmail"),I={tagName:null,groupIds:null,allGroups:null,isStaff:(0,l.readOnly)("currentUser.staff"),isAdmin:(0,l.readOnly)("currentUser.admin"),invitee:null,isInviteeGroup:!1,hasCustomMessage:!1,customMessage:null,inviteIcon:"envelope",invitingExistingUserToTopic:!1,init(){this._super(...arguments),this.setDefaultSelectedGroups(),this.setGroupOptions()},willDestroyElement(){this._super(...arguments),this.reset()},disabled:(e,t,n,r,i,s,o)=>!(!s&&!(0,c.isEmpty)(t)&&(n||(0,p.emailValid)(t))&&(e||!r||!(0,p.emailValid)(t))&&!(r&&(0,c.isEmpty)(i)&&(0,p.emailValid)(t))),disabledCopyLink:(e,t,n,r,i,s)=>!(!s&&!n&&!(0,c.isEmpty)(t)&&(0,p.emailValid)(t)&&(e||!r||!(0,p.emailValid)(t))&&!(r&&(0,c.isEmpty)(i)&&(0,p.emailValid)(t))),buttonTitle:e=>e?"topic.inviting":"topic.invite_reply.action",invitingToTopic(e){return e!==this.currentUser},canInviteViaEmail(e,t){return e===this.currentUser||t},showCopyInviteButton:(e,t)=>t&&!e,topicId:(0,l.alias)("inviteModel.id"),isPrivateTopic:(0,l.and)("invitingToTopic","inviteModel.category.read_restricted"),isPM:(0,l.equal)("inviteModel.archetype","private_message"),allowExistingMembers:(0,l.alias)("invitingToTopic"),isGroupOwnerOrAdmin:(e,t)=>e||t&&t.some((e=>e.owner)),showGroups:(e,t,n,r,i,s)=>e&&s&&!r&&((0,p.emailValid)(t)||n||!i),showCustomMessage(e){return this.inviteModel===this.currentUser||(0,p.emailValid)(e)},inviteInstructions(e,t,n,r,i,s){return s?e?g.default.t("topic.invite_private.email_or_username"):t?r&&!i?g.default.t("topic.invite_reply.to_username"):(0,c.isEmpty)(n)?g.default.t("topic.invite_reply.to_topic_blank"):(0,p.emailValid)(n)?(this.set("inviteIcon","envelope"),g.default.t("topic.invite_reply.to_topic_email")):(this.set("inviteIcon","hand-point-right"),g.default.t("topic.invite_reply.to_topic_username")):g.default.t("topic.invite_reply.to_forum"):g.default.t("topic.invite_reply.discourse_connect_enabled")},showGroupsClass:e=>e?"required":"optional",successMessage(e,t,n){return this.isInviteeGroup?g.default.t("topic.invite_private.success_group"):e?g.default.t("topic.invite_private.success"):n?g.default.t("topic.invite_reply.success_existing_email",{invitee:t}):(0,p.emailValid)(t)?g.default.t("topic.invite_reply.success_email",{invitee:t}):g.default.t("topic.invite_reply.success_username")},errorMessage:(e,t)=>t||(e?g.default.t("topic.invite_private.error"):g.default.t("topic.invite_reply.error")),placeholderKey:e=>e?"topic.invite_private.email_or_username_placeholder":"topic.invite_reply.username_placeholder",showApprovalMessage:(0,l.and)("isStaff","siteSettings.must_approve_users"),customMessagePlaceholder:(0,u.i18n)("invite.custom_message_placeholder"),reset(){this.setProperties({invitee:null,isInviteeGroup:!1,hasCustomMessage:!1,customMessage:null,invitingExistingUserToTopic:!1,groupIds:[]}),this.inviteModel.setProperties({error:!1,saving:!1,finished:!1,inviteLink:null})},setDefaultSelectedGroups(){this.set("groupIds",[])},setGroupOptions(){h.default.findAll().then((e=>{this.set("allGroups",e.filterBy("automatic",!1))}))},createInvite(){if(this.disabled)return;const e=this.groupIds,t=this.inviteModel;t.setProperties({saving:!0,error:!1});const n=e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("ajaxError",e.jqXHR.responseJSON.errors[0]):this.set("ajaxError",null),t.setProperties({saving:!1,error:!0})};return this.isInviteeGroup?this.inviteModel.createGroupInvite(this.invitee.trim()).then((()=>{t.setProperties({saving:!1,finished:!0}),this.inviteModel.reload().then((()=>{this.appEvents.trigger("post-stream:refresh")}))})).catch(n):this.inviteModel.createInvite(this.invitee.trim(),e,this.customMessage).then((e=>{t.setProperties({saving:!1,finished:!0}),this.isPM&&e&&e.user?(this.get("inviteModel.details.allowed_users").pushObject(a().create(e.user)),this.appEvents.trigger("post-stream:refresh",{force:!0})):this.invitingToTopic&&(0,p.emailValid)(this.invitee.trim())&&e&&e.user&&this.set("invitingExistingUserToTopic",!0)})).catch(n)},generateInviteLink(){if(this.disabled)return;const e=this.groupIds,t=this.inviteModel;let n;return t.setProperties({saving:!0,error:!1}),this.invitingToTopic&&(n=this.get("inviteModel.id")),t.generateInviteLink(this.invitee.trim(),e,n).then((e=>{t.setProperties({saving:!1,finished:!0,inviteLink:e.link})})).catch((e=>{e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors?this.set("ajaxError",e.jqXHR.responseJSON.errors[0]):this.set("ajaxError",null),t.setProperties({saving:!1,error:!0})}))},showCustomMessageBox(){this.toggleProperty("hasCustomMessage"),this.hasCustomMessage?this.inviteModel===this.currentUser?this.set("customMessage",g.default.t("invite.custom_message_template_forum")):this.set("customMessage",g.default.t("invite.custom_message_template_topic")):this.set("customMessage",null)},searchContact(){(0,d.getNativeContact)(this.capabilities,["email"],!1).then((e=>{this.set("invitee",e[0].email[0])}))},updateInvitee(e,t){let n=t.findBy("id",e[0]);!n&&t.length&&(n="string"==typeof t[0]?{id:t[0]}:t[0]),n?this.setProperties({invitee:n.id.trim(),isInviteeGroup:n.isGroup||!1}):this.setProperties({invitee:null,isInviteeGroup:!1})}},(0,r.Z)(I,"disabled",[b],Object.getOwnPropertyDescriptor(I,"disabled"),I),(0,r.Z)(I,"disabledCopyLink",[_],Object.getOwnPropertyDescriptor(I,"disabledCopyLink"),I),(0,r.Z)(I,"buttonTitle",[y],Object.getOwnPropertyDescriptor(I,"buttonTitle"),I),(0,r.Z)(I,"invitingToTopic",[w],Object.getOwnPropertyDescriptor(I,"invitingToTopic"),I),(0,r.Z)(I,"canInviteViaEmail",[v],Object.getOwnPropertyDescriptor(I,"canInviteViaEmail"),I),(0,r.Z)(I,"showCopyInviteButton",[k],Object.getOwnPropertyDescriptor(I,"showCopyInviteButton"),I),(0,r.Z)(I,"isGroupOwnerOrAdmin",[x],Object.getOwnPropertyDescriptor(I,"isGroupOwnerOrAdmin"),I),(0,r.Z)(I,"showGroups",[T],Object.getOwnPropertyDescriptor(I,"showGroups"),I),(0,r.Z)(I,"showCustomMessage",[S],Object.getOwnPropertyDescriptor(I,"showCustomMessage"),I),(0,r.Z)(I,"inviteInstructions",[C],Object.getOwnPropertyDescriptor(I,"inviteInstructions"),I),(0,r.Z)(I,"showGroupsClass",[P],Object.getOwnPropertyDescriptor(I,"showGroupsClass"),I),(0,r.Z)(I,"successMessage",[O],Object.getOwnPropertyDescriptor(I,"successMessage"),I),(0,r.Z)(I,"errorMessage",[E],Object.getOwnPropertyDescriptor(I,"errorMessage"),I),(0,r.Z)(I,"placeholderKey",[D],Object.getOwnPropertyDescriptor(I,"placeholderKey"),I),(0,r.Z)(I,"createInvite",[o.action],Object.getOwnPropertyDescriptor(I,"createInvite"),I),(0,r.Z)(I,"generateInviteLink",[o.action],Object.getOwnPropertyDescriptor(I,"generateInviteLink"),I),(0,r.Z)(I,"showCustomMessageBox",[o.action],Object.getOwnPropertyDescriptor(I,"showCustomMessageBox"),I),(0,r.Z)(I,"searchContact",[o.action],Object.getOwnPropertyDescriptor(I,"searchContact"),I),(0,r.Z)(I,"updateInvitee",[o.action],Object.getOwnPropertyDescriptor(I,"updateInvitee"),I),I)))},96438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(13772),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"Wb3nQiwT",block:'[[[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item","div",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[10,0],[14,0,"topic-poster"],[12],[1,"\\n  "],[8,[39,2],null,[["@user"],[[30,0,["topic","lastPosterUser"]]]],[["default"],[[[[1,"\\n    "],[1,[28,[35,3],[[30,0,["topic","lastPosterUser"]]],[["imageSize"],["large"]]]],[1,"\\n  "]],[]]]]],[1,"\\n  "],[8,[39,4],null,[["@user"],[[30,0,["topic","lastPosterUser"]]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"main-link"],[12],[1,"\\n  "],[10,0],[14,0,"top-row"],[12],[1,"\\n    "],[1,[28,[35,5],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n    "],[1,[28,[35,6],[[30,0,["topic"]]],null]],[41,[30,0,["topic","featured_link"]],[[[1,"       "],[1,[28,[35,8],[[30,0,["topic"]]],null]],[1,"\\n    "]],[]],null],[8,[39,9],null,[["@unreadPosts","@unseen","@url"],[[30,0,["topic","unread_posts"]],[30,0,["topic","unseen"]],[30,0,["topic","lastUnreadUrl"]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"bottom-row"],[12],[1,"\\n    "],[1,[28,[35,10],[[30,0,["topic","category"]]],null]],[1,[28,[35,11],[[30,0,["topic"]]],[["mode"],["list"]]]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"topic-stats"],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@connectorTagName","@outletArgs"],["above-latest-topic-list-item-post-count","div",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n  "],[1,[28,[35,5],["list/posts-count-column"],[["topic","tagName"],[[30,0,["topic"]],"div"]]]],[1,"\\n  "],[10,0],[14,0,"topic-last-activity"],[12],[1,"\\n    "],[10,3],[15,6,[30,0,["topic","lastPostUrl"]]],[15,"title",[30,0,["topic","bumpedAtTitle"]]],[12],[1,[28,[35,12],[[30,0,["topic","bumpedAt"]]],[["format","noTitle"],["tiny","true"]]]],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","hash","user-link","avatar","user-avatar-flair","raw","topic-link","if","topic-featured-link","topic-post-badges","category-link","discourse-tags","format-date"]]',moduleName:"discourse/components/latest-topic-list-item.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("topic"),u={attributeBindings:["topic.id:data-topic-id"],classNameBindings:[":latest-topic-list-item","unboundClassNames"],showEntrance:o.showEntrance,navigateToTopic:o.navigateToTopic,click(e){return!1!==this.showEntrance(e)&&this.unhandledRowClick(e,this.topic)},unhandledRowClick(){},unboundClassNames(e){let t=[];return e.get("category")&&t.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach((e=>t.push("tag-"+e))),["liked","archived","bookmarked","pinned","closed","visited"].forEach((n=>{e.get(n)&&t.push(n)})),t.join(" ")}},(0,r.Z)(u,"unboundClassNames",[c],Object.getOwnPropertyDescriptor(u,"unboundClassNames"),u),u)))},42122:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(17579),u=n(47748),d=n(47582),p=n(8620),h=n(31691);let m=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"session",i,this)}get isDarkImageAvailable(){return this.args.lightImg?.url&&this.args.darkImg?.url&&(this.session.defaultColorSchemeIsDark||this.session.darkModeAvailable)}get defaultImg(){return this.session.defaultColorSchemeIsDark&&this.args.darkImg?this.args.darkImg:this.args.lightImg}get darkImgCdnSrc(){return(0,d.getURLWithCDN)(this.args.darkImg.url)}},(0,h.setComponentTemplate)((0,p.createTemplateFactory)({id:"xBO2P/dj",block:'[[[1,"\\n"],[41,[30,0,["isDarkImageAvailable"]],[[[1,"      "],[10,"picture"],[12],[1,"\\n        "],[10,"source"],[15,"srcset",[30,0,["darkImgCdnSrc"]]],[15,"width",[30,1,["width"]]],[15,"height",[30,1,["height"]]],[14,"media","(prefers-color-scheme: dark)"],[12],[13],[1,"\\n        "],[8,[32,0],[[17,2]],[["@src","@width","@height"],[[30,0,["defaultImg","url"]],[30,0,["defaultImg","width"]],[30,0,["defaultImg","height"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,3,["url"]],[[[1,"      "],[8,[32,0],[[17,2]],[["@src","@width","@height"],[[30,3,["url"]],[30,3,["width"]],[30,3,["height"]]]],null],[1,"\\n    "]],[]],null]],[]]],[1,"  "]],["@darkImg","&attrs","@lightImg"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/light-dark-img.js",scope:()=>[u.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"session",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},42838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(31691),i=n.n(r),s=n(51372),o=n(71466),a=n.n(o);const l=(0,n(8620).createTemplateFactory)({id:"O5u4qHpi",block:'[[[41,[30,0,["showInput"]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]],[[[1,"  "],[10,3],[14,6,""],[12],[1,"\\n"],[41,[30,0,["key"]],[[[1,"      "],[1,[28,[35,2],[[30,0,["key"]]],null]],[1,"\\n"]],[]],null],[41,[30,0,["icon"]],[[[1,"      "],[1,[28,[35,3],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["&default"],false,["if","yield","i18n","d-icon"]]',moduleName:"discourse/components/link-to-input.hbs",isStrictMode:!1}),c=(0,r.setComponentTemplate)(l,i().extend({showInput:!1,click(){return this.onClick(),(0,s.schedule)("afterRender",(()=>{a()(this.element).find("input").focus()})),!1}}))},87385:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(72326),i=n(31691),s=n.n(i),o=n(78480);const a=s().extend({click(e){if("A"===e?.target?.tagName)return o.default.trackClick(e,(0,r.getOwner)(this))}})},87996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r),s=n(81533);const o=i().extend(s.default,{init(){this._super(...arguments),this.set("eyelineSelector",this.selector)},actions:{loadMore(){this.action()}}})},42977:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"RwNfKrOX",block:'[[[41,[30,0,["shouldDisplay"]],[[[1,"  "],[10,0],[14,0,"route-loading-spinner"],[12],[1,[34,1]],[13],[1,"\\n  "],[1,[28,[35,2],["has-route-loading-spinner"],null]],[1,"\\n  "],[1,[34,3]],[1,"\\n"]],[]],null]],[],false,["if","loading-spinner","body-class","hide-application-footer"]]',moduleName:"discourse/components/loading-slider-fallback-spinner.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"loadingSlider",c,this)}get shouldDisplay(){const{mode:e,loading:t,stillLoading:n}=this.loadingSlider;return"spinner"===e&&t||"slider"===e&&n}},c=(0,i.Z)(l.prototype,"loadingSlider",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,u.setComponentTemplate)(a,d)},79414:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(78580),a=n(34287),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"tUgcekDF",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["buttons"]]],null]],null],null,[[[1,"  "],[11,"button"],[16,0,[29,["btn btn-social ",[30,1,["name"]]]]],[16,"aria-label",[30,1,["screenReaderTitle"]]],[24,4,"button"],[4,[38,2],["click",[28,[37,3],[[30,0],[30,0,["externalLogin"]],[30,1]],null]],null],[12],[1,"\\n"],[41,[30,1,["isGoogle"]],[[[1,"      "],[8,[39,5],null,null,null],[1,"\\n"]],[]],[[[41,[30,1,["icon"]],[[[1,"      "],[1,[28,[35,6],[[30,1,["icon"]]],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,6],["sign-in-alt"],null]],[1,"\\n    "]],[]]]],[]]],[1,"    "],[10,1],[14,0,"btn-social-title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["showPasskeysButton"]],[[[1,"  "],[8,[39,7],null,[["@passkeyLogin"],[[30,0,["passkeyLogin"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,8],null,[["@name"],["after-login-buttons"]],null]],["b"],false,["each","-track-array","on","action","if","google-icon","d-icon","passkey-login-button","plugin-outlet"]]',moduleName:"discourse/components/login-buttons.hbs",isStrictMode:!1});var u,d;const p=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("buttons.length","showLoginWithEmailLink","showPasskeysButton"),d={elementId:"login-buttons",classNameBindings:["hidden"],hidden:(e,t,n)=>0===e&&!t&&!n,buttons:()=>(0,a.findAll)(),showPasskeysButton(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&"login"===this.context&&(0,o.isWebauthnSupported)()}},(0,r.Z)(d,"hidden",[u],Object.getOwnPropertyDescriptor(d,"hidden"),d),(0,r.Z)(d,"buttons",[l.default],Object.getOwnPropertyDescriptor(d,"buttons"),d),(0,r.Z)(d,"showPasskeysButton",[l.default],Object.getOwnPropertyDescriptor(d,"showPasskeysButton"),d),d)))},48036:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"VAUJ61QA",block:'[[[10,0],[15,0,[28,[37,0],["search-menu-panel menu-panel",[30,1]],null]],[14,"data-max-width","500"],[12],[1,"\\n  "],[10,0],[14,0,"panel-body"],[12],[1,"\\n    "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n      "],[18,2,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@animationClass","&default"],false,["concat-class","yield"]]',moduleName:"discourse/components/menu-panel.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},19707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(13772);const o=(0,n(8620).createTemplateFactory)({id:"vbE3wQWQ",block:'[[[10,"td"],[14,0,"main-link"],[12],[1,"\\n  "],[10,0],[14,0,"topic-inset"],[12],[1,"\\n    "],[1,[28,[35,0],["topic-status"],[["topic"],[[30,0,["topic"]]]]]],[1,"\\n    "],[1,[28,[35,1],[[30,0,["topic"]]],null]],[1,"\\n"],[41,[30,0,["topic","unseen"]],[[[1,"      "],[10,1],[14,0,"badge-notification new-topic"],[12],[13],[1,"\\n"]],[]],null],[1,"    "],[10,1],[15,0,[28,[37,3],[[30,0,["topic","last_posted_at"]]],null]],[15,"title",[28,[37,4],[[30,0,["topic","last_posted_at"]]],null]],[12],[1,[28,[35,5],[[30,0,["topic","last_posted_at"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[10,"td"],[14,0,"num posts"],[12],[1,[28,[35,0],["list/post-count-or-badges"],[["topic","postBadgesEnabled"],[[30,0,["topic"]],"true"]]]],[13]],[],false,["raw","topic-link","if","cold-age-class","raw-date","format-age"]]',moduleName:"discourse/components/mobile-category-topic.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({tagName:"tr",classNameBindings:[":category-topic-link","topic.archived","topic.visited"],click:s.showEntrance}))},33505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(51372),l=n(17579),c=n(71466),u=n.n(c),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"tkZzn6/o",block:'[[[41,[30,0,["site","mobileView"]],[[[41,[30,0,["selectedHtml"]],[[[1,"    "],[10,"li"],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"expander"],[4,[38,1],["click",[30,0,["toggleExpanded"]]],null],[12],[1,"\\n        "],[10,1],[14,0,"selection"],[12],[1,[28,[35,2],[[30,0,["selectedHtml"]]],null]],[13],[1,"\\n        "],[1,[28,[35,3],["caret-down"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"  "],[10,"ul"],[15,0,[29,["drop ",[52,[30,0,["expanded"]],"expanded"]]]],[12],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]]]],["&default"],false,["if","on","html-safe","d-icon","yield"]]',moduleName:"discourse/components/mobile-nav.hbs",isStrictMode:!1});var h,m;const g=(0,i.setComponentTemplate)(p,s().extend((h=(0,d.on)("init"),m={_init(){if(!this.get("site.mobileView")){let e=this.desktopClass;e&&(e=e.split(" "),this.set("classNames",e))}},tagName:"ul",selectedHtml:null,classNames:["mobile-nav"],router:(0,l.inject)(),currentRouteChanged(){this.set("expanded",!1),(0,a.next)((()=>this._updateSelectedHtml()))},_updateSelectedHtml(){if(!this.element||this.isDestroying||this.isDestroyed)return;const e=this.element.querySelector(".active");e&&e.innerHTML&&this.set("selectedHtml",e.innerHTML)},didInsertElement(){this._super(...arguments),this._updateSelectedHtml(),this.router.on("routeDidChange",this,this.currentRouteChanged)},willDestroyElement(){this._super(...arguments),this.router.off("routeDidChange",this,this.currentRouteChanged)},toggleExpanded(e){e?.preventDefault(),this.toggleProperty("expanded"),(0,a.next)((()=>{this.expanded&&u()(window).off("click.mobile-nav").on("click.mobile-nav",(e=>{if(!this.element||this.isDestroying||this.isDestroyed)return;const t=this.element.querySelector(".expander");t&&e.target!==t&&(this.set("expanded",!1),u()(window).off("click.mobile-nav"))}))}))}},(0,r.Z)(m,"_init",[h],Object.getOwnPropertyDescriptor(m,"_init"),m),(0,r.Z)(m,"toggleExpanded",[o.action],Object.getOwnPropertyDescriptor(m,"toggleExpanded"),m),m)))},82222:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(52313);const c=(0,n(8620).createTemplateFactory)({id:"B7dY+MGy",block:'[[[11,0],[24,0,"modal-container"],[4,[38,0],[[30,0,["modal","setContainerElement"]]],null],[12],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["modal","activeModal"]],[[[42,[28,[37,3],[[28,[37,3],[[28,[37,4],[[30,0,["modal","activeModal"]]],null]],null]],null],null,[[[1,"    "],[8,[30,1,["component"]],null,[["@model","@closeModal"],[[30,1,["opts","model"]],[30,0,["closeModal"]]]],null],[1,"\\n"]],[1]],null]],[]],null],[1,"\\n"],[41,[30,0,["renderLegacy"]],[[[1,"  "],[8,[39,5],null,[["@modalClass","@title","@titleAriaElementId","@panels","@selectedPanel","@onSelectPanel","@hidden","@errors","@closeModal"],[[52,[30,0,["modal","isLegacy"]],[28,[37,6],["modal","d-modal",[30,0,["modal","modalClass"]],[52,[30,0,["modal","opts","panels"]],"has-tabs"]],null]],[30,0,["modal","title"]],[30,0,["modal","opts","titleAriaElementId"]],[30,0,["modal","opts","panels"]],[30,0,["modal","selectedPanel"]],[30,0,["modal","onSelectPanel"]],[30,0,["modal","hidden"]],[30,0,["modal","errors"]],[30,0,["closeModal"]]]],null],[1,"\\n"]],[]],null]],["activeModal"],false,["did-insert","if","each","-track-array","array","d-modal-legacy","concat-class"]]',moduleName:"discourse/components/modal-container.hbs",isStrictMode:!1});var u,d,p=n(31691);let h=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"modal",d,this)}closeModal(e){this.modal.close(e)}get renderLegacy(){return l.EMBER_MAJOR_VERSION<4}},d=(0,i.Z)(u.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"closeModal",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"closeModal"),u.prototype),u);(0,p.setComponentTemplate)(c,h)},97488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Vof6JT7b",block:'[[[10,0],[14,0,"modal-footer"],[12],[1,"\\n  "],[8,[39,0],[[24,0,"btn-primary"]],[["@action","@label"],[[28,[37,1],["closeModal"],null],"close"]],null],[1,"\\n"],[13]],[],false,["d-button","route-action"]]',moduleName:"discourse/components/modal-footer-close.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},3531:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(63319),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"ud88QZyP",block:'[[[1,[30,0,["title"]]]],[],false,[]]',moduleName:"discourse/components/modal-tab.hbs",isStrictMode:!1});var d,p;const h=(0,i.setComponentTemplate)(u,s().extend((d=(0,l.default)("panel.title","panel.rawTitle"),p={tagName:"li",classNames:["modal-tab"],panel:null,selectedPanel:null,panelsLength:null,classNameBindings:["isActive","singleTab","panel.id"],singleTab:(0,o.equal)("panelsLength",1),isActive:(0,a.propertyEqual)("panel.id","selectedPanel.id"),title:(e,t)=>e?c.default.t(e):t,click(){this.set("selectedPanel",this.panel),this.onSelectPanel&&this.onSelectPanel(this.panel)}},(0,r.Z)(p,"title",[d],Object.getOwnPropertyDescriptor(p,"title"),p),p)))},25824:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(38864),u=n(63421),d=n(43234);const p=(0,n(8620).createTemplateFactory)({id:"2N97crKX",block:'[[[8,[39,0],null,[["@closeModal","@title","@flash"],[[30,1],[28,[37,1],["login.change_email"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,2],null,[["@email","@updateNewEmail"],[[30,2,["newEmail"]],[30,0,["updateNewEmail"]]]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["changeEmail"]],"login.submit_new_email",[30,0,["submitDisabled"]]]],null],[1,"\\n    "],[8,[39,3],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","activation-email-form","d-button"]]',moduleName:"discourse/components/modal/activation-edit.hbs",isStrictMode:!1});var h,m,g,f,b,_=n(31691);let y=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"login",m,this),(0,r.Z)(this,"modal",g,this),(0,r.Z)(this,"newEmail",f,this),(0,r.Z)(this,"flash",b,this)}get submitDisabled(){return this.newEmail===this.args.model.currentEmail}async changeEmail(){try{await(0,u.changeEmail)({username:this.login?.loginName,password:this.login?.loginPassword,email:this.newEmail}),this.modal.show(d.default,{model:{currentEmail:this.newEmail}})}catch(e){this.flash=(0,c.extractError)(e)}}updateNewEmail(e){this.newEmail=e}},m=(0,i.Z)(h.prototype,"login",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"modal",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"newEmail",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.newEmail}}),b=(0,i.Z)(h.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(h.prototype,"changeEmail",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"changeEmail"),h.prototype),(0,i.Z)(h.prototype,"updateNewEmail",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"updateNewEmail"),h.prototype),h);(0,_.setComponentTemplate)(p,y)},43234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"m2FNS6ta",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["log_in"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[1,[28,[35,2],[[28,[37,1],["login.sent_activation_email_again"],[["currentEmail"],[[30,2,["currentEmail"]]]]]],null]],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","html-safe"]]',moduleName:"discourse/components/modal/activation-resent.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},28533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"snRFXF4N",block:'[[[8,[39,0],[[24,0,"add-pm-participants"]],[["@title","@closeModal","@bodyClass"],[[28,[37,1],[[30,1,["title"]]],null],[30,2],"invite modal-panel"]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,[["@inviteModel","@closeModal"],[[30,1,["inviteModel"]],[30,2]]],null],[1,"\\n  "]],[]]]]]],["@model","@closeModal"],false,["d-modal","i18n","invite-panel"]]',moduleName:"discourse/components/modal/add-pm-participants.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},16655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(3055),u=n(38864);const d=(0,n(8620).createTemplateFactory)({id:"NGzv3Ogg",block:'[[[8,[39,0],null,[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["user.associated_accounts.confirm_modal_title"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null]]]],[30,2],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["existing_account_description"]],[[[1,"      "],[10,2],[12],[1,"\\n        "],[1,[28,[35,1],["user.associated_accounts.confirm_description.disconnect"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null],[30,1,["existing_account_description"]]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,2],[12],[1,"\\n"],[41,[30,1,["account_description"]],[[[1,"        "],[1,[28,[35,1],["user.associated_accounts.confirm_description.account_specific"],[["provider","account_description"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null],[30,1,["account_description"]]]]]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,1],["user.associated_accounts.confirm_description.generic"],[["provider"],[[28,[37,1],[[28,[37,2],["login.",[30,1,["provider_name"]],".name"],null]],null]]]]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],[[24,0,"btn-primary"]],[["@label","@action","@icon"],["user.associated_accounts.connect",[30,0,["finishConnect"]],"plug"]],null],[1,"\\n    "],[8,[39,4],null,[["@label","@action"],["user.associated_accounts.cancel",[30,2]]],null],[1,"\\n  "]],[]]]]]],["@model","@closeModal"],false,["d-modal","i18n","concat","if","d-button"]]',moduleName:"discourse/components/modal/associate-account-confirm.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",h,this),(0,r.Z)(this,"currentUser",m,this),(0,r.Z)(this,"flash",g,this)}async finishConnect(){try{const e=await(0,c.ajax)({url:`/associate/${encodeURIComponent(this.args.model.token)}`,type:"POST"});e.success?(this.router.transitionTo("preferences.account",this.currentUser.findDetails()),this.args.closeModal()):this.flash=e.error}catch(e){(0,u.popupAjaxError)(e)}}},h=(0,i.Z)(p.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(p.prototype,"finishConnect",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"finishConnect"),p.prototype),p);(0,f.setComponentTemplate)(d,b)},86457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(3055),u=n(20229);const d=(0,n(8620).createTemplateFactory)({id:"Cl9C2OdP",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.auth_tokens.was_this_you"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,2],[12],[1,[28,[35,1],["user.auth_tokens.was_this_you_description"],null]],[13],[1,"\\n      "],[10,2],[12],[1,[28,[35,2],[[28,[37,1],["user.second_factor.extended_description"],null]],null]],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[12],[1,"\\n      "],[10,"h3"],[12],[1,[28,[35,1],["user.auth_tokens.details"],null]],[13],[1,"\\n      "],[10,"ul"],[12],[1,"\\n        "],[10,"li"],[12],[1,[28,[35,3],["far-clock"],null]],[1," "],[1,[28,[35,4],[[30,2,["seen_at"]]],null]],[13],[1,"\\n        "],[10,"li"],[12],[1,[28,[35,3],["map-marker-alt"],null]],[1," "],[1,[30,2,["location"]]],[13],[1,"\\n        "],[10,"li"],[12],[1,[28,[35,3],[[30,2,["icon"]]],null]],[1,"\\n          "],[1,[28,[35,1],["user.auth_tokens.browser_and_device"],[["browser","device"],[[30,2,["browser"]],[30,2,["device"]]]]]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["latestPost"]],[[[1,"      "],[10,0],[12],[1,"\\n        "],[10,"h3"],[12],[1,"\\n          "],[1,[28,[35,1],["user.auth_tokens.latest_post"],null]],[1,"\\n"],[1,"          "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["toggleExpanded"]]],null],[4,[38,7],null,null],[12],[1,"\\n            "],[1,[28,[35,3],[[52,[30,0,["expanded"]],"caret-up","caret-down"]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["expanded"]],[[[1,"          "],[10,"blockquote"],[12],[1,[28,[35,2],[[30,0,["latestPost","cooked"]]],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[10,"blockquote"],[12],[1,[28,[35,2],[[30,0,["latestPost","excerpt"]]],null]],[13],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]],[[[1,"\\n    "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,1],"lock","user.auth_tokens.secure_account"]],null],[1,"\\n    "],[8,[39,9],null,[["@close"],[[30,1]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","html-safe","d-icon","format-date","if","on","auto-focus","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/auth-token.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",h,this),(0,r.Z)(this,"expanded",m,this),(0,r.Z)(this,"latestPost",g,this),this.fetchActivity()}async fetchActivity(){const e=await(0,c.ajax)((0,u.userPath)(`${this.currentUser.username_lower}/activity.json`));e.length>0&&(this.latestPost=e[0])}toggleExpanded(e){e?.preventDefault(),this.expanded=!this.expanded}},h=(0,i.Z)(p.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"expanded",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,i.Z)(p.prototype,"latestPost",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,i.Z)(p.prototype,"fetchActivity",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"fetchActivity"),p.prototype),(0,i.Z)(p.prototype,"toggleExpanded",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleExpanded"),p.prototype),p);(0,f.setComponentTemplate)(d,b)},92642:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(3055),u=n(38864),d=n(29966),p=n(34405);const h=(0,n(8620).createTemplateFactory)({id:"dw9YmAfW",block:'[[[8,[39,0],[[24,0,"avatar-selector-modal"]],[["@bodyClass","@closeModal","@title"],["avatar-selector",[30,1],[28,[37,1],["user.change_avatar.title"],null]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["showSelectableAvatars"]],[[[1,"      "],[10,0],[14,0,"selectable-avatars"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["selectableAvatars"]]],null]],null],null,[[[1,"          "],[11,3],[24,6,""],[24,0,"selectable-avatar"],[4,[38,5],["click",[28,[37,6],[[30,0,["selectAvatar"]],[30,2]],null]],null],[12],[1,"\\n            "],[1,[28,[35,7],[[30,2],"huge"],null]],[1,"\\n          "],[13],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n"],[41,[30,0,["showAvatarUploader"]],[[[1,"        "],[10,"h4"],[12],[1,[28,[35,1],["user.change_avatar.use_custom"],null]],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["showAvatarUploader"]],[[[41,[30,0,["user","use_logo_small_as_avatar"]],[[[1,"        "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n          "],[8,[39,8],null,[["@id","@name","@value","@selection","@onChange"],["logo-small","logo","logo",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n          "],[10,"label"],[14,0,"radio"],[14,"for","logo-small"],[12],[1,"\\n            "],[1,[28,[35,7],[[30,0,["siteSettings","site_logo_small_url"]],"large"],null]],[1,"\\n            "],[1,[28,[35,1],["user.change_avatar.logo_small"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"      "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n        "],[8,[39,8],null,[["@id","@name","@value","@selection","@onChange"],["system-avatar","avatar","system",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","system-avatar"],[12],[1,"\\n          "],[1,[28,[35,7],[[30,0,["user","system_avatar_template"]],"large"],null]],[1,"\\n          "],[1,[28,[35,1],["user.change_avatar.letter_based"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["allowAvatarUpload"]],[[[1,"        "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n          "],[8,[39,8],null,[["@id","@name","@value","@selection","@onChange"],["gravatar","avatar","gravatar",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n          "],[10,"label"],[14,0,"radio"],[14,"for","gravatar"],[12],[1,"\\n            "],[1,[28,[35,7],[[30,0,["user","gravatar_avatar_template"]],"large"],null]],[1,"\\n            "],[10,1],[12],[1,"\\n              "],[1,[28,[35,9],[[28,[37,1],["user.change_avatar.gravatar"],[["gravatarName","gravatarBaseUrl","gravatarLoginUrl"],[[30,0,["siteSettings","gravatar_name"]],[30,0,["siteSettings","gravatar_base_url"]],[30,0,["siteSettings","gravatar_login_url"]]]]]],null]],[1,"\\n              "],[1,[30,0,["user","email"]]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,10],[[24,0,"btn-default avatar-selector-refresh-gravatar"]],[["@action","@translatedTitle","@disabled","@icon"],[[30,0,["refreshGravatar"]],[28,[37,1],["user.change_avatar.refresh_gravatar_title"],[["gravatarName"],[[30,0,["siteSettings","gravatar_name"]]]]],[30,0,["gravatarRefreshDisabled"]],"sync"]],null],[1,"\\n\\n"],[41,[30,0,["gravatarFailed"]],[[[1,"            "],[10,2],[14,0,"error"],[12],[1,"\\n              "],[1,[28,[35,1],["user.change_avatar.gravatar_failed"],[["gravatarName"],[[30,0,["siteSettings","gravatar_name"]]]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"avatar-choice"],[12],[1,"\\n          "],[8,[39,8],null,[["@id","@name","@value","@selection","@onChange"],["uploaded-avatar","avatar","custom",[30,0,["selected"]],[30,0,["onSelectedChanged"]]]],null],[1,"\\n          "],[10,"label"],[14,0,"radio"],[14,"for","uploaded-avatar"],[12],[1,"\\n"],[41,[30,0,["user","custom_avatar_template"]],[[[1,"              "],[1,[28,[35,7],[[30,0,["user","custom_avatar_template"]],"large"],null]],[1,"\\n              "],[1,[28,[35,1],["user.change_avatar.uploaded_avatar"],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,1],["user.change_avatar.uploaded_avatar_empty"],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[8,[39,11],[[24,0,"avatar-uploader"]],[["@user_id","@uploadedAvatarTemplate","@uploadedAvatarId","@uploading","@id","@done"],[[30,0,["user","id"]],[30,0,["user","custom_avatar_template"]],[30,0,["user","custom_avatar_upload_id"]],[30,0,["uploading"]],"avatar-uploader",[30,0,["uploadComplete"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"  "]],[]],[[[1,"\\n"],[41,[30,0,["showAvatarUploader"]],[[[1,"      "],[8,[39,10],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["saveAvatarSelection"]],[30,0,["submitDisabled"]],"save"]],null],[1,"\\n      "],[8,[39,12],null,[["@close"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","avatar"],false,["d-modal","i18n","if","each","-track-array","on","fn","bound-avatar-template","radio-button","html-safe","d-button","avatar-uploader","d-modal-cancel"]]',moduleName:"discourse/components/modal/avatar-selector.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v=n(31691);let k=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"siteSettings",f,this),(0,r.Z)(this,"gravatarRefreshDisabled",b,this),(0,r.Z)(this,"gravatarFailed",_,this),(0,r.Z)(this,"uploading",y,this),(0,r.Z)(this,"_selected",w,this)}get user(){return this.args.model.user}get selected(){return this._selected??this.defaultSelection}set selected(e){this._selected=e}get submitDisabled(){return"logo"===this.selected||this.uploading}get selectableAvatars(){const e=this.siteSettings.selectable_avatars_mode,t=this.siteSettings.selectable_avatars;return"disabled"!==e?t?t.split("|"):[]:null}get showSelectableAvatars(){return"disabled"!==this.siteSettings.selectable_avatars_mode}get showAvatarUploader(){const e=this.siteSettings.selectable_avatars_mode;switch(e){case"no_one":return!1;case"tl1":case"tl2":case"tl3":case"tl4":const t=parseInt(e.replace("tl",""),10);return this.user.admin||this.user.moderator||this.user.trust_level>=t;case"staff":return this.user.admin||this.user.moderator;default:return!0}}get defaultSelection(){return this.user.use_logo_small_as_avatar?"logo":this.user.avatar_template===this.user.system_avatar_template?"system":this.user.avatar_template===this.user.gravatar_avatar_template?"gravatar":"custom"}get selectedUploadId(){switch(this.selected){case"system":return this.user.system_avatar_upload_id;case"gravatar":return this.user.gravatar_avatar_upload_id;default:return this.user.custom_avatar_upload_id}}get allowAvatarUpload(){return this.siteSettingMatches&&(0,d.allowsImages)(this.currentUser.staff,this.siteSettings)}get siteSettingMatches(){return this.siteSettings.userInAnyGroups("uploaded_avatars_allowed_groups",this.currentUser)}onSelectedChanged(e){this.selected=e}async selectAvatar(e,t){t?.preventDefault();try{await this.user.selectAvatar(e),window.location.reload()}catch(e){(0,u.popupAjaxError)(e)}}uploadComplete(){this.selected="custom"}async refreshGravatar(){this.gravatarRefreshDisabled=!0;try{const e=await(0,c.ajax)(`/user_avatar/${this.user.username}/refresh_gravatar.json`,{type:"POST"});e.gravatar_upload_id?(this.gravatarFailed=!1,this.user.setProperties({gravatar_avatar_upload_id:e.gravatar_upload_id,gravatar_avatar_template:e.gravatar_avatar_template})):this.gravatarFailed=!0}finally{this.gravatarRefreshDisabled=!1}}async saveAvatarSelection(){try{await this.user.pickAvatar(this.selectedUploadId,this.selected),(0,p.isTesting)()||window.location.reload()}catch(e){(0,u.popupAjaxError)(e)}}},g=(0,i.Z)(m.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"gravatarRefreshDisabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,i.Z)(m.prototype,"gravatarFailed",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,i.Z)(m.prototype,"uploading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=(0,i.Z)(m.prototype,"_selected",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,i.Z)(m.prototype,"onSelectedChanged",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"onSelectedChanged"),m.prototype),(0,i.Z)(m.prototype,"selectAvatar",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"selectAvatar"),m.prototype),(0,i.Z)(m.prototype,"uploadComplete",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"uploadComplete"),m.prototype),(0,i.Z)(m.prototype,"refreshGravatar",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"refreshGravatar"),m.prototype),(0,i.Z)(m.prototype,"saveAvatarSelection",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"saveAvatarSelection"),m.prototype),m);(0,v.setComponentTemplate)(h,k)},18987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>oe});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(6264),u=n(17579),d=n(54712),p=n.n(d),h=n(10425),m=n(83116),g=n(3055),f=n(38864),b=n(64390),_=n(6677),y=n(35193),w=n(50459),v=n(18225),k=n(87521),x=n(12933),T=n(82099);const S=(0,n(8620).createTemplateFactory)({id:"4l/CdpyZ",block:'[[[8,[39,0],[[24,1,"bookmark-reminder-modal"],[24,0,"bookmark-reminder-modal bookmark-with-reminder"],[16,"data-bookmark-id",[30,0,["bookmark","id"]]],[4,[38,1],[[30,0,["didInsert"]]],null]],[["@closeModal","@title","@flash","@flashType"],[[30,0,["closingModal"]],[30,0,["modalTitle"]],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group bookmark-name-wrap"],[12],[1,"\\n      "],[8,[39,2],[[24,1,"bookmark-name"],[24,3,"bookmark-name"],[24,0,"bookmark-name"],[16,"placeholder",[28,[37,3],["post.bookmarks.name_placeholder"],null]],[16,"aria-label",[28,[37,3],["post.bookmarks.name_input_label"],null]]],[["@value"],[[30,0,["bookmark","name"]]]],null],[1,"\\n      "],[8,[39,4],[[24,0,"bookmark-options-button"]],[["@icon","@action","@ariaLabel","@title"],["cog",[30,0,["toggleShowOptions"]],"post.bookmarks.options","post.bookmarks.options"]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["showOptions"]],[[[1,"      "],[10,0],[14,0,"bookmark-options-panel"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark_auto_delete_preference"],[12],[1,[28,[35,3],["bookmarks.auto_delete_preference.label"],null]],[13],[1,"\\n        "],[8,[39,6],[[24,0,"bookmark-option-selector"]],[["@content","@value","@id","@onChange"],[[30,0,["autoDeletePreferences"]],[30,0,["bookmark","autoDeletePreference"]],"bookmark-auto-delete-preference",[28,[37,7],[[30,0],[28,[37,8],[[30,0,["bookmark","autoDeletePreference"]]],null]],null]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showExistingReminderAt"]],[[[1,"      "],[10,0],[14,0,"alert alert-info existing-reminder-at-alert"],[12],[1,"\\n        "],[1,[28,[35,9],["far-clock"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,3],["bookmarks.reminders.existing_reminder"],[["at_date_time"],[[30,0,["existingReminderAtFormatted"]]]]]],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n        "],[1,[28,[35,3],["post.bookmarks.set_reminder"],null]],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["userHasTimezoneSet"]],[[[1,"        "],[8,[39,10],null,[["@timeShortcuts","@prefilledDatetime","@onTimeSelected","@hiddenOptions","@customLabels","@_itsatrap"],[[30,0,["timeOptions"]],[30,0,["prefilledDatetime"]],[30,0,["onTimeSelected"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["_itsatrap"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"alert alert-info"],[12],[1,[28,[35,11],[[28,[37,3],["bookmarks.no_timezone"],[["basePath"],[[28,[37,12],null,null]]]]],null]],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],[[24,1,"save-bookmark"],[24,0,"btn-primary"]],[["@label","@action"],["bookmarks.save",[30,0,["saveAndClose"]]]],null],[1,"\\n    "],[8,[39,13],null,[["@close"],[[30,0,["closeWithoutSavingBookmark"]]]],null],[1,"\\n"],[41,[30,0,["showDelete"]],[[[1,"      "],[8,[39,4],[[24,1,"delete-bookmark"],[24,0,"delete-bookmark btn-danger"]],[["@icon","@action","@ariaLabel","@title"],["trash-alt",[30,0,["delete"]],"post.bookmarks.actions.delete_bookmark.name","post.bookmarks.actions.delete_bookmark.name"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],[],false,["d-modal","did-insert","input","i18n","d-button","if","combo-box","action","mut","d-icon","time-shortcut-picker","html-safe","base-path","d-modal-cancel"]]',moduleName:"discourse/components/modal/bookmark.hbs",isStrictMode:!1});var C,P,O,E,D,I,j,Z,A,M,N,z,L,F,U,R,B,$,q,H,W,K,V,G,Y,Q,J,X,ee,te,ne=n(31691);function re(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function ie(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}const se={enter:{handler:"saveAndClose"},"d d":{handler:"delete"}};let oe=(C=(0,c.notEmpty)("userTimezone"),P=(0,c.notEmpty)("bookmark.id"),O=(0,c.notEmpty)("bookmark.id"),E=(0,c.and)("bookmark.id","bookmark.reminderAt"),G=new WeakSet,Y=new WeakSet,Q=new WeakSet,J=new WeakSet,X=new WeakSet,ee=new WeakSet,te=new WeakSet,D=class extends o.default{constructor(){super(...arguments),re(this,te),re(this,ee),re(this,X),re(this,J),re(this,Q),re(this,Y),re(this,G),(0,r.Z)(this,"dialog",I,this),(0,r.Z)(this,"currentUser",j,this),(0,r.Z)(this,"site",Z,this),(0,r.Z)(this,"postDetectedLocalDate",A,this),(0,r.Z)(this,"postDetectedLocalTime",M,this),(0,r.Z)(this,"postDetectedLocalTimezone",N,this),(0,r.Z)(this,"prefilledDatetime",z,this),(0,r.Z)(this,"flash",L,this),(0,r.Z)(this,"userTimezone",F,this),(0,r.Z)(this,"showOptions",U,this),(0,r.Z)(this,"userHasTimezoneSet",R,this),(0,r.Z)(this,"showDelete",B,this),(0,r.Z)(this,"editingExistingBookmark",$,this),(0,r.Z)(this,"existingBookmarkHasReminder",q,this),(0,r.Z)(this,"_closeWithoutSaving",H,this),(0,r.Z)(this,"_savingBookmarkManually",W,this),(0,r.Z)(this,"_saving",K,this),(0,r.Z)(this,"_deleting",V,this),(0,i.Z)(this,"_itsatrap",new(p()))}get bookmark(){return this.args.model.bookmark}get modalTitle(){return T.default.t(this.bookmark.id?"bookmarks.edit":"bookmarks.create")}get autoDeletePreferences(){return Object.keys(k.AUTO_DELETE_PREFERENCES).map((e=>({id:k.AUTO_DELETE_PREFERENCES[e],name:T.default.t(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)})))}get showExistingReminderAt(){return this.bookmark.reminderAt&&Date.parse(this.bookmark.reminderAt)>(new Date).getTime()}get existingReminderAtFormatted(){return(0,b.formattedReminderTime)(this.bookmark.reminderAt,this.userTimezone)}get timeOptions(){const e=(0,w.defaultTimeShortcuts)(this.userTimezone);return this.showPostLocalDate&&e.push({icon:"globe-americas",id:w.TIME_SHORTCUT_TYPES.POST_LOCAL_DATE,label:"time_shortcut.post_local_date",time:ie(this,G,ae).call(this),timeFormatKey:"dates.long_no_year",hidden:!1}),e}get showPostLocalDate(){return!(!this.postDetectedLocalTime||!this.postDetectedLocalDate||ie(this,G,ae).call(this)<(0,v.now)(this.userTimezone))}get hiddenTimeShortcutOptions(){return this.editingExistingBookmark&&!this.existingBookmarkHasReminder?[w.TIME_SHORTCUT_TYPES.NONE]:[]}get customTimeShortcutLabels(){const e={};return this.existingBookmarkHasReminder&&(e[w.TIME_SHORTCUT_TYPES.NONE]="bookmarks.remove_reminder_keep_bookmark"),e}willDestroy(){super.willDestroy(...arguments),this._itsatrap?.destroy(),this._itsatrap=null,_.default.unpause()}didInsert(){(0,x.default)((()=>{this.site.isMobileDevice&&document.getElementById("bookmark-name").blur()})),this.args.model.bookmark.id||document.getElementById("tap_tile_none").classList.add("active"),ie(this,X,de).call(this),ie(this,ee,pe).call(this),ie(this,te,he).call(this)}saveAndClose(){if(this.flash=null,!this._saving&&!this._deleting)return this._saving=!0,this._savingBookmarkManually=!0,ie(this,Y,le).call(this).then((()=>this.args.closeModal())).catch((e=>ie(this,J,ue).call(this,e))).finally((()=>{this._saving=!1}))}toggleShowOptions(){this.showOptions=!this.showOptions}onTimeSelected(e,t){if(this.bookmark.selectedReminderType=e,this.bookmark.selectedDatetime=t,![w.TIME_SHORTCUT_TYPES.CUSTOM,w.TIME_SHORTCUT_TYPES.RELATIVE].includes(e))return this.saveAndClose()}closingModal(e){e.initiatedBy!==m.CLOSE_INITIATED_BY_CLICK_OUTSIDE||this._closeWithoutSaving||this._savingBookmarkManually?this.args.closeModal(e):ie(this,Y,le).call(this).catch((e=>ie(this,J,ue).call(this,e))).then((()=>{this.args.closeModal(e)}))}closeWithoutSavingBookmark(){this._closeWithoutSaving=!0,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})}delete(){if(!this.bookmark.id)return;this._deleting=!0;const e=()=>{this._closeWithoutSaving=!0,ie(this,Q,ce).call(this).then((()=>{this._deleting=!1,this.args.closeModal({closeWithoutSaving:this._closeWithoutSaving})})).catch((e=>ie(this,J,ue).call(this,e)))};this.existingBookmarkHasReminder?this.dialog.deleteConfirm({message:T.default.t("bookmarks.confirm_delete"),didConfirm:()=>e()}):e()}},I=(0,s.Z)(D.prototype,"dialog",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,s.Z)(D.prototype,"currentUser",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,s.Z)(D.prototype,"site",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,s.Z)(D.prototype,"postDetectedLocalDate",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=(0,s.Z)(D.prototype,"postDetectedLocalTime",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=(0,s.Z)(D.prototype,"postDetectedLocalTimezone",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=(0,s.Z)(D.prototype,"prefilledDatetime",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=(0,s.Z)(D.prototype,"flash",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=(0,s.Z)(D.prototype,"userTimezone",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.currentUser.user_option.timezone}}),U=(0,s.Z)(D.prototype,"showOptions",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!!this.args.model.bookmark.id}}),R=(0,s.Z)(D.prototype,"userHasTimezoneSet",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,s.Z)(D.prototype,"showDelete",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,s.Z)(D.prototype,"editingExistingBookmark",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,s.Z)(D.prototype,"existingBookmarkHasReminder",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,s.Z)(D.prototype,"_closeWithoutSaving",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),W=(0,s.Z)(D.prototype,"_savingBookmarkManually",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),K=(0,s.Z)(D.prototype,"_saving",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),V=(0,s.Z)(D.prototype,"_deleting",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(D.prototype,"didInsert",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"didInsert"),D.prototype),(0,s.Z)(D.prototype,"saveAndClose",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"saveAndClose"),D.prototype),(0,s.Z)(D.prototype,"toggleShowOptions",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"toggleShowOptions"),D.prototype),(0,s.Z)(D.prototype,"onTimeSelected",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"onTimeSelected"),D.prototype),(0,s.Z)(D.prototype,"closingModal",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"closingModal"),D.prototype),(0,s.Z)(D.prototype,"closeWithoutSavingBookmark",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"closeWithoutSavingBookmark"),D.prototype),(0,s.Z)(D.prototype,"delete",[l.action],Object.getOwnPropertyDescriptor(D.prototype,"delete"),D.prototype),D);function ae(){let e=(0,v.parseCustomDatetime)(this.postDetectedLocalDate,this.postDetectedLocalTime,this.userTimezone,this.postDetectedLocalTimezone);return this.postDetectedLocalTime?e:(0,v.startOfDay)(e)}function le(){return this.bookmark.selectedReminderType!==w.TIME_SHORTCUT_TYPES.CUSTOM||this.bookmark.reminderAtISO?this.editingExistingBookmark?(0,g.ajax)(`/bookmarks/${this.bookmark.id}`,{type:"PUT",data:this.bookmark.saveData}).then((()=>{this.args.model.afterSave?.(this.bookmark.saveData)})):(0,g.ajax)("/bookmarks",{type:"POST",data:this.bookmark.saveData}).then((e=>{this.bookmark.id=e.id,this.args.model.afterSave?.(this.bookmark.saveData)})):h.Promise.reject(T.default.t("bookmarks.invalid_custom_datetime"))}function ce(){return(0,g.ajax)("/bookmarks/"+this.bookmark.id,{type:"DELETE"}).then((e=>{this.args.model.afterDelete?.(e.topic_bookmarked,this.bookmark.id)}))}function ue(e){this._savingBookmarkManually=!1,this.flash="string"==typeof e?(0,y.sanitize)(e):(0,y.sanitize)((0,f.extractError)(e))}function de(){_.default.pause(),Object.keys(se).forEach((e=>{this._itsatrap.bind(e,(()=>(this[se[e].handler](),!1)))}))}function pe(){this.existingBookmarkHasReminder&&this.editingExistingBookmark&&(this.prefilledDatetime=this.bookmark.reminderAt,this.bookmark.selectedDatetime=(0,v.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone))}function he(){if("Post"!==this.bookmark.bookmarkableType)return;const e=document.querySelector(`[data-post-id="${this.bookmark.bookmarkableId}"]`),t=e?.querySelector(".discourse-local-date");t&&(this.postDetectedLocalDate=t.dataset.date,this.postDetectedLocalTime=t.dataset.time,this.postDetectedLocalTimezone=t.dataset.timezone)}(0,ne.setComponentTemplate)(S,oe)},1856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(48163),u=n(17579),d=n(10425),p=n(69338),h=n(83116),m=n(92635),g=n(2935),f=n(91423),b=n(8620),_=n(31691);let y=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"router",i,this)}async perform(e){this.loading=!0,this.args.model.bulkSelectHelper.selected.length>20&&(this.showProgress=!0);try{return this._processChunks(e)}catch{this.dialog.alert(f.default.t("generic_error"))}finally{this.loading=!1,this.processedTopicCount=0,this.showProgress=!1}}_generateTopicChunks(e){let t=0;const n=[];for(;t<e.length;)n.push(e.slice(t,t+30)),t+=30;return n}_processChunks(e){const t=this.args.model.bulkSelectHelper.selected,n=this._generateTopicChunks(t),r=[],i={};!0===this.args.model.allowSilent&&(i.silent=!0);const s=n.map((t=>async()=>{const n=await m.default.bulkOperation(t,e,i);return this.processedTopicCount+=t.length,n}));return new d.Promise(((e,n)=>{const i=async()=>{if(0===s.length){const n=r.map((e=>t.findBy("id",e)));return e(n)}const o=s.shift();try{const e=await o();e?.topic_ids&&r.push(...e.topic_ids),i()}catch{n()}};i()}))}setComponent(e){this.activeComponent=e}performAction(){"close"===this.args.model.action&&this.forEachPerformed({type:"close"},(e=>e.set("closed",!0)))}async forEachPerformed(e,t){const n=await this.perform(e);n&&(n.forEach(t),this.args.model.refreshClosure?.(),this.args.closeModal(),this.args.model.bulkSelectHelper.toggleBulkSelect())}async performAndRefresh(e){await this.perform(e),this.args.model.refreshClosure?.(),this.args.closeModal()}},(0,_.setComponentTemplate)((0,b.createTemplateFactory)({id:"0Ro/GX2s",block:'[[[1,"\\n    "],[8,[32,0],[[24,0,"topic-bulk-actions-modal -large"]],[["@title","@closeModal"],[[30,1,["title"]],[30,2]]],[["body","footer"],[[[[1,"\\n        "],[10,0],[12],[1,"\\n          "],[1,[28,[32,1],[[28,[32,2],["topics.bulk.selected"],[["count"],[[30,1,["topics","length"]]]]]],null]],[1,"\\n        "],[13],[1,"\\n      "]],[]],[[[1,"\\n"],[41,[30,1,["allowSilent"]],[[[1,"          "],[10,0],[14,0,"topic-bulk-actions-options"],[12],[1,"\\n            "],[10,"label"],[14,"for","topic-bulk-action-options__silent"],[14,0,"checkbox-label"],[12],[1,"\\n              "],[10,"input"],[14,0,""],[14,1,"topic-bulk-action-options__silent"],[14,4,"checkbox"],[12],[13],[1,[28,[32,2],["topics.bulk.silent"],null]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"        "],[8,[32,3],[[24,1,"bulk-topics-confirm"],[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["performAction"]],"check","topics.bulk.confirm"]],null],[1,"\\n      "]],[]]]]],[1,"\\n  "]],["@model","@closeModal"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/bulk-topic-actions.js",scope:()=>[h.default,g.default,f.default,p.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(r.prototype,"setComponent",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"setComponent"),r.prototype),(0,a.Z)(r.prototype,"performAction",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"performAction"),r.prototype),(0,a.Z)(r.prototype,"forEachPerformed",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"forEachPerformed"),r.prototype),(0,a.Z)(r.prototype,"performAndRefresh",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"performAndRefresh"),r.prototype),r)},24748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(33217),c=n(20229),u=n(92635),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"wli/WPh2",block:'[[[8,[39,0],[[24,0,"change-ownership-modal"]],[["@bodyClass","@closeModal","@title","@flash","@flashType"],["change-ownership",[30,1],[28,[37,1],["topic.change_owner.title"],null],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n    "],[10,1],[12],[1,"\\n      "],[1,[28,[35,2],[[28,[37,1],[[52,[30,0,["selectedPostsUsername"]],"topic.change_owner.instructions","topic.change_owner.instructions_without_old_user"]],[["count","old_user"],[[30,0,["selectedPostsCount"]],[30,0,["selectedPostsUsername"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,"form"],[12],[1,"\\n      "],[10,"label"],[12],[13],[1,"\\n      "],[8,[39,4],null,[["@value","@autofocus","@onChange","@options"],[[30,0,["newOwner"]],true,[30,0,["updateNewOwner"]],[28,[37,5],null,[["maximum","filterPlaceholder"],[1,"topic.change_owner.placeholder"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,6],[[24,0,"btn-primary"],[4,[38,7],["click",[30,0,["changeOwnershipOfPosts"]]],null]],[["@disabled","@label"],[[30,0,["buttonDisabled"]],[52,[30,0,["saving"]],"saving","topic.change_owner.action"]]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","html-safe","if","email-group-user-chooser","hash","d-button","on"]]',moduleName:"discourse/components/modal/change-owner.hbs",isStrictMode:!1});var h,m,g,f,b=n(31691);let _=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"saving",m,this),(0,r.Z)(this,"newOwner",g,this),(0,r.Z)(this,"flash",f,this)}get buttonDisabled(){return this.saving||(0,l.isEmpty)(this.newOwner)}get selectedPostsUsername(){return this.args.model.selectedPostsUsername}get selectedPostIds(){return this.args.model.selectedPostIds}get selectedPostsCount(){return this.args.model.selectedPostsCount}async changeOwnershipOfPosts(){this.saving=!0;const e={post_ids:this.selectedPostIds,username:this.newOwner};try{await u.default.changeOwners(this.args.model.topic.id,e),this.args.closeModal(),this.args.model.deselectAll(),this.args.model.multiSelect&&this.args.model.toggleMultiSelect(),c.default.routeTo(this.args.model.topic.url)}catch(e){this.flash=d.default.t("topic.change_owner.error"),this.saving=!1}return!1}async updateNewOwner(e){this.newOwner=e.firstObject}},m=(0,i.Z)(h.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,i.Z)(h.prototype,"newOwner",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=(0,i.Z)(h.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(h.prototype,"changeOwnershipOfPosts",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"changeOwnershipOfPosts"),h.prototype),(0,i.Z)(h.prototype,"updateNewOwner",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"updateNewOwner"),h.prototype),h);(0,b.setComponentTemplate)(p,_)},1029:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(33217),u=n(35193);const d=(0,n(8620).createTemplateFactory)({id:"MvNVqYJV",block:'[[[8,[39,0],[[24,0,"change-post-notice-modal"]],[["@title","@closeModal"],[[52,[30,1,["post","notice"]],[28,[37,2],["post.controls.change_post_notice"],null],[28,[37,2],["post.controls.add_post_notice"],null]],[30,2]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[12],[8,[39,3],null,[["@value"],[[30,0,["notice"]]]],null],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],[[24,0,"btn-primary"]],[["@label","@action","@disabled"],[[52,[30,0,["saving"]],"saving","save"],[28,[37,5],[[30,0,["setNotice"]],[30,0,["notice"]]],null],[30,0,["disabled"]]]],null],[1,"\\n"],[41,[30,1,["post","notice"]],[[[1,"      "],[8,[39,4],[[24,0,"btn-danger"]],[["@label","@action","@disabled"],["post.controls.delete_post_notice",[30,0,["setNotice"]],[30,0,["saving"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,6],null,[["@close"],[[30,2]]],null],[1,"\\n  "]],[]]]]]],["@model","@closeModal"],false,["d-modal","if","i18n","textarea","d-button","fn","d-modal-cancel"]]',moduleName:"discourse/components/modal/change-post-notice.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"post",h,this),(0,r.Z)(this,"notice",m,this),(0,r.Z)(this,"saving",g,this),(0,i.Z)(this,"resolve",this.args.model.resolve),(0,i.Z)(this,"reject",this.args.model.reject)}get disabled(){return this.saving||(0,c.isEmpty)(this.notice)||this.notice===this.post.notice?.raw}saveNotice(){this.setNotice(this.notice)}deleteNotice(){this.setNotice()}setNotice(e){const{resolve:t,reject:n}=this;this.saving=!0,this.resolve=null,this.reject=null,this.post.updatePostField("notice",e).then((()=>{if(e)return(0,u.cook)(e,{features:{onebox:!1}})})).then((t=>this.post.set("notice",t?{type:"custom",raw:e,cooked:t.toString()}:null))).then(t,n).finally((()=>this.args.closeModal()))}},h=(0,s.Z)(p.prototype,"post",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.post}}),m=(0,s.Z)(p.prototype,"notice",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.post.notice?.raw??""}}),g=(0,s.Z)(p.prototype,"saving",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(p.prototype,"saveNotice",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"saveNotice"),p.prototype),(0,s.Z)(p.prototype,"deleteNotice",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"deleteNotice"),p.prototype),(0,s.Z)(p.prototype,"setNotice",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"setNotice"),p.prototype),p);(0,f.setComponentTemplate)(d,b)},78193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(51372),c=n(33217),u=n(20229),d=n(92635),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"jZ1uQtMB",block:'[[[8,[39,0],null,[["@bodyClass","@closeModal","@flash","@title"],["change-timestamp",[30,1],[30,0,["flash"]],[28,[37,1],["topic.change_timestamp.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],["topic.change_timestamp.instructions"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,2],[15,0,[29,["alert alert-error ",[52,[51,[30,0,["validTimestamp"]]],"hidden"]]]],[12],[1,"\\n      "],[1,[28,[35,1],["topic.change_timestamp.invalid_timestamp"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,"form"],[12],[1,"\\n      "],[8,[39,3],null,[["@value","@containerId","@onSelect"],[[28,[37,4],[[30,0,["date"]]],null],"date-container",[28,[37,5],[[30,0],[28,[37,6],[[30,0,["date"]]],null]],null]]],null],[1,"\\n      "],[8,[39,7],null,[["@type","@value"],["time",[30,0,["time"]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,1,"date-container"],[12],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,8],[[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["buttonDisabled"]],[30,0,["changeTimestamp"]],[52,[30,0,["saving"]],"saving","topic.change_timestamp.action"]]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","unless","date-picker-past","readonly","action","mut","input","d-button","if"]]',moduleName:"discourse/components/modal/change-timestamp.hbs",isStrictMode:!1});var m,g,f,b,_,y=n(31691);let w=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"saving",g,this),(0,r.Z)(this,"date",f,this),(0,r.Z)(this,"time",b,this),(0,r.Z)(this,"flash",_,this)}get createdAt(){return moment(`${this.date} ${this.time}`,"YYYY-MM-DD HH:mm:ss")}get validTimestamp(){return moment().diff(this.createdAt,"minutes")<0}get buttonDisabled(){return this.saving||this.validTimestamp||(0,c.isEmpty)(this.date)}async changeTimestamp(){this.saving=!0;try{await d.default.changeTimestamp(this.args.model.topic.id,this.createdAt.unix()),this.args.closeModal(),(0,l.next)((()=>u.default.routeTo(this.args.model.topic.url)))}catch{this.flash=p.default.t("topic.change_timestamp.error")}finally{this.saving=!1}}},g=(0,i.Z)(m.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,i.Z)(m.prototype,"date",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return moment().format("YYYY-MM-DD")}}),b=(0,i.Z)(m.prototype,"time",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(m.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"changeTimestamp",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"changeTimestamp"),m.prototype),m);(0,y.setComponentTemplate)(h,w)},35617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"hNq82HZB",block:'[[[8,[39,0],[[24,0,"convert-to-public-topic"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.make_public.title"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["topic.make_public.choose_category"],null]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,2],null,[["@value","@onChange"],[[30,0,["publicCategoryId"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["publicCategoryId"]]],null]],null]]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["makePublic"]],"composer.modal_ok",[30,0,["saving"]]]],null],[1,"\\n    "],[8,[39,5],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","category-chooser","action","mut","d-button"]]',moduleName:"discourse/components/modal/convert-to-public-topic.hbs",isStrictMode:!1});var d,p,h,m,g,f=n(31691);let b=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",p,this),(0,r.Z)(this,"publicCategoryId",h,this),(0,r.Z)(this,"saving",m,this),(0,r.Z)(this,"flash",g,this)}async makePublic(){try{this.saving=!0,await this.args.model.topic.convertTopic("public",{categoryId:this.publicCategoryId}),this.args.model.topic.set("archetype","regular"),this.args.model.topic.set("category_id",this.publicCategoryId),this.appEvents.trigger("header:show-topic",this.args.model.topic),this.saving=!1,this.args.closeModal()}catch(e){this.flash=c.default.t("generic_error"),this.saving=!1}}},p=(0,i.Z)(d.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(d.prototype,"publicCategoryId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(d.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,i.Z)(d.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"makePublic",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"makePublic"),d.prototype),d);(0,f.setComponentTemplate)(u,b)},19608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ue});var r=n(94664),i=n(49246),s=n(54001),o=n(38307),a=n(31691),l=n.n(a),c=n(48163),u=n.n(c),d=n(6264),p=n(17579),h=n(33217),m=n(68406),g=n(71466),f=n.n(g),b=n(10425),_=n(3055),y=n(63319),w=n(59469),v=n(20229),k=n(62617),x=n(19086),T=n(55648),S=n(56045),C=n(48992),P=n(53456),O=n(34287),E=n(7223),D=n(56111),I=n(57555),j=n(82099);const Z=(0,n(8620).createTemplateFactory)({id:"CjVUTYpt",block:'[[[8,[39,0],[[24,0,"create-account -large"],[24,"aria-labelledby","create-account-title"],[4,[38,1],["keydown",[30,0,["actionOnEnter"]]],null],[4,[38,1],["click",[30,0,["selectKitFocus"]]],null]],[["@closeModal","@bodyClass","@flash","@flashType"],[[30,1],[30,0,["modalBodyClasses"]],[30,0,["flash"]],"error"]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,[["@name","@connectorTagName"],["create-account-before-modal-body","div"]],null],[1,"\\n\\n    "],[10,0],[15,0,[28,[37,3],[[52,[30,0,["site","desktopView"]],"login-left-side"],[30,0,["model","authOptions","auth_provider"]]],null]],[12],[1,"\\n      "],[10,0],[14,0,"login-welcome-header"],[14,1,"create-account-title"],[12],[1,"\\n        "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,5],["create_account.header_title"],null]],[13],[1,"\\n        "],[10,"img"],[15,"src",[30,0,["wavingHandURL"]]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n        "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,5],["create_account.subheader_title"],null]],[13],[1,"\\n        "],[8,[39,2],null,[["@name","@outletArgs"],["create-account-header-bottom",[28,[37,6],null,[["showLogin"],[[28,[37,7],["showLogin"],null]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["showCreateForm"]],[[[1,"        "],[10,"form"],[14,1,"login-form"],[12],[1,"\\n"],[41,[30,0,["associateHtml"]],[[[1,"            "],[10,0],[14,0,"input-group create-account-associate-link"],[12],[1,"\\n              "],[10,1],[12],[1,[28,[35,8],[[30,0,["associateHtml"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[10,0],[14,0,"input-group create-account-email"],[12],[1,"\\n            "],[8,[39,9],[[16,"disabled",[30,0,["emailDisabled"]]],[24,"autofocus","autofocus"],[24,"aria-describedby","account-email-validation account-email-validation-more-info"],[16,"aria-invalid",[30,0,["emailValidation","failed"]]],[24,3,"email"],[24,1,"new-account-email"],[16,0,[28,[37,10],[[30,0,["model","accountEmail"]]],null]],[4,[38,1],["focusout",[30,0,["checkEmailAvailability"]]],null]],[["@type","@value"],["email",[30,0,["model","accountEmail"]]]],null],[1,"\\n            "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-email"],[12],[1,"\\n              "],[1,[28,[35,5],["user.email.title"],null]],[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n            "],[8,[39,11],[[24,1,"account-email-validation"]],[["@validation"],[[30,0,["emailValidation"]]]],null],[1,"\\n            "],[10,1],[14,0,"more-info"],[14,1,"account-email-validation-more-info"],[12],[1,"\\n              "],[1,[28,[35,5],["user.email.instructions"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"input-group create-account__username"],[12],[1,"\\n            "],[8,[39,9],[[16,"disabled",[30,0,["usernameDisabled"]]],[16,"maxlength",[30,0,["maxUsernameLength"]]],[24,"aria-describedby","username-validation username-validation-more-info"],[16,"aria-invalid",[30,0,["usernameValidation","failed"]]],[24,"autocomplete","off"],[24,3,"username"],[24,1,"new-account-username"],[16,0,[28,[37,10],[[30,0,["model","accountUsername"]]],null]]],[["@value"],[[30,0,["model","accountUsername"]]]],null],[1,"\\n            "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-username"],[12],[1,"\\n              "],[1,[28,[35,5],["user.username.title"],null]],[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n\\n            "],[8,[39,11],[[24,1,"username-validation"]],[["@validation"],[[30,0,["usernameValidation"]]]],null],[1,"\\n            "],[10,1],[14,0,"more-info"],[14,1,"username-validation-more-info"],[12],[1,"\\n              "],[1,[28,[35,5],["user.username.instructions"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"input-group create-account__fullname"],[12],[1,"\\n"],[41,[30,0,["fullnameRequired"]],[[[1,"              "],[8,[39,12],[[24,"aria-describedby","fullname-validation fullname-validation-more-info"],[16,"aria-invalid",[30,0,["nameValidation","failed"]]],[16,0,[28,[37,10],[[30,0,["model","accountName"]]],null]]],[["@disabled","@value","@id"],[[30,0,["nameDisabled"]],[30,0,["model","accountName"]],"new-account-name"]],null],[1,"\\n              "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-name"],[12],[1,"\\n                "],[1,[28,[35,5],["user.name.title"],null]],[1,"\\n"],[41,[30,0,["siteSettings","full_name_required"]],[[[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null]],[]],null],[1,"              "],[13],[1,"\\n\\n              "],[8,[39,11],[[24,1,"fullname-validation"]],[["@validation"],[[30,0,["nameValidation"]]]],null],[1,"\\n              "],[10,1],[14,0,"more-info"],[14,1,"fullname-validation-more-info"],[12],[1,"\\n                "],[1,[30,0,["nameInstructions"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n\\n          "],[8,[39,2],null,[["@name","@outletArgs"],["create-account-before-password",[28,[37,6],null,[["accountName","accountUsername","accountPassword","userFields","authOptions"],[[30,0,["model","accountName"]],[30,0,["model","accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]],[30,0,["model","authOptions"]]]]]]],null],[1,"\\n\\n          "],[10,0],[14,0,"input-group create-account__password"],[12],[1,"\\n"],[41,[30,0,["passwordRequired"]],[[[1,"              "],[8,[39,13],[[24,"aria-describedby","password-validation password-validation-more-info"],[16,"aria-invalid",[30,0,["passwordValidation","failed"]]],[24,1,"new-account-password"],[16,0,[28,[37,10],[[30,0,["accountPassword"]]],null]]],[["@value","@type","@autocomplete","@capsLockOn"],[[30,0,["accountPassword"]],[52,[30,0,["maskPassword"]],"password","text"],"current-password",[30,0,["capsLockOn"]]]],null],[1,"\\n              "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","new-account-password"],[12],[1,"\\n                "],[1,[28,[35,5],["user.password.title"],null]],[41,[30,0,["userFields"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n\\n              "],[10,0],[14,0,"create-account__password-info"],[12],[1,"\\n                "],[10,0],[14,0,"create-account__password-tip-validation"],[12],[1,"\\n                  "],[8,[39,11],[[24,1,"password-validation"]],[["@validation"],[[30,0,["passwordValidation"]]]],null],[1,"\\n                  "],[10,1],[14,0,"more-info"],[14,1,"password-validation-more-info"],[12],[1,"\\n                    "],[1,[30,0,["passwordInstructions"]]],[1,"\\n                  "],[13],[1,"\\n                  "],[10,0],[15,0,[28,[37,3],["caps-lock-warning",[52,[51,[30,0,["capsLockOn"]]],"hidden"]],null]],[12],[1,"\\n                    "],[1,[28,[35,15],["exclamation-triangle"],null]],[1,"\\n                    "],[1,[28,[35,5],["login.caps_lock_warning"],null]],[1,"\\n                  "],[13],[1,"\\n                "],[13],[1,"\\n                "],[8,[39,16],null,[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n            "],[10,0],[14,0,"password-confirmation"],[12],[1,"\\n              "],[10,"label"],[14,"for","new-account-password-confirmation"],[12],[1,"\\n                "],[1,[28,[35,5],["user.password_confirmation.title"],null]],[1,"\\n              "],[13],[1,"\\n              "],[8,[39,17],null,[["@id","@autocomplete","@value"],["new-account-confirmation","new-password",[30,0,["accountHoneypot"]]]],null],[1,"\\n              "],[8,[39,9],[[24,1,"new-account-challenge"]],[["@value"],[[30,0,["accountChallenge"]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,0,["requireInviteCode"]],[[[1,"            "],[10,0],[14,0,"input-group create-account__invite-code"],[12],[1,"\\n              "],[8,[39,9],[[24,1,"inviteCode"],[16,0,[28,[37,10],[[30,0,["inviteCode"]]],null]]],[["@value"],[[30,0,["inviteCode"]]]],null],[1,"\\n              "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","invite-code"],[12],[1,"\\n                "],[1,[28,[35,5],["user.invite_code.title"],null]],[1,"\\n              "],[13],[1,"\\n              "],[10,1],[14,0,"more-info"],[12],[1,"\\n                "],[1,[28,[35,5],["user.invite_code.instructions"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,2],null,[["@name","@outletArgs"],["create-account-after-password",[28,[37,6],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["model","accountName"]],[30,0,["model","accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["userFields"]],[[[1,"            "],[10,0],[14,0,"user-fields"],[12],[1,"\\n"],[42,[28,[37,19],[[28,[37,19],[[30,0,["userFields"]]],null]],null],null,[[[1,"                "],[10,0],[14,0,"input-group"],[12],[1,"\\n                  "],[8,[39,20],[[16,0,[28,[37,10],[[30,2,["value"]]],null]]],[["@field","@value","@validation"],[[30,2,["field"]],[30,2,["value"]],[30,2,["validation"]]]],null],[1,"\\n                "],[13],[1,"\\n"]],[2]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,2],null,[["@name","@outletArgs"],["create-account-after-user-fields",[28,[37,6],null,[["accountName","accountUsername","accountPassword","userFields"],[[30,0,["model","accountName"]],[30,0,["model","accountUsername"]],[30,0,["accountPassword"]],[30,0,["userFields"]]]]]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n          "],[10,0],[14,0,"disclaimer"],[12],[1,"\\n            "],[1,[28,[35,8],[[30,0,["disclaimerHtml"]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"d-modal__footer-buttons"],[12],[1,"\\n            "],[8,[39,21],[[24,0,"btn-large btn-primary"]],[["@action","@disabled","@label","@isLoading"],[[30,0,["createAccount"]],[30,0,["submitDisabled"]],"create_account.title",[30,0,["formSubmitted"]]]],null],[1,"\\n\\n"],[41,[51,[30,0,["hasAuthOptions"]]],[[[1,"              "],[8,[39,21],[[24,1,"login-link"],[24,0,"btn-large btn-flat"]],[["@action","@disabled","@label"],[[28,[37,7],["showLogin"],null],[30,0,["formSubmitted"]],"log_in"]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[8,[39,2],null,[["@name","@connectorTagName"],["create-account-after-modal-footer","div"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["model","skipConfirmation"]],[[[1,"        "],[1,[28,[35,22],null,[["size"],["large"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[41,[30,0,["site","mobileView"]],[[[1,"        "],[10,0],[14,0,"login-or-separator"],[12],[10,1],[12],[1,"\\n            "],[1,[28,[35,5],["login.or"],null]],[13],[13]],[]],null],[1,"\\n      "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n        "],[8,[39,23],null,[["@externalLogin","@context"],[[30,0,["externalLogin"]],"create-account"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","f"],false,["d-modal","on","plugin-outlet","concat-class","if","i18n","hash","route-action","html-safe","input","value-entered","input-tip","text-field","password-field","unless","d-icon","toggle-password-mask","honeypot-input","each","-track-array","user-field","d-button","loading-spinner","login-buttons"]]',moduleName:"discourse/components/modal/create-account.hbs",isStrictMode:!1});var A,M,N,z,L,F,U,R,B,$,q,H,W,K,V,G,Y,Q,J,X,ee,te,ne,re,ie,se,oe,ae,le,ce;let ue=(A=(0,d.notEmpty)("model.authOptions"),M=(0,y.setting)("enable_local_logins"),N=(0,y.setting)("require_invite_code"),z=(0,d.alias)("model.authOptions"),L=(0,d.alias)("model.accountEmail"),F=(0,d.alias)("model.accountUsername"),U=(0,d.alias)("model.accountName"),R=(0,I.default)("hasAuthOptions","canCreateLocal","model.skipConfirmation"),B=(0,I.default)("site.desktopView","hasAuthOptions"),$=(0,I.default)("formSubmitted"),q=(0,I.default)(),H=(0,I.default)("userFields","hasAtLeastOneLoginButton","hasAuthOptions"),W=(0,I.default)("model.authOptions","model.authOptions.can_edit_username"),K=(0,I.default)("model.authOptions","model.authOptions.can_edit_name"),V=(0,I.default)("model.authOptions.auth_provider"),G=(0,I.default)("serverAccountEmail","serverEmailValidation","model.accountEmail","rejectedEmails.[]","forceValidationReason"),Y=(0,I.default)("model.accountEmail","model.authOptions.email","model.authOptions.email_valid"),Q=(0,m.observes)("emailValidation","model.accountEmail"),J=(0,I.default)("model.authOptions.associate_url","model.authOptions.auth_provider"),X=class extends(l().extend(S.default,P.default,T.default,C.default)){constructor(){super(...arguments),(0,r.Z)(this,"site",ee,this),(0,r.Z)(this,"siteSettings",te,this),(0,r.Z)(this,"login",ne,this),(0,i.Z)(this,"accountChallenge",0),(0,i.Z)(this,"accountHoneypot",0),(0,i.Z)(this,"formSubmitted",!1),(0,i.Z)(this,"rejectedEmails",(0,o.A)()),(0,i.Z)(this,"prefilledUsername",null),(0,i.Z)(this,"userFields",null),(0,i.Z)(this,"isDeveloper",!1),(0,i.Z)(this,"maskPassword",!0),(0,r.Z)(this,"hasAuthOptions",re,this),(0,r.Z)(this,"canCreateLocal",ie,this),(0,r.Z)(this,"requireInviteCode",se,this),(0,r.Z)(this,"authOptions",oe,this),(0,r.Z)(this,"accountEmail",ae,this),(0,r.Z)(this,"accountUsername",le,this),(0,r.Z)(this,"accountName",ce,this)}init(){super.init(...arguments),(0,w.default)("email")&&this.set("model.accountEmail",(0,w.default)("email")),this.fetchConfirmationValue(),this.model.skipConfirmation&&this.performAccountCreation().finally((()=>this.set("model.skipConfirmation",!1)))}actionOnEnter(e){if(!this.submitDisabled&&"Enter"===e.key)return e.preventDefault(),e.stopPropagation(),this.createAccount(),!1}selectKitFocus(e){const t=document.getElementById(e.target.getAttribute("for"));t?.classList.contains("select-kit")&&(e.preventDefault(),t.querySelector(".select-kit-header").click())}showCreateForm(e,t,n){return(e||t)&&!n}showExternalLoginButtons(e,t){return e&&!t}submitDisabled(){return this.formSubmitted}wavingHandURL(){return(0,x.wavingHandURL)()}modalBodyClasses(e,t,n){const r=[];return e&&r.push("has-user-fields"),t&&!n&&r.push("has-alt-auth"),this.canCreateLocal||r.push("no-local-logins"),r.join(" ")}usernameDisabled(e,t){return e&&!t}nameDisabled(e,t){return e&&!t}fullnameRequired(){return this.siteSettings.full_name_required||this.siteSettings.enable_names}passwordRequired(e){return(0,h.isEmpty)(e)}disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return j.default.t("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})}emailValidation(e,t,n,r,i){const s={failed:!0,ok:!1,element:document.querySelector("#new-account-email")};return e===n&&t?t:(0,h.isEmpty)(n)?u().create(Object.assign(s,{message:j.default.t("user.email.required"),reason:i?j.default.t("user.email.required"):null})):r.includes(n)||!(0,k.emailValid)(n)?u().create(Object.assign(s,{reason:j.default.t("user.email.invalid")})):this.get("model.authOptions.email")===n&&this.get("model.authOptions.email_valid")?u().create({ok:!0,reason:j.default.t("user.email.authenticated",{provider:this.authProviderDisplayName(this.get("model.authOptions.auth_provider"))})}):u().create({ok:!0,reason:j.default.t("user.email.ok")})}checkEmailAvailability(){if(this.emailValidation.ok&&this.serverAccountEmail!==this.model.accountEmail)return E.default.checkEmail(this.model.accountEmail).then((e=>{this.isDestroying||this.isDestroyed||(e.failed?this.setProperties({serverAccountEmail:this.model.accountEmail,serverEmailValidation:u().create({failed:!0,element:document.querySelector("#new-account-email"),reason:e.errors[0]})}):this.setProperties({serverAccountEmail:this.model.accountEmail,serverEmailValidation:u().create({ok:!0,reason:j.default.t("user.email.ok")})}))})).catch((()=>{this.setProperties({serverAccountEmail:null,serverEmailValidation:null})}))}emailDisabled(){return this.get("model.authOptions.email")===this.model.accountEmail&&this.get("model.authOptions.email_valid")}authProviderDisplayName(e){const t=(0,O.findAll)().find((t=>t.name===e));return t?t.get("prettyName"):e}prefillUsername(){this.prefilledUsername&&(this.model.accountUsername===this.prefilledUsername&&this.set("model.accountUsername",""),this.set("prefilledUsername",null)),this.get("emailValidation.ok")&&((0,h.isEmpty)(this.model.accountUsername)||this.get("model.authOptions.email"))&&(0,D.default)(this,this.fetchExistingUsername,500)}hasAtLeastOneLoginButton(){return(0,O.findAll)().length>0}fetchConfirmationValue(){return void 0===this._challengeDate&&this._hpPromise||(this._hpPromise=(0,_.ajax)("/session/hp.json").then((e=>{this.isDestroying||this.isDestroyed||(this._challengeDate=new Date,this._challengeExpiry=parseInt(e.expires_in,10)-30,this._challengeExpiry<30&&(this._challengeExpiry=30),this.setProperties({accountHoneypot:e.value,accountChallenge:e.challenge.split("").reverse().join("")}))})).finally((()=>this._hpPromise=void 0))),this._hpPromise}performAccountCreation(){if(!this._challengeDate||new Date-this._challengeDate>1e3*this._challengeExpiry)return this.fetchConfirmationValue().then((()=>this.performAccountCreation()));const e={accountName:this.model.accountName,accountEmail:this.model.accountEmail,accountPassword:this.accountPassword,accountUsername:this.model.accountUsername,accountChallenge:this.accountChallenge,inviteCode:this.inviteCode,accountPasswordConfirm:this.accountHoneypot},t=this.get("model.authOptions.destination_url");return(0,h.isEmpty)(t)||(0,w.default)("destination_url",t,{path:"/"}),(0,h.isEmpty)(this.userFields)||(e.userFields={},this.userFields.forEach((t=>e.userFields[t.get("field.id")]=t.get("value")))),this.set("formSubmitted",!0),E.default.createAccount(e).then((t=>{if(!this.isDestroying&&!this.isDestroyed){if(this.set("isDeveloper",!1),t.success){this._challengeExpiry=1;const t=f()("#hidden-login-form");return t.find("input[name=username]").val(e.accountUsername),t.find("input[name=password]").val(e.accountPassword),t.find("input[name=redirect]").val((0,v.userPath)("account-created")),t.submit(),new b.Promise((()=>{}))}this.set("flash",t.message||j.default.t("create_account.failed")),t.is_developer&&this.set("isDeveloper",!0),t.errors&&t.errors.email&&t.errors.email.length>0&&t.values&&this.rejectedEmails.pushObject(t.values.email),t.errors&&t.errors.password&&t.errors.password.length>0&&this.rejectedPasswords.pushObject(e.accountPassword),this.set("formSubmitted",!1),(0,w.removeCookie)("destination_url")}}),(()=>(this.set("formSubmitted",!1),(0,w.removeCookie)("destination_url"),this.set("flash",j.default.t("create_account.failed")))))}associateHtml(e,t){if(e)return j.default.t("create_account.associate",{associate_link:e,provider:j.default.t(`login.${t}.name`)})}togglePasswordMask(){this.toggleProperty("maskPassword")}externalLogin(e){this.login.externalLogin(e,{signup:!0})}createAccount(){this.set("flash",""),this.set("forceValidationReason",!0);const e=[this.emailValidation,this.usernameValidation,this.nameValidation,this.passwordValidation,this.userFieldsValidation].find((e=>e.failed));if(e){const t=e.element;t&&("DIV"===t.tagName?(t.scrollIntoView&&t.scrollIntoView(),t.click()):t.focus())}else this.set("forceValidationReason",!1),this.performAccountCreation()}},ee=(0,s.Z)(X.prototype,"site",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,s.Z)(X.prototype,"siteSettings",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=(0,s.Z)(X.prototype,"login",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=(0,s.Z)(X.prototype,"hasAuthOptions",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=(0,s.Z)(X.prototype,"canCreateLocal",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=(0,s.Z)(X.prototype,"requireInviteCode",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=(0,s.Z)(X.prototype,"authOptions",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=(0,s.Z)(X.prototype,"accountEmail",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=(0,s.Z)(X.prototype,"accountUsername",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=(0,s.Z)(X.prototype,"accountName",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(X.prototype,"actionOnEnter",[I.bind],Object.getOwnPropertyDescriptor(X.prototype,"actionOnEnter"),X.prototype),(0,s.Z)(X.prototype,"selectKitFocus",[I.bind],Object.getOwnPropertyDescriptor(X.prototype,"selectKitFocus"),X.prototype),(0,s.Z)(X.prototype,"showCreateForm",[R],Object.getOwnPropertyDescriptor(X.prototype,"showCreateForm"),X.prototype),(0,s.Z)(X.prototype,"showExternalLoginButtons",[B],Object.getOwnPropertyDescriptor(X.prototype,"showExternalLoginButtons"),X.prototype),(0,s.Z)(X.prototype,"submitDisabled",[$],Object.getOwnPropertyDescriptor(X.prototype,"submitDisabled"),X.prototype),(0,s.Z)(X.prototype,"wavingHandURL",[q],Object.getOwnPropertyDescriptor(X.prototype,"wavingHandURL"),X.prototype),(0,s.Z)(X.prototype,"modalBodyClasses",[H],Object.getOwnPropertyDescriptor(X.prototype,"modalBodyClasses"),X.prototype),(0,s.Z)(X.prototype,"usernameDisabled",[W],Object.getOwnPropertyDescriptor(X.prototype,"usernameDisabled"),X.prototype),(0,s.Z)(X.prototype,"nameDisabled",[K],Object.getOwnPropertyDescriptor(X.prototype,"nameDisabled"),X.prototype),(0,s.Z)(X.prototype,"fullnameRequired",[I.default],Object.getOwnPropertyDescriptor(X.prototype,"fullnameRequired"),X.prototype),(0,s.Z)(X.prototype,"passwordRequired",[V],Object.getOwnPropertyDescriptor(X.prototype,"passwordRequired"),X.prototype),(0,s.Z)(X.prototype,"disclaimerHtml",[I.default],Object.getOwnPropertyDescriptor(X.prototype,"disclaimerHtml"),X.prototype),(0,s.Z)(X.prototype,"emailValidation",[G],Object.getOwnPropertyDescriptor(X.prototype,"emailValidation"),X.prototype),(0,s.Z)(X.prototype,"checkEmailAvailability",[c.action],Object.getOwnPropertyDescriptor(X.prototype,"checkEmailAvailability"),X.prototype),(0,s.Z)(X.prototype,"emailDisabled",[Y],Object.getOwnPropertyDescriptor(X.prototype,"emailDisabled"),X.prototype),(0,s.Z)(X.prototype,"prefillUsername",[Q],Object.getOwnPropertyDescriptor(X.prototype,"prefillUsername"),X.prototype),(0,s.Z)(X.prototype,"hasAtLeastOneLoginButton",[I.default],Object.getOwnPropertyDescriptor(X.prototype,"hasAtLeastOneLoginButton"),X.prototype),(0,s.Z)(X.prototype,"associateHtml",[J],Object.getOwnPropertyDescriptor(X.prototype,"associateHtml"),X.prototype),(0,s.Z)(X.prototype,"togglePasswordMask",[c.action],Object.getOwnPropertyDescriptor(X.prototype,"togglePasswordMask"),X.prototype),(0,s.Z)(X.prototype,"externalLogin",[c.action],Object.getOwnPropertyDescriptor(X.prototype,"externalLogin"),X.prototype),(0,s.Z)(X.prototype,"createAccount",[c.action],Object.getOwnPropertyDescriptor(X.prototype,"createAccount"),X.prototype),X);(0,a.setComponentTemplate)(Z,ue)},37344:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"qOR0/94l",block:'[[[8,[39,0],null,[["@autoFindInput"],[false]],[["default"],[[[[1,"\\n  "],[8,[39,1],[[24,0,"create-invite-bulk-modal -large"]],[["@title","@closeModal"],[[28,[37,2],["user.invited.bulk_invite.text"],null],[30,3]]],[["body","footer"],[[[[1,"\\n"],[41,[30,1,["uploaded"]],[[[1,"        "],[1,[28,[35,2],["user.invited.bulk_invite.success"],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,4],[[28,[37,2],["user.invited.bulk_invite.instructions"],null]],null]],[1,"\\n        "],[11,"input"],[24,1,"csv-file"],[16,"disabled",[30,1,["uploading"]]],[24,"accept",".csv"],[24,4,"file"],[4,[38,5],[[30,2]],null],[12],[13],[1,"\\n"]],[]]],[1,"    "]],[]],[[[1,"\\n"],[41,[51,[30,1,["uploaded"]]],[[[1,"        "],[8,[39,7],[[24,0,"btn-primary"]],[["@icon","@translatedLabel","@action","@disabled"],["link",[52,[30,1,["uploading"]],[28,[37,2],["user.invited.bulk_invite.progress"],[["progress"],[[30,1,["uploadProgress"]]]]],[28,[37,2],["user.invited.bulk_invite.text"],null]],[30,1,["startUpload"]],[30,1,["submitDisabled"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[8,[39,7],[[24,0,"btn-primary"]],[["@label","@action"],["close",[30,3]]],null],[1,"\\n    "]],[]]]]],[1,"\\n"]],[1,2]]]]]],["uploader","setElement","@closeModal"],false,["create-invite-uploader","d-modal","i18n","if","html-safe","did-insert","unless","d-button"]]',moduleName:"discourse/components/modal/create-invite-bulk.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},95573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(38864),c=n(60353),u=n(35193),d=n(50459),p=n(62617),h=n(20003),m=n(5751),g=n(88802),f=n(57555),b=n(82099),_=n(53314);const y=(0,n(8620).createTemplateFactory)({id:"1SMiqX7F",block:'[[[8,[39,0],[[24,0,"create-invite-modal"]],[["@title","@closeModal"],[[28,[37,1],[[52,[30,0,["editing"]],"user.invited.invite.edit_title","user.invited.invite.new_title"]],null],[30,1]]],[["belowHeader","body","footer"],[[[[1,"\\n"],[41,[30,0,["flashText"]],[[[1,"      "],[10,0],[14,1,"modal-alert"],[14,"role","alert"],[15,0,[29,["alert alert-",[30,0,["flashClass"]]]]],[12],[1,"\\n"],[41,[30,0,["flashLink"]],[[[1,"          "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n            "],[10,"label"],[14,"for","invite-link"],[12],[1,[28,[35,3],[[30,0,["flashText"]]],null]],[1,"\\n              "],[1,[28,[35,1],["user.invited.invite.instructions"],null]],[13],[1,"\\n            "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n              "],[8,[39,4],[[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true]],[["@value"],[[30,0,["invite","link"]]]],null],[1,"\\n              "],[8,[39,5],null,[["@selector","@copied"],["input.invite-link",[28,[37,6],[[30,0],"copied"],null]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,3],[[30,0,["flashText"]]],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]],[[[1,"\\n    "],[10,"form"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1,"        "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n          "],[10,"label"],[14,"for","invite-link"],[12],[1,[28,[35,1],["user.invited.invite.instructions"],null]],[13],[1,"\\n          "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n            "],[8,[39,4],[[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true]],[["@value"],[[30,0,["invite","link"]]]],null],[1,"\\n            "],[8,[39,5],null,[["@selector","@copied"],["input.invite-link",[28,[37,6],[[30,0],"copied"],null]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"input-group input-email"],[12],[1,"\\n        "],[10,"label"],[14,"for","invite-email"],[12],[1,"\\n          "],[1,[28,[35,7],["envelope"],null]],[1,"\\n"],[41,[30,0,["isEmail"]],[[[1,"            "],[1,[28,[35,1],["user.invited.invite.restrict_email"],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDomain"]],[[[1,"            "],[1,[28,[35,1],["user.invited.invite.restrict_domain"],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[35,1],["user.invited.invite.restrict"],null]],[1,"\\n          "]],[]]]],[]]],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"invite-email-container"],[12],[1,"\\n          "],[8,[39,4],[[24,1,"invite-email"],[16,"placeholder",[28,[37,1],["user.invited.invite.email_or_domain_placeholder"],null]]],[["@value"],[[30,0,["buffered","emailOrDomain"]]]],null],[1,"\\n"],[41,[30,0,["capabilities","hasContactPicker"]],[[[1,"            "],[8,[39,8],[[24,0,"btn-primary open-contact-picker"]],[["@icon","@action"],["address-book",[30,0,["searchContact"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["isLink"]],[[[1,"        "],[10,0],[14,0,"input-group invite-max-redemptions"],[12],[1,"\\n          "],[10,"label"],[14,"for","invite-max-redemptions"],[12],[1,[28,[35,7],["users"],null]],[1,[28,[35,1],["user.invited.invite.max_redemptions_allowed"],null]],[13],[1,"\\n          "],[8,[39,4],[[24,1,"invite-max-redemptions"],[24,"min","1"],[16,"max",[30,0,["maxRedemptionsAllowedLimit"]]]],[["@type","@value"],["number",[30,0,["buffered","max_redemptions_allowed"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isEmail"]],[[[1,"        "],[10,0],[14,0,"input-group invite-custom-message"],[12],[1,"\\n          "],[10,"label"],[14,"for","invite-message"],[12],[1,[28,[35,1],["user.invited.invite.custom_message"],null]],[13],[1,"\\n          "],[8,[39,9],[[24,1,"invite-message"]],[["@value"],[[30,0,["buffered","custom_message"]]]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canArriveAtTopic"]],[[[1,"        "],[10,0],[14,0,"input-group invite-to-topic"],[12],[1,"\\n          "],[10,"label"],[14,"for","invite-topic"],[12],[1,[28,[35,7],["hand-point-right"],null]],[1,[28,[35,1],["user.invited.invite.invite_to_topic"],null]],[13],[1,"\\n          "],[8,[39,10],null,[["@value","@content","@onChange","@options"],[[30,0,["buffered","topicId"]],[30,0,["topics"]],[28,[37,6],[[30,0],"onChangeTopic"],null],[28,[37,11],null,[["additionalFilters"],["status:public"]]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[41,[30,0,["buffered","topicTitle"]],[[[1,"        "],[10,0],[14,0,"input-group invite-to-topic"],[12],[1,"\\n          "],[10,"label"],[14,"for","invite-topic"],[12],[1,[28,[35,7],["hand-point-right"],null]],[1,[28,[35,1],["user.invited.invite.invite_to_topic"],null]],[13],[1,"\\n          "],[8,[39,4],[[24,3,"invite-topic"],[24,0,"invite-topic"],[16,"readonly",true]],[["@value"],[[30,0,["buffered","topicTitle"]]]],null],[1,"\\n        "],[13],[1,"\\n      "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["canInviteToGroup"]],[[[1,"        "],[10,0],[14,0,"input-group invite-to-groups"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,7],["users"],null]],[1,[28,[35,1],["user.invited.invite.add_to_groups"],null]],[13],[1,"\\n          "],[8,[39,12],null,[["@content","@value","@labelProperty","@onChange"],[[30,0,["allGroups"]],[30,0,["buffered","groupIds"]],"name",[28,[37,6],[[30,0],[28,[37,13],[[30,0,["buffered","groupIds"]]],null]],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"        "],[10,0],[14,0,"input-group invite-expires-at"],[12],[1,"\\n          "],[8,[39,14],null,[["@displayLabelIcon","@displayLabel","@customShortcuts","@clearable","@input","@onChangeInput"],["far-clock",[28,[37,1],["user.invited.invite.expires_at"],null],[30,0,["timeShortcuts"]],true,[30,0,["buffered","expires_at"]],[28,[37,6],[[30,0],[28,[37,13],[[30,0,["buffered","expires_at"]]],null]],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"input-group input-expires-at"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,7],["far-clock"],null]],[1,[30,0,["expiresAtLabel"]]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]],[[[1,"\\n\\n    "],[8,[39,8],[[24,0,"btn-primary save-invite"]],[["@icon","@label","@action"],["link","user.invited.invite.save_invite",[30,0,["saveInvite"]]]],null],[1,"\\n\\n    "],[8,[39,8],[[24,0,"btn-primary send-invite"]],[["@icon","@label","@action","@title","@disabled"],["envelope",[52,[30,0,["invite","emailed"]],"user.invited.reinvite","user.invited.invite.send_invite_email"],[28,[37,15],[[30,0,["saveInvite"]],true],null],[52,[51,[30,0,["isEmail"]]],"user.invited.invite.send_invite_email_instructions"],[28,[37,17],[[30,0,["isEmail"]]],null]]],null],[1,"\\n\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","if","html-safe","input","copy-button","action","d-icon","d-button","textarea","topic-chooser","hash","group-chooser","mut","future-date-input","fn","unless","not"]]',moduleName:"discourse/components/modal/create-invite.hbs",isStrictMode:!1});var w,v,k,x,T,S,C;const P=(0,i.setComponentTemplate)(y,s().extend((0,h.bufferedProperty)("invite"),(w=(0,f.default)("buffered.emailOrDomain"),v=(0,f.default)("buffered.emailOrDomain"),k=(0,f.default)("currentUser.staff","siteSettings.invite_link_max_redemptions_limit","siteSettings.invite_link_max_redemptions_limit_users"),x=(0,f.default)("buffered.expires_at"),T=(0,f.default)("currentUser.staff","currentUser.groups"),S=(0,f.default)("currentUser.staff"),C={allGroups:null,topics:null,flashText:null,flashClass:null,flashLink:!1,editing:(0,a.readOnly)("model.editing"),inviteToTopic:!1,limitToEmail:!1,isEmail:e=>(0,p.emailValid)(e?.trim()),isDomain:e=>(0,p.hostnameValid)(e?.trim()),isLink:(0,a.not)("isEmail"),init(){this._super(),m.default.findAll().then((e=>{this.set("allGroups",e.filterBy("automatic",!1))})),this.set("invite",this.model.invite||g.default.create()),this.set("topics",this.invite?.topics||this.model.topics||[]),this.buffered.setProperties({max_redemptions_allowed:this.model.invite?.max_redemptions_allowed??1,expires_at:this.model.invite?.expires_at??moment().add(this.siteSettings.invite_expiry_days,"days").format(_.FORMAT),groupIds:this.model.invite?.groupIds,topicId:this.model.invite?.topicId,topicTitle:this.model.invite?.topicTitle})},save(e){const t={...this.buffered.buffer};return t.emailOrDomain&&((0,p.emailValid)(t.emailOrDomain)?t.email=t.emailOrDomain?.trim():(0,p.hostnameValid)(t.emailOrDomain)&&(t.domain=t.emailOrDomain?.trim()),delete t.emailOrDomain),void 0!==t.groupIds&&(t.group_ids=t.groupIds.length>0?t.groupIds:"",delete t.groupIds),void 0!==t.topicId&&(t.topic_id=t.topicId,delete t.topicId,delete t.topicTitle),this.isLink?this.invite.email&&(t.email=t.custom_message=""):this.isEmail&&(this.invite.max_redemptions_allowed>1&&(t.max_redemptions_allowed=1),e.sendEmail?(t.send_email=!0,this.inviteToTopic&&(t.invite_to_topic=!0)):t.skip_email=!0),this.invite.save(t).then((()=>{this.rollbackBuffer();const t=this.model?.invites;t&&!t.any((e=>e.id===this.invite.id))&&t.unshiftObject(this.invite),this.isEmail&&e.sendEmail?this.closeModal():this.setProperties({flashText:(0,u.sanitize)(b.default.t("user.invited.invite.invite_saved")),flashClass:"success",flashLink:!this.editing})})).catch((e=>this.setProperties({flashText:(0,u.sanitize)((0,l.extractError)(e)),flashClass:"error",flashLink:!1})))},maxRedemptionsAllowedLimit:(e,t,n)=>e?t:n,expiresAtLabel(e){const t=moment(e);return t.isBefore()?b.default.t("user.invited.invite.expired_at_time",{time:t.format("LLL")}):b.default.t("user.invited.invite.expires_in_time",{time:moment.duration(t-moment()).humanize()})},canInviteToGroup:(e,t)=>e||t.any((e=>e.owner)),canArriveAtTopic(e){return!(!e||this.siteSettings.must_approve_users)},timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,d.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths()]},copied(){this.save({sendEmail:!1,copy:!0})},saveInvite(e){this.save({sendEmail:e})},searchContact(){(0,c.getNativeContact)(this.capabilities,["email"],!1).then((e=>{this.set("buffered.email",e[0].email[0])}))},onChangeTopic(e,t){this.set("topics",[t]),this.set("buffered.topicId",e)}},(0,r.Z)(C,"isEmail",[w],Object.getOwnPropertyDescriptor(C,"isEmail"),C),(0,r.Z)(C,"isDomain",[v],Object.getOwnPropertyDescriptor(C,"isDomain"),C),(0,r.Z)(C,"maxRedemptionsAllowedLimit",[k],Object.getOwnPropertyDescriptor(C,"maxRedemptionsAllowedLimit"),C),(0,r.Z)(C,"expiresAtLabel",[x],Object.getOwnPropertyDescriptor(C,"expiresAtLabel"),C),(0,r.Z)(C,"canInviteToGroup",[T],Object.getOwnPropertyDescriptor(C,"canInviteToGroup"),C),(0,r.Z)(C,"canArriveAtTopic",[S],Object.getOwnPropertyDescriptor(C,"canArriveAtTopic"),C),(0,r.Z)(C,"timeShortcuts",[f.default],Object.getOwnPropertyDescriptor(C,"timeShortcuts"),C),(0,r.Z)(C,"copied",[o.action],Object.getOwnPropertyDescriptor(C,"copied"),C),(0,r.Z)(C,"saveInvite",[o.action],Object.getOwnPropertyDescriptor(C,"saveInvite"),C),(0,r.Z)(C,"searchContact",[o.action],Object.getOwnPropertyDescriptor(C,"searchContact"),C),(0,r.Z)(C,"onChangeTopic",[o.action],Object.getOwnPropertyDescriptor(C,"onChangeTopic"),C),C)))},98004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(3055),u=n(38864),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"2x9+Frg2",block:'[[[8,[39,0],[[24,0,"customize-form-template-view-modal"]],[["@title","@closeModal"],[[30,1,["name"]],[30,2]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,1],[[24,0,"form-templates__preview-toggle"],[4,[38,2],["click",[30,0,["togglePreview"]]],null]],[["@state","@label"],[[30,0,["showPreview"]],"admin.form_templates.view_template.toggle_preview"]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["showPreview"]],[[[1,"      "],[8,[39,4],null,[["@id"],[[30,1,["id"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,5],null,[["@lang","@code"],["yaml",[30,1,["template"]]]],null],[1,"\\n"]],[]]],[1,"  "]],[]],[[[1,"\\n    "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["editTemplate"]],"pencil-alt","admin.form_templates.view_template.edit"]],null],[1,"\\n    "],[8,[39,7],null,[["@close"],[[30,2]]],null],[1,"\\n    "],[8,[39,6],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteTemplate"]],"trash-alt","admin.form_templates.view_template.delete"]],null],[1,"\\n  "]],[]]]]]],["@model","@closeModal"],false,["d-modal","d-toggle-switch","on","if","form-template-field/wrapper","highlighted-code","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/customize-form-template-view.hbs",isStrictMode:!1});var h,m,g,f,b=n(31691);let _=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",m,this),(0,r.Z)(this,"dialog",g,this),(0,r.Z)(this,"showPreview",f,this)}togglePreview(){this.showPreview=!this.showPreview}editTemplate(){this.router.transitionTo("adminCustomizeFormTemplates.edit",this.model)}deleteTemplate(){return this.dialog.yesNoConfirm({message:d.default.t("admin.form_templates.delete_confirm",{template_name:this.model.name}),didConfirm:()=>{(0,c.ajax)(`/admin/customize/form-templates/${this.model.id}.json`,{type:"DELETE"}).then((()=>{this.args.refreshModel()})).catch(u.popupAjaxError)}})}},m=(0,i.Z)(h.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"dialog",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"showPreview",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(h.prototype,"togglePreview",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"togglePreview"),h.prototype),(0,i.Z)(h.prototype,"editTemplate",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"editTemplate"),h.prototype),(0,i.Z)(h.prototype,"deleteTemplate",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"deleteTemplate"),h.prototype),h);(0,b.setComponentTemplate)(p,_)},58967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(82006),s=n(48163),o=n(3055),a=n(38864);const l=(0,n(8620).createTemplateFactory)({id:"VgVfKQe+",block:'[[[8,[39,0],null,[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.customize.bulk_delete"],null]]],[["body","footer"],[[[[1,"\\n    "],[1,[28,[35,1],[[28,[37,2],["admin.customize.bulk_",[30,2,["type"]],"_delete_confirm"],null]],null]],[1,"\\n    "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,2,["selectedThemesOrComponents"]]],null]],null],null,[[[1,"        "],[10,"li"],[12],[1,[30,3,["name"]]],[13],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n\\n  "]],[]],[[[1,"\\n    "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["delete"]],"yes_value"]],null],[1,"\\n    "],[8,[39,6],null,[["@close"],[[30,1]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model","theme"],false,["d-modal","i18n","concat","each","-track-array","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/delete-themes-confirm.hbs",isStrictMode:!1});var c,u=n(31691);let d=(c=class extends i.default{delete(){(0,o.ajax)("/admin/themes/bulk_destroy.json",{type:"DELETE",data:{theme_ids:this.args.model.selectedThemesOrComponents.mapBy("id")}}).then((()=>{this.args.model.refreshAfterDelete(),this.args.closeModal()})).catch(a.popupAjaxError)}},(0,r.Z)(c.prototype,"delete",[s.action],Object.getOwnPropertyDescriptor(c.prototype,"delete"),c.prototype),c);(0,u.setComponentTemplate)(l,d)},64935:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"l4hvC3AW",block:'[[[8,[39,0],[[24,0,"delete-topic-confirm-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.actions.delete"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],["post.controls.delete_topic_confirm_modal"],[["count"],[[30,0,["siteSettings","min_topic_views_for_delete_confirm"]]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,2],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["deleteTopic"]],[30,0,["deletingTopic"]],[52,[30,0,["deletingTopic"]],"deleting","post.controls.delete_topic_confirm_modal_yes"]]],null],[1,"\\n    "],[8,[39,2],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"post.controls.delete_topic_confirm_modal_no"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","d-button","if"]]',moduleName:"discourse/components/modal/delete-topic-confirm.hbs",isStrictMode:!1});var d,p,h,m,g,f=n(31691);let b=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",p,this),(0,r.Z)(this,"siteSettings",h,this),(0,r.Z)(this,"deletingTopic",m,this),(0,r.Z)(this,"flash",g,this)}async deleteTopic(){try{this.deletingTopic=!0,await this.args.model.topic.destroy(this.currentUser),this.args.closeModal()}catch{this.flash=c.default.t("post.controls.delete_topic_error"),this.deletingTopic=!1}}},p=(0,i.Z)(d.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(d.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(d.prototype,"deletingTopic",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,i.Z)(d.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"deleteTopic",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"deleteTopic"),d.prototype),d);(0,f.setComponentTemplate)(u,b)},55325:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"sQFUiqfh",block:'[[[8,[39,0],null,[["@closeModal"],[[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,[28,[35,1],[[28,[37,2],["post.controls.delete_topic_disallowed_modal"],null]],null]],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"close"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","html-safe","i18n","d-button"]]',moduleName:"discourse/components/modal/delete-topic-disallowed.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},71220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(82006),s=n(48163);const o=(0,n(8620).createTemplateFactory)({id:"QaRgMOie",block:'[[[8,[39,0],[[24,0,"discard-draft-modal"]],[["@closeModal","@dismissable"],[[30,1],false]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["post.cancel_composer.confirm"],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,2],[[24,0,"btn-danger discard-draft"]],[["@icon","@label","@action"],["far-trash-alt","post.cancel_composer.discard",[30,0,["discardDraft"]]]],null],[1,"\\n"],[41,[30,2,["showSaveDraftButton"]],[[[1,"      "],[8,[39,2],[[24,0,"save-draft"]],[["@label","@action"],["post.cancel_composer.save_draft",[30,0,["saveDraftAndClose"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,2],[[24,0,"keep-editing"]],[["@label","@action"],["post.cancel_composer.keep_editing",[30,1]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","d-button","if"]]',moduleName:"discourse/components/modal/discard-draft.hbs",isStrictMode:!1});var a,l=n(31691);let c=(a=class extends i.default{async discardDraft(){await this.args.model.onDestroyDraft(),this.args.closeModal()}async saveDraftAndClose(){await this.args.model.onSaveDraft(),this.args.closeModal()}},(0,r.Z)(a.prototype,"discardDraft",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"discardDraft"),a.prototype),(0,r.Z)(a.prototype,"saveDraftAndClose",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"saveDraftAndClose"),a.prototype),a);(0,l.setComponentTemplate)(o,c)},42692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o,a,l=n(94664),c=n(54001),u=n(82006),d=n(23183),p=n(48163),h=n(69338),m=n(83116),g=n(84947),f=n(82099),b=n(8620),_=n(31691);let y=(a=class extends u.default{constructor(){super(...arguments),(0,l.Z)(this,"untrack",i,this),(0,l.Z)(this,"dismissTopics",s,this),(0,l.Z)(this,"dismissPosts",o,this),"replies"===this.args.model.subset&&(this.dismissTopics=!1),"topics"===this.args.model.subset&&(this.dismissPosts=!1)}get partialDismiss(){return 0!==(this.selectedTopics?.length||0)}get dismissNewTopicsLabel(){return"topics.bulk.dismiss_new_modal.topics"+(this.partialDismiss?"_with_count":"")}get dismissNewRepliesLabel(){return"topics.bulk.dismiss_new_modal.replies"+(this.partialDismiss?"_with_count":"")}get showDismissNewTopics(){return this.partialDismiss?this.countNewTopics>0:"topics"===this.subset||!this.subset}get showDismissNewReplies(){return this.partialDismiss?this.countNewReplies>0:"replies"===this.subset||!this.subset}get countNewTopics(){const e=this.selectedTopics;return e?.length?e.filter((e=>!e.unread_posts)).length:0}get countNewReplies(){const e=this.selectedTopics;return e?.length?e.filter((e=>e.unread_posts)).length:0}get subset(){return this.args.model.subset}get selectedTopics(){return this.args.model.selectedTopics}get modalTitle(){return f.default.t("topics.bulk.dismiss_new_modal.title")}dismissed(){this.args.model.dismissCallback({dismissTopics:this.dismissTopics,dismissPosts:this.dismissPosts,untrack:this.untrack}),this.args.closeModal()}},(0,_.setComponentTemplate)((0,b.createTemplateFactory)({id:"uFyzwI4L",block:'[[[1,"\\n    "],[8,[32,0],null,[["@closeModal","@title","@inline"],[[30,1],[30,0,["modalTitle"]],[30,2]]],[["body","footer"],[[[[1,"\\n        "],[10,2],[12],[1,"\\n"],[41,[30,0,["showDismissNewTopics"]],[[[1,"            "],[8,[32,1],[[24,0,"dismiss-topics"]],[["@labelKey","@labelCount","@checked"],[[30,0,["dismissNewTopicsLabel"]],[30,0,["countNewTopics"]],[30,0,["dismissTopics"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showDismissNewReplies"]],[[[1,"            "],[8,[32,1],[[24,0,"dismiss-posts"]],[["@labelKey","@labelCount","@checked"],[[30,0,["dismissNewRepliesLabel"]],[30,0,["countNewReplies"]],[30,0,["dismissPosts"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[8,[32,1],[[24,0,"untrack"]],[["@labelKey","@checked"],["topics.bulk.dismiss_new_modal.untrack",[30,0,["untrack"]]]],null],[1,"\\n        "],[13],[1,"\\n      "]],[]],[[[1,"\\n        "],[8,[32,2],[[24,1,"dismiss-read-confirm"],[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["dismissed"]],"check","topics.bulk.dismiss"]],null],[1,"\\n      "]],[]]]]],[1,"\\n  "]],["@closeModal","@inline"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/dismiss-new.js",scope:()=>[m.default,g.default,h.default],isStrictMode:!0}),a),r=a,i=(0,c.Z)(r.prototype,"untrack",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=(0,c.Z)(r.prototype,"dismissTopics",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o=(0,c.Z)(r.prototype,"dismissPosts",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,c.Z)(r.prototype,"dismissed",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"dismissed"),r.prototype),r)},58186:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(82006),s=n(48163);const o=(0,n(8620).createTemplateFactory)({id:"uP5EhAqN",block:'[[[8,[39,0],[[24,0,"dismiss-notification-confirmation"]],[["@headerClass","@closeModal"],["hidden",[30,1]]],[["body","footer"],[[[[1,"\\n    "],[1,[30,2,["confirmationMessage"]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,1],[[24,0,"btn-primary"]],[["@icon","@action","@label"],["check",[30,0,["dismiss"]],"notifications.dismiss_confirmation.dismiss"]],null],[1,"\\n    "],[8,[39,1],[[24,0,"btn-default"]],[["@action","@label"],[[30,1],"notifications.dismiss_confirmation.cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","d-button"]]',moduleName:"discourse/components/modal/dismiss-notification-confirmation.hbs",isStrictMode:!1});var a,l=n(31691);let c=(a=class extends i.default{dismiss(){this.args.model?.dismissNotifications?.(),this.args.closeModal()}},(0,r.Z)(a.prototype,"dismiss",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"dismiss"),a.prototype),a);(0,l.setComponentTemplate)(o,c)},62498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(23183);const a=(0,n(8620).createTemplateFactory)({id:"lDW2KtZm",block:'[[[8,[39,0],[[24,0,"dismiss-read-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],[[30,2,["title"]]],[["count"],[[30,2,["count"]]]]]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,"\\n      "],[8,[39,2],[[24,0,"dismiss-read-modal__stop-tracking"]],[["@labelKey","@checked"],["topics.bulk.also_dismiss_topics",[30,0,["dismissTopics"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"],[24,1,"dismiss-read-confirm"]],[["@action","@icon","@label"],[[28,[37,4],[[30,2,["dismissRead"]],[30,0,["dismissTopics"]]],null],"check","topics.bulk.dismiss"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","preference-checkbox","d-button","fn"]]',moduleName:"discourse/components/modal/dismiss-read.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"dismissTopics",c,this)}},c=(0,i.Z)(l.prototype,"dismissTopics",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),l);(0,u.setComponentTemplate)(a,d)},53504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(38864);const u=(0,n(8620).createTemplateFactory)({id:"NQMmRMMW",block:'[[[8,[39,0],[[24,0,"do-not-disturb-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["pause_notifications.title"],null],[30,1],[30,0,["flash"]]]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,null,[["default"],[[[[1,"\\n      "],[8,[39,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["30",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.half_hour"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["60",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.one_hour"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["120",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.two_hours"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[39,3],[[24,0,"do-not-disturb-tile"]],[["@tileId","@activeTile","@onChange"],["tomorrow",[30,2,["activeTile"]],[30,0,["saveDuration"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,1],["pause_notifications.options.tomorrow"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[2]]]]],[1,"\\n\\n    "],[8,[39,4],null,[["@action","@label"],[[30,0,["navigateToNotificationSchedule"]],"pause_notifications.set_schedule"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","grid"],false,["d-modal","i18n","tap-tile-grid","tap-tile","d-button"]]',moduleName:"discourse/components/modal/do-not-disturb.hbs",isStrictMode:!1});var d,p,h,m,g=n(31691);let f=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",p,this),(0,r.Z)(this,"router",h,this),(0,r.Z)(this,"flash",m,this)}async saveDuration(e){try{await this.currentUser.enterDoNotDisturbFor(e),this.args.closeModal()}catch(e){this.flash=(0,c.extractError)(e)}}navigateToNotificationSchedule(){this.router.transitionTo("preferences.notifications",this.currentUser),this.args.closeModal()}},p=(0,i.Z)(d.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(d.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(d.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"saveDuration",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"saveDuration"),d.prototype),(0,i.Z)(d.prototype,"navigateToNotificationSchedule",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"navigateToNotificationSchedule"),d.prototype),d);(0,g.setComponentTemplate)(u,f)},63875:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(55021);const u=(0,n(8620).createTemplateFactory)({id:"jR/Ja53k",block:'[[[8,[39,0],[[24,0,"download-calendar-modal"]],[["@title","@closeModal"],[[28,[37,1],["download_calendar.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,0],[14,0,"ics"],[12],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","ics"],[12],[1,"\\n          "],[8,[39,2],[[24,1,"ics"]],[["@name","@value","@selection","@onChange"],["select-calendar","ics",[30,0,["selectedCalendar"]],[28,[37,3],[[30,0,["selectCalendar"]],"ics"],null]]],null],[1,"\\n          "],[1,[28,[35,1],["download_calendar.save_ics"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"google"],[12],[1,"\\n        "],[10,"label"],[14,0,"radio"],[14,"for","google"],[12],[1,"\\n          "],[8,[39,2],[[24,1,"google"]],[["@name","@value","@selection","@onChange"],["select-calendar","google",[30,0,["selectedCalendar"]],[28,[37,3],[[30,0,["selectCalendar"]],"google"],null]]],null],[1,"\\n          "],[1,[28,[35,1],["download_calendar.save_google"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group remember"],[12],[1,"\\n      "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n        "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,0,["remember"]]]],null],[1,"\\n        "],[10,1],[12],[1,[28,[35,1],["download_calendar.remember"],null]],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,1],[12],[1,[28,[35,1],["download_calendar.remember_explanation"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["downloadCalendar"]],"download_calendar.download"]],null],[1,"\\n    "],[8,[39,5],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","radio-button","fn","input","d-button"]]',moduleName:"discourse/components/modal/download-calendar.hbs",isStrictMode:!1});var d,p,h,m,g=n(31691);let f=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",p,this),(0,r.Z)(this,"selectedCalendar",h,this),(0,r.Z)(this,"remember",m,this)}downloadCalendar(){this.remember&&(this.currentUser.set("user_option.default_calendar",this.selectedCalendar),this.currentUser.save(["default_calendar"])),"ics"===this.selectedCalendar?(0,c.downloadIcs)(this.args.model.calendar.title,this.args.model.calendar.dates,this.args.model.calendar.recurrenceRule):(0,c.downloadGoogle)(this.args.model.calendar.title,this.args.model.calendar.dates,this.args.model.calendar.recurrenceRule),this.args.closeModal()}selectCalendar(e){this.selectedCalendar=e}},p=(0,i.Z)(d.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(d.prototype,"selectedCalendar",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"ics"}}),m=(0,i.Z)(d.prototype,"remember",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(d.prototype,"downloadCalendar",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"downloadCalendar"),d.prototype),(0,i.Z)(d.prototype,"selectCalendar",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"selectCalendar"),d.prototype),d);(0,g.setComponentTemplate)(u,f)},75301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(85947),u=n(38864),d=n(50459),p=n(92635),h=n(82099);const m=(0,n(8620).createTemplateFactory)({id:"I6A4iZNr",block:'[[[8,[39,0],[[24,0,"edit-slow-mode-modal"]],[["@title","@closeModal","@flash"],[[28,[37,1],["topic.slow_mode_update.title"],null],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n        "],[1,[28,[35,1],["topic.slow_mode_update.description"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n        "],[1,[28,[35,1],["topic.slow_mode_update.select"],null]],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,2],[[24,0,"slow-mode-type"]],[["@content","@value","@onChange"],[[30,0,["slowModes"]],[30,0,["selectedSlowMode"]],[30,0,["setSlowModeDuration"]]]],null],[1,"\\n    "],[13],[1,"\\n"],[41,[30,0,["showCustomSelect"]],[[[1,"      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n          "],[1,[28,[35,1],["topic.slow_mode_update.hours"],null]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,4],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["hours"]],"number"]],null],[1,"\\n        "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n          "],[1,[28,[35,1],["topic.slow_mode_update.minutes"],null]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,4],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["minutes"]],"number"]],null],[1,"\\n        "],[10,"label"],[14,0,"slow-mode-label"],[12],[1,"\\n          "],[1,[28,[35,1],["topic.slow_mode_update.seconds"],null]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,4],[[24,0,"input-small"]],[["@value","@type"],[[30,0,["seconds"]],"number"]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,5],[[24,0,"enabled-until"]],[["@label","@labelClasses","@customShortcuts","@clearable","@input","@onChangeInput"],["topic.slow_mode_update.enabled_until","slow-mode-label",[30,0,["timeShortcuts"]],true,[30,2,["topic","slow_mode_enabled_until"]],[28,[37,6],[[30,0],[28,[37,7],[[30,2,["topic","slow_mode_enabled_until"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,8],[[24,0,"btn-primary"]],[["@disabled","@icon","@label","@action"],[[30,0,["submitDisabled"]],"hourglass-start",[30,0,["saveButtonLabel"]],[30,0,["enableSlowMode"]]]],null],[1,"\\n"],[41,[30,2,["topic","slow_mode_seconds"]],[[[1,"      "],[8,[39,8],[[24,0,"btn-danger"]],[["@action","@disabled","@label"],[[30,0,["disableSlowMode"]],[30,0,["submitDisabled"]],"topic.slow_mode_update.remove"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","combo-box","if","input","future-date-input","action","mut","d-button"]]',moduleName:"discourse/components/modal/edit-slow-mode.hbs",isStrictMode:!1});var g,f,b,_,y,w,v,k,x=n(31691);const T=[{id:"600",name:h.default.t("topic.slow_mode_update.durations.10_minutes")},{id:"900",name:h.default.t("topic.slow_mode_update.durations.15_minutes")},{id:"1800",name:h.default.t("topic.slow_mode_update.durations.30_minutes")},{id:"2700",name:h.default.t("topic.slow_mode_update.durations.45_minutes")},{id:"3600",name:h.default.t("topic.slow_mode_update.durations.1_hour")},{id:"7200",name:h.default.t("topic.slow_mode_update.durations.2_hours")},{id:"14400",name:h.default.t("topic.slow_mode_update.durations.4_hours")},{id:"28800",name:h.default.t("topic.slow_mode_update.durations.8_hours")},{id:"43200",name:h.default.t("topic.slow_mode_update.durations.12_hours")},{id:"86400",name:h.default.t("topic.slow_mode_update.durations.24_hours")},{id:"custom",name:h.default.t("topic.slow_mode_update.durations.custom")}];let S=(g=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"selectedSlowMode",b,this),(0,r.Z)(this,"hours",_,this),(0,r.Z)(this,"minutes",y,this),(0,r.Z)(this,"seconds",w,this),(0,r.Z)(this,"saveDisabled",v,this),(0,r.Z)(this,"flash",k,this);const e=parseInt(this.args.model.topic.slow_mode_seconds,10);if(e){const t=this.slowModes.find((t=>t.id===e.toString()));this.selectedSlowMode=t?e.toString():"custom",this._setFromSeconds(e)}}get slowModes(){return T}get saveButtonLabel(){return this.args.model.topic.slow_mode_seconds&&0!==this.args.model.topic.slow_mode_seconds?"topic.slow_mode_update.update":"topic.slow_mode_update.enable"}get timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,d.timeShortcuts)(e),n=t.monday();return n.label="time_shortcut.next_week",[t.laterToday(),t.tomorrow(),t.twoDays(),n,t.twoWeeks(),t.nextMonth(),t.twoMonths()]}get showCustomSelect(){return"custom"===this.selectedSlowMode}get durationIsSet(){return this.hours||this.minutes||this.seconds}async enableSlowMode(){this.saveDisabled=!0;const e=(0,c.toSeconds)(this._parseValue(this.hours),this._parseValue(this.minutes),this._parseValue(this.seconds));try{await p.default.setSlowMode(this.args.model.topic.id,e,this.args.model.topic.slow_mode_enabled_until),this.args.model.topic.set("slow_mode_seconds",e),this.args.closeModal()}catch{this.flash=h.default.t("generic_error")}finally{this.saveDisabled=!1}}async disableSlowMode(){this.saveDisabled=!0;try{await p.default.setSlowMode(this.args.model.topic.id,0),this.args.model.topic.set("slow_mode_seconds",0),this.args.closeModal()}catch(e){this.flash=(0,u.extractError)(e)}finally{this.saveDisabled=!1}}setSlowModeDuration(e){if("custom"!==e){let t=parseInt(e,10);this._setFromSeconds(t)}this.selectedSlowMode=e}_setFromSeconds(e){const{hours:t,minutes:n,seconds:r}=(0,c.fromSeconds)(e);this.hours=t,this.minutes=n,this.seconds=r}_parseValue(e){return parseInt(e,10)||0}},f=(0,i.Z)(g.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(g.prototype,"selectedSlowMode",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(g.prototype,"hours",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.Z)(g.prototype,"minutes",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(g.prototype,"seconds",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.Z)(g.prototype,"saveDisabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,i.Z)(g.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(g.prototype,"enableSlowMode",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"enableSlowMode"),g.prototype),(0,i.Z)(g.prototype,"disableSlowMode",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"disableSlowMode"),g.prototype),(0,i.Z)(g.prototype,"setSlowModeDuration",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"setSlowModeDuration"),g.prototype),g);(0,x.setComponentTemplate)(m,S)},61016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BUMP_TYPE:()=>C,CLOSE_AFTER_LAST_POST_STATUS_TYPE:()=>k,CLOSE_STATUS_TYPE:()=>v,DELETE_REPLIES_TYPE:()=>P,DELETE_STATUS_TYPE:()=>S,OPEN_STATUS_TYPE:()=>x,PUBLISH_TO_CATEGORY_STATUS_TYPE:()=>T,default:()=>O});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(57959),u=n(38864),d=n(35284),p=n(82099),h=n(53314);const m=(0,n(8620).createTemplateFactory)({id:"c9sMYXbQ",block:'[[[8,[39,0],[[24,"autoFocus","false"],[24,1,"topic-timer-modal"],[24,0,"edit-topic-timer-modal"]],[["@title","@flash","@closeModal"],[[28,[37,1],["topic.topic_status_update.title"],null],[30,0,["flash"]],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,2],null,[["@topic","@topicTimer","@timerTypes","@onChangeStatusType","@onChangeInput"],[[30,2,["topic"]],[30,0,["topicTimer"]],[30,0,["publicTimerTypes"]],[30,0,["onChangeStatusType"]],[30,0,["onChangeInput"]]]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@disabled","@label","@action","@isLoading"],[[30,0,["saveDisabled"]],"topic.topic_status_update.save",[30,0,["saveTimer"]],[30,0,["loading"]]]],null],[1,"\\n"],[41,[30,0,["topicTimer","execute_at"]],[[[1,"      "],[8,[39,3],[[24,0,"btn-danger"]],[["@action","@label"],[[30,0,["removeTimer"]],"topic.topic_status_update.remove"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","edit-topic-timer-form","d-button","if"]]',moduleName:"discourse/components/modal/edit-topic-timer.hbs",isStrictMode:!1});var g,f,b,_,y,w=n(31691);const v="close",k="close_after_last_post",x="open",T="publish_to_category",S="delete",C="bump",P="delete_replies";let O=(g=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"topicTimer",b,this),(0,r.Z)(this,"loading",_,this),(0,r.Z)(this,"flash",y,this)}get defaultStatusType(){return this.publicTimerTypes[0].id}get publicTimerTypes(){const e=[],{closed:t,category:n,isPrivateMessage:r,invisible:i}=this.args.model.topic;return t||(e.push({id:v,name:p.default.t("topic.auto_close.title")}),e.push({id:k,name:p.default.t("topic.auto_close_after_last_post.title")})),t&&e.push({id:x,name:p.default.t("topic.auto_reopen.title")}),this.args.model.topic.details.can_delete&&e.push({id:S,name:p.default.t("topic.auto_delete.title")}),e.push({id:C,name:p.default.t("topic.auto_bump.title")}),this.args.model.topic.details.can_delete&&e.push({id:P,name:p.default.t("topic.auto_delete_replies.title")}),t&&e.push({id:v,name:p.default.t("topic.temp_open.title")}),t||e.push({id:x,name:p.default.t("topic.temp_close.title")}),(n&&n.read_restricted||r||i)&&e.push({id:T,name:p.default.t("topic.publish_to_category.title")}),e}_setTimer(e,t,n,r,i){this.loading=!0,d.default.update(this.args.model.topic.id,e,r,n,i,t).then((n=>{if(e||t)this.args.model.updateTopicTimerProperty("execute_at",n.execute_at),this.args.model.updateTopicTimerProperty("duration_minutes",n.duration_minutes),this.args.model.updateTopicTimerProperty("category_id",n.category_id),this.args.model.updateTopicTimerProperty("closed",n.closed),this.args.closeModal();else{const e=this.createDefaultTimer();this.topicTime=e,this.args.model.setTopicTimer(e),this.onChangeInput(null,null)}})).catch(u.popupAjaxError).finally((()=>this.loading=!1))}createDefaultTimer(){const e=d.default.create({status_type:this.defaultStatusType});return this.args.model.setTopicTimer(e),e}onChangeStatusType(e){const t=k===e;this.topicTimer.based_on_last_post=t,this.args.model.updateTopicTimerProperty("based_on_last_post",t),this.topicTimer.status_type=e,this.args.model.updateTopicTimerProperty("status_type",e)}onChangeInput(e,t){moment.isMoment(t)&&(t=t.format(h.FORMAT)),this.topicTimer.updateTime=t,this.args.model.updateTopicTimerProperty("updateTime",t)}async saveTimer(){if(this.flash=null,!this.topicTimer.updateTime&&!this.topicTimer.duration_minutes)return void(this.flash=p.default.t("topic.topic_status_update.time_frame_required"));if(this.topicTimer.duration_minutes&&!this.topicTimer.updateTime){if(this.topicTimer.duration_minutes<=0)return void(this.flash=p.default.t("topic.topic_status_update.min_duration"));if(this.topicTimer.duration_minutes>10512e3)return void(this.flash=p.default.t("topic.topic_status_update.max_duration"))}let e=this.topicTimer.status_type;e===k&&(e=v),await this._setTimer(this.topicTimer.updateTime,this.topicTimer.duration_minutes,e,this.topicTimer.based_on_last_post,this.topicTimer.category_id)}async removeTimer(){let e=this.topicTimer.status_type;e===k&&(e=v),await this._setTimer(null,null,e),this.topicTimer.execute_at=null}},f=(0,i.Z)(g.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(g.prototype,"topicTimer",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new c.TrackedObject(this.args.model.topic?.topic_timer||this.createDefaultTimer())}}),_=(0,i.Z)(g.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,i.Z)(g.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(g.prototype,"createDefaultTimer",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"createDefaultTimer"),g.prototype),(0,i.Z)(g.prototype,"onChangeStatusType",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"onChangeStatusType"),g.prototype),(0,i.Z)(g.prototype,"onChangeInput",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"onChangeInput"),g.prototype),(0,i.Z)(g.prototype,"saveTimer",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"saveTimer"),g.prototype),(0,i.Z)(g.prototype,"removeTimer",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"removeTimer"),g.prototype),g);(0,w.setComponentTemplate)(m,O)},92098:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(49508),c=n(3055),u=n(38864);const d=(0,n(8620).createTemplateFactory)({id:"vyjjrRu0",block:'[[[8,[39,0],[[24,0,"edit-user-directory-columns-modal"]],[["@closeModal","@title","@flash"],[[30,1],[28,[37,1],["directory.edit_columns.title"],null],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["loading"]],[[[1,"      "],[1,[28,[35,3],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"edit-directory-columns-container"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["columns"]]],null]],null],null,[[[1,"          "],[10,0],[14,0,"edit-directory-column"],[12],[1,"\\n            "],[10,0],[14,0,"left-content"],[12],[1,"\\n              "],[10,"label"],[14,0,"column-name"],[12],[1,"\\n                "],[8,[39,6],null,[["@type","@checked"],["checkbox",[30,2,["enabled"]]]],null],[1,"\\n"],[41,[28,[37,7],null,[["column"],[[30,2]]]],[[[1,"                  "],[1,[28,[35,8],null,[["field","labelKey","icon"],[[30,2,["name"]],[30,0,["labelKey"]],[30,2,["icon"]]]]]],[1,"\\n"]],[]],[[[41,[28,[37,9],null,[["column"],[[30,2]]]],[[[1,"                  "],[1,[28,[35,8],null,[["field","translated"],[[30,2,["user_field","name"]],true]]]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,8],null,[["field","translated"],[[28,[37,1],[[30,2,["name"]]],null],true]]]],[1,"\\n                "]],[]]]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n            "],[10,0],[14,0,"right-content"],[12],[1,"\\n              "],[8,[39,10],[[24,0,"button-secondary move-column-up"]],[["@icon","@action"],["arrow-up",[28,[37,11],[[30,0,["moveUp"]],[30,2]],null]]],null],[1,"\\n              "],[8,[39,10],[[24,0,"button-secondary"]],[["@icon","@action"],["arrow-down",[28,[37,11],[[30,0,["moveDown"]],[30,2]],null]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n"]],[]]],[1,"  "]],[]],[[[1,"\\n    "],[8,[39,10],[[24,0,"btn-primary"]],[["@label","@action"],["directory.edit_columns.save",[30,0,["save"]]]],null],[1,"\\n    "],[8,[39,10],[[24,0,"btn-secondary reset-to-default"]],[["@label","@action"],["directory.edit_columns.reset_to_default",[30,0,["resetToDefault"]]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","column"],false,["d-modal","i18n","if","loading-spinner","each","-track-array","input","directory-column-is-automatic","directory-table-header-title","directory-column-is-user-field","d-button","fn"]]',moduleName:"discourse/components/modal/edit-user-directory-columns.hbs",isStrictMode:!1});var p,h,m,g,f,b=n(31691);const _="up",y="down";let w=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"loading",h,this),(0,r.Z)(this,"columns",m,this),(0,r.Z)(this,"labelKey",g,this),(0,r.Z)(this,"flash",f,this),this.setupColumns()}async setupColumns(){try{const e=await(0,c.ajax)("edit-directory-columns.json");this.loading=!1,this.columns=e.directory_columns.sort(((e,t)=>e.position>t.position?1:-1)).map((e=>({...e,enabled:Boolean(e.enabled)})))}catch(e){(0,u.popupAjaxError)(e)}}async save(){this.loading=!0,this.flash=null;const e={directory_columns:this.columns.map((e=>({id:e.id,enabled:e.enabled,position:e.position})))};try{await(0,c.ajax)("edit-directory-columns.json",{type:"PUT",data:e}),(0,l.reload)()}catch(e){this.loading=!1,this.flash=(0,u.extractError)(e)}}resetToDefault(){const e=this.columns.sort(((e,t)=>{const n=e.automatic_position||(e.user_field?.position||0)+1e3,r=t.automatic_position||(t.user_field?.position||0)+1e3;return n===r?e.name.localeCompare(t.name):n>r?1:-1})).map(((e,t)=>({...e,position:e.automatic_position||t+1,enabled:"automatic"===e.type})));this.columns=e}moveUp(e){this._moveColumn(_,e)}moveDown(e){this._moveColumn(y,e)}_moveColumn(e,t){if(e===_&&1===t.position||e===y&&t.position===this.columns.length)return;const n=t.position,r=e===_?n-1:n+1,i=this.columns.find((e=>e.position===r));t.position=r,i.position=n,this.columns=this.columns.sort(((e,t)=>e.position>t.position?1:-1))}},h=(0,i.Z)(p.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),m=(0,i.Z)(p.prototype,"columns",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"labelKey",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(p.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(p.prototype,"setupColumns",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"setupColumns"),p.prototype),(0,i.Z)(p.prototype,"save",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"save"),p.prototype),(0,i.Z)(p.prototype,"resetToDefault",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"resetToDefault"),p.prototype),(0,i.Z)(p.prototype,"moveUp",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"moveUp"),p.prototype),(0,i.Z)(p.prototype,"moveDown",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"moveDown"),p.prototype),p);(0,b.setComponentTemplate)(d,w)},42455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579);const c=(0,n(8620).createTemplateFactory)({id:"vRe1dHyq",block:'[[[8,[39,0],[[24,0,"explain-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.explain.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,2],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n      "],[10,"table"],[12],[1,"\\n        "],[10,"tbody"],[12],[1,"\\n          "],[10,"tr"],[12],[1,"\\n            "],[10,"th"],[12],[1,[28,[35,1],["review.explain.formula"],null]],[13],[1,"\\n            "],[10,"th"],[12],[1,[28,[35,1],["review.explain.subtotal"],null]],[13],[1,"\\n          "],[13],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["reviewableExplanation","scores"]]],null]],null],null,[[[1,"            "],[10,"tr"],[12],[1,"\\n              "],[10,"td"],[12],[1,"\\n                "],[8,[39,5],null,[["@value"],["1.0"]],null],[1,"\\n                "],[8,[39,5],null,[["@value","@label"],[[30,2,["type_bonus"]],"type_bonus"]],null],[1,"\\n                "],[8,[39,5],null,[["@value","@label"],[[30,2,["take_action_bonus"]],"take_action_bonus"]],null],[1,"\\n                "],[8,[39,5],null,[["@value","@label"],[[30,2,["trust_level_bonus"]],"trust_level_bonus"]],null],[1,"\\n                "],[8,[39,5],null,[["@value","@label"],[[30,2,["user_accuracy_bonus"]],"user_accuracy_bonus"]],null],[1,"\\n              "],[13],[1,"\\n              "],[10,"td"],[14,0,"sum"],[12],[1,[28,[35,6],[[30,2,["score"]]],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[2]],null],[1,"          "],[10,"tr"],[14,0,"total"],[12],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,1],["review.explain.total"],null]],[13],[1,"\\n            "],[10,"td"],[14,0,"sum"],[12],[1,"\\n              "],[1,[28,[35,6],[[30,0,["reviewableExplanation","total_score"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,"table"],[14,0,"thresholds"],[12],[1,"\\n        "],[10,"tbody"],[12],[1,"\\n          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,1],["review.explain.min_score_visibility"],null]],[13],[1,"\\n            "],[10,"td"],[14,0,"sum"],[12],[1,"\\n              "],[1,[28,[35,6],[[30,0,["reviewableExplanation","min_score_visibility"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,1],["review.explain.score_to_hide"],null]],[13],[1,"\\n            "],[10,"td"],[14,0,"sum"],[12],[1,"\\n              "],[1,[28,[35,6],[[30,0,["reviewableExplanation","hide_post_score"]]],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,7],null,[["@action","@label"],[[30,1],"close"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","s"],false,["d-modal","i18n","conditional-loading-spinner","each","-track-array","score-value","float","d-button"]]',moduleName:"discourse/components/modal/explain-reviewable.hbs",isStrictMode:!1});var u,d,p,h,m=n(31691);let g=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"store",d,this),(0,r.Z)(this,"loading",p,this),(0,r.Z)(this,"reviewableExplanation",h,this),this.loadExplanation()}async loadExplanation(){try{const e=await this.store.find("reviewable-explanation",this.args.model.reviewable.id);this.reviewableExplanation=e}finally{this.loading=!1}}},d=(0,i.Z)(u.prototype,"store",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(u.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),h=(0,i.Z)(u.prototype,"reviewableExplanation",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,i.Z)(u.prototype,"loadExplanation",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"loadExplanation"),u.prototype),u);(0,m.setComponentTemplate)(c,g)},33813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"OX9V+/2m",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["post.quote_edit"],null],[30,1]]],[["default"],[[[[1,"\\n  "],[8,[39,2],null,[["@newValue","@initialValue","@post","@close"],[[30,2,["newValue"]],[30,2,["initialValue"]],[30,2,["post"]],[30,1]]],null],[1,"\\n"]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","fast-edit"]]',moduleName:"discourse/components/modal/fast-edit.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},47639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(3055),c=n(38864);const u=(0,n(8620).createTemplateFactory)({id:"aQKWszNB",block:'[[[8,[39,0],[[24,0,"feature-topic-on-profile choose-topic-modal"],[24,1,"choosing-topic"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.feature_topic_on_profile.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,2],null,[["@currentTopicId","@selectedTopicId","@additionalFilters","@label","@topicChangedCallback","@loadOnInit"],[[30,2,["user","featured_topic","id"]],[30,0,["newFeaturedTopicId"]],"status:public","user.feature_topic_on_profile.search_label",[30,0,["newTopicSelected"]],true]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary save-featured-topic-on-profile"]],[["@action","@disabled","@label"],[[30,0,["save"]],[30,0,["noTopicSelected"]],"user.feature_topic_on_profile.save"]],null],[1,"\\n    "],[8,[39,3],[[24,0,"btn-flat"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","choose-topic","d-button"]]',moduleName:"discourse/components/modal/feature-topic-on-profile.hbs",isStrictMode:!1});var d,p,h,m=n(31691);let g=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"newFeaturedTopic",p,this),(0,r.Z)(this,"saving",h,this)}get noTopicSelected(){return!this.newFeaturedTopic}async save(){try{this.saving=!0,await(0,l.ajax)(`/u/${this.args.model.user.username}/feature-topic`,{type:"PUT",data:{topic_id:this.newFeaturedTopic.id}}),this.args.model.setFeaturedTopic(this.newFeaturedTopic),this.args.closeModal()}catch(e){(0,c.popupAjaxError)(e)}finally{this.saving=!1}}newTopicSelected(e){this.newFeaturedTopic=e}},p=(0,i.Z)(d.prototype,"newFeaturedTopic",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=(0,i.Z)(d.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(d.prototype,"save",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"save"),d.prototype),(0,i.Z)(d.prototype,"newTopicSelected",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"newTopicSelected"),d.prototype),d);(0,m.setComponentTemplate)(u,g)},19040:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n.n(a),c=n(17579),u=n(6659),d=n(3055),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"1yu4kcOe",block:'[[[8,[39,0],[[24,0,"feature-topic"]],[["@title","@closeModal"],[[28,[37,1],["topic.feature_topic.title"],null],[30,1]]],[["body"],[[[[1,"\\n"],[41,[30,2,["topic","pinned_at"]],[[[1,"      "],[10,0],[14,0,"feature-section"],[12],[1,"\\n        "],[10,0],[14,0,"desc"],[12],[1,"\\n"],[41,[30,2,["topic","pinned_globally"]],[[[1,"            "],[10,2],[12],[1,"\\n              "],[8,[39,3],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1,"                  "],[1,[28,[35,4],[[28,[37,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,4],[[28,[37,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1,"              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[12],[1,[28,[35,1],["topic.feature_topic.global_pin_note"],null]],[13],[1,"\\n"]],[]],[[[1,"            "],[10,2],[12],[1,"\\n              "],[8,[39,3],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n                "],[1,[28,[35,4],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[12],[1,[28,[35,1],["topic.feature_topic.pin_note"],null]],[13],[1,"\\n"]],[]]],[1,"          "],[10,2],[12],[1,[28,[35,4],[[30,0,["unPinMessage"]]],null]],[13],[1,"\\n          "],[10,2],[12],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["unpin"]],"thumbtack","topic.feature.unpin"]],null],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"feature-section"],[12],[1,"\\n        "],[10,0],[14,0,"desc"],[12],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[8,[39,3],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n              "],[1,[28,[35,4],[[30,0,["alreadyPinnedMessage"]]],null]],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,1],["topic.feature_topic.pin_note"],null]],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1,"            "],[10,2],[12],[1,"\\n              "],[1,[28,[35,4],[[30,0,["pinMessage"]]],null]],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[14,0,"with-validation"],[12],[1,"\\n              "],[8,[39,6],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[37,7],[[30,0],[28,[37,8],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n              "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[1,"            "],[10,2],[14,0,"with-validation"],[12],[1,"\\n              "],[1,[28,[35,4],[[30,0,["pinMessage"]]],null]],[1,"\\n              "],[10,1],[12],[1,"\\n                "],[1,[28,[35,10],["far-clock"],null]],[1,"\\n                "],[8,[39,6],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedInCategoryUntil"]],[28,[37,7],[[30,0],[28,[37,8],[[30,2,["topic","pinnedInCategoryUntil"]]],null]],null]]],null],[1,"\\n                "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinInCategoryValidation"]],[30,0,["pinInCategoryTipShownAt"]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]]],[1,"          "],[10,2],[12],[1,"\\n            "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["pin"]],"thumbtack","topic.feature.pin"]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["canPinGlobally"]],[[[1,"        "],[10,"hr"],[12],[13],[1,"\\n        "],[10,0],[14,0,"feature-section"],[12],[1,"\\n          "],[10,0],[14,0,"desc"],[12],[1,"\\n            "],[10,2],[12],[1,"\\n              "],[8,[39,3],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["pinnedGloballyCount"]],[[[1,"                  "],[1,[28,[35,4],[[28,[37,1],["topic.feature_topic.already_pinned_globally"],[["count"],[[30,0,["pinnedGloballyCount"]]]]]],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,4],[[28,[37,1],["topic.feature_topic.not_pinned_globally"],null]],null]],[1,"\\n"]],[]]],[1,"              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,2],[12],[1,"\\n              "],[1,[28,[35,1],["topic.feature_topic.global_pin_note"],null]],[1,"\\n            "],[13],[1,"\\n"],[41,[30,0,["site","isMobileDevice"]],[[[1,"              "],[10,2],[12],[1,"\\n                "],[1,[28,[35,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n              "],[13],[1,"\\n              "],[10,2],[14,0,"with-validation"],[12],[1,"\\n                "],[8,[39,6],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[37,7],[[30,0],[28,[37,8],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n                "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[10,2],[14,0,"with-validation"],[12],[1,"\\n                "],[1,[28,[35,1],["topic.feature_topic.pin_globally"],null]],[1,"\\n                "],[10,1],[12],[1,"\\n                  "],[1,[28,[35,10],["far-clock"],null]],[1,"\\n                  "],[8,[39,6],[[24,0,"pin-until"]],[["@clearable","@input","@onChangeInput"],[true,[30,2,["topic","pinnedGloballyUntil"]],[28,[37,7],[[30,0],[28,[37,8],[[30,2,["topic","pinnedGloballyUntil"]]],null]],null]]],null],[1,"\\n                  "],[8,[39,9],null,[["@validation","@shownAt"],[[30,0,["pinGloballyValidation"]],[30,0,["pinGloballyTipShownAt"]]]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]]],[1,"            "],[10,2],[12],[1,"\\n              "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["pinGlobally"]],"thumbtack","topic.feature.pin_globally"]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]]],[1,"    "],[10,"hr"],[12],[13],[1,"\\n"],[41,[30,0,["currentUser","staff"]],[[[1,"      "],[10,0],[14,0,"feature-section"],[12],[1,"\\n        "],[10,0],[14,0,"desc"],[12],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[8,[39,3],null,[["@size","@condition"],["small",[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["bannerCount"]],[[[1,"                "],[1,[28,[35,4],[[28,[37,1],["topic.feature_topic.banner_exists"],null]],null]],[1,"\\n"]],[]],[[[1,"                "],[1,[28,[35,4],[[28,[37,1],["topic.feature_topic.no_banner_exists"],null]],null]],[1,"\\n"]],[]]],[1,"            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,1],["topic.feature_topic.banner_note"],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n"],[41,[30,2,["topic","isBanner"]],[[[1,"              "],[1,[28,[35,1],["topic.feature_topic.remove_banner"],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[35,1],["topic.feature_topic.make_banner"],null]],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n"],[41,[30,2,["topic","isBanner"]],[[[1,"              "],[8,[39,5],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["removeBanner"]],"thumbtack","topic.feature.remove_banner"]],null],[1,"\\n"]],[]],[[[1,"              "],[8,[39,5],[[24,0,"btn-primary make-banner"]],[["@action","@icon","@label"],[[30,0,["makeBanner"]],"thumbtack","topic.feature.make_banner"]],null],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","if","conditional-loading-spinner","html-safe","d-button","future-date-input","action","mut","popup-input-tip","d-icon"]]',moduleName:"discourse/components/modal/feature-topic.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v,k,x=n(31691);let T=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"dialog",f,this),(0,r.Z)(this,"loading",b,this),(0,r.Z)(this,"pinnedInCategoryCount",_,this),(0,r.Z)(this,"pinnedGloballyCount",y,this),(0,r.Z)(this,"bannerCount",w,this),(0,r.Z)(this,"pinInCategoryTipShownAt",v,this),(0,r.Z)(this,"pinGloballyTipShownAt",k,this),this.loadFeatureStats()}get categoryLink(){return(0,u.categoryLinkHTML)(this.args.model.topic.category,{allowUncategorized:!0})}get unPinMessage(){let e="topic.feature_topic.unpin";this.args.model.topic.pinned_globally&&(e+="_globally"),moment(this.args.model.topic.pinned_until)>moment()&&(e+="_until");const t=moment(this.args.model.topic.pinned_until).format("LL");return p.default.t(e,{categoryLink:this.categoryLink,until:t})}get canPinGlobally(){return this.currentUser.canManageTopic&&this.args.model.topic.details.can_pin_unpin_topic}get pinMessage(){return p.default.t("topic.feature_topic.pin",{categoryLink:this.categoryLink})}get alreadyPinnedMessage(){const e=0===this.pinnedInCategoryCount?"topic.feature_topic.not_pinned":"topic.feature_topic.already_pinned";return p.default.t(e,{categoryLink:this.categoryLink,count:this.pinnedInCategoryCount})}get pinDisabled(){return!this._isDateValid(this.parsedPinnedInCategoryUntil)}get pinGloballyDisabled(){return!this._isDateValid(this.parsedPinnedGloballyUntil)}get parsedPinnedInCategoryUntil(){return this._parseDate(this.args.model.topic.pinnedInCategoryUntil)}get parsedPinnedGloballyUntil(){return this._parseDate(this.args.model.topic.pinnedGloballyUntil)}get pinInCategoryValidation(){if(this.pinDisabled)return l().create({failed:!0,reason:p.default.t("topic.feature_topic.pin_validation")})}get pinGloballyValidation(){if(this.pinGloballyDisabled)return l().create({failed:!0,reason:p.default.t("topic.feature_topic.pin_validation")})}_parseDate(e){return moment(e,["YYYY-MM-DD","YYYY-MM-DD HH:mm"])}_isDateValid(e){return e.isValid()&&e>moment()}async loadFeatureStats(){try{this.loading=!0;const e=await(0,d.ajax)("/topics/feature_stats.json",{data:{category_id:this.args.model.topic.category.id}});e&&(this.pinnedInCategoryCount=e.pinned_in_category_count,this.pinnedGloballyCount=e.pinned_globally_count,this.bannerCount=e.banner_count)}finally{this.loading=!1}}async _confirmBeforePinningGlobally(){this.pinnedGloballyCount<4?(this.args.model.pinGlobally(),this.args.closeModal()):this.dialog.yesNoConfirm({message:p.default.t("topic.feature_topic.confirm_pin_globally",{count:this.pinnedGloballyCount}),didConfirm:()=>{this.args.model.pinGlobally(),this.args.closeModal()}})}pin(){this.pinDisabled?this.pinInCategoryTipShownAt=Date.now():(this.args.model.togglePinned(),this.args.closeModal())}pinGlobally(){this.pinGloballyDisabled?this.pinGloballyTipShownAt=Date.now():this._confirmBeforePinningGlobally()}unpin(){this.args.model.togglePinned(),this.args.closeModal()}makeBanner(){this.args.model.makeBanner(),this.args.closeModal()}removeBanner(){this.args.model.removeBanner(),this.args.closeModal()}},g=(0,i.Z)(m.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"dialog",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_=(0,i.Z)(m.prototype,"pinnedInCategoryCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),y=(0,i.Z)(m.prototype,"pinnedGloballyCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),w=(0,i.Z)(m.prototype,"bannerCount",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),v=(0,i.Z)(m.prototype,"pinInCategoryTipShownAt",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,i.Z)(m.prototype,"pinGloballyTipShownAt",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(m.prototype,"loadFeatureStats",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"loadFeatureStats"),m.prototype),(0,i.Z)(m.prototype,"pin",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"pin"),m.prototype),(0,i.Z)(m.prototype,"pinGlobally",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"pinGlobally"),m.prototype),(0,i.Z)(m.prototype,"unpin",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"unpin"),m.prototype),(0,i.Z)(m.prototype,"makeBanner",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"makeBanner"),m.prototype),(0,i.Z)(m.prototype,"removeBanner",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"removeBanner"),m.prototype),m);(0,x.setComponentTemplate)(h,T)},20816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(49508),u=n(77348),d=n(7223),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"CTDcmWRO",block:'[[[8,[39,0],[[24,0,"flag-modal"],[4,[38,2],["keydown",[30,0,["onKeydown"]]],null]],[["@bodyClass","@title","@submitOnEnter","@closeModal"],["flag-modal-body",[28,[37,1],[[30,0,["title"]]],null],false,[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[12],[1,"\\n      "],[8,[39,3],null,[["@nameKey","@flags"],[[30,0,["selected","name_key"]],[30,0,["flagsAvailable"]]]],[["default"],[[[[1,"\\n        "],[8,[39,4],null,[["@flag","@message","@isWarning","@selectedFlag","@username","@staffFlagsAvailable","@changePostActionType"],[[30,2],[30,0,["message"]],[30,0,["isWarning"]],[30,0,["selected"]],[30,3,["flagModel","username"]],[30,0,["staffFlagsAvailable"]],[30,0,["changePostActionType"]]]],null],[1,"\\n      "]],[2]]]]],[1,"\\n    "],[13],[1,"\\n    "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["flag-modal-bottom","div",[28,[37,6],null,[["post"],[[30,3,["flagModel"]]]]]]],null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,7],[[24,0,"btn-primary flag-modal__create-flag"]],[["@action","@disabled","@title","@icon","@label"],[[30,0,["createFlag"]],[28,[37,8],[[30,0,["submitEnabled"]]],null],"flagging.submit_tooltip",[52,[30,0,["selected","is_custom_flag"]],"envelope","flag"],[30,0,["submitLabel"]]]],null],[1,"\\n\\n"],[41,[30,0,["canSendWarning"]],[[[1,"      "],[8,[39,7],[[24,0,"btn-danger flag-modal__send-warning"]],[["@action","@disabled","@icon","@label"],[[30,0,["createFlagAsWarning"]],[28,[37,8],[[30,0,["submitEnabled"]]],null],"exclamation-triangle","flagging.official_warning"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canTakeAction"]],[[[1,"      "],[8,[39,10],[[24,0,"flag-modal__take-action"]],[["@bundle","@performAction","@reviewableUpdating"],[[30,0,["flagActions"]],[30,0,["takeAction"]],[28,[37,8],[[30,0,["submitEnabled"]]],null]]],null],[1,"\\n\\n      "],[8,[39,7],[[24,0,"btn-danger flag-modal__flag-for-review"]],[["@action","@disabled","@icon","@label"],[[30,0,["flagForReview"]],[28,[37,8],[[30,0,["submitEnabled"]],[30,0,["notifyModeratorsFlag"]]],null],"exclamation-triangle","flagging.flag_for_review"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showDeleteSpammer"]],[[[1,"      "],[8,[39,7],[[24,0,"btn-danger delete-spammer flag-modal__delete-spammer"]],[["@action","@disabled","@icon","@label"],[[30,0,["deleteSpammer"]],[28,[37,8],[[30,0,["submitEnabled"]]],null],"exclamation-triangle","flagging.delete_spammer"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","f","@model"],false,["d-modal","i18n","on","flag-selection","flag-action-type","plugin-outlet","hash","d-button","not","if","reviewable-bundled-action"]]',moduleName:"discourse/components/modal/flag.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v,k,x,T,S=n(31691);let C=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"adminTools",g,this),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"siteSettings",b,this),(0,r.Z)(this,"site",_,this),(0,r.Z)(this,"appEvents",y,this),(0,r.Z)(this,"userDetails",w,this),(0,r.Z)(this,"selected",v,this),(0,r.Z)(this,"message",k,this),(0,r.Z)(this,"isWarning",x,this),(0,r.Z)(this,"spammerDetails",T,this),this.adminTools?.checkSpammer(this.args.model.flagModel.user_id).then((e=>this.spammerDetails=e))}get flagActions(){return{icon:"gavel",label:p.default.t("flagging.take_action"),actions:[{id:"agree_and_hide",icon:"thumbs-up",label:p.default.t("flagging.take_action_options.default.title"),description:p.default.t("flagging.take_action_options.default.details")},{id:"agree_and_suspend",icon:"ban",label:p.default.t("flagging.take_action_options.suspend.title"),description:p.default.t("flagging.take_action_options.suspend.details"),client_action:"suspend"},{id:"agree_and_silence",icon:"microphone-slash",label:p.default.t("flagging.take_action_options.silence.title"),description:p.default.t("flagging.take_action_options.silence.details"),client_action:"silence"}]}}get canSendWarning(){return!this.args.model.flagTarget.targetsTopic()&&this.currentUser.staff&&"notify_user"===this.selected?.name_key}get showDeleteSpammer(){return this.spammerDetails?.canDelete&&"spam"===this.selected?.name_key}get submitLabel(){return this.selected?.is_custom_flag?this.args.model.flagTarget.customSubmitLabel():this.args.model.flagTarget.submitLabel()}get title(){return this.args.model.flagTarget.title()}get flagsAvailable(){return this.args.model.flagTarget.flagsAvailable(this)}get staffFlagsAvailable(){return this.flagsAvailable.length>1}get submitEnabled(){if(!this.selected)return!1;if(!this.selected.is_custom_flag)return!0;const e=this.message?.length||0;return e>=this.siteSettings.min_personal_message_post_length&&e<=u.MAX_MESSAGE_LENGTH}get notifyModeratorsFlag(){return this.flagsAvailable.find((e=>"notify_moderators"===e.id))}get canTakeAction(){return!this.args.model.flagTarget.targetsTopic()&&!this.selected?.is_custom_flag&&this.currentUser.staff}onKeydown(e){if(this.submitEnabled&&"Enter"===e.key&&(e.ctrlKey||e.metaKey))return this.createFlag(),!1}async penalize(e,t){if(!this.adminTools)return;const n=await d.default.findByUsername(this.args.model.flagModel.username),r={before:t};return this.args.model.flagTarget.editable()&&(r.postId=this.args.model.flagModel.id,r.postEdit=this.args.model.flagModel.cooked),this.adminTools[e](n,r)}async deleteSpammer(){this.spammerDetails&&(await this.spammerDetails.deleteUser(),(0,c.reload)())}async takeAction(e){"suspend"===e.client_action?await this.penalize("showSuspendModal",(()=>this.createFlag({takeAction:!0,skipClose:!0}))):"silence"===e.client_action?await this.penalize("showSilenceModal",(()=>this.createFlag({takeAction:!0,skipClose:!0}))):e.client_action?console.error(`No handler for ${e.client_action} found`):(this.args.model.setHidden(),this.createFlag({takeAction:!0}))}createFlag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selected.is_custom_flag&&(e.message=this.message),this.args.model.flagTarget.create(this,e)}createFlagAsWarning(){this.createFlag({isWarning:!0}),this.args.model.setHidden()}flagForReview(){this.selected||=this.notifyModeratorsFlag,this.createFlag({queue_for_review:!0}),this.args.model.setHidden()}changePostActionType(e){this.selected=e}},g=(0,i.Z)(m.prototype,"adminTools",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(m.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.Z)(m.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(m.prototype,"userDetails",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.Z)(m.prototype,"selected",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.Z)(m.prototype,"message",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.Z)(m.prototype,"isWarning",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=(0,i.Z)(m.prototype,"spammerDetails",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"onKeydown",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"onKeydown"),m.prototype),(0,i.Z)(m.prototype,"penalize",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"penalize"),m.prototype),(0,i.Z)(m.prototype,"deleteSpammer",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"deleteSpammer"),m.prototype),(0,i.Z)(m.prototype,"takeAction",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"takeAction"),m.prototype),(0,i.Z)(m.prototype,"createFlag",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"createFlag"),m.prototype),(0,i.Z)(m.prototype,"createFlagAsWarning",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"createFlagAsWarning"),m.prototype),(0,i.Z)(m.prototype,"flagForReview",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"flagForReview"),m.prototype),(0,i.Z)(m.prototype,"changePostActionType",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"changePostActionType"),m.prototype),m);(0,S.setComponentTemplate)(h,C)},99594:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(24434),u=n(33217),d=n(3055),p=n(38864),h=n(59469),m=n(62617),g=n(47582),f=n(82099);const b=(0,n(8620).createTemplateFactory)({id:"0MVP7/tA",block:'[[[8,[39,0],[[24,0,"forgot-password-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["forgot_password.title"],null],[30,1],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1,"      "],[1,[28,[35,3],[[30,0,["offerHelp"]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["siteSettings","hide_email_address_taken"]],[[[1,"      "],[10,"label"],[14,"for","username-or-email"],[12],[1,"\\n        "],[1,[28,[35,1],["forgot_password.invite_no_username"],null]],[1,"\\n      "],[13],[1,"\\n      "],[11,"input"],[16,2,[30,0,["emailOrUsername"]]],[16,"placeholder",[28,[37,1],["email"],null]],[24,1,"username-or-email"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,4,"text"],[4,[38,4],["input",[30,0,["updateEmailOrUsername"]]],null],[12],[13],[1,"\\n"]],[]],[[[1,"      "],[10,2],[12],[1,[28,[35,1],["forgot_password.invite"],null]],[13],[1,"\\n      "],[10,"label"],[14,"for","username-or-email"],[12],[1,"\\n        "],[1,[28,[35,1],["forgot_password.email-username"],null]],[1,"\\n      "],[13],[1,"\\n      "],[11,"input"],[16,2,[30,0,["emailOrUsername"]]],[16,"placeholder",[28,[37,1],["login.email_placeholder"],null]],[24,1,"username-or-email"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,4,"text"],[4,[38,4],["input",[30,0,["updateEmailOrUsername"]]],null],[12],[13],[1,"\\n    "]],[]]]],[]]],[1,"  "]],[]],[[[1,"\\n"],[41,[30,0,["offerHelp"]],[[[1,"      "],[8,[39,5],[[24,0,"btn-large btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,1],"forgot_password.button_ok"]],null],[1,"\\n"],[41,[51,[30,0,["helpSeen"]]],[[[1,"        "],[8,[39,5],[[24,0,"btn-large"]],[["@action","@label","@icon"],[[30,0,["help"]],"forgot_password.button_help","question-circle"]],null],[1,"\\n"]],[]],null]],[]],[[[1,"      "],[8,[39,5],[[24,0,"btn-primary forgot-password-reset"],[24,4,"submit"]],[["@action","@disabled","@label"],[[30,0,["resetPassword"]],[30,0,["submitDisabled"]],"forgot_password.reset"]],null],[1,"\\n"]],[]]],[1,"  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","if","html-safe","on","d-button","unless"]]',moduleName:"discourse/components/modal/forgot-password.hbs",isStrictMode:!1});var _,y,w,v,k,x,T,S=n(31691);let C=(_=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",y,this),(0,r.Z)(this,"emailOrUsername",w,this),(0,r.Z)(this,"disabled",v,this),(0,r.Z)(this,"helpSeen",k,this),(0,r.Z)(this,"offerHelp",x,this),(0,r.Z)(this,"flash",T,this)}get submitDisabled(){return!!this.disabled||(this.siteSettings.hide_email_address_taken?!this.emailOrUsername.includes("@"):(0,u.isEmpty)(this.emailOrUsername.trim()))}updateEmailOrUsername(e){this.emailOrUsername=e.target.value}help(){this.offerHelp=f.default.t("forgot_password.help",{basePath:(0,g.default)("")}),this.helpSeen=!0}async resetPassword(){if(this.submitDisabled)return!1;this.disabled=!0,this.flash=null;try{const e=await(0,d.ajax)("/session/forgot_password",{data:{login:this.emailOrUsername.trim()},type:"POST"}),t=(0,m.escapeExpression)(this.emailOrUsername);let n="forgot_password.complete";n+=t.match(/@/)?"_email":"_username",!1===e.user_found?(n+="_not_found",this.flash=(0,c.htmlSafe)(f.default.t(n,{email:t,username:t}))):(n+=e.user_found?"_found":"",this.emailOrUsername="",this.offerHelp=f.default.t(n,{email:t,username:t}),this.helpSeen=!e.user_found)}catch(e){this.flash=(0,p.extractError)(e)}finally{this.disabled=!1}}},y=(0,i.Z)(_.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(_.prototype,"emailOrUsername",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,h.default)("email")||this.args.model?.emailOrUsername||""}}),v=(0,i.Z)(_.prototype,"disabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,i.Z)(_.prototype,"helpSeen",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,i.Z)(_.prototype,"offerHelp",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.Z)(_.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(_.prototype,"updateEmailOrUsername",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"updateEmailOrUsername"),_.prototype),(0,i.Z)(_.prototype,"help",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"help"),_.prototype),(0,i.Z)(_.prototype,"resetPassword",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"resetPassword"),_.prototype),_);(0,S.setComponentTemplate)(b,C)},3074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"pchady3e",block:'[[[8,[39,0],[[24,0,"form-template-form-preview-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["admin.form_templates.preview_modal.title"],null]]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,[["@content"],[[30,2]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@content"],false,["d-modal","i18n","form-template-field/wrapper"]]',moduleName:"discourse/components/modal/form-template-form-preview.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},65442:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(33933),c=n(14347);const u=(0,n(8620).createTemplateFactory)({id:"OxotvjRw",block:'[[[8,[39,0],[[24,0,"fullscreen-code-modal -max"],[4,[38,2],[[30,0,["applyCodeblockButtons"]]],null]],[["@title","@closeModal"],[[28,[37,1],["copy_codeblock.view_code"],null],[30,0,["closeModal"]]]],[["body"],[[[[1,"\\n    "],[10,"pre"],[12],[1,"      "],[10,"code"],[15,0,[30,1,["codeClasses"]]],[12],[1,[30,1,["code"]]],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]]],["@model"],false,["d-modal","i18n","did-insert"]]',moduleName:"discourse/components/modal/fullscreen-code.hbs",isStrictMode:!1});var d,p,h,m=n(31691);let g=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",p,this),(0,r.Z)(this,"session",h,this)}closeModal(){this.codeBlockButtons.cleanup(),this.args.closeModal()}applyCodeblockButtons(e){const t=e.querySelector(".d-modal__body");(0,c.default)(t,this.siteSettings,this.session),this.codeBlockButtons=new l.default({showFullscreen:!1,showCopy:!0}),this.codeBlockButtons.attachToGeneric(t)}},p=(0,i.Z)(d.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(d.prototype,"session",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"closeModal",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"closeModal"),d.prototype),(0,i.Z)(d.prototype,"applyCodeblockButtons",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"applyCodeblockButtons"),d.prototype),d);(0,m.setComponentTemplate)(u,g)},31285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"XUrxWMpj",block:'[[[8,[39,0],[[24,0,"fullscreen-table-modal -max"]],[["@title","@closeModal"],[[28,[37,1],["fullscreen_table.view_table"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[1,[30,2,["tableHtml"]]],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n"]]',moduleName:"discourse/components/modal/fullscreen-table.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},8545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(38864),c=n(29775),u=n(47774),d=n(6566),p=n(47582),h=n(82099);const m=(0,n(8620).createTemplateFactory)({id:"8KQbvxlb",block:'[[[8,[39,0],[[24,0,"grant-badge-modal"],[4,[38,2],[[30,0,["loadBadges"]]],null]],[["@bodyClass","@closeModal","@flash","@flashType","@title"],["grant-badge",[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[37,1],["admin.badges.grant_badge"],null]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["noAvailableBadges"]],[[[1,"        "],[10,2],[12],[1,[28,[35,1],["admin.badges.no_badges"],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[10,2],[12],[1,"\\n          "],[8,[39,5],null,[["@value","@content","@onChange","@options"],[[30,0,["selectedBadgeId"]],[30,0,["availableBadges"]],[28,[37,6],[[30,0],[28,[37,7],[[30,0,["selectedBadgeId"]]],null]],null],[28,[37,8],null,[["filterable","none"],[true,"badges.none"]]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "]],[]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,9],[[24,0,"btn-primary"]],[["@disabled","@action","@label"],[[30,0,["buttonDisabled"]],[30,0,["performGrantBadge"]],"admin.badges.grant"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert","conditional-loading-spinner","if","combo-box","action","mut","hash","d-button"]]',moduleName:"discourse/components/modal/grant-badge.hbs",isStrictMode:!1});var g,f,b,_,y,w,v,k,x,T,S=n(31691);function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let P=(T=new WeakSet,g=class extends s.default{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=T),t.add(e),(0,r.Z)(this,"loading",f,this),(0,r.Z)(this,"saving",b,this),(0,r.Z)(this,"selectedBadgeId",_,this),(0,r.Z)(this,"flash",y,this),(0,r.Z)(this,"flashType",w,this),(0,r.Z)(this,"allBadges",v,this),(0,r.Z)(this,"userBadges",k,this),(0,r.Z)(this,"availableBadges",x,this)}get noAvailableBadges(){this.availableBadges.length}get post(){return this.args.model.selectedPost}get buttonDisabled(){return this.saving||!(0,c.isBadgeGrantable)(this.selectedBadgeId,this.availableBadges)}async loadBadges(){this.loading=!0;try{this.allBadges=await u.default.findAll(),this.userBadges=await d.default.findByUsername(this.post.username),C(this,T,O).call(this)}catch(e){this.flash=(0,l.extractError)(e),this.flashType="error"}finally{this.loading=!1}}async performGrantBadge(){try{this.saving=!0;const e=this.post.username,t=await d.default.grant(this.selectedBadgeId,e,(0,p.default)(this.post.url));this.userBadges.pushObject(t),C(this,T,O).call(this),this.selectedBadgeId=null,this.flash=h.default.t("badges.successfully_granted",{username:e,badge:t.get("badge.name")}),this.flashType="success"}catch(e){this.flash=(0,l.extractError)(e),this.flashType="error"}finally{this.saving=!1}}},f=(0,i.Z)(g.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),b=(0,i.Z)(g.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,i.Z)(g.prototype,"selectedBadgeId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=(0,i.Z)(g.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=(0,i.Z)(g.prototype,"flashType",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),v=(0,i.Z)(g.prototype,"allBadges",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),k=(0,i.Z)(g.prototype,"userBadges",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),x=(0,i.Z)(g.prototype,"availableBadges",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,i.Z)(g.prototype,"loadBadges",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"loadBadges"),g.prototype),(0,i.Z)(g.prototype,"performGrantBadge",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"performGrantBadge"),g.prototype),g);function O(){this.availableBadges=(0,c.grantableBadges)(this.allBadges,this.userBadges)}(0,S.setComponentTemplate)(m,P)},48942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(33217),u=n(38864),d=n(62617),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"SeI+koFz",block:'[[[8,[39,0],[[24,0,"group-add-members-modal"]],[["@title","@closeModal","@flash"],[[30,0,["title"]],[30,1],[30,0,["flash"]]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[14,0,"form-vertical group-add-members"],[12],[1,"\\n      "],[10,2],[12],[1,[28,[35,1],["groups.add_members.description"],null]],[13],[1,"\\n      "],[10,0],[14,0,"input-group"],[12],[1,"\\n        "],[8,[39,2],null,[["@value","@onChange","@options"],[[30,0,["usernamesAndEmails"]],[30,0,["setUsernamesAndEmails"]],[28,[37,3],null,[["allowEmails","filterPlaceholder"],[[30,0,["currentUser","can_invite_to_forum"]],[52,[30,0,["currentUser","can_invite_to_forum"]],"groups.add_members.usernames_or_emails_placeholder","groups.add_members.usernames_placeholder"]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,2,["can_admin_group"]],[[[1,"        "],[10,0],[14,0,"input-group"],[12],[1,"\\n          "],[10,"label"],[12],[1,"\\n            "],[8,[39,5],[[24,1,"set-owner"],[16,"disabled",[30,0,["emails"]]]],[["@type","@checked"],["checkbox",[30,0,["setOwner"]]]],null],[1,"\\n            "],[1,[28,[35,1],["groups.add_members.set_owner"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"input-group"],[12],[1,"\\n        "],[10,"label"],[12],[1,"\\n          "],[8,[39,5],[[16,"disabled",[28,[37,6],[[28,[37,7],[[30,0,["usernames"]]],null],[30,0,["emails"]]],null]]],[["@type","@checked"],["checkbox",[30,0,["notifyUsers"]]]],null],[1,"\\n          "],[1,[28,[35,1],["groups.add_members.notify_users"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,8],[[24,0,"add btn-primary"]],[["@action","@icon","@disabled","@label"],[[30,0,["addMembers"]],"plus",[28,[37,9],[[30,0,["loading"]],[28,[37,7],[[30,0,["usernamesAndEmails"]]],null]],null],"groups.add"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","email-group-user-chooser","hash","if","input","and","not","d-button","or"]]',moduleName:"discourse/components/modal/group-add-members.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v,k=n(31691);let x=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"router",f,this),(0,r.Z)(this,"loading",b,this),(0,r.Z)(this,"setOwner",_,this),(0,r.Z)(this,"notifyUsers",y,this),(0,r.Z)(this,"usernamesAndEmails",w,this),(0,r.Z)(this,"flash",v,this)}get title(){return p.default.t("groups.add_members.title",{group_name:this.args.model.fullName||this.args.model.name})}get usernames(){return this.usernamesAndEmails.reject(d.emailValid).join(",")}get emails(){return this.usernamesAndEmails.filter(d.emailValid).join(",")}setUsernamesAndEmails(e){this.usernamesAndEmails=e,this.emails&&(this.usernames||(this.notifyUsers=!1),this.setOwner=!1)}async addMembers(){if(!(0,c.isEmpty)(this.usernamesAndEmails)){this.loading=!0;try{this.setOwner?await this.args.model.addOwners(this.usernames,!0,this.notifyUsers):await this.args.model.addMembers(this.usernames,!0,this.notifyUsers,this.emails),this.router.transitionTo("group.members",this.args.model.name,{queryParams:{...this.usernames&&{filter:this.usernames}}}),this.args.closeModal()}catch(e){this.flash=(0,u.extractError)(e)}finally{this.loading=!1}}}},g=(0,i.Z)(m.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,i.Z)(m.prototype,"setOwner",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,i.Z)(m.prototype,"notifyUsers",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=(0,i.Z)(m.prototype,"usernamesAndEmails",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,i.Z)(m.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"setUsernamesAndEmails",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"setUsernamesAndEmails"),m.prototype),(0,i.Z)(m.prototype,"addMembers",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"addMembers"),m.prototype),m);(0,k.setComponentTemplate)(h,x)},41511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(54001),i=n(82006),s=n(48163);const o=(0,n(8620).createTemplateFactory)({id:"SeBdrviZ",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["groups.default_notifications.modal_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[1,[28,[35,1],["groups.default_notifications.modal_description"],[["count"],[[30,2,["count"]]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,2],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["updateExistingUsers"]],"groups.default_notifications.modal_yes"]],null],[1,"\\n    "],[8,[39,2],null,[["@action","@label"],[[30,0,["cancel"]],"groups.default_notifications.modal_no"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","d-button"]]',moduleName:"discourse/components/modal/group-default-notifications.hbs",isStrictMode:!1});var a,l=n(31691);let c=(a=class extends i.default{updateExistingUsers(){this.args.model.setUpdateExistingUsers(!0),this.args.closeModal()}cancel(){this.args.model.setUpdateExistingUsers(!1),this.args.closeModal()}},(0,r.Z)(a.prototype,"updateExistingUsers",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"updateExistingUsers"),a.prototype),(0,r.Z)(a.prototype,"cancel",[s.action],Object.getOwnPropertyDescriptor(a.prototype,"cancel"),a.prototype),a);(0,l.setComponentTemplate)(o,c)},90124:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(6659),u=n(35193),d=n(56746),p=n(97245),h=n(3961),m=n(82099);const g=(0,n(8620).createTemplateFactory)({id:"ssCaDE4u",block:'[[[8,[39,0],[[16,0,[29,["history-modal -max ",[28,[37,1],["--mode-",[28,[37,2],[[30,0,["viewMode"]]],null]],null]]]]],[["@title","@closeModal"],[[28,[37,3],[[30,0,["modalTitleKey"]]],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,4],null,[["@condition"],[[30,0,["initialLoad"]]]],[["default"],[[[[1,"\\n      "],[8,[39,5],null,[["@model","@mobileView","@wikiDisabled","@previousCategory","@currentCategory","@displayInline","@displaySideBySide","@displaySideBySideMarkdown","@viewMode"],[[30,0,["postRevision"]],[30,0,["site","mobileView"]],[30,0,["wikiDisabled"]],[30,0,["previousCategory"]],[30,0,["currentCategory"]],[30,0,["displayInline"]],[30,0,["displaySideBySide"]],[30,0,["displaySideBySideMarkdown"]],[30,0,["viewMode"]]]],null],[1,"\\n      "],[8,[39,6],null,[["@model","@hiddenClasses","@mobileView","@userChanges","@wikiDisabled","@postTypeDisabled","@previousCategory","@currentCategory","@previousTagChanges","@currentTagChanges","@bodyDiffHTML","@bodyDiff","@calculateBodyDiff","@titleDiff","@viewMode"],[[30,0,["postRevision"]],[30,0,["hiddenClasses"]],[30,0,["site","mobileView"]],[30,0,["user_changes"]],[30,0,["wikiDisabled"]],[30,0,["postTypeDisabled"]],[30,0,["previousCategory"]],[30,0,["currentCategory"]],[30,0,["previousTagChanges"]],[30,0,["currentTagChanges"]],[30,0,["bodyDiffHTML"]],[30,0,["bodyDiff"]],[30,0,["calculateBodyDiff"]],[30,0,["titleDiff"]],[30,0,["viewMode"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]],[[[1,"\\n"],[41,[30,2,["editPost"]],[[[1,"      "],[8,[39,8],null,[["@model","@loadFirstVersion","@loadPreviousVersion","@loadNextVersion","@loadLastVersion","@displayEdit","@editPost","@editButtonLabel","@revertToVersion","@hideVersion","@showVersion","@permanentlyDeleteVersions","@loading","@canPermanentlyDelete","@loadFirstDisabled","@loadPreviousDisabled","@displayRevisions","@revisionsText","@loadNextDisabled","@loadLastDisabled","@revertToRevisionText","@isStaff"],[[30,0,["postRevision"]],[30,0,["loadFirstVersion"]],[30,0,["loadPreviousVersion"]],[30,0,["loadNextVersion"]],[30,0,["loadLastVersion"]],[30,0,["displayEdit"]],[30,0,["editPost"]],[30,0,["editButtonLabel"]],[30,0,["revertToVersion"]],[30,0,["hideVersion"]],[30,0,["showVersion"]],[30,0,["permanentlyDeleteVersions"]],[30,0,["loading"]],[30,0,["siteSettings","can_permanently_delete"]],[30,0,["loadFirstDisabled"]],[30,0,["loadPreviousDisabled"]],[30,0,["displayRevisions"]],[30,0,["revisionsText"]],[30,0,["loadNextDisabled"]],[30,0,["loadLastDisabled"]],[30,0,["revertToRevisionText"]],[30,0,["currentUser","staff"]]]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","concat","dasherize","i18n","conditional-loading-spinner","modal/history/revision","modal/history/revisions","if","modal/history/topic-footer"]]',moduleName:"discourse/components/modal/history.hbs",isStrictMode:!1});var f,b,_,y,w,v,k,x,T,S,C=n(31691);function P(e){return e?(Array.isArray(e)||(e=[e]),e):[]}let O=(f=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"dialog",b,this),(0,r.Z)(this,"site",_,this),(0,r.Z)(this,"currentUser",y,this),(0,r.Z)(this,"siteSettings",w,this),(0,r.Z)(this,"loading",v,this),(0,r.Z)(this,"postRevision",k,this),(0,r.Z)(this,"viewMode",x,this),(0,r.Z)(this,"bodyDiff",T,this),(0,r.Z)(this,"initialLoad",S,this),this.refresh(this.args.model.postId,this.args.model.postVersion)}get loadFirstDisabled(){return this.loading||this.postRevision?.current_revision<=this.postRevision?.first_revision}get loadPreviousDisabled(){return this.loading||!this.postRevision.previous_revision||!this.postRevision.previous_revision&&this.postRevision.current_revision<=this.postRevision.previous_revision}get loadNextDisabled(){return this.loading||this.postRevision?.current_revision>=this.postRevision?.next_revision}get loadLastDisabled(){return this.loading||this.postRevision?.current_revision>=this.postRevision?.next_revision}get displayRevisions(){return this.postRevision?.version_count>2}get modalTitleKey(){return this.args.model.post.version>100?"history_capped_revisions":"history"}get previousVersion(){return this.postRevision?.current_version?this.postRevision.current_version-1:null}get revisionsText(){return m.default.t("post.revisions.controls.comparing_previous_to_current_out_of_total",{previous:this.previousVersion,icon:(0,h.iconHTML)("arrows-alt-h"),current:this.postRevision?.current_version,total:this.postRevision?.version_count})}get titleDiff(){let e=this.viewMode;return"side_by_side_markdown"===e&&(e="side_by_side"),this.postRevision?.title_changes?.[e]}get bodyDiffHTML(){return this.postRevision?.body_changes?.[this.viewMode]}async calculateBodyDiff(e,t){let n=t;if("side_by_side_markdown"!==this.viewMode){const e={features:{editHistory:!0,historyOneboxes:!0},allowListed:{editHistory:{custom:(e,t)=>"class"===t},historyOneboxes:["header","article","div[style]"]}};n=await(0,u.sanitizeAsync)(n,e)}this.bodyDiff=n}get previousTagChanges(){const e=P(this.postRevision.tags_changes.previous),t=new Set(P(this.postRevision.tags_changes.current));return e.map((e=>({name:e,deleted:!t.has(e)})))}get currentTagChanges(){const e=new Set(P(this.postRevision.tags_changes.previous));return P(this.postRevision.tags_changes.current).map((t=>({name:t,inserted:!e.has(t)})))}get createdAtDate(){return moment(this.postRevision.created_at).format("LLLL")}get displayEdit(){return!(!this.postRevision?.can_edit||!this.args.model.editPost||this.postRevision?.last_revision!==this.postRevision?.current_revision)}get revertToRevisionText(){if(this.previousVersion)return m.default.t("post.revisions.controls.revert",{revision:this.previousVersion})}refresh(e,t){this.loading=!0,p.default.loadRevision(e,t).then((e=>{this.postRevision=e,this.loading=!1,this.initialLoad=!1}))}hide(e,t){p.default.hideRevision(e,t).then((()=>this.refresh(e,t)))}show(e,t){p.default.showRevision(e,t).then((()=>this.refresh(e,t)))}revert(e,t){e.revertToRevision(t).then((n=>{this.refresh(e.id,t),n.topic&&(e.set("topic.slug",n.topic.slug),e.set("topic.title",n.topic.title),e.set("topic.fancy_title",n.topic.fancy_title)),n.category_id&&e.set("topic.category",d.default.findById(n.category_id)),this.args.closeModal()})).catch((e=>{e.jqXHR.responseJSON?.errors?.[0]&&this.dialog.alert(e.jqXHR.responseJSON.errors[0])}))}get editButtonLabel(){return"post.revisions.controls."+(this.postRevision.wiki?"edit_wiki":"edit_post")}get hiddenClasses(){if("inline"===this.viewMode)return this.postRevision?.previous_hidden||this.postRevision?.current_hidden?"hidden-revision-either":null;{let e=[];return this.postRevision?.previous_hidden&&e.push("hidden-revision-previous"),this.postRevision?.current_hidden&&e.push("hidden-revision-current"),e.join(" ")}}get previousCategory(){if(this.postRevision?.category_id_changes){let e=d.default.findById(this.postRevision.category_id_changes.previous);return(0,c.categoryBadgeHTML)(e,{allowUncategorized:!0})}}get currentCategory(){if(this.postRevision?.category_id_changes){let e=d.default.findById(this.postRevision.category_id_changes.current);return(0,c.categoryBadgeHTML)(e,{allowUncategorized:!0})}}get wikiDisabled(){return!this.postRevision.wiki_changes?.current}get postTypeDisabled(){return this.postRevision?.post_type_changes?.current!==this.site.post_types.moderator_action}displayInline(e){e?.preventDefault(),this.viewMode="inline"}displaySideBySide(e){e?.preventDefault(),this.viewMode="side_by_side"}displaySideBySideMarkdown(e){e?.preventDefault(),this.viewMode="side_by_side_markdown"}loadFirstVersion(){this.refresh(this.postRevision.post_id,this.postRevision.first_revision)}loadPreviousVersion(){this.refresh(this.postRevision.post_id,this.postRevision.previous_revision)}loadNextVersion(){this.refresh(this.postRevision.post_id,this.postRevision.next_revision)}loadLastVersion(){return this.refresh(this.postRevision.post_id,this.postRevision.last_revision)}hideVersion(){this.hide(this.postRevision.post_id,this.postRevision.current_revision)}permanentlyDeleteVersions(){this.dialog.yesNoConfirm({message:m.default.t("post.revisions.controls.destroy_confirm"),didConfirm:()=>{p.default.permanentlyDeleteRevisions(this.postRevision.post_id).then((()=>{this.args.closeModal()}))}})}showVersion(){this.show(this.postRevision.post_id,this.postRevision.current_revision)}editPost(){this.args.model.editPost(this.args.model.post),this.args.closeModal()}revertToVersion(){this.revert(this.args.model.post,this.postRevision.current_revision)}},b=(0,i.Z)(f.prototype,"dialog",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(f.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.Z)(f.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(f.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.Z)(f.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.Z)(f.prototype,"postRevision",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.Z)(f.prototype,"viewMode",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.site?.mobileView?"inline":"side_by_side"}}),T=(0,i.Z)(f.prototype,"bodyDiff",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.Z)(f.prototype,"initialLoad",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.Z)(f.prototype,"calculateBodyDiff",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"calculateBodyDiff"),f.prototype),(0,i.Z)(f.prototype,"displayInline",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"displayInline"),f.prototype),(0,i.Z)(f.prototype,"displaySideBySide",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"displaySideBySide"),f.prototype),(0,i.Z)(f.prototype,"displaySideBySideMarkdown",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"displaySideBySideMarkdown"),f.prototype),(0,i.Z)(f.prototype,"loadFirstVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"loadFirstVersion"),f.prototype),(0,i.Z)(f.prototype,"loadPreviousVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"loadPreviousVersion"),f.prototype),(0,i.Z)(f.prototype,"loadNextVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"loadNextVersion"),f.prototype),(0,i.Z)(f.prototype,"loadLastVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"loadLastVersion"),f.prototype),(0,i.Z)(f.prototype,"hideVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"hideVersion"),f.prototype),(0,i.Z)(f.prototype,"permanentlyDeleteVersions",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"permanentlyDeleteVersions"),f.prototype),(0,i.Z)(f.prototype,"showVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"showVersion"),f.prototype),(0,i.Z)(f.prototype,"editPost",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"editPost"),f.prototype),(0,i.Z)(f.prototype,"revertToVersion",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"revertToVersion"),f.prototype),f);(0,C.setComponentTemplate)(g,O)},52608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"BdjpIdcR",block:'[[[10,0],[14,1,"revision"],[12],[1,"\\n  "],[10,0],[14,1,"revision-details"],[12],[1,"\\n    "],[1,[28,[35,0],["pencil-alt"],null]],[1,"\\n    "],[8,[39,1],[[24,0,"revision-details__user"]],[["@route","@model"],["user",[30,1,["username"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,2],[[30,1,["avatar_template"]],"small"],null]],[1,"\\n      "],[1,[30,1,["username"]]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[39,3],null,[["@name","@outletArgs"],["revision-user-details-after",[28,[37,4],null,[["model"],[[30,1]]]]]],null],[1,"\\n    "],[10,1],[14,0,"date"],[12],[1,[28,[35,5],[[30,1,["created_at"]]],null]],[13],[1,"\\n"],[41,[30,1,["edit_reason"]],[[[1,"      "],[10,1],[14,0,"edit-reason"],[12],[1,[30,1,["edit_reason"]]],[13],[1,"\\n"]],[]],null],[41,[51,[30,2]],[[[1,"      "],[10,1],[12],[1,"\\n"],[41,[30,1,["user_changes"]],[[[1,"\\n          "],[1,[28,[35,2],[[30,1,["user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n          "],[1,[30,1,["user_changes","previous","username"]]],[1,"\\n          →\\n          "],[1,[28,[35,2],[[30,1,["user_changes","current","avatar_template"]],"small"],null]],[1,"\\n          "],[1,[30,1,["user_changes","current","username"]]],[1,"\\n"]],[]],null],[41,[30,1,["wiki_changes"]],[[[1,"\\n          "],[8,[39,8],null,[["@icon","@disabled"],["far-edit",[30,3]]],null],[1,"\\n"]],[]],null],[41,[30,1,["post_type_changes"]],[[[1,"\\n          "],[8,[39,8],null,[["@icon","@disabled"],["shield-alt",[30,4]]],null],[1,"\\n"]],[]],null],[41,[30,1,["category_id_changes"]],[[[1,"\\n          "],[1,[28,[35,9],[[30,5]],null]],[1,"\\n          →\\n          "],[1,[28,[35,9],[[30,6]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[41,[51,[30,2]],[[[1,"    "],[10,0],[14,1,"display-modes"],[12],[1,"\\n      "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[11,3],[24,6,""],[16,0,[28,[37,10],["inline-mode",[52,[28,[37,11],[[30,7],"inline"],null],"active"]],null]],[16,"title",[28,[37,12],["post.revisions.displays.inline.title"],null]],[16,"aria-label",[28,[37,12],["post.revisions.displays.inline.title"],null]],[4,[38,13],["click",[30,8]],null],[12],[1,"\\n            "],[1,[28,[35,0],["far-square"],null]],[1,"\\n            "],[1,[28,[35,12],["post.revisions.displays.inline.button"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[11,3],[24,6,""],[16,0,[28,[37,10],["side-by-side-mode",[52,[28,[37,11],[[30,7],"side_by_side"],null],"active"]],null]],[16,"title",[28,[37,12],["post.revisions.displays.side_by_side.title"],null]],[16,"aria-label",[28,[37,12],["post.revisions.displays.side_by_side.title"],null]],[4,[38,13],["click",[30,9]],null],[12],[1,"\\n            "],[1,[28,[35,0],["columns"],null]],[1,"\\n            "],[1,[28,[35,12],["post.revisions.displays.side_by_side.button"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"li"],[12],[1,"\\n          "],[11,3],[24,6,""],[16,0,[28,[37,10],["side-by-side-markdown-mode",[52,[28,[37,11],[[30,7],"side_by_side_markdown"],null],"active"]],null]],[16,"title",[28,[37,12],["post.revisions.displays.side_by_side_markdown.title"],null]],[16,"aria-label",[28,[37,12],["post.revisions.displays.side_by_side_markdown.title"],null]],[4,[38,13],["click",[30,10]],null],[12],[1,"\\n            "],[1,[28,[35,0],["columns"],null]],[1,"\\n            "],[1,[28,[35,12],["post.revisions.displays.side_by_side_markdown.button"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["@model","@mobileView","@wikiDisabled","@postTypeDisabled","@previousCategory","@currentCategory","@viewMode","@displayInline","@displaySideBySide","@displaySideBySideMarkdown"],false,["d-icon","link-to","bound-avatar-template","plugin-outlet","hash","bound-date","if","unless","disabled-icon","html-safe","concat-class","eq","i18n","on"]]',moduleName:"discourse/components/modal/history/revision.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},95709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"6fv3kcu2",block:'[[[10,0],[14,1,"revisions"],[15,"data-post-id",[30,1,["post_id"]]],[15,0,[30,2]],[12],[1,"\\n"],[41,[30,1,["title_changes"]],[[[1,"    "],[10,0],[14,0,"row"],[12],[1,"\\n      "],[10,"h2"],[14,0,"revision__title"],[12],[1,[28,[35,1],[[30,3]],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,4],[[[41,[30,5],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[1,[28,[35,2],[[30,1,["user_changes","previous","avatar_template"]],"small"],null]],[1,"\\n        "],[1,[30,1,["user_changes","previous","username"]]],[1,"\\n        →\\n        "],[1,[28,[35,2],[[30,1,["user_changes","current","avatar_template"]],"small"],null]],[1,"\\n        "],[1,[30,1,["user_changes","current","username"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,1,["wiki_changes"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[8,[39,3],null,[["@icon","@disabled"],["far-edit",[30,6]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,1,["post_type_changes"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[8,[39,3],null,[["@icon","@disabled"],["shield-alt",[30,7]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,1,["category_id_changes"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[1,[28,[35,1],[[30,8]],null]],[1,"\\n        →\\n        "],[1,[28,[35,1],[[30,9]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,1,["tags_changes"]],[[[1,"    "],[10,0],[14,0,"row -tag-revisions"],[12],[1,"\\n      "],[10,1],[14,0,"discourse-tags"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,10]],null]],null],null,[[[1,"          "],[1,[28,[35,6],[[30,11,["name"]]],[["extraClass"],[[52,[30,11,["deleted"]],"diff-del"]]]]],[1,"\\n"]],[11]],null],[1,"      "],[13],[1,"\\n"],[41,[28,[37,7],[[30,4],[28,[37,8],[[30,12],"inline"],null]],null],[[[1,"        → \\n"]],[]],null],[1,"      "],[10,1],[14,0,"discourse-tags"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,13]],null]],null],null,[[[1,"          "],[1,[28,[35,6],[[30,14,["name"]]],[["extraClass"],[[52,[30,14,["inserted"]],"diff-ins"]]]]],[1,"\\n"]],[14]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,1,["featured_link_changes"]],[[[1,"    "],[10,0],[14,0,"row"],[12],[1,"\\n      "],[1,[30,1,["featured_link_changes","previous"]]],[1,"\\n      →\\n      "],[1,[30,1,["featured_link_changes","current"]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["post-revisions","div",[28,[37,10],null,[["model"],[[30,1]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,11],[[24,0,"row body-diff"],[4,[38,12],[[30,15],[30,16]],null],[4,[38,13],[[30,15],[30,16]],null]],null,[["default"],[[[[1,"\\n    "],[1,[28,[35,1],[[30,17]],null]],[1,"\\n  "]],[]]]]],[1,"\\n"],[13]],["@model","@hiddenClasses","@titleDiff","@mobileView","@userChanges","@wikiDisabled","@postTypeDisabled","@previousCategory","@currentCategory","@previousTagChanges","t","@viewMode","@currentTagChanges","t","@calculateBodyDiff","@bodyDiffHTML","@bodyDiff"],false,["if","html-safe","bound-avatar-template","disabled-icon","each","-track-array","discourse-tag","or","eq","plugin-outlet","hash","links-redirect","did-insert","did-update"]]',moduleName:"discourse/components/modal/history/revisions.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},24527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"eWIbDhNs",block:'[[[10,0],[14,1,"revision-controls"],[12],[1,"\\n  "],[10,0],[14,0,"revision-controls--back"],[12],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default first-revision"]],[["@action","@icon","@title","@disabled"],[[30,1],"fast-backward","post.revisions.controls.first",[30,2]]],null],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default previous-revision"]],[["@action","@icon","@title","@disabled"],[[30,3],"backward","post.revisions.controls.previous",[30,4]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,1,"revision-numbers"],[15,0,[52,[51,[30,5]],"invisible"]],[12],[1,"\\n    "],[8,[39,2],null,[["@condition","@size"],[[30,6],"small"]],[["default"],[[[[1,"\\n      "],[1,[28,[35,3],[[30,7]],null]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"revision-controls--forward"],[12],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default next-revision"]],[["@action","@icon","@title","@disabled"],[[30,8],"forward","post.revisions.controls.next",[30,9]]],null],[1,"\\n    "],[8,[39,0],[[24,0,"btn-default last-revision"]],[["@action","@icon","@title","@disabled"],[[30,10],"fast-forward","post.revisions.controls.last",[30,11]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,1,"revision-footer-buttons"],[12],[1,"\\n"],[41,[30,12],[[[1,"    "],[8,[39,0],[[24,0,"btn-default edit-post"]],[["@action","@icon","@label"],[[30,13],"pencil-alt",[30,14]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,15],[[[41,[30,16],[[[1,"      "],[8,[39,0],[[24,0,"btn-danger revert-to-version"]],[["@action","@icon","@translatedLabel","@disabled"],[[30,17],"undo",[30,16],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,18,["previous_hidden"]],[[[1,"      "],[8,[39,0],[[24,0,"btn-default show-revision"]],[["@action","@icon","@label","@disabled"],[[30,19],"far-eye","post.revisions.controls.show",[30,6]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,0],[[24,0,"btn-danger hide-revision"]],[["@action","@icon","@label","@disabled"],[[30,20],"far-eye-slash","post.revisions.controls.hide",[30,6]]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[28,[37,5],[[30,21],[30,18,["previous_hidden"]]],null],[[[1,"      "],[8,[39,0],[[24,0,"btn-danger destroy-revision"]],[["@action","@icon","@label","@disabled"],[[30,22],"far-trash-alt","post.revisions.controls.destroy",[30,6]]],null],[1,"\\n"]],[]],null]],[]],null],[13]],["@loadFirstVersion","@loadFirstDisabled","@loadPreviousVersion","@loadPreviousDisabled","@displayRevisions","@loading","@revisionsText","@loadNextVersion","@loadNextDisabled","@loadLastVersion","@loadLastDisabled","@displayEdit","@editPost","@editButtonLabel","@isStaff","@revertToRevisionText","@revertToVersion","@model","@showVersion","@hideVersion","@canPermanentlyDelete","@permanentlyDeleteVersions"],false,["d-button","unless","conditional-loading-spinner","html-safe","if","and"]]',moduleName:"discourse/components/modal/history/topic-footer.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},72261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(38864),d=n(50459),p=n(7223),h=n(82099);const m=(0,n(8620).createTemplateFactory)({id:"Bb5r+Pi3",block:'[[[8,[39,0],[[24,0,"ignore-duration-with-username-modal"]],[["@closeModal","@title","@flash","@autoFocus"],[[30,1],[28,[37,1],["user.user_notifications.ignore_duration_title"],null],[30,0,["flash"]],"false"]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["enableSelection"]],[[[1,"      "],[10,0],[14,0,"controls tracking-controls"],[12],[1,"\\n        "],[10,"label"],[12],[1,[28,[35,3],["far-eye-slash"],[["class"],["icon"]]]],[1,"\\n          "],[1,[28,[35,1],["user.user_notifications.ignore_duration_username"],null]],[13],[1,"\\n        "],[8,[39,4],null,[["@value","@onChange","@options"],[[30,0,["ignoredUsername"]],[30,0,["updateIgnoredUsername"]],[28,[37,5],null,[["excludeCurrentUser","maximum"],[true,1]]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,6],null,[["@label","@input","@customShortcuts","@includeDateTime","@onChangeInput"],["user.user_notifications.ignore_duration_when",[28,[37,7],[[30,0,["ignoredUntil"]]],null],[30,0,["timeShortcuts"]],false,[28,[37,8],[[30,0],[28,[37,9],[[30,0,["ignoredUntil"]]],null]],null]]],null],[1,"\\n    "],[10,2],[12],[1,[28,[35,1],["user.user_notifications.ignore_duration_note"],null]],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,10],[[24,0,"btn-primary"]],[["@disabled","@label","@action"],[[30,0,["saveDisabled"]],"user.user_notifications.ignore_duration_save",[30,0,["ignore"]]]],null],[1,"\\n    "],[8,[39,11],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","if","d-icon","email-group-user-chooser","hash","future-date-input","readonly","action","mut","d-button","conditional-loading-spinner"]]',moduleName:"discourse/components/modal/ignore-duration-with-username.hbs",isStrictMode:!1});var g,f,b,_,y,w,v=n(31691);let k=(g=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"flash",b,this),(0,r.Z)(this,"loading",_,this),(0,r.Z)(this,"ignoredUntil",y,this),(0,r.Z)(this,"ignoredUsername",w,this),(0,i.Z)(this,"enableSelection",this.args.model.enableSelection??!0)}get timeShortcuts(){const e=this.currentUser.user_option.timezone,t=(0,d.timeShortcuts)(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]}ignore(){this.ignoredUntil&&this.ignoredUsername?(this.loading=!0,p.default.findByUsername(this.ignoredUsername).then((e=>{e.updateNotificationLevel({level:"ignore",expiringAt:this.ignoredUntil,actingUser:this.args.model.actingUser}).then((()=>{this.args.model.onUserIgnored?.(this.ignoredUsername),this.args.closeModal()})).catch(u.popupAjaxError).finally((()=>this.loading=!1))}))):this.flash=h.default.t("user.user_notifications.ignore_duration_time_frame_required")}updateIgnoredUsername(e){this.ignoredUsername=e.firstObject}},f=(0,s.Z)(g.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,s.Z)(g.prototype,"flash",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,s.Z)(g.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,s.Z)(g.prototype,"ignoredUntil",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=(0,s.Z)(g.prototype,"ignoredUsername",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.ignoredUsername}}),(0,s.Z)(g.prototype,"ignore",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"ignore"),g.prototype),(0,s.Z)(g.prototype,"updateIgnoredUsername",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"updateIgnoredUsername"),g.prototype),g);(0,v.setComponentTemplate)(m,k)},29093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(51372),u=n(33217),d=n(64519),p=n(20229),h=n(56111);const m=(0,n(8620).createTemplateFactory)({id:"ggpNlTij",block:'[[[8,[39,0],[[24,0,"insert-hyperlink-modal"],[4,[38,2],["keydown",[30,0,["keyDown"]]],null],[4,[38,2],["mousedown",[30,0,["mouseDown"]]],null]],[["@closeModal","@title","@bodyClass"],[[30,1],[28,[37,1],["composer.link_dialog_title"],null],"insert-link"]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"inputs"],[12],[1,"\\n      "],[11,"input"],[16,2,[30,0,["linkUrl"]]],[16,"placeholder",[28,[37,1],["composer.link_url_placeholder"],null]],[24,"autofocus","autofocus"],[24,0,"link-url"],[24,4,"text"],[4,[38,2],["input",[30,0,["search"]]],null],[12],[13],[1,"\\n\\n"],[41,[30,0,["searchLoading"]],[[[1,"        "],[1,[34,4]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["searchResults"]],[[[1,"        "],[10,0],[14,0,"internal-link-results"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["searchResults"]]],null]],null],null,[[[1,"            "],[11,3],[16,6,[30,2,["url"]]],[16,"data-title",[30,2,["fancy_title"]]],[24,0,"search-link"],[4,[38,2],["click",[30,0,["linkClick"]]],null],[12],[1,"\\n              "],[8,[39,7],null,[["@topic","@disableActions"],[[30,2],true]],null],[1,"\\n              "],[1,[28,[35,8],[[30,2,["title"]]],null]],[1,"\\n              "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,2,["category","parentCategory"]],[[[1,"                  "],[1,[28,[35,9],[[30,2,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1,"                "],[1,[28,[35,9],[[30,2,["category"]]],[["hideParent"],[true]]]],[1,"\\n                "],[1,[28,[35,10],[[30,2]],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"inputs"],[12],[1,"\\n      "],[11,"input"],[16,2,[30,0,["linkText"]]],[16,"placeholder",[28,[37,1],["composer.link_optional_text"],null]],[24,0,"link-text"],[24,4,"text"],[4,[38,2],["input",[30,0,["updateLinkText"]]],null],[12],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,11],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["ok"]],"composer.modal_ok"]],null],[1,"\\n\\n    "],[8,[39,11],[[24,0,"btn-danger"]],[["@action","@label"],[[30,1],"composer.modal_cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","result"],false,["d-modal","i18n","on","if","loading-spinner","each","-track-array","topic-status","replace-emoji","category-link","discourse-tags","d-button"]]',moduleName:"discourse/components/modal/insert-hyperlink.hbs",isStrictMode:!1});var g,f,b,_,y,w,v=n(31691);let k=(g=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"linkText",f,this),(0,r.Z)(this,"linkUrl",b,this),(0,r.Z)(this,"selectedRow",_,this),(0,r.Z)(this,"searchResults",y,this),(0,r.Z)(this,"searchLoading",w,this),(0,i.Z)(this,"_debounced",void 0),(0,i.Z)(this,"_activeSearch",void 0)}willDestroy(){super.willDestroy(...arguments),(0,c.cancel)(this._debounced)}highlightRow(e,t){const n="down"===t?this.selectedRow+1:this.selectedRow-1;n>-1&&n<this.searchResults.length?(document.querySelectorAll(".internal-link-results .search-link")[n].focus(),this.selectedRow=n):(this.selectedRow=-1,document.querySelector("input.link-url").focus()),e.preventDefault()}selectLink(e){this.searchResults=[],this.linkUrl=e.href,this.selectedRow=-1,!this.linkText&&e.dataset.title&&(this.linkText=e.dataset.title),document.querySelector("input.link-text").focus()}async triggerSearch(){if(this.linkUrl.length<4||this.linkUrl.startsWith("http"))this.abortSearch();else{this.searchLoading=!0,this._activeSearch=(0,d.searchForTerm)(this.linkUrl,{typeFilter:"topic"});try{const e=await this._activeSearch;this.searchResults=e?.topics||[]}finally{this.searchLoading=!1,this._activeSearch=null}}}abortSearch(){this._activeSearch?.abort(),this.searchResults=[],this.searchLoading=!1}keyDown(e){switch(e.key){case"ArrowDown":this.highlightRow(e,"down");break;case"ArrowUp":this.highlightRow(e,"up");break;case"Enter":if(this.selectedRow>-1){const t=document.querySelectorAll(".internal-link-results .search-link")[this.selectedRow];this.selectLink(t),e.preventDefault(),e.stopPropagation()}break;case"Escape":this.searchResults.length?(this.searchResults=[],e.preventDefault(),e.stopPropagation()):(this.args.closeModal(),document.querySelector(".d-editor-input")?.focus())}}mouseDown(e){e.target.closest(".inputs")||(this.searchResults=[])}ok(){const e=this.linkUrl,t=(0,p.prefixProtocol)(e),n=this.args.model.toolbarEvent.selected;if((0,u.isEmpty)(t))return;const r=this.linkText||"";r.length?this.args.model.toolbarEvent.addText(`[${r}](${t})`):n.value?this.args.model.toolbarEvent.addText(`[${n.value}](${t})`):(this.args.model.toolbarEvent.addText(`[${e}](${t})`),this.args.model.toolbarEvent.selectText(n.start+1,e.length)),this.args.closeModal()}linkClick(e){e.metaKey||e.ctrlKey||(e.preventDefault(),e.stopPropagation(),this.selectLink(e.target.closest(".search-link")))}updateLinkText(e){this.linkText=e.target.value}search(e){this.linkUrl=e.target.value,this._debounced=(0,h.default)(this,this.triggerSearch,400)}},f=(0,s.Z)(g.prototype,"linkText",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.linkText}}),b=(0,s.Z)(g.prototype,"linkUrl",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_=(0,s.Z)(g.prototype,"selectedRow",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),y=(0,s.Z)(g.prototype,"searchResults",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),w=(0,s.Z)(g.prototype,"searchLoading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(g.prototype,"keyDown",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"keyDown"),g.prototype),(0,s.Z)(g.prototype,"mouseDown",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"mouseDown"),g.prototype),(0,s.Z)(g.prototype,"ok",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"ok"),g.prototype),(0,s.Z)(g.prototype,"linkClick",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"linkClick"),g.prototype),(0,s.Z)(g.prototype,"updateLinkText",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"updateLinkText"),g.prototype),(0,s.Z)(g.prototype,"search",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"search"),g.prototype),g);(0,v.setComponentTemplate)(m,k)},60843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(41221),c=n(18104),u=n(3961),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"AvqZYyDP",block:'[[[8,[39,0],[[24,0,"json-schema-editor-modal"]],[["@flash","@flashType","@closeModal","@title"],[[30,0,["flash"]],[30,0,["flashType"]],[30,1],[28,[37,1],["admin.site_settings.json_schema.modal_title"],[["name"],[[30,2]]]]]],[["body","footer"],[[[[1,"\\n    "],[11,0],[24,1,"json-editor-holder"],[4,[38,2],[[30,0,["buildJsonEditor"]]],null],[4,[38,3],[[30,0,["teardownJsonEditor"]]],null],[12],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["saveChanges"]],"save"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@settingName"],false,["d-modal","i18n","did-insert","will-destroy","d-button"]]',moduleName:"discourse/components/modal/json-schema-editor.hbs",isStrictMode:!1});var h,m,g,f,b,_=n(31691);let y=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"editor",m,this),(0,r.Z)(this,"value",g,this),(0,r.Z)(this,"flash",f,this),(0,r.Z)(this,"flashType",b,this)}get settingName(){return this.args.settingName.replace(/\_/g," ")}buildJsonEditor(e){(0,c.default)("/javascripts/jsoneditor.js").then(this._loadEditor.bind(this,e))}teardownJsonEditor(){this.editor?.destroy()}saveChanges(){const e=this.editor.validate();e.length?(this.flash=e.mapBy("message").join("\n"),this.flashType="error"):(this.value=JSON.stringify(this.editor.getValue()),this.args.updateValue(this.value),this.args.closeModal())}_loadEditor(e){let{JSONEditor:t}=window;t.defaults.options.theme="barebones",t.defaults.iconlibs={discourseIcons:w},t.defaults.options.iconlib="discourseIcons",this.editor=new t(e,{schema:this.args.jsonSchema,disable_array_delete_all_rows:!0,disable_array_delete_last_row:!0,disable_array_reorder:!1,disable_array_copy:!1,enable_array_copy:!0,disable_edit_json:!0,disable_properties:!0,disable_collapse:!1,show_errors:"never",startval:this.value?JSON.parse(this.value):null})}},m=(0,i.Z)(h.prototype,"editor",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=(0,i.Z)(h.prototype,"value",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.value}}),f=(0,i.Z)(h.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(h.prototype,"flashType",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(h.prototype,"buildJsonEditor",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"buildJsonEditor"),h.prototype),(0,i.Z)(h.prototype,"teardownJsonEditor",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"teardownJsonEditor"),h.prototype),(0,i.Z)(h.prototype,"saveChanges",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"saveChanges"),h.prototype),(0,i.Z)(h.prototype,"_loadEditor",[d.afterRender],Object.getOwnPropertyDescriptor(h.prototype,"_loadEditor"),h.prototype),h);class w{constructor(){this.mapping={delete:"trash-alt",add:"plus",moveup:"arrow-up",movedown:"arrow-down",moveleft:"chevron-left",moveright:"chevron-right",copy:"copy",collapse:"chevron-down",expand:"chevron-up"}}getIcon(e){if(this.mapping[e])return(0,l.create)((0,u.iconNode)(this.mapping[e]))}}(0,_.setComponentTemplate)(p,y)},6187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163);const l=(0,n(8620).createTemplateFactory)({id:"Wyk0cwXj",block:'[[[8,[39,0],[[24,0,"jump-to-post-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["topic.progress.jump_prompt_long"],null]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"jump-to-post-form"],[12],[1,"\\n      "],[10,0],[14,0,"jump-to-post-control"],[12],[1,"\\n        "],[10,1],[14,0,"index"],[12],[1,"#"],[13],[1,"\\n        "],[8,[39,2],[[24,"autofocus","true"],[24,1,"post-jump"]],[["@value","@type"],[[30,0,["postNumber"]],"number"]],null],[1,"\\n        "],[10,1],[14,0,"input-hint-text post-number"],[12],[1,"\\n          "],[1,[28,[35,1],["topic.progress.jump_prompt_of"],[["count"],[[30,0,["filteredPostsCount"]]]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"separator"],[12],[1,"\\n        "],[10,1],[14,0,"text"],[12],[1,"\\n          "],[1,[28,[35,1],["topic.progress.jump_prompt_or"],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,"hr"],[14,0,"right"],[12],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"jump-to-date-control"],[12],[1,"\\n        "],[10,1],[14,0,"input-hint-text post-date"],[12],[1,"\\n          "],[1,[28,[35,1],["topic.progress.jump_prompt_to_date"],null]],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,3],[[24,1,"post-date"],[24,0,"date-input"]],[["@value","@defaultDate"],[[30,0,["postDate"]],"YYYY-MM-DD"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],[[24,0,"btn-primary"],[24,4,"submit"]],[["@action","@label"],[[30,0,["jump"]],"composer.modal_ok"]],null],[1,"\\n    "],[8,[39,5],null,[["@close"],[[30,1]]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","input","date-picker","d-button","d-modal-cancel"]]',moduleName:"discourse/components/modal/jump-to-post.hbs",isStrictMode:!1});var c,u,d,p=n(31691);let h=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"postNumber",u,this),(0,r.Z)(this,"postDate",d,this)}get filteredPostsCount(){return this.args.model.topic.postStream.filteredPostsCount}_jumpToIndex(e,t){const n=Math.min(e,Math.max(1,parseInt(t,10)));this.args.model.jumpToIndex(n),this.args.closeModal()}_jumpToDate(e){this.args.model.jumpToDate(e),this.args.closeModal()}jump(){this.postNumber?this._jumpToIndex(this.filteredPostsCount,this.postNumber):this.postDate&&this._jumpToDate(this.postDate)}},u=(0,i.Z)(c.prototype,"postNumber",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,i.Z)(c.prototype,"postDate",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(c.prototype,"jump",[a.action],Object.getOwnPropertyDescriptor(c.prototype,"jump"),c.prototype),c);(0,p.setComponentTemplate)(l,h)},74229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(94664),i=n(54001),s=n(82006),o=n(17579),a=n(6677),l=n(62617),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"zcdyzzd9",block:'[[[8,[39,0],[[24,0,"keyboard-shortcuts-modal -max"]],[["@title","@closeModal"],[[28,[37,1],["keyboard_shortcuts_help.title"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[10,0],[14,1,"keyboard-shortcuts-help"],[12],[1,"\\n      "],[10,0],[14,0,"keyboard-shortcuts-help__container"],[12],[1,"\\n        "],[10,1],[14,"tabindex","0"],[12],[13],[1,"\\n"],[42,[28,[37,3],[[30,0,["shortcuts"]]],null],null,[[[1,"          "],[10,"section"],[15,0,[29,["shortcut-category span-",[30,2,["count"]],"\\n              shortcut-category-",[30,3]]]],[12],[1,"\\n            "],[10,"h4"],[12],[1,[28,[35,1],[[28,[37,4],["keyboard_shortcuts_help.",[30,3],".title"],null]],null]],[13],[1,"\\n            "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,3],[[30,2,["shortcuts"]]],null],null,[[[1,"                "],[10,"li"],[12],[1,[28,[35,5],[[30,4]],null]],[13],[1,"\\n"]],[4,5]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2,3]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]]],["@closeModal","shortcutCategory","category","shortcut","name"],false,["d-modal","i18n","each","-each-in","concat","html-safe"]]',moduleName:"discourse/components/modal/keyboard-shortcuts-help.hbs",isStrictMode:!1});var d,p,h=n(31691);const m="keyboard_shortcuts_help",g=c.default.t("shortcut_modifier_key.shift"),f=(0,l.translateModKey)("Alt"),b=(0,l.translateModKey)("Meta"),_=c.default.t("shortcut_modifier_key.ctrl"),y=c.default.t("shortcut_modifier_key.enter"),w=c.default.t(`${m}.shortcut_key_delimiter_comma`),v=c.default.t(`${m}.shortcut_key_delimiter_plus`),k={shift:g,alt:f,meta:b,ctrl:_,enter:y,comma:w,plus:v};function x(e,t,n,r){const i=[e,t].reject((e=>0===e.length)).map((e=>e.map((e=>`<kbd>${e}</kbd>`)).join(n))).map((e=>"space"!==r?T(e):e)),[s,o]=i;return 1===i.length?s:"or"===r?c.default.t(`${m}.shortcut_delimiter_or`,{shortcut1:s,shortcut2:o}):"slash"===r?c.default.t(`${m}.shortcut_delimiter_slash`,{shortcut1:s,shortcut2:o}):"space"===r?T(c.default.t(`${m}.shortcut_delimiter_space`,{shortcut1:s,shortcut2:o})):void 0}function T(e){return`<span dir="ltr">${e}</span>`}function S(e,t){let{keys1:n=[],keys2:r=[],keysDelimiter:i=w,shortcutsDelimiter:s="or"}=t;const o={shortcut:x(n,r,i,s)};return c.default.t(`${m}.${e}`,o)}let C=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",p,this)}get shortcuts(){let e={jump_to:{shortcuts:this._buildJumpToSection()},application:{shortcuts:{hamburger_menu:S("application.hamburger_menu",{keys1:["="]}),user_profile_menu:S("application.user_profile_menu",{keys1:["p"]}),create:S("application.create",{keys1:["c"]}),show_incoming_updated_topics:S("application.show_incoming_updated_topics",{keys1:["."]}),search:S("application.search",{keys1:["/"],keys2:[_,f,"f"],keysDelimiter:v}),help:S("application.help",{keys1:["?"]}),dismiss_new:S("application.dismiss_new",{keys1:["x","r"]}),dismiss_topics:S("application.dismiss_topics",{keys1:["x","t"]}),log_out:S("application.log_out",{keys1:[g,"z"],keys2:[g,"z"],keysDelimiter:v,shortcutsDelimiter:"space"})}},actions:{shortcuts:{bookmark_topic:S("actions.bookmark_topic",{keys1:["f"]}),reply_as_new_topic:S("actions.reply_as_new_topic",{keys1:["t"]}),reply_topic:S("actions.reply_topic",{keys1:[g,"r"],keysDelimiter:v}),reply_post:S("actions.reply_post",{keys1:["r"]}),quote_post:S("actions.quote_post",{keys1:["q"]}),pin_unpin_topic:S("actions.pin_unpin_topic",{keys1:[g,"p"],keysDelimiter:v}),share_topic:S("actions.share_topic",{keys1:[g,"s"],keysDelimiter:v}),share_post:S("actions.share_post",{keys1:["s"]}),like:S("actions.like",{keys1:["l"]}),flag:S("actions.flag",{keys1:["!"]}),bookmark:S("actions.bookmark",{keys1:["b"]}),edit:S("actions.edit",{keys1:["e"]}),delete:S("actions.delete",{keys1:["d"]}),mark_muted:S("actions.mark_muted",{keys1:["m","m"]}),mark_regular:S("actions.mark_regular",{keys1:["m","r"]}),mark_tracking:S("actions.mark_tracking",{keys1:["m","t"]}),mark_watching:S("actions.mark_watching",{keys1:["m","w"]}),print:S("actions.print",{keys1:[b,"p"],keysDelimiter:v}),defer:S("actions.defer",{keys1:[g,"u"],keysDelimiter:v}),topic_admin_actions:S("actions.topic_admin_actions",{keys1:[g,"a"],keysDelimiter:v}),archive_private_message:S("actions.archive_private_message",{keys1:["a"]})}},navigation:{shortcuts:{back:S("navigation.back",{keys1:["u"]}),jump:S("navigation.jump",{keys1:["#"]}),up_down:S("navigation.up_down",{keys1:["k"],keys2:["j"],shortcutsDelimiter:"slash"}),open:S("navigation.open",{keys1:["o"],keys2:[y]}),next_prev:S("navigation.next_prev",{keys1:[g,"j"],keys2:[g,"k"],keysDelimiter:v,shortcutsDelimiter:"slash"}),go_to_unread_post:S("navigation.go_to_unread_post",{keys1:[g,"l"],keysDelimiter:v})}},composing:{shortcuts:{return:S("composing.return",{keys1:[g,"c"],keysDelimiter:v}),fullscreen:S("composing.fullscreen",{keys1:[g,"F11"],keysDelimiter:v}),insertCurrentTime:S("composing.insert_current_time",{keys1:[b,g,"."],keysDelimiter:v})}},bookmarks:{shortcuts:{enter:S("bookmarks.enter",{keys1:[y]}),later_today:S("bookmarks.later_today",{keys1:["l","t"]}),later_this_week:S("bookmarks.later_this_week",{keys1:["l","w"]}),tomorrow:S("bookmarks.tomorrow",{keys1:["n","d"]}),next_business_week:S("bookmarks.next_business_week",{keys1:["n","b","w"]}),next_business_day:S("bookmarks.next_business_day",{keys1:["n","b","d"]}),custom:S("bookmarks.custom",{keys1:["c","r"]}),none:S("bookmarks.none",{keys1:["n","r"]}),delete:S("bookmarks.delete",{keys1:["d","d"]})}},search_menu:{shortcuts:{prev_next:S("search_menu.prev_next",{keys1:["&uarr;"],keys2:["&darr;"],shortcutsDelimiter:"slash"}),insert_url:S("search_menu.insert_url",{keys1:["a"]}),full_page_search:S("search_menu.full_page_search",{keys1:[b,"Enter"],keysDelimiter:v})}}};return this._buildExtraShortcuts(e),this._addCountsToShortcutCategories(e),e}_buildExtraShortcuts(e){for(const[t,n]of Object.entries(a.extraKeyboardShortcutsHelp))n.forEach((n=>{e[t]||(e[t]={}),e[t].shortcuts||(e[t].shortcuts={}),e[t].shortcuts[n.name]=S(n.name,this._transformExtraDefinition(n.definition))}))}_addCountsToShortcutCategories(e){for(const[t,n]of Object.entries(e))e[t].count=Object.keys(n.shortcuts).length}_transformExtraDefinition(e){return e.keys1&&(e.keys1=e.keys1.map((e=>this._translateKeys(e)))),e.keys2&&(e.keys2=e.keys2.map((e=>this._translateKeys(e)))),e.keysDelimiter&&(e.keysDelimiter=this._translateKeys(e.keysDelimiter)),e.shortcutsDelimiter&&(e.shortcutsDelimiter=this._translateKeys(e.shortcutsDelimiter)),e}_translateKeys(e){for(const[t,n]of Object.entries(k))e=e.replace(t,n);return e}_buildJumpToSection(){const e={home:S("jump_to.home",{keys1:["g","h"]}),latest:S("jump_to.latest",{keys1:["g","l"]}),new:S("jump_to.new",{keys1:["g","n"]}),unread:S("jump_to.unread",{keys1:["g","u"]}),categories:S("jump_to.categories",{keys1:["g","c"]}),top:S("jump_to.top",{keys1:["g","t"]}),bookmarks:S("jump_to.bookmarks",{keys1:["g","b"]}),profile:S("jump_to.profile",{keys1:["g","p"]})};return this.currentUser?.can_send_private_messages&&(e.messages=S("jump_to.messages",{keys1:["g","m"]})),Object.assign(e,{drafts:S("jump_to.drafts",{keys1:["g","d"]}),next:S("jump_to.next",{keys1:["g","j"]}),previous:S("jump_to.previous",{keys1:["g","k"]})}),e}},p=(0,i.Z)(d.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d);(0,h.setComponentTemplate)(u,C)},23392:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Y});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(51372),c=n(17579),u=n(33217),d=n(3055),p=n(38864),h=n(59469),m=n(62617),g=n(19086),f=n(78580),b=n(34287),_=n(7223),y=n(53134),w=n(47582),v=n(82099);const k=(0,n(8620).createTemplateFactory)({id:"l4iAgWCL",block:'[[[8,[39,0],[[24,0,"login-modal -large"],[4,[38,1],[[30,0,["preloadLogin"]]],null]],[["@bodyClass","@closeModal","@flash","@flashType"],[[30,0,["modalBodyClasses"]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,[["@name","@connectorTagName"],["login-before-modal-body","div"]],null],[1,"\\n\\n"],[41,[30,0,["hasNoLoginOptions"]],[[[1,"      "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n        "],[10,0],[14,0,"login-welcome-header no-login-methods-configured"],[12],[1,"\\n          "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,4],["login.no_login_methods.title"],null]],[13],[1,"\\n          "],[10,"img"],[12],[13],[1,"\\n          "],[10,2],[14,0,"login-subheader"],[12],[1,"\\n            "],[1,[28,[35,5],[[28,[37,4],["login.no_login_methods.description",[28,[37,6],null,[["adminLoginPath"],[[30,0,["adminLoginPath"]]]]]],null]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,0,["site","mobileView"]],[[[1,"        "],[8,[39,7],null,[["@wavingHandURL","@createAccount"],[[30,0,["wavingHandURL"]],[30,0,["createAccount"]]]],null],[1,"\\n"],[41,[30,0,["showLoginButtons"]],[[[1,"          "],[8,[39,8],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canLoginLocal"]],[[[1,"        "],[10,0],[15,0,[52,[30,0,["site","desktopView"]],"login-left-side"]],[12],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1,"            "],[8,[39,7],null,[["@wavingHandURL","@createAccount"],[[30,0,["wavingHandURL"]],[30,0,["createAccount"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[8,[39,9],null,[["@loginName","@loginNameChanged","@canLoginLocalWithEmail","@canUsePasskeys","@passkeyLogin","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@securityKeyAllowedCredentialIds","@securityKeyChallenge","@showSecurityKey","@otherMethodAllowed","@showSecondFactor","@handleForgotPassword","@login","@flashChanged","@flashTypeChanged","@securityKeyCredentialChanged"],[[30,0,["loginName"]],[30,0,["loginNameChanged"]],[30,0,["canLoginLocalWithEmail"]],[30,0,["canUsePasskeys"]],[30,0,["passkeyLogin"]],[30,0,["loginPassword"]],[30,0,["secondFactorMethod"]],[30,0,["secondFactorToken"]],[30,0,["backupEnabled"]],[30,0,["securityKeyAllowedCredentialIds"]],[30,0,["securityKeyChallenge"]],[30,0,["showSecurityKey"]],[30,0,["otherMethodAllowed"]],[30,0,["showSecondFactor"]],[30,0,["handleForgotPassword"]],[30,0,["triggerLogin"]],[30,0,["flashChanged"]],[30,0,["flashTypeChanged"]],[30,0,["securityKeyCredentialChanged"]]]],null],[1,"\\n          "],[8,[39,10],null,[["@canLoginLocal","@showSecurityKey","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn","@showSecondFactor"],[[30,0,["canLoginLocal"]],[30,0,["showSecurityKey"]],[30,0,["triggerLogin"]],[30,0,["loginButtonLabel"]],[30,0,["loginDisabled"]],[30,0,["showSignupLink"]],[30,0,["createAccount"]],[30,0,["loggingIn"]],[30,0,["showSecondFactor"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,11],[[30,0,["showLoginButtons"]],[30,0,["site","desktopView"]]],null],[[[41,[51,[30,0,["canLoginLocal"]]],[[[1,"          "],[10,0],[14,0,"login-left-side"],[12],[1,"\\n            "],[8,[39,7],null,[["@wavingHandURL"],[[30,0,["wavingHandURL"]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasAtLeastOneLoginButton"]],[[[1,"          "],[10,0],[14,0,"login-right-side"],[12],[1,"\\n            "],[8,[39,8],null,[["@externalLogin","@passkeyLogin","@context"],[[30,0,["externalLoginAction"]],[30,0,["passkeyLogin"]],"login"]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1,"  "]],[]]]]]],["@closeModal"],false,["d-modal","did-insert","plugin-outlet","if","i18n","html-safe","hash","modal/login/welcome-header","login-buttons","modal/login/local-login-form","modal/login/footer","and","unless"]]',moduleName:"discourse/components/modal/login.hbs",isStrictMode:!1});var x,T,S,C,P,O,E,D,I,j,Z,A,M,N,z,L,F,U,R,B,$,q,H,W,K,V,G=n(31691);let Y=(x=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"capabilities",T,this),(0,r.Z)(this,"dialog",S,this),(0,r.Z)(this,"siteSettings",C,this),(0,r.Z)(this,"site",P,this),(0,r.Z)(this,"login",O,this),(0,r.Z)(this,"loggingIn",E,this),(0,r.Z)(this,"loggedIn",D,this),(0,r.Z)(this,"showLoginButtons",I,this),(0,r.Z)(this,"showSecondFactor",j,this),(0,r.Z)(this,"loginPassword",Z,this),(0,r.Z)(this,"loginName",A,this),(0,r.Z)(this,"flash",M,this),(0,r.Z)(this,"flashType",N,this),(0,r.Z)(this,"canLoginLocal",z,this),(0,r.Z)(this,"canLoginLocalWithEmail",L,this),(0,r.Z)(this,"secondFactorMethod",F,this),(0,r.Z)(this,"securityKeyCredential",U,this),(0,r.Z)(this,"otherMethodAllowed",R,this),(0,r.Z)(this,"secondFactorRequired",B,this),(0,r.Z)(this,"backupEnabled",$,this),(0,r.Z)(this,"totpEnabled",q,this),(0,r.Z)(this,"showSecurityKey",H,this),(0,r.Z)(this,"securityKeyChallenge",W,this),(0,r.Z)(this,"securityKeyAllowedCredentialIds",K,this),(0,r.Z)(this,"secondFactorToken",V,this)}get awaitingApproval(){return this.args.model.awaitingApproval&&!this.canLoginLocal&&!this.canLoginLocalWithEmail}get loginDisabled(){return this.loggingIn||this.loggedIn}get wavingHandURL(){return(0,g.wavingHandURL)()}get modalBodyClasses(){const e=["login-modal-body"];return this.awaitingApproval&&e.push("awaiting-approval"),!this.hasAtLeastOneLoginButton||this.showSecondFactor||this.showSecurityKey||e.push("has-alt-auth"),this.canLoginLocal||e.push("no-local-login"),(this.showSecondFactor||this.showSecurityKey)&&e.push("second-factor"),e.join(" ")}get canUsePasskeys(){return this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,f.isWebauthnSupported)()}get hasAtLeastOneLoginButton(){return(0,b.findAll)().length>0||this.canUsePasskeys}get hasNoLoginOptions(){return!this.hasAtLeastOneLoginButton&&!this.canLoginLocal}get loginButtonLabel(){return this.loggingIn?"login.logging_in":"login.title"}get showSignupLink(){return this.args.model.canSignUp&&!this.loggingIn&&!this.showSecondFactor}get adminLoginPath(){return(0,w.default)("/u/admin-login")}async passkeyLogin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"optional";try{const t=await(0,f.getPasskeyCredential)((e=>this.dialog.alert(e)),e,this.capabilities.isFirefox);if(t){const e=await(0,d.ajax)("/session/passkey/auth.json",{type:"POST",data:{publicKeyCredential:t}});if(e&&!e.error){const e=(0,h.default)("destination_url");e?((0,h.removeCookie)("destination_url"),window.location.assign(e)):window.location.reload()}else this.dialog.alert(e.error)}}catch(e){(0,p.popupAjaxError)(e)}}preloadLogin(){const e=document.querySelector("#hidden-login-form input[name=username]")?.value;e?(this.loginName=e,this.loginPassword=document.querySelector("#hidden-login-form input[name=password]").value):(0,h.default)("email")&&(this.loginName=(0,h.default)("email"))}securityKeyCredentialChanged(e){this.securityKeyCredential=e}flashChanged(e){this.flash=e}flashTypeChanged(e){this.flashType=e}loginNameChanged(e){this.loginName=e.target.value}async triggerLogin(){if(!this.loginDisabled){if((0,u.isEmpty)(this.loginName)||(0,u.isEmpty)(this.loginPassword))return this.flash=v.default.t("login.blank_username_or_password"),void(this.flashType="error");try{this.loggingIn=!0;const e=await(0,d.ajax)("/session",{type:"POST",data:{login:this.loginName,password:this.loginPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}});if(!e||!e.error){this.loggedIn=!0;const e=document.getElementById("hidden-login-form"),t=(t,n)=>{e&&(e.querySelector(`input[name=${n}]`).value=t)},n=(0,h.default)("destination_url"),r=(0,h.default)("sso_destination_url");return t(this.loginName,"username"),t(this.loginPassword,"password"),r?((0,h.removeCookie)("sso_destination_url"),void window.location.assign(r)):(n?((0,h.removeCookie)("destination_url"),t(n,"redirect")):t(window.location.href,"redirect"),void(e&&(navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&navigator.userAgent.match(/Safari/g)?window.location.href=e.querySelector("input[name=redirect]").value:e.submit())))}if(this.loggingIn=!1,this.flash=null,(e.security_key_enabled||e.totp_enabled)&&!this.secondFactorRequired)return this.otherMethodAllowed=e.multiple_second_factor_methods,this.secondFactorRequired=!0,this.showLoginButtons=!1,this.backupEnabled=e.backup_enabled,this.totpEnabled=e.totp_enabled,this.showSecondFactor=e.totp_enabled,this.showSecurityKey=e.security_key_enabled,this.secondFactorMethod=e.security_key_enabled?_.SECOND_FACTOR_METHODS.SECURITY_KEY:_.SECOND_FACTOR_METHODS.TOTP,this.securityKeyChallenge=e.challenge,this.securityKeyAllowedCredentialIds=e.allowed_credential_ids,void(this.showSecurityKey||(0,l.schedule)("afterRender",(()=>document.getElementById("second-factor").querySelector("input").focus())));"not_activated"===e.reason?this.args.model.showNotActivated({username:this.loginName,sentTo:(0,y.default)(e.sent_to_email),currentEmail:(0,y.default)(e.current_email)}):"suspended"===e.reason?(this.args.closeModal(),this.dialog.alert(e.error)):(this.flash=e.error,this.flashType="error")}catch(e){e.jqXHR&&429===e.jqXHR.status?(this.flash=v.default.t("login.rate_limit"),this.flashType="error"):e.jqXHR&&503===e.jqXHR.status&&"read_only"===e.jqXHR.responseJSON.error_type?(this.flash=v.default.t("read_only_mode.login_disabled"),this.flashType="error"):(0,m.areCookiesEnabled)()?(this.flash=v.default.t("login.error"),this.flashType="error"):(this.flash=v.default.t("login.cookies_error"),this.flashType="error"),this.loggingIn=!1}}}async externalLoginAction(e){this.loginDisabled||this.login.externalLogin(e,{signup:!1,setLoggingIn:e=>this.loggingIn=e})}createAccount(){let e={};this.loginName&&this.loginName.indexOf("@")>0?(e.accountEmail=this.loginName,e.accountUsername=null):(e.accountUsername=this.loginName,e.accountEmail=null),this.args.model.showCreateAccount(e)}},T=(0,i.Z)(x.prototype,"capabilities",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.Z)(x.prototype,"dialog",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,i.Z)(x.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,i.Z)(x.prototype,"site",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.Z)(x.prototype,"login",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.Z)(x.prototype,"loggingIn",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=(0,i.Z)(x.prototype,"loggedIn",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),I=(0,i.Z)(x.prototype,"showLoginButtons",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),j=(0,i.Z)(x.prototype,"showSecondFactor",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=(0,i.Z)(x.prototype,"loginPassword",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),A=(0,i.Z)(x.prototype,"loginName",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M=(0,i.Z)(x.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.flash}}),N=(0,i.Z)(x.prototype,"flashType",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.flashType}}),z=(0,i.Z)(x.prototype,"canLoginLocal",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.siteSettings.enable_local_logins}}),L=(0,i.Z)(x.prototype,"canLoginLocalWithEmail",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.siteSettings.enable_local_logins_via_email}}),F=(0,i.Z)(x.prototype,"secondFactorMethod",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _.SECOND_FACTOR_METHODS.TOTP}}),U=(0,i.Z)(x.prototype,"securityKeyCredential",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,i.Z)(x.prototype,"otherMethodAllowed",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,i.Z)(x.prototype,"secondFactorRequired",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,i.Z)(x.prototype,"backupEnabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,i.Z)(x.prototype,"totpEnabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,i.Z)(x.prototype,"showSecurityKey",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,i.Z)(x.prototype,"securityKeyChallenge",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,i.Z)(x.prototype,"securityKeyAllowedCredentialIds",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,i.Z)(x.prototype,"secondFactorToken",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(x.prototype,"passkeyLogin",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"passkeyLogin"),x.prototype),(0,i.Z)(x.prototype,"preloadLogin",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"preloadLogin"),x.prototype),(0,i.Z)(x.prototype,"securityKeyCredentialChanged",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"securityKeyCredentialChanged"),x.prototype),(0,i.Z)(x.prototype,"flashChanged",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"flashChanged"),x.prototype),(0,i.Z)(x.prototype,"flashTypeChanged",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"flashTypeChanged"),x.prototype),(0,i.Z)(x.prototype,"loginNameChanged",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"loginNameChanged"),x.prototype),(0,i.Z)(x.prototype,"triggerLogin",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"triggerLogin"),x.prototype),(0,i.Z)(x.prototype,"externalLoginAction",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"externalLoginAction"),x.prototype),(0,i.Z)(x.prototype,"createAccount",[a.action],Object.getOwnPropertyDescriptor(x.prototype,"createAccount"),x.prototype),x);(0,G.setComponentTemplate)(k,Y)},55588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"TTk4K/nq",block:'[[[10,0],[14,0,"d-modal__footer"],[12],[1,"\\n"],[41,[30,1],[[[41,[51,[30,2]],[[[1,"      "],[8,[39,2],[[24,1,"login-button"],[24,"form","login-form"],[24,0,"btn btn-large btn-primary"],[16,"tabindex",[52,[51,[30,3]],"2"]]],[["@action","@icon","@label","@disabled"],[[30,4],"unlock",[30,5],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,7],[[[1,"      "],[8,[39,2],[[24,0,"btn-large btn-flat"],[24,1,"new-account-link"],[24,"tabindex","3"]],[["@action","@label"],[[30,8],"create_account.title"]],null],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[8,[39,3],null,[["@condition","@size"],[[30,9],"small"]],null],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName"],["login-after-modal-footer","div"]],null],[1,"\\n"],[13]],["@canLoginLocal","@showSecurityKey","@showSecondFactor","@login","@loginButtonLabel","@loginDisabled","@showSignupLink","@createAccount","@loggingIn"],false,["if","unless","d-button","conditional-loading-spinner","plugin-outlet"]]',moduleName:"discourse/components/modal/login/footer.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},29632:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(24434),u=n(33217),d=n(99594),p=n(3055),h=n(38864),m=n(62617),g=n(78580),f=n(82099);const b=(0,n(8620).createTemplateFactory)({id:"BJCYPHfc",block:'[[[10,"form"],[14,1,"login-form"],[14,"method","post"],[12],[1,"\\n  "],[10,0],[14,1,"credentials"],[15,0,[30,0,["credentialsClass"]]],[12],[1,"\\n    "],[11,0],[24,0,"input-group"],[4,[38,0],[[30,0,["passkeyConditionalLogin"]]],null],[12],[1,"\\n      "],[8,[39,1],[[24,1,"login-account-name"],[16,0,[28,[37,2],[[30,1]],null]],[16,"autocomplete",[52,[30,2],"username webauthn","username"]],[24,"autocorrect","off"],[24,"autocapitalize","off"],[16,"disabled",[30,3]],[24,"autofocus","autofocus"],[24,"tabindex","1"],[4,[38,4],["input",[30,4]],null],[4,[38,4],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@type"],[[30,1],"email"]],null],[1,"\\n      "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-name"],[12],[1,"\\n        "],[1,[28,[35,5],["login.email_placeholder"],null]],[1,"\\n      "],[13],[1,"\\n"],[41,[30,5],[[[1,"        "],[11,3],[24,6,""],[16,0,[52,[30,1],"","no-login-filled"]],[24,"tabindex","3"],[24,1,"email-login-link"],[4,[38,4],["click",[30,0,["emailLogin"]]],null],[12],[1,"\\n          "],[1,[28,[35,5],["email_login.login_link"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"input-group"],[12],[1,"\\n      "],[8,[39,6],[[16,0,[28,[37,2],[[30,6]],null]],[24,1,"login-account-password"],[24,"autocomplete","current-password"],[24,"maxlength","200"],[16,"disabled",[30,0,["disableLoginFields"]]],[24,"tabindex","1"],[4,[38,4],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@type","@capsLockOn"],[[30,6],[52,[30,0,["maskPassword"]],"password","text"],[30,0,["capsLockOn"]]]],null],[1,"\\n      "],[10,"label"],[14,0,"alt-placeholder"],[14,"for","login-account-password"],[12],[1,"\\n        "],[1,[28,[35,5],["login.password"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"login__password-links"],[12],[1,"\\n        "],[11,3],[24,6,""],[24,1,"forgot-password-link"],[24,"tabindex","3"],[4,[38,4],["click",[30,0,["handleForgotPassword"]]],null],[12],[1,"\\n          "],[1,[28,[35,5],["forgot_password.action"],null]],[1,"\\n        "],[13],[1,"\\n"],[41,[30,6],[[[1,"          "],[8,[39,7],[[24,"tabindex","3"]],[["@maskPassword","@togglePasswordMask"],[[30,0,["maskPassword"]],[30,0,["togglePasswordMask"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n      "],[10,0],[15,0,[29,["caps-lock-warning ",[52,[51,[30,0,["capsLockOn"]]],"hidden"]]]],[12],[1,"\\n        "],[1,[28,[35,9],["exclamation-triangle"],null]],[1,"\\n        "],[1,[28,[35,5],["login.caps_lock_warning"],null]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,10],[[16,0,[30,0,["secondFactorClass"]]]],[["@secondFactorMethod","@secondFactorToken","@backupEnabled","@isLogin"],[[30,7],[30,8],[30,9],true]],[["default"],[[[[1,"\\n"],[41,[30,10],[[[1,"      "],[8,[39,11],null,[["@allowedCredentialIds","@challenge","@showSecurityKey","@showSecondFactor","@secondFactorMethod","@otherMethodAllowed","@action"],[[30,11],[30,12],[30,10],[30,3],[30,7],[30,13],[30,0,["authenticateSecurityKey"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,12],[[4,[38,4],["keydown",[30,0,["loginOnEnter"]]],null]],[["@value","@inputId","@secondFactorMethod","@backupEnabled"],[[30,8],"login-second-factor",[30,7],[30,9]]],null],[1,"\\n"]],[]]],[1,"  "]],[]]]]],[1,"\\n"],[13]],["@loginName","@canUsePasskeys","@showSecondFactor","@loginNameChanged","@canLoginLocalWithEmail","@loginPassword","@secondFactorMethod","@secondFactorToken","@backupEnabled","@showSecurityKey","@securityKeyAllowedCredentialIds","@securityKeyChallenge","@otherMethodAllowed"],false,["did-insert","input","value-entered","if","on","i18n","password-field","toggle-password-mask","unless","d-icon","second-factor-form","security-key-form","second-factor-input"]]',moduleName:"discourse/components/modal/login/local-login-form.hbs",isStrictMode:!1});var _,y,w,v,k,x=n(31691);let T=(_=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"modal",y,this),(0,r.Z)(this,"maskPassword",w,this),(0,r.Z)(this,"processingEmailLink",v,this),(0,r.Z)(this,"capsLockOn",k,this)}get credentialsClass(){return this.args.showSecondFactor||this.args.showSecurityKey?"hidden":""}get secondFactorClass(){return this.args.showSecondFactor||this.args.showSecurityKey?"":"hidden"}get disableLoginFields(){return this.args.showSecondFactor||this.args.showSecurityKey}passkeyConditionalLogin(){this.args.canUsePasskeys&&this.args.passkeyLogin("conditional")}togglePasswordMask(){this.maskPassword=!this.maskPassword}async emailLogin(e){if(e?.preventDefault(),!this.processingEmailLink){if((0,u.isEmpty)(this.args.loginName))return this.args.flashChanged(f.default.t("login.blank_username")),void this.args.flashTypeChanged("info");try{this.processingEmailLink=!0;const e=await(0,p.ajax)("/u/email-login",{data:{login:this.args.loginName.trim()},type:"POST"}),t=(0,m.escapeExpression)(this.args.loginName),n=t.match(/@/)?"email_login.complete_email":"email_login.complete_username";if(!1===e.user_found)this.args.flashChanged((0,c.htmlSafe)(f.default.t(`${n}_not_found`,{email:t,username:t}))),this.args.flashTypeChanged("error");else{const r=e.hide_taken?"":"_found";this.args.flashChanged((0,c.htmlSafe)(f.default.t(`${n}${r}`,{email:t,username:t}))),this.args.flashTypeChanged("success")}}catch(e){(0,h.popupAjaxError)(e)}finally{this.processingEmailLink=!1}}}loginOnEnter(e){"Enter"===e.key&&this.args.login()}handleForgotPassword(e){e?.preventDefault(),this.modal.show(d.default,{model:{emailOrUsername:this.args.loginName}})}authenticateSecurityKey(){(0,g.getWebauthnCredential)(this.args.securityKeyChallenge,this.args.securityKeyAllowedCredentialIds,(e=>{this.args.securityKeyCredentialChanged(e),this.args.login()}),(e=>{this.args.flashChanged(e),this.args.flashTypeChanged("error")}))}},y=(0,i.Z)(_.prototype,"modal",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(_.prototype,"maskPassword",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),v=(0,i.Z)(_.prototype,"processingEmailLink",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,i.Z)(_.prototype,"capsLockOn",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(_.prototype,"passkeyConditionalLogin",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"passkeyConditionalLogin"),_.prototype),(0,i.Z)(_.prototype,"togglePasswordMask",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"togglePasswordMask"),_.prototype),(0,i.Z)(_.prototype,"emailLogin",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"emailLogin"),_.prototype),(0,i.Z)(_.prototype,"loginOnEnter",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"loginOnEnter"),_.prototype),(0,i.Z)(_.prototype,"handleForgotPassword",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"handleForgotPassword"),_.prototype),(0,i.Z)(_.prototype,"authenticateSecurityKey",[a.action],Object.getOwnPropertyDescriptor(_.prototype,"authenticateSecurityKey"),_.prototype),_);(0,x.setComponentTemplate)(b,T)},86397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"unRlLxmk",block:'[[[10,0],[14,0,"login-welcome-header"],[12],[1,"\\n  "],[10,"h1"],[14,0,"login-title"],[12],[1,[28,[35,0],["login.header_title"],null]],[13],[1,"\\n  "],[10,"img"],[15,"src",[30,1]],[14,"alt",""],[14,0,"waving-hand"],[12],[13],[1,"\\n  "],[10,2],[14,0,"login-subheader"],[12],[1,[28,[35,0],["login.subheader_title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@name","@outletArgs"],["login-header-bottom",[28,[37,2],null,[["createAccount"],[[30,2]]]]]],null],[1,"\\n"],[13]],["@wavingHandURL","@createAccount"],false,["i18n","plugin-outlet","hash"]]',moduleName:"discourse/components/modal/login/welcome-header.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},42398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(33217),u=n(20229),d=n(92635),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"cdUub7qz",block:'[[[8,[39,0],[[24,1,"choosing-topic"],[24,0,"choose-topic-modal"]],[["@title","@closeModal","@flash","@flashType"],[[28,[37,1],["topic.move_to.title"],null],[30,1],[30,0,["flash"]],"error"]],[["body","footer"],[[[[1,"\\n"],[41,[30,2,["topic","isPrivateMessage"]],[[[1,"      "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitToPM"]],[[[1,"          "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n            "],[8,[39,3],[[24,1,"move-to-new-message"]],[["@name","@value","@selection"],["move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n            "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n        "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-message"],[12],[1,"\\n          "],[8,[39,3],[[24,1,"move-to-existing-message"]],[["@name","@value","@selection"],["move-to-entity","existing_message",[30,0,["selection"]]]],null],[1,"\\n          "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_existing_message.radio_label"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1,"          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,4],[[28,[37,1],["topic.move_to_new_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,"form"],[12],[1,"\\n            "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n            "],[8,[39,5],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1,"              "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n              "],[8,[39,6],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["existingMessage"]],[[[1,"        "],[10,2],[12],[1,"\\n          "],[1,[28,[35,4],[[28,[37,1],["topic.move_to_existing_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,"form"],[12],[1,"\\n          "],[8,[39,7],null,[["@currentTopicId","@selectedTopicId"],[[30,2,["topic","id"]],[30,0,["selectedTopicId"]]]],null],[1,"\\n\\n          "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.participants"],null]],[13],[1,"\\n          "],[8,[39,8],[[24,0,"participant-selector"]],[["@value","@onChange"],[[30,0,["participants"]],[28,[37,9],[[30,0],[28,[37,10],[[30,0,["participants"]]],null]],null]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopicId"]],[[[1,"            "],[10,"hr"],[12],[13],[1,"\\n            "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n              "],[8,[39,11],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n              "],[1,[28,[35,1],["topic.merge_topic.chronological_order"],null]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"radios"],[12],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[1,"          "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-topic"],[12],[1,"\\n            "],[8,[39,3],[[24,1,"move-to-new-topic"]],[["@name","@value","@selection"],["move-to-entity","new_topic",[30,0,["selection"]]]],null],[1,"\\n            "],[10,"b"],[12],[1,[28,[35,1],["topic.split_topic.radio_label"],null]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n        "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-existing-topic"],[12],[1,"\\n          "],[8,[39,3],[[24,1,"move-to-existing-topic"]],[["@name","@value","@selection"],["move-to-entity","existing_topic",[30,0,["selection"]]]],null],[1,"\\n          "],[10,"b"],[12],[1,[28,[35,1],["topic.merge_topic.radio_label"],null]],[13],[1,"\\n        "],[13],[1,"\\n\\n"],[41,[30,0,["canSplitToPM"]],[[[1,"          "],[10,"label"],[14,0,"radio-label"],[14,"for","move-to-new-message"],[12],[1,"\\n            "],[8,[39,3],[[24,1,"move-to-new-message"]],[["@name","@value","@selection"],["move-to-entity","new_message",[30,0,["selection"]]]],null],[1,"\\n            "],[10,"b"],[12],[1,[28,[35,1],["topic.move_to_new_message.radio_label"],null]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n"],[41,[30,0,["existingTopic"]],[[[1,"        "],[10,2],[12],[1,"\\n          "],[1,[28,[35,4],[[28,[37,1],["topic.merge_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n        "],[13],[1,"\\n        "],[10,"form"],[12],[1,"\\n          "],[8,[39,12],null,[["@currentTopicId","@selectedTopicId"],[[30,2,["topic","id"]],[30,0,["selectedTopicId"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectedTopicId"]],[[[1,"            "],[10,"hr"],[12],[13],[1,"\\n            "],[10,"label"],[14,"for","chronological-order"],[14,0,"checkbox-label"],[12],[1,"\\n              "],[8,[39,11],[[24,1,"chronological-order"]],[["@type","@checked"],["checkbox",[30,0,["chronologicalOrder"]]]],null],[1,"\\n              "],[1,[28,[35,1],["topic.merge_topic.chronological_order"],null]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newTopic"]],[[[1,"          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,4],[[28,[37,1],["topic.split_topic.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,"form"],[14,0,"split-new-topic-form"],[12],[1,"\\n            "],[10,0],[14,0,"control-group"],[12],[1,"\\n              "],[10,"label"],[12],[1,[28,[35,1],["topic.split_topic.topic_name"],null]],[13],[1,"\\n              "],[8,[39,5],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n              "],[8,[39,13],null,[["@name","@outletArgs"],["split-new-topic-title-after",[28,[37,14],null,[["selectedPosts","updateTopicName"],[[30,2,["selectedPosts"]],[30,0,["updateTopicName"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"control-group"],[12],[1,"\\n              "],[10,"label"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n              "],[8,[39,15],[[24,0,"small"]],[["@value","@onChange"],[[30,0,["categoryId"]],[28,[37,9],[[30,0],[28,[37,10],[[30,0,["categoryId"]]],null]],null]]],null],[1,"\\n              "],[8,[39,13],null,[["@name","@outletArgs"],["split-new-topic-category-after",[28,[37,14],null,[["selectedPosts","updateCategoryId"],[[30,2,["selectedPosts"]],[30,0,["updateCategoryId"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["canAddTags"]],[[[1,"              "],[10,0],[14,0,"control-group"],[12],[1,"\\n                "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n                "],[8,[39,6],null,[["@tags","@categoryId"],[[30,0,["tags"]],[30,0,["categoryId"]]]],null],[1,"\\n                "],[8,[39,13],null,[["@name","@outletArgs"],["split-new-topic-tag-after",[28,[37,14],null,[["selectedPosts","updateTags","tags"],[[30,2,["selectedPosts"]],[30,0,["updateTags"]],[30,0,["tags"]]]]]]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,0,["canSplitTopic"]],[[[41,[30,0,["newMessage"]],[[[1,"          "],[10,2],[12],[1,"\\n            "],[1,[28,[35,4],[[28,[37,1],["topic.move_to_new_message.instructions"],[["count"],[[30,2,["selectedPostsCount"]]]]]],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,"form"],[12],[1,"\\n            "],[10,"label"],[12],[1,[28,[35,1],["topic.move_to_new_message.message_title"],null]],[13],[1,"\\n            "],[8,[39,5],[[24,1,"split-topic-name"]],[["@value","@placeholderKey"],[[30,0,["topicName"]],"composer.title_placeholder"]],null],[1,"\\n\\n"],[41,[30,0,["canTagMessages"]],[[[1,"              "],[10,"label"],[12],[1,[28,[35,1],["tagging.tags"],null]],[13],[1,"\\n              "],[8,[39,6],null,[["@tags"],[[30,0,["tags"]]]],null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]],[1,"  "]],[]],[[[1,"\\n    "],[8,[39,16],[[24,0,"btn-primary"]],[["@disabled","@action","@icon","@label"],[[30,0,["buttonDisabled"]],[30,0,["performMove"]],"sign-out-alt",[30,0,["buttonTitle"]]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","if","radio-button","html-safe","text-field","tag-chooser","choose-message","email-group-user-chooser","action","mut","input","choose-topic","plugin-outlet","hash","category-chooser","d-button"]]',moduleName:"discourse/components/modal/move-to-topic.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v,k,x,T,S,C=n(31691);let P=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"site",f,this),(0,r.Z)(this,"topicName",b,this),(0,r.Z)(this,"saving",_,this),(0,r.Z)(this,"categoryId",y,this),(0,r.Z)(this,"tags",w,this),(0,r.Z)(this,"participants",v,this),(0,r.Z)(this,"chronologicalOrder",k,this),(0,r.Z)(this,"selection",x,this),(0,r.Z)(this,"selectedTopicId",T,this),(0,r.Z)(this,"flash",S,this),this.args.model.topic.isPrivateMessage?this.selection=this.canSplitToPM?"new_message":"existing_message":this.canSplitTopic||(this.selection="existing_topic")}get newTopic(){return"new_topic"===this.selection}get existingTopic(){return"existing_topic"===this.selection}get newMessage(){return"new_message"===this.selection}get existingMessage(){return"existing_message"===this.selection}get buttonDisabled(){return this.saving||(0,c.isEmpty)(this.selectedTopicId)&&(0,c.isEmpty)(this.topicName)}get buttonTitle(){return this.newTopic?"topic.split_topic.title":this.existingTopic?"topic.merge_topic.title":this.newMessage?"topic.move_to_new_message.title":this.existingMessage?"topic.move_to_existing_message.title":"saving"}get canSplitTopic(){return!this.args.model.selectedAllPosts&&this.args.model.selectedPosts.length>0&&this.args.model.selectedPosts.sort(((e,t)=>e.post_number-t.post_number))[0].post_type===this.site.get("post_types.regular")}get canSplitToPM(){return this.canSplitTopic&&this.currentUser?.admin}get canAddTags(){return this.site.can_create_tag}get canTagMessages(){return this.site.can_tag_pms}performMove(){this.newTopic?this.movePostsTo("newTopic"):this.existingTopic?this.movePostsTo("existingTopic"):this.newMessage?this.movePostsTo("newMessage"):this.existingMessage&&this.movePostsTo("existingMessage")}async movePostsTo(e){let t,n;this.saving=!0,this.flash=null,"existingTopic"===e?(t={destination_topic_id:this.selectedTopicId,chronological_order:this.chronologicalOrder},n={post_ids:this.args.model.selectedPostIds,...t}):"existingMessage"===e?(t={destination_topic_id:this.selectedTopicId,participants:this.participants.join(","),archetype:"private_message",chronological_order:this.chronologicalOrder},n={post_ids:this.args.model.selectedPostIds,...t}):"newTopic"===e?(t={},n={title:this.topicName,post_ids:this.args.model.selectedPostIds,category_id:this.categoryId,tags:this.tags}):(t={},n={title:this.topicName,post_ids:this.args.model.selectedPostIds,tags:this.tags,archetype:"private_message"});try{let e;e=this.args.model.selectedAllPosts?await(0,d.mergeTopic)(this.args.model.topic.id,t):await(0,d.movePosts)(this.args.model.topic.id,n),this.args.closeModal(),this.args.model.toggleMultiSelect(),u.default.routeTo(e.url)}catch{this.flash=p.default.t("topic.move_to.error")}finally{this.saving=!1}}updateTopicName(e){this.topicName=e}updateCategoryId(e){this.categoryId=e}updateTags(e){this.tags=e}},g=(0,i.Z)(m.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"topicName",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(m.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,i.Z)(m.prototype,"categoryId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(m.prototype,"tags",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.Z)(m.prototype,"participants",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),k=(0,i.Z)(m.prototype,"chronologicalOrder",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,i.Z)(m.prototype,"selection",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"new_topic"}}),T=(0,i.Z)(m.prototype,"selectedTopicId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,i.Z)(m.prototype,"flash",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"performMove",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"performMove"),m.prototype),(0,i.Z)(m.prototype,"movePostsTo",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"movePostsTo"),m.prototype),(0,i.Z)(m.prototype,"updateTopicName",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"updateTopicName"),m.prototype),(0,i.Z)(m.prototype,"updateCategoryId",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"updateCategoryId"),m.prototype),(0,i.Z)(m.prototype,"updateTags",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"updateTags"),m.prototype),m);(0,C.setComponentTemplate)(h,P)},43658:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(63421),c=n(25824),u=n(43234);const d=(0,n(8620).createTemplateFactory)({id:"IRbuoAJb",block:'[[[8,[39,0],[[24,0,"not-activated-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["log_in"],null]]],[["body","footer"],[[[[1,"\\n    "],[1,[28,[35,2],[[28,[37,1],["login.not_activated"],[["sentTo"],[[30,2,["sentTo"]]]]]],null]],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],null,[["@sendActivationEmail","@editActivationEmail"],[[30,0,["sendActivationEmail"]],[30,0,["editActivationEmail"]]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","html-safe","activation-controls"]]',moduleName:"discourse/components/modal/not-activated.hbs",isStrictMode:!1});var p,h,m=n(31691);let g=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"modal",h,this)}sendActivationEmail(){(0,l.resendActivationEmail)(this.args.model.currentEmail).then((()=>{this.modal.show(u.default,{model:{currentEmail:this.args.model.currentEmail}})}))}editActivationEmail(){this.modal.show(c.default,{model:{currentEmail:this.args.model.currentEmail,newEmail:this.args.model.currentEmail}})}},h=(0,i.Z)(p.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(p.prototype,"sendActivationEmail",[o.action],Object.getOwnPropertyDescriptor(p.prototype,"sendActivationEmail"),p.prototype),(0,i.Z)(p.prototype,"editActivationEmail",[o.action],Object.getOwnPropertyDescriptor(p.prototype,"editActivationEmail"),p.prototype),p);(0,m.setComponentTemplate)(d,g)},704:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"pXemSB1s",block:'[[[8,[39,0],[[24,0,"post-enqueued-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.approval.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[10,2],[12],[1,[28,[35,1],["review.approval.description"],null]],[13],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,2],[[28,[37,1],["review.approval.pending_posts"],[["count"],[[30,2,["pending_count"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,1],"review.approval.ok"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","html-safe","d-button"]]',moduleName:"discourse/components/modal/post-enqueued.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},66552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(3055),u=n(38864);const d=(0,n(8620).createTemplateFactory)({id:"U2jypP9n",block:'[[[8,[39,0],[[24,0,"publish-page-modal"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["topic.publish_page.title"],null]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["unpublished"]],[[[1,"      "],[10,2],[12],[1,[28,[35,1],["topic.publish_page.unpublished"],null]],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,3],null,[["@condition"],[[30,0,["initializing"]]]],[["default"],[[[[1,"\\n        "],[10,2],[14,0,"publish-description"],[12],[1,[28,[35,1],["topic.publish_page.description"],null]],[13],[1,"\\n\\n        "],[10,"form"],[12],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[10,"label"],[12],[1,[28,[35,1],["topic.publish_page.slug"],null]],[13],[1,"\\n            "],[8,[39,4],[[24,0,"publish-slug"]],[["@value","@onChange","@onChangeImmediate","@disabled"],[[30,0,["publishedPage","slug"]],[30,0,["checkSlug"]],[30,0,["startCheckSlug"]],[30,0,["existing"]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[10,"label"],[12],[1,[28,[35,1],["topic.publish_page.public"],null]],[13],[1,"\\n\\n            "],[10,2],[14,0,"description"],[12],[1,"\\n              "],[8,[39,5],[[4,[38,7],["click",[30,0,["onChangePublic"]]],null]],[["@type","@checked"],["checkbox",[28,[37,6],[[30,0,["publishedPage","public"]]],null]]],null],[1,"\\n              "],[1,[28,[35,1],["topic.publish_page.public_description"],null]],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"publish-url"],[12],[1,"\\n          "],[8,[39,3],null,[["@condition"],[[30,0,["checking"]]]],null],[1,"\\n\\n"],[41,[30,0,["existing"]],[[[1,"            "],[10,0],[14,0,"current-url"],[12],[1,"\\n              "],[1,[28,[35,1],["topic.publish_page.publish_url"],null]],[1,"\\n              "],[10,0],[12],[1,"\\n                "],[10,3],[15,6,[30,0,["publishedPage","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showUrl"]],[[[1,"              "],[10,0],[14,0,"valid-slug"],[12],[1,"\\n                "],[1,[28,[35,1],["topic.publish_page.preview_url"],null]],[1,"\\n                "],[10,0],[14,0,"example-url"],[12],[1,[30,0,["publishedPage","url"]]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["invalid"]],[[[1,"              "],[1,[28,[35,1],["topic.publish_page.invalid_slug"],null]],[1,"\\n              "],[10,1],[14,0,"invalid-slug"],[12],[1,[30,0,["reason"]]],[1,"."],[13],[1,"\\n"]],[]],null]],[]]],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]]],[1,"  "]],[]],[[[1,"\\n"],[41,[30,0,["showUnpublish"]],[[[1,"      "],[8,[39,8],[[24,0,"btn-danger"]],[["@label","@icon","@isLoading","@action"],["topic.publish_page.unpublish","trash-alt",[30,0,["unpublishing"]],[30,0,["unpublish"]]]],null],[1,"\\n\\n      "],[8,[39,8],[[24,0,"close-publish-page"]],[["@icon","@label","@action"],["times","close",[30,1]]],null],[1,"\\n"]],[]],[[[41,[30,0,["unpublished"]],[[[1,"      "],[8,[39,8],null,[["@label","@action"],["topic.publish_page.publishing_settings",[30,0,["startNew"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,8],[[24,0,"btn-primary publish-page"]],[["@label","@icon","@disabled","@isLoading","@action"],["topic.publish_page.publish","file",[30,0,["disabled"]],[30,0,["saving"]],[30,0,["publish"]]]],null],[1,"\\n    "]],[]]]],[]]],[1,"  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","if","conditional-loading-spinner","text-field","input","readonly","on","d-button"]]',moduleName:"discourse/components/modal/publish-page.hbs",isStrictMode:!1});var p,h,m,g,f,b=n(31691);const _="initializing",y="checking",w="valid",v="invalid",k="saving",x="existing",T="unpublishing",S="unpublished";let C=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"store",h,this),(0,r.Z)(this,"state",m,this),(0,r.Z)(this,"reason",g,this),(0,r.Z)(this,"publishedPage",f,this),this.store.find("published_page",this.args.model.id).then((e=>{this.state=x,this.publishedPage=e})).catch(this.startNew)}get initializing(){return this.state===_}get checking(){return this.state===y}get valid(){return this.state===w}get invalid(){return this.state===v}get saving(){return this.state===k}get new(){return"new"===this.state}get existing(){return this.state===x}get unpublishing(){return this.state===T}get unpublished(){return this.state===S}get disabled(){return this.state!==w}get showUrl(){return this.state===w||this.state===k||this.state===x}get showUnpublish(){return this.state===x||this.state===T}startCheckSlug(){this.state!==x&&(this.state=y)}checkSlug(){if(this.state!==x)return(0,c.ajax)("/pub/check-slug",{data:{slug:this.publishedPage.slug}}).then((e=>{e.valid_slug?this.state=w:(this.state=v,this.reason=e.reason)}))}unpublish(){return this.state=T,this.publishedPage.destroyRecord().then((()=>{this.state=S,this.args.model.set("publishedPage",null)})).catch((e=>{this.state=x,(0,u.popupAjaxError)(e)}))}publish(){return this.state=k,this.publishedPage.update(this.publishedPage.getProperties("slug","public")).then((()=>{this.state=x,this.args.model.set("publishedPage",this.publishedPage)})).catch((e=>{(0,u.popupAjaxError)(e),this.state=x}))}startNew(){this.state="new",this.publishedPage=this.store.createRecord("published_page",this.args.model.getProperties("id","slug","public")),this.checkSlug()}onChangePublic(e){this.publishedPage.set("public",e.target.checked),this.showUnpublish&&this.publish()}},h=(0,i.Z)(p.prototype,"store",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"state",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _}}),g=(0,i.Z)(p.prototype,"reason",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=(0,i.Z)(p.prototype,"publishedPage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,i.Z)(p.prototype,"startCheckSlug",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"startCheckSlug"),p.prototype),(0,i.Z)(p.prototype,"checkSlug",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"checkSlug"),p.prototype),(0,i.Z)(p.prototype,"unpublish",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"unpublish"),p.prototype),(0,i.Z)(p.prototype,"publish",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"publish"),p.prototype),(0,i.Z)(p.prototype,"startNew",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"startNew"),p.prototype),(0,i.Z)(p.prototype,"onChangePublic",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"onChangePublic"),p.prototype),p);(0,b.setComponentTemplate)(d,C)},77314:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(97245);const c=(0,n(8620).createTemplateFactory)({id:"g0CvwioU",block:'[[[8,[39,0],[[24,0,"incoming-email-modal"]],[["@title","@closeModal"],[[28,[37,1],["raw_email.title"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[10,0],[14,0,"incoming-email-tabs"],[12],[1,"\\n      "],[8,[39,2],[[16,0,[52,[28,[37,4],[[30,0,["tab"]],"raw"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayRaw"]],"post.raw_email.displays.raw.button","post.raw_email.displays.raw.title"]],null],[1,"\\n\\n"],[41,[30,0,["textPart"]],[[[1,"        "],[8,[39,2],[[16,0,[52,[28,[37,4],[[30,0,["tab"]],"text_part"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayTextPart"]],"post.raw_email.displays.text_part.button","post.raw_email.displays.text_part.title"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["htmlPart"]],[[[1,"        "],[8,[39,2],[[16,0,[52,[28,[37,4],[[30,0,["tab"]],"html_part"],null],"active"]]],[["@action","@label","@title"],[[30,0,["displayHtmlPart"]],"post.raw_email.displays.html_part.button","post.raw_email.displays.html_part.title"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"incoming-email-content"],[12],[1,"\\n"],[41,[28,[37,4],[[30,0,["tab"]],"raw"],null],[[[41,[30,0,["rawEmail"]],[[[1,"          "],[8,[39,5],null,[["@value"],[[30,0,["rawEmail"]]]],null],[1,""]],[]],[[[1,"          "],[1,[28,[35,1],["raw_email.not_available"],null]],[1,""]],[]]]],[]],null],[41,[28,[37,4],[[30,0,["tab"]],"text_part"],null],[[[1,"        "],[8,[39,5],null,[["@value"],[[30,0,["textPart"]]]],null],[1,""]],[]],null],[41,[28,[37,4],[[30,0,["tab"]],"html_part"],null],[[[1,"        "],[8,[39,6],[[24,0,"incoming-email-html-part"]],[["@html"],[[30,0,["htmlPart"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","d-button","if","eq","textarea","iframed-html"]]',moduleName:"discourse/components/modal/raw-email.hbs",isStrictMode:!1});var u,d,p,h,m,g=n(31691);let f=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"rawEmail",d,this),(0,r.Z)(this,"textPart",p,this),(0,r.Z)(this,"htmlPart",h,this),(0,r.Z)(this,"tab",m,this),this.args.model.id&&this.loadRawEmail(this.args.model.id)}async loadRawEmail(e){const t=await l.default.loadRawEmail(e);this.rawEmail=t.raw_email,this.textPart=t.text_part,this.htmlPart=t.html_part}displayRaw(){this.tab="raw"}displayTextPart(){this.tab="text_part"}displayHtmlPart(){this.tab="html_part"}},d=(0,i.Z)(u.prototype,"rawEmail",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.rawEmail||""}}),p=(0,i.Z)(u.prototype,"textPart",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h=(0,i.Z)(u.prototype,"htmlPart",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),m=(0,i.Z)(u.prototype,"tab",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"raw"}}),(0,i.Z)(u.prototype,"loadRawEmail",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"loadRawEmail"),u.prototype),(0,i.Z)(u.prototype,"displayRaw",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"displayRaw"),u.prototype),(0,i.Z)(u.prototype,"displayTextPart",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"displayTextPart"),u.prototype),(0,i.Z)(u.prototype,"displayHtmlPart",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"displayHtmlPart"),u.prototype),u);(0,g.setComponentTemplate)(c,f)},24721:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(49246),i=n(54001),s=n(82006),o=n(48163);const a=(0,n(8620).createTemplateFactory)({id:"0ON18SR+",block:'[[[8,[39,0],[[24,0,"reject-reason-reviewable-modal"]],[["@bodyClass","@closeModal","@title"],["reject-reason-reviewable-modal__explain-reviewable",[30,1],[28,[37,1],["review.reject_reason.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[8,[39,2],null,[["@value"],[[30,0,["rejectReason"]]]],null],[1,"    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[8,[39,3],[[24,0,"reject-reason-reviewable-modal__send_email--inline"]],[["@type","@checked"],["checkbox",[30,0,["sendEmail"]]]],null],[1,"\\n        "],[1,[28,[35,1],["review.reject_reason.send_email"],null]],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,4],[[24,0,"btn-danger"]],[["@icon","@action","@label"],["trash-alt",[30,0,["perform"]],"admin.user.delete"]],null],[1,"\\n    "],[8,[39,4],[[24,0,"cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","textarea","input","d-button"]]',moduleName:"discourse/components/modal/reject-reason-reviewable.hbs",isStrictMode:!1});var l,c=n(31691);let u=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"rejectReason",void 0),(0,r.Z)(this,"sendEmail",!1)}async perform(){this.args.model.reviewable.setProperties({rejectReason:this.rejectReason,sendEmail:this.sendEmail}),this.args.closeModal(),await this.args.model.performConfirmed(this.args.model.action)}},(0,i.Z)(l.prototype,"perform",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"perform"),l.prototype),l);(0,c.setComponentTemplate)(a,u)},94191:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(94664),i=n(49246),s=n(54001),o=n(31691),a=n.n(o),l=n(48163),c=n(6264),u=n(51372),d=n(17579),p=n(3055),h=n(38864);const m=(0,n(8620).createTemplateFactory)({id:"1SYzpU7/",block:'[[[8,[39,0],[[24,0,"reorder-categories"]],[["@title","@closeModal"],[[28,[37,1],["categories.reorder.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,"table"],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,1],["categories.category"],null]],[13],[1,"\\n        "],[10,"th"],[12],[1,[28,[35,1],["categories.reorder.position"],null]],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["categoriesOrdered"]]],null]],null],null,[[[1,"          "],[10,"tr"],[15,"data-category-id",[30,2,["id"]]],[12],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[10,0],[15,0,[28,[37,4],["reorder-categories-depth-",[30,2,["depth"]]],null]],[12],[1,"\\n                "],[1,[28,[35,5],[[30,2]],[["allowUncategorized"],["true"]]]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,"td"],[12],[1,"\\n              "],[10,0],[14,0,"reorder-categories-actions"],[12],[1,"\\n                "],[11,"input"],[16,2,[30,2,["position"]]],[24,"min","0"],[24,4,"number"],[4,[38,6],["input",[28,[37,7],[[30,0],[28,[37,8],[[30,0,["change"]],[30,2]],null]],[["value"],["target.value"]]]],null],[12],[13],[1,"\\n                "],[8,[39,9],[[24,0,"btn-default no-text"]],[["@action","@icon"],[[28,[37,8],[[30,0,["move"]],[30,2],-1],null],"arrow-up"]],null],[1,"\\n                "],[8,[39,9],[[24,0,"btn-default no-text"]],[["@action","@icon"],[[28,[37,8],[[30,0,["move"]],[30,2],1],null],"arrow-down"]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["save"]],"categories.reorder.save"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","category"],false,["d-modal","i18n","each","-track-array","concat","category-badge","on","action","fn","d-button"]]',moduleName:"discourse/components/modal/reorder-categories.hbs",isStrictMode:!1});var g,f,b,_;let y=(g=(0,c.sort)("site.categories","categoriesSorting"),f=class extends(a()){constructor(){super(...arguments),(0,r.Z)(this,"site",b,this),(0,i.Z)(this,"categoriesSorting",["position"]),(0,r.Z)(this,"categoriesOrdered",_,this)}init(){super.init(...arguments),(0,u.next)((()=>this.reorder()))}reorder(){this.reorderChildren(null,0,0)}reorderChildren(e,t,n){for(const r of this.categoriesOrdered)(null===e&&!r.get("parent_category_id")||r.get("parent_category_id")===e)&&(r.setProperties({depth:t,position:n++}),n=this.reorderChildren(r.get("id"),t+1,n));return n}countDescendants(e){return e.get("subcategories")?e.get("subcategories").reduce(((e,t)=>e+this.countDescendants(t)),e.get("subcategories").length):0}move(e,t){let n=e.get("position")+t;if(t>0){if(e.get("isParent")){let r=this.countDescendants(e);t<=r&&(n+=r)}}else{const e=this.categoriesOrdered.find((e=>e.get("position")===n));if(e&&e.get("ancestors")){const t=e.get("ancestors").reduce(((e,t)=>e.get("position")<t.get("position")?e:t));n=t.get("position")}}n>=this.categoriesOrdered.length?n=this.categoriesOrdered.length-1:n<0&&(n=0);for(const r of this.categoriesOrdered)if(t<0){if(r.get("position")<e.get("position")&&r.get("position")>=n){const e=r.get("position")+1;r.set("position",e)}}else if(r.get("position")>e.get("position")&&r.get("position")<=n){const e=r.get("position")-1;r.set("position",e)}e.set("position",n),this.reorder()}change(e,t){const n=(t=(t=parseInt(t,10))<e.get("position")?Math.ceil(t):Math.floor(t))-e.get("position");this.move(e,n)}async save(){this.reorder();const e={};for(const t of this.site.categories)e[t.get("id")]=t.get("position");try{await(0,p.ajax)("/categories/reorder",{type:"POST",data:{mapping:JSON.stringify(e)}}),window.location.reload()}catch(e){(0,h.popupAjaxError)(e)}}},b=(0,s.Z)(f.prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,s.Z)(f.prototype,"categoriesOrdered",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(f.prototype,"move",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"move"),f.prototype),(0,s.Z)(f.prototype,"change",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"change"),f.prototype),(0,s.Z)(f.prototype,"save",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"save"),f.prototype),f);(0,o.setComponentTemplate)(m,y)},87354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(33217),c=n(38864),u=n(20229),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"fXvlkmcP",block:'[[[8,[39,0],[[24,0,"request-group-membership-form"]],[["@title","@closeModal","@inline"],[[30,0,["title"]],[30,1],[30,2]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[12],[1,"\\n        "],[1,[28,[35,1],["groups.membership_request.reason"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,2],null,[["@value","@maxlength"],[[30,0,["reason"]],"5000"]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@disabled"],[[30,0,["requestMember"]],"groups.membership_request.submit",[30,0,["disableSubmit"]]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@close"],[[30,1]]],null],[1,"\\n    "],[8,[39,5],null,[["@size","@condition"],["small",[30,0,["loading"]]]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@inline"],false,["d-modal","i18n","expanding-text-area","d-button","d-modal-cancel","conditional-loading-spinner"]]',moduleName:"discourse/components/modal/request-group-membership-form.hbs",isStrictMode:!1});var h,m,g,f=n(31691);let b=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"loading",m,this),(0,r.Z)(this,"reason",g,this)}get title(){return d.default.t("groups.membership_request.title",{group_name:this.args.model.group.name})}get disableSubmit(){return this.loading||(0,l.isEmpty)(this.reason)}async requestMember(){this.loading=!0;try{const e=await this.args.model.group.requestMembership(this.reason);u.default.routeTo(e.relative_url)}catch(e){(0,c.popupAjaxError)(e)}finally{this.loading=!1}}},m=(0,i.Z)(h.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,i.Z)(h.prototype,"reason",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.group.membership_request_template}}),(0,i.Z)(h.prototype,"requestMember",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"requestMember"),h.prototype),h);(0,f.setComponentTemplate)(p,b)},31077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(33217),u=n(38864),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"jBqQTci7",block:'[[[8,[39,0],[[24,0,"revise-and-reject-reviewable"]],[["@closeModal","@title"],[[30,1],[28,[37,1],["review.revise_and_reject_post.title"],null]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"revise-and-reject-reviewable__queued-post"],[12],[1,"\\n      "],[8,[39,2],null,[["@reviewable","@tagName"],[[30,2,["reviewable"]],""]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[14,"for","reason"],[12],[1,[28,[35,1],["review.revise_and_reject_post.reason"],null]],[13],[1,"\\n      "],[8,[39,3],[[24,0,"revise-and-reject-reviewable__reason"]],[["@name","@content","@value","@onChange"],["reason",[30,0,["configuredReasons"]],[30,0,["reason"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["reason"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["showCustomReason"]],[[[1,"      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[14,"for","custom_reason"],[12],[1,[28,[35,1],["review.revise_and_reject_post.custom_reason"],null]],[13],[1,"\\n        "],[8,[39,7],[[24,3,"custom_reason"],[24,0,"revise-and-reject-reviewable__custom-reason"]],[["@type","@value"],["text",[30,0,["customReason"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[14,"for","feedback"],[12],[1,[28,[35,1],["review.revise_and_reject_post.feedback"],null]],[1,"\\n        "],[10,1],[14,0,"revise-and-reject-reviewable__optional"],[12],[1,"("],[1,[28,[35,1],["review.revise_and_reject_post.optional"],null]],[1,")"],[13],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,8],[[24,0,"revise-and-reject-reviewable__feedback"]],[["@name","@value","@onChange"],["feedback",[30,0,["feedback"]],[28,[37,4],[[30,0],[28,[37,5],[[30,0,["feedback"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,9],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[30,0,["rejectAndSendPM"]],[30,0,["sendPMDisabled"]],"review.revise_and_reject_post.send_pm"]],null],[1,"\\n    "],[8,[39,9],[[24,0,"btn-flat d-modal-cancel"]],[["@action","@label"],[[30,1],"cancel"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","reviewable-queued-post","combo-box","action","mut","if","input","d-textarea","d-button"]]',moduleName:"discourse/components/modal/revise-and-reject-post-reviewable.hbs",isStrictMode:!1});var h,m,g,f,b,_,y=n(31691);const w="other_reason";let v=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",m,this),(0,r.Z)(this,"reason",g,this),(0,r.Z)(this,"customReason",f,this),(0,r.Z)(this,"feedback",b,this),(0,r.Z)(this,"submitting",_,this)}get configuredReasons(){return this.siteSettings.reviewable_revision_reasons.split("|").filter(Boolean).map((e=>({id:e,name:e}))).concat([{id:w,name:d.default.t("review.revise_and_reject_post.other_reason")}])}get showCustomReason(){return this.reason===w}get sendPMDisabled(){return(0,c.isEmpty)(this.reason)||this.reason===w&&(0,c.isEmpty)(this.customReason)||this.submitting}async rejectAndSendPM(){this.submitting=!0;try{await this.args.model.performConfirmed(this.args.model.action,{revise_reason:this.reason,revise_custom_reason:this.customReason,revise_feedback:this.feedback}),this.args.closeModal()}catch(e){(0,u.popupAjaxError)(e)}finally{this.submitting=!1}}},m=(0,i.Z)(h.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"reason",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"customReason",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(h.prototype,"feedback",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(h.prototype,"submitting",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(h.prototype,"rejectAndSendPM",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"rejectAndSendPM"),h.prototype),h);(0,y.setComponentTemplate)(p,v)},3764:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(78580),d=n(7223),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"cuA70RP/",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["securityKeyRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.security_key.add"],null]]],[["body"],[[[[1,"\\n    "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"        "],[10,0],[14,0,"control-group"],[12],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[1,[28,[35,5],[[28,[37,1],["user.second_factor.enable_security_key_description"],null]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,6],[[24,1,"security-key-name"],[24,"placeholder","security key name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@value"],[[30,0,["securityKeyName"]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[41,[51,[30,0,["webauthnUnsupported"]]],[[[1,"            "],[8,[39,8],[[24,0,"btn-primary add-security-key"]],[["@action","@label"],[[30,0,["registerSecurityKey"]],"user.second_factor.security_key.register"]],null],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert","conditional-loading-spinner","if","html-safe","input","unless","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-security-key.hbs",isStrictMode:!1});var m,g,f,b,_,y=n(31691);let w=(m=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"capabilities",g,this),(0,r.Z)(this,"loading",f,this),(0,r.Z)(this,"errorMessage",b,this),(0,r.Z)(this,"securityKeyName",_,this),(0,i.Z)(this,"maxSecondFactorNameLength",d.MAX_SECOND_FACTOR_NAME_LENGTH)}get webauthnUnsupported(){return!(0,u.isWebauthnSupported)()}securityKeyRequested(){let e;e=this.capabilities.isIOS&&!this.capabilities.isIpadOS?"user.second_factor.security_key.iphone_default_name":this.capabilities.isAndroid?"user.second_factor.security_key.android_default_name":"user.second_factor.security_key.default_name",this.securityKeyName=p.default.t(e),this.loading=!0,this.args.model.secondFactor.requestSecurityKeyChallenge().then((e=>{e.error?this.errorMessage=e.error:(this.errorMessage=(0,u.isWebauthnSupported)()?null:p.default.t("login.security_key_support_missing_error"),this.loading=!1,this.challenge=e.challenge,this.relayingParty={id:e.rp_id,name:e.rp_name},this.supported_algorithms=e.supported_algorithms,this.user_secure_id=e.user_secure_id,this.existing_active_credential_ids=e.existing_active_credential_ids)})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>this.loading=!1))}registerSecurityKey(){if(!this.securityKeyName)return void(this.errorMessage=p.default.t("user.second_factor.security_key.name_required_error"));const e={challenge:Uint8Array.from(this.challenge,(e=>e.charCodeAt(0))),rp:{name:this.relayingParty.name,id:this.relayingParty.id},user:{id:Uint8Array.from(this.user_secure_id,(e=>e.charCodeAt(0))),displayName:this.args.model.secondFactor.username_lower,name:this.args.model.secondFactor.username_lower},pubKeyCredParams:this.supported_algorithms.map((e=>({type:"public-key",alg:e}))),excludeCredentials:this.existing_active_credential_ids.map((e=>({type:"public-key",id:(0,u.stringToBuffer)(atob(e))}))),timeout:2e4,attestation:"none",authenticatorSelection:{userVerification:"discouraged"}};navigator.credentials.create({publicKey:e}).then((e=>{let t={id:e.id,rawId:(0,u.bufferToBase64)(e.rawId),type:e.type,attestation:(0,u.bufferToBase64)(e.response.attestationObject),clientData:(0,u.bufferToBase64)(e.response.clientDataJSON),name:this.securityKeyName};this.args.model.secondFactor.registerSecurityKey(t).then((e=>{e.error?this.errorMessage=e.error:(this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal(),this.args.model.enforcedSecondFactor&&window.location.reload())})).catch((e=>this.args.model.onError(e))).finally((()=>this.loading=!1))}),(e=>{"InvalidStateError"!==e.name?"NotAllowedError"!==e.name?this.errorMessage=e.message:this.errorMessage=p.default.t("user.second_factor.security_key.not_allowed_error"):this.errorMessage=p.default.t("user.second_factor.security_key.already_added_error")}))}},g=(0,s.Z)(m.prototype,"capabilities",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,s.Z)(m.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,s.Z)(m.prototype,"errorMessage",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=(0,s.Z)(m.prototype,"securityKeyName",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(m.prototype,"securityKeyRequested",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"securityKeyRequested"),m.prototype),(0,s.Z)(m.prototype,"registerSecurityKey",[l.action],Object.getOwnPropertyDescriptor(m.prototype,"registerSecurityKey"),m.prototype),m);(0,y.setComponentTemplate)(h,w)},55215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(7223),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"tuQ7Epz0",block:'[[[8,[39,0],[[4,[38,2],[[30,0,["totpRequested"]]],null]],[["@closeModal","@title"],[[30,1],[28,[37,1],["user.second_factor.totp.add"],null]]],[["body"],[[[[1,"\\n    "],[8,[39,3],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"        "],[10,0],[14,0,"control-group"],[12],[1,"\\n          "],[10,0],[14,0,"controls"],[12],[1,"\\n            "],[10,0],[14,0,"alert alert-error"],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[1,[28,[35,5],[[28,[37,1],["user.second_factor.enable_description"],null]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,0],[14,0,"qr-code"],[12],[1,"\\n            "],[10,"img"],[15,"src",[28,[37,5],[[30,0,["secondFactorImage"]]],null]],[12],[13],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[12],[1,"\\n"],[41,[30,0,["showSecondFactorKey"]],[[[1,"              "],[10,0],[14,0,"second-factor-key"],[12],[1,"\\n                "],[1,[30,0,["secondFactorKey"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[11,3],[24,6,""],[24,0,"show-second-factor-key"],[4,[38,6],["click",[30,0,["enableShowSecondFactorKey"]]],null],[12],[1,[28,[35,1],["user.second_factor.show_key_description"],null]],[13],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,[28,[35,1],["user.second_factor.name"],null]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,7],[[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@value","@inputId","@placeholder"],[[30,0,["secondFactorName"]],"second-factor-name",[28,[37,1],["user.second_factor.totp.default_name"],null]]],null],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,"label"],[14,0,"control-label input-prepend"],[12],[1,[28,[35,1],["user.second_factor.label"],null]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,8],[[24,0,"second-factor-token-input"],[16,"maxlength",6],[24,"placeholder","123456"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,"autofocus","autofocus"]],[["@value","@inputId"],[[30,0,["secondFactorToken"]],"second-factor-token"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"control-group"],[12],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,9],[[24,0,"btn-primary add-totp"]],[["@action","@label"],[[30,0,["enableSecondFactor"]],"enable"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","did-insert","conditional-loading-spinner","if","html-safe","on","second-factor-input","text-field","d-button"]]',moduleName:"discourse/components/modal/second-factor-add-totp.hbs",isStrictMode:!1});var p,h,m,g,f,b,_,y=n(31691);let w=(p=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"loading",h,this),(0,r.Z)(this,"secondFactorImage",m,this),(0,r.Z)(this,"secondFactorKey",g,this),(0,r.Z)(this,"showSecondFactorKey",f,this),(0,r.Z)(this,"errorMessage",b,this),(0,r.Z)(this,"secondFactorToken",_,this),(0,i.Z)(this,"maxSecondFactorNameLength",c.MAX_SECOND_FACTOR_NAME_LENGTH)}totpRequested(){this.args.model.secondFactor.createSecondFactorTotp().then((e=>{e.error?this.errorMessage=e.error:(this.errorMessage=null,this.secondFactorKey=e.key,this.secondFactorImage=e.qr)})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>this.loading=!1))}enableShowSecondFactorKey(e){e.preventDefault(),e.stopImmediatePropagation(),this.showSecondFactorKey=!0}enableSecondFactor(){this.secondFactorToken&&this.secondFactorName?(this.loading=!0,this.args.model.secondFactor.enableSecondFactorTotp(this.secondFactorToken,this.secondFactorName).then((e=>{e.error?this.errorMessage=e.error:(this.args.model.markDirty(),this.errorMessage=null,this.args.closeModal(),this.args.model.enforcedSecondFactor&&window.location.reload())})).catch((e=>this.args.model.onError(e))).finally((()=>this.loading=!1))):this.errorMessage=u.default.t("user.second_factor.totp.name_and_code_required_error")}},h=(0,s.Z)(p.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),m=(0,s.Z)(p.prototype,"secondFactorImage",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(p.prototype,"secondFactorKey",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,s.Z)(p.prototype,"showSecondFactorKey",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),b=(0,s.Z)(p.prototype,"errorMessage",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,s.Z)(p.prototype,"secondFactorToken",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(p.prototype,"totpRequested",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"totpRequested"),p.prototype),(0,s.Z)(p.prototype,"enableShowSecondFactorKey",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"enableShowSecondFactorKey"),p.prototype),(0,s.Z)(p.prototype,"enableSecondFactor",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"enableSecondFactor"),p.prototype),p);(0,y.setComponentTemplate)(d,w)},80147:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(7223),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"qdJq14tP",block:'[[[8,[39,0],[[24,0,"second-factor-backup-edit-modal"]],[["@title","@closeModal"],[[28,[37,1],["user.second_factor_backup.title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n"],[41,[30,0,["successMessage"]],[[[1,"      "],[10,0],[14,0,"alert alert-success"],[12],[1,"\\n        "],[1,[30,0,["successMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"      "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n        "],[1,[30,0,["errorMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,3],null,[["@isLoading"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["backupCodes"]],[[[1,"        "],[10,"h3"],[12],[1,[28,[35,1],["user.second_factor_backup.codes.title"],null]],[13],[1,"\\n        "],[10,2],[12],[1,[28,[35,1],["user.second_factor_backup.codes.description"],null]],[13],[1,"\\n        "],[8,[39,4],null,[["@copyBackupCode","@backupCodes"],[[30,0,["copyBackupCode"]],[30,0,["backupCodes"]]]],null],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["backupEnabled"]],[[[1,"      "],[1,[28,[35,5],[[28,[37,1],["user.second_factor_backup.remaining_codes"],[["count"],[[30,0,["remainingCodes"]]]]]],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,5],[[28,[37,1],["user.second_factor_backup.not_enabled"],null]],null]],[1,"\\n"]],[]]],[1,"  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"actions"],[12],[1,"\\n"],[41,[30,0,["backupEnabled"]],[[[1,"        "],[8,[39,6],[[24,0,"btn-primary"]],[["@icon","@action","@type","@isLoading","@label"],["redo",[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.regenerate"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,6],[[24,0,"btn-primary"]],[["@action","@type","@disabled","@label"],[[30,0,["generateSecondFactorCodes"]],"submit",[30,0,["loading"]],"user.second_factor_backup.enable"]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","if","conditional-loading-section","backup-codes","html-safe","d-button"]]',moduleName:"discourse/components/modal/second-factor-backup-edit.hbs",isStrictMode:!1});var p,h,m,g,f,b,_,y,w,v=n(31691);let k=(p=(0,c.debounce)(2e3),h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"loading",m,this),(0,r.Z)(this,"errorMessage",g,this),(0,r.Z)(this,"successMessage",f,this),(0,r.Z)(this,"backupEnabled",b,this),(0,r.Z)(this,"remainingCodes",_,this),(0,r.Z)(this,"backupCodes",y,this),(0,r.Z)(this,"secondFactorMethod",w,this)}copyBackupCode(e){e?this.successMessage=u.default.t("user.second_factor_backup.copied_to_clipboard"):this.errorMessage=u.default.t("user.second_factor_backup.copy_to_clipboard_error"),this._hideCopyMessage()}generateSecondFactorCodes(){this.loading=!0,this.args.model.secondFactor.generateSecondFactorCodes().then((e=>{e.error?this.errorMessage=e.error:(this.args.model.markDirty(),this.errorMessage=null,this.backupCodes=e.backup_codes,this.args.model.setBackupEnabled(!0),this.backupEnabled=!0,this.remainingCodes=e.backup_codes.length,this.args.model.setCodesRemaining(this.remainingCodes))})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>this.loading=!1))}_hideCopyMessage(){this.successMessage=null,this.errorMessage=null}},m=(0,i.Z)(h.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,i.Z)(h.prototype,"errorMessage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"successMessage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(h.prototype,"backupEnabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.secondFactor.second_factor_backup_enabled}}),_=(0,i.Z)(h.prototype,"remainingCodes",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.model.secondFactor.second_factor_remaining_backup_codes}}),y=(0,i.Z)(h.prototype,"backupCodes",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(h.prototype,"secondFactorMethod",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l.SECOND_FACTOR_METHODS.TOTP}}),(0,i.Z)(h.prototype,"copyBackupCode",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"copyBackupCode"),h.prototype),(0,i.Z)(h.prototype,"generateSecondFactorCodes",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"generateSecondFactorCodes"),h.prototype),(0,i.Z)(h.prototype,"_hideCopyMessage",[p],Object.getOwnPropertyDescriptor(h.prototype,"_hideCopyMessage"),h.prototype),h);(0,v.setComponentTemplate)(d,k)},54106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(7223);const u=(0,n(8620).createTemplateFactory)({id:"PMwXmBPc",block:'[[[8,[39,0],null,[["@title","@closeModal","@tagName"],[[28,[37,1],["user.second_factor.security_key.edit"],null],[30,1],"form"]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"input-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","security-key-name"],[12],[1,[28,[35,1],["user.second_factor.security_key.edit_description"],null]],[13],[1,"\\n      "],[8,[39,2],[[24,3,"security-key-name"],[24,1,"security-key-name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@type","@value"],["text",[30,2,["securityKey","name"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@type"],[[30,0,["editSecurityKey"]],"user.second_factor.security_key.save","submit"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","input","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit-security-key.hbs",isStrictMode:!1});var d,p,h=n(31691);let m=(d=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"loading",p,this),(0,i.Z)(this,"maxSecondFactorNameLength",c.MAX_SECOND_FACTOR_NAME_LENGTH)}editSecurityKey(){this.loading=!0,this.args.model.user.updateSecurityKey(this.args.model.securityKey.id,this.args.model.securityKey.name,!1).then((e=>{e.error||this.args.model.markDirty()})).catch((e=>{this.args.model.onError(e)})).finally((()=>{this.loading=!1,this.args.closeModal()}))}},p=(0,s.Z)(d.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(d.prototype,"editSecurityKey",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"editSecurityKey"),d.prototype),d);(0,h.setComponentTemplate)(u,m)},73012:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(7223);const u=(0,n(8620).createTemplateFactory)({id:"L7zSO/yj",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["user.second_factor.edit_title"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"input-group"],[12],[1,"\\n      "],[10,"label"],[14,"for","authenticator-name"],[12],[1,[28,[35,1],["user.second_factor.edit_description"],null]],[13],[1,"\\n      "],[8,[39,2],[[24,3,"authenticator-name"],[16,"maxlength",[30,0,["maxSecondFactorNameLength"]]]],[["@type","@value"],["text",[30,2,["secondFactor","name"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label"],[[30,0,["editSecondFactor"]],"user.second_factor.save"]],null],[1,"\\n  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","input","d-button"]]',moduleName:"discourse/components/modal/second-factor-edit.hbs",isStrictMode:!1});var d,p,h=n(31691);let m=(d=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"loading",p,this),(0,i.Z)(this,"maxSecondFactorNameLength",c.MAX_SECOND_FACTOR_NAME_LENGTH)}editSecondFactor(){this.loading=!0,this.args.model.user.updateSecondFactor(this.args.model.secondFactor.id,this.args.model.secondFactor.name,!1,this.args.model.secondFactor.method).then((e=>{e.error||this.args.model.markDirty()})).catch((e=>{this.args.closeModal(),this.args.model.onError(e)})).finally((()=>{this.loading=!1,this.args.closeModal()}))}},p=(0,s.Z)(d.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(d.prototype,"editSecondFactor",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"editSecondFactor"),d.prototype),d);(0,h.setComponentTemplate)(u,m)},75900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(54001),i=n(72326),s=n(31691),o=n.n(s),a=n(48163),l=n(6264),c=n(17579),u=n(95573),d=n(70352),p=n(25477),h=n(20003),m=n(56746),g=n(47582),f=n(57555),b=n(82099);const _=(0,n(8620).createTemplateFactory)({id:"emPMNrm3",block:'[[[8,[39,0],[[24,0,"share-topic-modal"]],[["@title","@subtitle","@closeModal","@flash","@flashType"],[[52,[30,0,["post"]],[28,[37,2],["post.share.title"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.title"],null]],[52,[30,0,["post"]],[30,0,["displayDate"]]],[30,1],[30,0,["flash"]],[30,0,["flashType"]]]],[["default"],[[[[1,"\\n  "],[10,"form"],[12],[1,"\\n    "],[10,0],[14,0,"input-group invite-link"],[12],[1,"\\n      "],[10,"label"],[14,"for","invite-link"],[12],[1,"\\n        "],[1,[52,[30,0,["post"]],[28,[37,2],["post.share.instructions"],[["post_number"],[[30,0,["post","post_number"]]]]],[28,[37,2],["topic.share.instructions"],null]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"link-share-container"],[12],[1,"\\n        "],[8,[39,3],[[24,1,"invite-link"],[24,3,"invite-link"],[24,0,"invite-link"],[16,"readonly",true],[24,"size","200"]],[["@value"],[[30,0,["url"]]]],null],[1,"\\n        "],[8,[39,4],null,[["@selector","@ariaLabel"],["input.invite-link","share.url"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"link-share-actions"],[12],[1,"\\n      "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["sources"]]],null]],null],null,[[[1,"          "],[8,[39,7],null,[["@source","@title","@action"],[[30,2],[30,0,["topic","title"]],[28,[37,8],[[30,0],"share"],null]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["allowInvites"]],[[[1,"          "],[8,[39,9],[[24,0,"btn-default invite"]],[["@label","@icon","@action"],["topic.share.invite_users","user-plus",[30,0,["inviteUsers"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["topic","details","can_reply_as_new_topic"]],[[[41,[30,0,["topic","isPrivateMessage"]],[[[1,"            "],[8,[39,9],[[24,0,"btn-default new-topic"]],[["@action","@icon","@ariaLabel","@title","@label"],[[30,0,["replyAsNewTopic"]],"plus","post.reply_as_new_private_message","post.reply_as_new_private_message","user.new_private_message"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,9],[[24,0,"btn-default new-topic"]],[["@action","@icon","@ariaLabel","@title","@label"],[[30,0,["replyAsNewTopic"]],"plus","post.reply_as_new_topic","post.reply_as_new_topic","topic.create"]],null],[1,"\\n"]],[]]]],[]],null],[1,"        "],[8,[39,10],null,[["@name","@outletArgs"],["share-topic-sources",[28,[37,11],null,[["topic","post"],[[30,0,["topic"]],[30,0,["post"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@closeModal","s"],false,["d-modal","if","i18n","input","copy-button","each","-track-array","share-source","action","d-button","plugin-outlet","hash"]]',moduleName:"discourse/components/modal/share-topic.hbs",isStrictMode:!1});var y,w,v,k;const x=o().extend((0,h.bufferedProperty)("invite"),(y=(0,f.default)("post.shareUrl","topic.shareUrl"),w=(0,f.default)("post.created_at","post.wiki","post.last_wiki_edit"),v=(0,f.default)("topic.{isPrivateMessage,invisible,category.read_restricted}"),k={topic:(0,l.readOnly)("model.topic"),post:(0,l.readOnly)("model.post"),category:(0,l.readOnly)("model.category"),allowInvites:(0,l.readOnly)("model.allowInvites"),modal:(0,c.inject)(),didInsertElement(){this._showRestrictedGroupWarning(),this._selectUrl(),this._super()},_showRestrictedGroupWarning(){this.category&&m.default.fetchVisibleGroups(this.category.id).then((e=>{e.groups.length>0&&this.setProperties({flash:b.default.t("topic.share.restricted_groups",{count:e.groups.length,groupNames:e.groups.join(", ")}),flashType:"warning"})}))},_selectUrl(){const e=document.querySelector("input.invite-link");e&&!this.site.mobileView&&(e.setSelectionRange(0,this.url.length),e.focus())},url:(e,t)=>e?(0,g.getAbsoluteURL)(e):t?(0,g.getAbsoluteURL)(t):void 0,displayDate(e,t,n){const r=t&&n?n:e;return(0,d.longDateNoYear)(new Date(r))},sources(e){const t=this.siteSettings.login_required||e?.isPrivateMessage||e?.invisible||e?.category?.read_restricted;return p.default.activeSources(this.siteSettings.share_links,t)},share(e){p.default.shareSource(e,{title:this.topic.title,url:this.url})},inviteUsers(){this.modal.show(u.default,{model:{inviteToTopic:!0,topics:[this.topic],topicId:this.topic.id,topicTitle:this.topic.title}})},replyAsNewTopic(){const e=this.topic.postStream,t=this.post?.id||e.findPostIdForPostNumber(1),n=e.findLoadedPost(t),r=(0,i.getOwner)(this).lookup("controller:topic");r.actions.replyAsNewTopic.call(r,n),this.closeModal()}},(0,r.Z)(k,"_showRestrictedGroupWarning",[f.afterRender],Object.getOwnPropertyDescriptor(k,"_showRestrictedGroupWarning"),k),(0,r.Z)(k,"_selectUrl",[f.afterRender],Object.getOwnPropertyDescriptor(k,"_selectUrl"),k),(0,r.Z)(k,"url",[y],Object.getOwnPropertyDescriptor(k,"url"),k),(0,r.Z)(k,"displayDate",[w],Object.getOwnPropertyDescriptor(k,"displayDate"),k),(0,r.Z)(k,"sources",[v],Object.getOwnPropertyDescriptor(k,"sources"),k),(0,r.Z)(k,"share",[a.action],Object.getOwnPropertyDescriptor(k,"share"),k),(0,r.Z)(k,"inviteUsers",[a.action],Object.getOwnPropertyDescriptor(k,"inviteUsers"),k),(0,r.Z)(k,"replyAsNewTopic",[a.action],Object.getOwnPropertyDescriptor(k,"replyAsNewTopic"),k),k));x.reopenClass({modalClass:"share-topic-modal"});const T=(0,s.setComponentTemplate)(_,x)},54052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>he});var r=n(94664),i=n(49246),s=n(32758),o=n(54001),a=n(23183),l=n(38307),c=n(31691),u=n.n(c),d=n(48163),p=n(17579),h=n(33217),m=n(3055),g=n(38864),f=n(24307),b=n(47985),_=n(35193),y=n(57555),w=n(82099),v=n(91649);const k=(0,n(8620).createTemplateFactory)({id:"PW+/u3Oz",block:'[[[8,[39,0],[[24,0,"sidebar-section-form-modal"]],[["@closeModal","@flash","@flashType","@title"],[[30,1],[30,0,["flash"]],[30,0,["flashType"]],[28,[37,1],[[30,0,["header"]]],null]]],[["body","footer"],[[[[1,"\\n    "],[10,"form"],[14,0,"form-horizontal sidebar-section-form"],[12],[1,"\\n"],[41,[51,[30,0,["transformedModel","hideTitleInput"]]],[[[1,"        "],[10,0],[14,0,"sidebar-section-form__input-wrapper"],[12],[1,"\\n          "],[10,"label"],[14,"for","section-name"],[12],[1,"\\n            "],[1,[28,[35,1],["sidebar.sections.custom.title.label"],null]],[1,"\\n          "],[13],[1,"\\n\\n          "],[8,[39,3],[[24,3,"section-name"],[16,0,[30,0,["transformedModel","titleCssClass"]]],[4,[38,4],["input",[28,[37,5],[[30,0],[28,[37,6],[[30,0,["transformedModel","title"]]],null]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,0,["transformedModel","title"]]]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","invalidTitleMessage"]],[[[1,"            "],[10,0],[14,0,"title warning"],[12],[1,"\\n              "],[1,[30,0,["transformedModel","invalidTitleMessage"]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"row-wrapper header"],[12],[1,"\\n        "],[10,0],[14,0,"input-group link-icon"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.icon.label"],null]],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"input-group link-name"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.name.label"],null]],[13],[1,"\\n        "],[13],[1,"\\n\\n        "],[10,0],[14,0,"input-group link-url"],[12],[1,"\\n          "],[10,"label"],[12],[1,[28,[35,1],["sidebar.sections.custom.links.value.label"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["activeLinks"]]],null]],null],null,[[[1,"        "],[8,[39,10],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,2],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n      "],[8,[39,11],[[24,0,"btn-flat btn-text add-link"]],[["@action","@title","@icon","@label","@ariaLabel"],[[30,0,["addLink"]],"sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1,"        "],[10,"hr"],[12],[13],[1,"\\n        "],[10,"h3"],[12],[1,[28,[35,1],["sidebar.sections.custom.more_menu"],null]],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["activeSecondaryLinks"]]],null]],null],null,[[[1,"          "],[8,[39,10],null,[["@link","@deleteLink","@reorderCallback","@setDraggedLinkCallback"],[[30,3],[30,0,["deleteLink"]],[30,0,["reorder"]],[30,0,["setDraggedLink"]]]],null],[1,"\\n"]],[3]],null],[1,"        "],[8,[39,11],[[24,0,"btn-flat btn-text add-link"]],[["@action","@title","@icon","@label","@ariaLabel"],[[30,0,["addSecondaryLink"]],"sidebar.sections.custom.links.add","plus","sidebar.sections.custom.links.add","sidebar.sections.custom.links.add"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,11],[[24,1,"save-section"],[24,0,"btn-primary"]],[["@action","@label","@ariaLabel","@disabled"],[[30,0,["save"]],"sidebar.sections.custom.save","sidebar.sections.custom.save",[28,[37,12],[[30,0,["transformedModel","valid"]]],null]]],null],[1,"\\n"],[41,[28,[37,13],[[30,0,["currentUser","admin"]]],null],[[[1,"      "],[10,0],[15,0,[29,["mark-public-wrapper\\n          ",[52,[30,0,["transformedModel","sectionType"]],"-disabled"]]]],[12],[1,"\\n        "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n"],[41,[30,0,["transformedModel","sectionType"]],[[[1,"            "],[8,[39,14],[[24,0,"always-public-tooltip"]],[["@icon","@content"],["check-square",[28,[37,1],["sidebar.sections.custom.always_public"],null]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,3],[[24,0,"mark-public"],[16,"disabled",[30,0,["transformedModel","sectionType"]]]],[["@type","@checked"],["checkbox",[30,0,["transformedModel","public"]]]],null],[1,"\\n"]],[]]],[1,"          "],[10,1],[12],[1,[28,[35,1],["sidebar.sections.custom.public"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canDelete"]],[[[1,"      "],[8,[39,11],[[24,1,"delete-section"],[24,0,"btn-danger delete"]],[["@icon","@action","@label","@ariaLabel"],["trash-alt",[30,0,["delete"]],"sidebar.sections.custom.delete","sidebar.sections.custom.delete"]],null],[1,"\\n"]],[]],null],[41,[30,0,["transformedModel","sectionType"]],[[[1,"      "],[8,[39,11],[[24,0,"btn-flat btn-text reset-link"]],[["@action","@icon","@title","@label","@ariaLabel"],[[30,0,["resetToDefault"]],"undo","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset","sidebar.sections.custom.links.reset"]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","link","link"],false,["d-modal","i18n","unless","input","on","action","mut","if","each","-track-array","sidebar/section-form-link","d-button","not","and","d-tooltip"]]',moduleName:"discourse/components/modal/sidebar-section-form.hbs",isStrictMode:!1});var x,T,S,C,P,O,E,D,I,j,Z,A,M,N,z,L,F,U,R,B,$,q,H,W,K;function V(e,t){Q(e,t),t.add(e)}function G(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Y(e,t,n){Q(e,t),t.set(e,n)}function Q(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}let J=(0,v.Z)(n(23183)).cached;const X=[/^\/my\/[a-z_\-\/]+$/,/^\/pub\/[a-z_\-\/]+$/,/^\/safe-mode$/];let ee=(P=new WeakMap,O=new WeakMap,x=class{constructor(e){let{title:t,links:n,secondaryLinks:i,id:s,publicSection:o,sectionType:a,hideTitleInput:l}=e;Y(this,O,{get:ne,set:void 0}),Y(this,P,{get:te,set:void 0}),(0,r.Z)(this,"title",T,this),(0,r.Z)(this,"links",S,this),(0,r.Z)(this,"secondaryLinks",C,this),this.title=t,this.public=o,this.sectionType=a,this.links=n,this.secondaryLinks=i,this.id=s,this.hideTitleInput=l}get valid(){const e=this.links.filter((e=>!e._destroy)).concat(this.secondaryLinks?.filter((e=>!e._destroy))||[]),t=e.length>0&&e.every((e=>e.valid));return this.validTitle&&t}get validTitle(){return!(0,s.Z)(this,P)&&!(0,s.Z)(this,O)}get invalidTitleMessage(){if(void 0!==this.title)return(0,s.Z)(this,P)?w.default.t("sidebar.sections.custom.title.validation.blank"):(0,s.Z)(this,O)?w.default.t("sidebar.sections.custom.title.validation.maximum",{count:f.SIDEBAR_SECTION.max_title_length}):void 0}get titleCssClass(){return void 0===this.title||this.validTitle?"":"warning"}},T=(0,o.Z)(x.prototype,"title",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,o.Z)(x.prototype,"links",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,o.Z)(x.prototype,"secondaryLinks",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x);function te(){return(0,h.isEmpty)(this.title)}function ne(){return this.title.length>f.SIDEBAR_SECTION.max_title_length}let re=(A=new WeakMap,M=new WeakMap,N=new WeakMap,z=new WeakMap,L=new WeakMap,F=new WeakMap,U=new WeakMap,R=new WeakSet,B=new WeakSet,E=class{constructor(e){let{router:t,icon:n,name:i,value:s,id:o,objectId:a,segment:l}=e;V(this,B),V(this,R),Y(this,U,{get:ue,set:void 0}),Y(this,F,{get:ce,set:void 0}),Y(this,L,{get:le,set:void 0}),Y(this,z,{get:ae,set:void 0}),Y(this,N,{get:oe,set:void 0}),Y(this,M,{get:se,set:void 0}),Y(this,A,{get:ie,set:void 0}),(0,r.Z)(this,"icon",D,this),(0,r.Z)(this,"name",I,this),(0,r.Z)(this,"value",j,this),(0,r.Z)(this,"_destroy",Z,this),this.router=t,this.icon=n||"link",this.name=i,this.value=s,this.id=o,this.httpHost="http://"+window.location.host,this.httpsHost="https://"+window.location.host,this.objectId=a,this.segment=l}get path(){return this.value?.replace(this.httpHost,"").replace(this.httpsHost,"")}get valid(){return this.validIcon&&this.validName&&this.validValue}get validIcon(){return!(0,s.Z)(this,A)&&!(0,s.Z)(this,M)}get validName(){return!(0,s.Z)(this,N)&&!(0,s.Z)(this,z)}get validValue(){return!(0,s.Z)(this,L)&&!(0,s.Z)(this,F)&&!(0,s.Z)(this,U)}get invalidIconMessage(){return(0,s.Z)(this,A)?w.default.t("sidebar.sections.custom.links.icon.validation.blank"):(0,s.Z)(this,M)?w.default.t("sidebar.sections.custom.links.icon.validation.maximum",{count:f.SIDEBAR_URL.max_icon_length}):void 0}get invalidNameMessage(){if(void 0!==this.name)return(0,s.Z)(this,N)?w.default.t("sidebar.sections.custom.links.name.validation.blank"):(0,s.Z)(this,z)?w.default.t("sidebar.sections.custom.links.name.validation.maximum",{count:f.SIDEBAR_URL.max_name_length}):void 0}get invalidValueMessage(){if(void 0!==this.value)return(0,s.Z)(this,L)?w.default.t("sidebar.sections.custom.links.value.validation.blank"):(0,s.Z)(this,F)?w.default.t("sidebar.sections.custom.links.value.validation.maximum",{count:f.SIDEBAR_URL.max_value_length}):(0,s.Z)(this,U)?w.default.t("sidebar.sections.custom.links.value.validation.invalid"):void 0}get iconCssClass(){return void 0===this.icon||this.validIcon?"":"warning"}get nameCssClass(){return void 0===this.name||this.validName?"":"warning"}get valueCssClass(){return void 0===this.value||this.validValue?"":"warning"}get external(){return this.value&&!(this.value.startsWith(this.httpHost)||this.value.startsWith(this.httpsHost)||this.value.startsWith("/"))}get isPrimary(){return"primary"===this.segment}},D=(0,o.Z)(E.prototype,"icon",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,o.Z)(E.prototype,"name",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,o.Z)(E.prototype,"value",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,o.Z)(E.prototype,"_destroy",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E);function ie(){return(0,h.isEmpty)(this.icon)}function se(){return this.icon.length>f.SIDEBAR_URL.max_icon_length}function oe(){return(0,h.isEmpty)(this.name)}function ae(){return this.name.length>f.SIDEBAR_URL.max_name_length}function le(){return(0,h.isEmpty)(this.value)}function ce(){return this.value.length>f.SIDEBAR_URL.max_value_length}function ue(){return this.path&&(this.external?!G(this,R,de).call(this):!G(this,B,pe).call(this))}function de(){try{return new URL(this.value)}catch{return!1}}function pe(){return"unknown"!==new b.default(this.router,this.path).route||X.some((e=>this.path.match(e)))}let he=($=class extends(u()){constructor(){super(...arguments),(0,r.Z)(this,"dialog",q,this),(0,r.Z)(this,"router",H,this),(0,r.Z)(this,"flash",W,this),(0,r.Z)(this,"flashType",K,this),(0,i.Z)(this,"nextObjectId",0)}get transformedModel(){const e=this.model?.section;return new ee(e?{title:e.title,publicSection:e.public,sectionType:e.section_type,links:e.links.reduce(((e,t)=>("primary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e)),(0,l.A)()),secondaryLinks:e.links.reduce(((e,t)=>("secondary"===t.segment&&(this.nextObjectId++,e.push(this.initLink(t))),e)),(0,l.A)()),id:e.id,hideTitleInput:this.model.hideSectionHeader}:{links:(0,l.A)([new re({router:this.router,objectId:this.nextObjectId,segment:"primary"})])})}initLink(e){return new re({router:this.router,icon:e.icon,name:e.name,value:e.value,id:e.id,objectId:this.nextObjectId,segment:e.segment})}create(){return(0,m.ajax)("/sidebar_sections",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.map((e=>({icon:e.icon,name:e.name,value:e.path})))})}).then((e=>{this.currentUser.set("sidebar_sections",this.currentUser.sidebar_sections.concat(e.sidebar_section)),this.closeModal()})).catch((e=>{this.flash=(0,_.sanitize)((0,g.extractError)(e)),this.flashType="error"}))}update(){return(0,m.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"PUT",contentType:"application/json",dataType:"json",data:JSON.stringify({title:this.transformedModel.title,public:this.transformedModel.public,links:this.transformedModel.links.concat(this.transformedModel?.secondaryLinks||[]).map((e=>({id:e.id,icon:e.icon,name:e.name,value:e.path,segment:e.segment,_destroy:e._destroy})))})}).then((e=>{const t=this.currentUser.sidebar_sections.map((t=>t.id===e.sidebar_section.id?e.sidebar_section:t));this.currentUser.set("sidebar_sections",t),this.closeModal()})).catch((e=>{this.flash=(0,_.sanitize)((0,g.extractError)(e)),this.flashType="error"}))}get activeLinks(){return this.transformedModel.links.filter((e=>!e._destroy))}get activeSecondaryLinks(){return this.transformedModel.secondaryLinks?.filter((e=>!e._destroy))}get header(){return this.transformedModel.id?"sidebar.sections.custom.edit":"sidebar.sections.custom.add"}setDraggedLink(e){this.draggedLink=e}reorder(e,t){if(this.draggedLink!==e)if(this.draggedLink.isPrimary?this.transformedModel.links.removeObject(this.draggedLink):this.transformedModel.secondaryLinks?.removeObject(this.draggedLink),e.isPrimary){const n=this.transformedModel.links.indexOf(e);this.draggedLink.segment="primary",this.transformedModel.links.insertAt(t?n:n+1,this.draggedLink)}else{this.draggedLink.segment="secondary";const n=this.transformedModel.secondaryLinks.indexOf(e);this.transformedModel.secondaryLinks.insertAt(t?n:n+1,this.draggedLink)}}get canDelete(){return this.transformedModel.id&&!this.transformedModel.sectionType}deleteLink(e){e.id?e._destroy="1":e.isPrimary?this.transformedModel.links.removeObject(e):this.transformedModel.secondaryLinks.removeObject(e)}addLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.links.pushObject(new re({router:this.router,objectId:this.nextObjectId,segment:"primary"}))}addSecondaryLink(){this.nextObjectId=this.nextObjectId+1,this.transformedModel.secondaryLinks.pushObject(new re({router:this.router,objectId:this.nextObjectId,segment:"secondary"}))}resetToDefault(){return this.dialog.yesNoConfirm({message:w.default.t("sidebar.sections.custom.reset_confirm"),didConfirm:()=>(0,m.ajax)(`/sidebar_sections/reset/${this.transformedModel.id}`,{type:"PUT"}).then((e=>{this.currentUser.sidebar_sections.shiftObject(),this.currentUser.sidebar_sections.unshiftObject(e.sidebar_section),this.closeModal()})).catch((e=>{this.flash=(0,_.sanitize)((0,g.extractError)(e)),this.flashType="error"}))})}save(){this.transformedModel.id?this.update():this.create()}delete(){return this.dialog.yesNoConfirm({message:w.default.t("sidebar.sections.custom.delete_confirm"),didConfirm:()=>(0,m.ajax)(`/sidebar_sections/${this.transformedModel.id}`,{type:"DELETE"}).then((()=>{const e=this.currentUser.sidebar_sections.filter((e=>e.id!==this.transformedModel.id));this.currentUser.set("sidebar_sections",e),this.closeModal()})).catch((e=>{this.flash=(0,_.sanitize)((0,g.extractError)(e)),this.flashType="error"}))})}},q=(0,o.Z)($.prototype,"dialog",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,o.Z)($.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,o.Z)($.prototype,"flash",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,o.Z)($.prototype,"flashType",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.Z)($.prototype,"transformedModel",[J],Object.getOwnPropertyDescriptor($.prototype,"transformedModel"),$.prototype),(0,o.Z)($.prototype,"setDraggedLink",[y.bind],Object.getOwnPropertyDescriptor($.prototype,"setDraggedLink"),$.prototype),(0,o.Z)($.prototype,"reorder",[y.bind],Object.getOwnPropertyDescriptor($.prototype,"reorder"),$.prototype),(0,o.Z)($.prototype,"deleteLink",[y.bind],Object.getOwnPropertyDescriptor($.prototype,"deleteLink"),$.prototype),(0,o.Z)($.prototype,"addLink",[d.action],Object.getOwnPropertyDescriptor($.prototype,"addLink"),$.prototype),(0,o.Z)($.prototype,"addSecondaryLink",[d.action],Object.getOwnPropertyDescriptor($.prototype,"addSecondaryLink"),$.prototype),(0,o.Z)($.prototype,"resetToDefault",[d.action],Object.getOwnPropertyDescriptor($.prototype,"resetToDefault"),$.prototype),(0,o.Z)($.prototype,"save",[d.action],Object.getOwnPropertyDescriptor($.prototype,"save"),$.prototype),(0,o.Z)($.prototype,"delete",[d.action],Object.getOwnPropertyDescriptor($.prototype,"delete"),$.prototype),$);(0,c.setComponentTemplate)(k,he)},51450:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r,i,s,o,a,l=n(94664),c=n(49246),u=n(54001),d=n(82006),p=n(23183),h=n(48163),m=n(88242),g=n(17579),f=n(72853),b=n(69338),_=n(83116),y=n(84244),w=n(2825),v=n(3055),k=n(38864),x=n(62617),T=n(91423),S=n(82099),C=n(81354),P=n(8620),O=n(31691);let E=(a=class extends d.default{constructor(){super(...arguments),(0,l.Z)(this,"dialog",i,this),(0,l.Z)(this,"showEditReason",s,this),(0,l.Z)(this,"loading",o,this),(0,c.Z)(this,"spreadsheet",null),(0,c.Z)(this,"defaultColWidth",150),(0,c.Z)(this,"isEditingTable",!!this.args.model.tableTokens),this.loadJspreadsheet()}get modalAttributes(){return this.isEditingTable?{title:"table_builder.edit.modal.title",insertTable:{title:"table_builder.edit.modal.create",icon:"pencil-alt"}}:{title:"table_builder.modal.title",insertTable:{title:"table_builder.modal.create",icon:"plus"}}}createSpreadsheet(e){this.spreadsheet=e,this.isEditingTable?this.buildPopulatedTable(this.args.model.tableTokens):this.buildNewTable()}showEditReasonField(){this.showEditReason=!this.showEditReason}interceptCloseModal(){this._hasChanges()?this.dialog.yesNoConfirm({message:S.default.t("table_builder.modal.confirm_close"),didConfirm:()=>this.args.closeModal()}):this.args.closeModal()}insertTable(){const e=this.spreadsheet.getHeaders().split(","),t=this.spreadsheet.getData(),n=this.buildTableMarkdown(e,t);return this.isEditingTable?this.updateTable(n):(this.args.model.toolbarEvent.addText(n),this.args.closeModal())}_hasChanges(){if(this.isEditingTable){const e=this.extractTableContent((0,x.tokenRange)(this.args.model.tableTokens,"tr_open","tr_close")),t=this.spreadsheet.getHeaders().split(","),n=this.spreadsheet.getData(),r=t.concat(n.flat());return JSON.stringify(r)!==JSON.stringify(e)}return this.spreadsheet.getData().flat().some((e=>""!==e))}async loadJspreadsheet(){const[e]=await Promise.all([n.e(421).then(n.t.bind(n,27421,23)),n.e(345).then(n.bind(n,36345)),Promise.all([n.e(968),n.e(539)]).then(n.bind(n,35539))]);this.jspreadsheet=e.default,this.loading=!1}buildNewTable(){const e=[{title:S.default.t("table_builder.default_header.col_1"),width:this.defaultColWidth},{title:S.default.t("table_builder.default_header.col_2"),width:this.defaultColWidth},{title:S.default.t("table_builder.default_header.col_3"),width:this.defaultColWidth},{title:S.default.t("table_builder.default_header.col_4"),width:this.defaultColWidth}];return this.buildSpreadsheet([["","",""],["","",""],["","",""],["","",""],["","",""],["","",""]],e)}extractTableContent(e){return e.flat().filter((e=>"inline"===e.type)).map((e=>e.content))}buildPopulatedTable(e){const t=(0,x.tokenRange)(e,"tr_open","tr_close"),n=[];let r;return t.forEach(((e,t)=>{0===t?r=this.extractTableContent(e).map((e=>({title:e,width:Math.max(8*e.length,this.defaultColWidth),align:"left"}))):n.push(this.extractTableContent(e))})),this.buildSpreadsheet(n,r)}buildSpreadsheet(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.args.model?.post_number,i=r?`post-${r}-table-export`:"post-table-export";this.spreadsheet=this.jspreadsheet(this.spreadsheet,{data:e,columns:t,defaultColAlign:"left",wordWrap:!0,csvFileName:i,text:this.localeMapping(),...n})}buildUpdatedPost(e,t,n){const r=t.match((0,x.findTableRegex)());let i;return r.length?(i=t.replace(r[e],n),i=i.replace(/\0/g,"�"),i):t}updateTable(e){const t=this.args.model.tableIndex,n=this.args.model.post.id,r=e,i=this.editReason||S.default.t("table_builder.edit.default_edit_reason"),s=this.args.model.post.raw,o=this.buildUpdatedPost(t,s,r);return this.sendTableUpdate(n,o,i)}sendTableUpdate(e,t,n){return(0,v.ajax)(`/posts/${e}.json`,{type:"PUT",data:{post:{raw:t,edit_reason:n}}}).catch(k.popupAjaxError).finally((()=>{this.args.closeModal()}))}buildTableMarkdown(e,t){const n=[];return t.forEach((t=>{const r={};e.forEach(((e,n)=>r[`col${n}`]=t[n])),n.push(r)})),(0,x.arrayToTable)(n,e)}localeMapping(){return{noRecordsFound:D("no_records_found"),show:D("show"),entries:D("entries"),insertANewColumnBefore:D("context_menu.col.before"),insertANewColumnAfter:D("context_menu.col.after"),deleteSelectedColumns:D("context_menu.col.delete"),renameThisColumn:D("context_menu.col.rename"),orderAscending:D("context_menu.order.ascending"),orderDescending:D("context_menu.order.descending"),insertANewRowBefore:D("context_menu.row.before"),insertANewRowAfter:D("context_menu.row.after"),deleteSelectedRows:D("context_menu.row.delete"),copy:D("context_menu.copy"),paste:D("context_menu.paste"),saveAs:D("context_menu.save"),about:D("about"),areYouSureToDeleteTheSelectedRows:D("prompts.delete_selected_rows"),areYouSureToDeleteTheSelectedColumns:D("prompts.delete_selected_cols"),thisActionWillDestroyAnyExistingMergedCellsAreYouSure:D("prompts.will_destroy_merged_cells"),thisActionWillClearYourSearchResultsAreYouSure:D("prompts.will_clear_search_results"),thereIsAConflictWithAnotherMergedCell:D("prompts.conflict_with_merged_cells"),invalidMergeProperties:D("invalid_merge_props"),cellAlreadyMerged:D("cells_already_merged"),noCellsSelected:D("no_cells_selected")}}},(0,O.setComponentTemplate)((0,P.createTemplateFactory)({id:"lLqjk0sN",block:'[[[1,"\\n    "],[8,[32,0],[[24,0,"insert-table-modal"]],[["@title","@closeModal"],[[28,[32,1],[[30,0,["modalAttributes","title"]]],null],[30,0,["interceptCloseModal"]]]],[["body","footer"],[[[[1,"\\n        "],[8,[32,2],null,[["@condition"],[[30,0,["loading"]]]],[["default"],[[[[1,"\\n          "],[11,0],[24,"tabindex","1"],[24,0,"jexcel_container"],[4,[32,3],[[30,0,["createSpreadsheet"]]],null],[12],[13],[1,"\\n        "]],[]]]]],[1,"\\n      "]],[]],[[[1,"\\n"],[41,[51,[30,0,["loading"]]],[[[1,"          "],[10,0],[14,0,"primary-actions"],[12],[1,"\\n            "],[8,[32,4],[[24,0,"btn-insert-table"]],[["@label","@icon","@action"],[[30,0,["modalAttributes","insertTable","title"]],[30,0,["modalAttributes","insertTable","icon"]],[30,0,["insertTable"]]]],null],[1,"\\n\\n            "],[8,[32,5],null,[["@close"],[[30,0,["interceptCloseModal"]]]],null],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,0],[14,0,"secondary-actions"],[12],[1,"\\n"],[41,[30,0,["isEditingTable"]],[[[1,"              "],[10,0],[14,0,"edit-reason"],[12],[1,"\\n                "],[8,[32,4],[[24,0,"btn-edit-reason"]],[["@icon","@title","@action"],["info-circle","table_builder.edit.modal.trigger_reason",[30,0,["showEditReasonField"]]]],null],[1,"\\n"],[41,[30,0,["showEditReason"]],[[[1,"                  "],[8,[32,6],null,[["@value","@placeholderKey"],[[30,0,["editReason"]],"table_builder.edit.modal.reason"]],null],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"            "],[8,[32,7],[[24,0,"btn btn-icon no-text"]],[["@icon","@triggers","@arrow"],["question","click",false]],[["default"],[[[[1,"\\n              "],[10,"ul"],[12],[1,"\\n                "],[10,"h4"],[12],[1,[28,[32,1],["table_builder.modal.help.title"],null]],[13],[1,"\\n                "],[10,"li"],[12],[1,"\\n                  "],[10,"kbd"],[12],[1,"\\n                    "],[1,[28,[32,1],["table_builder.modal.help.enter_key"],null]],[1,"\\n                  "],[13],[1,"\\n                  "],[1,[28,[32,1],["table_builder.modal.help.new_row"],null]],[1,"\\n                "],[13],[1,"\\n                "],[10,"li"],[12],[1,"\\n                  "],[10,"kbd"],[12],[1,"\\n                    "],[1,[28,[32,1],["table_builder.modal.help.tab_key"],null]],[1,"\\n                  "],[13],[1,"\\n                  "],[1,[28,[32,1],["table_builder.modal.help.new_col"],null]],[1,"\\n                "],[13],[1,"\\n                "],[10,"li"],[12],[1,[28,[32,1],["table_builder.modal.help.options"],null]],[13],[1,"\\n              "],[13],[1,"\\n            "]],[]]]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n      "]],[]]]]],[1,"\\n  "]],[],false,["unless","if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/spreadsheet-editor.js",scope:()=>[_.default,T.default,f.default,m.default,b.default,y.default,w.default,C.default],isStrictMode:!0}),a),r=a,i=(0,u.Z)(r.prototype,"dialog",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.Z)(r.prototype,"showEditReason",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),o=(0,u.Z)(r.prototype,"loading",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,u.Z)(r.prototype,"createSpreadsheet",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"createSpreadsheet"),r.prototype),(0,u.Z)(r.prototype,"showEditReasonField",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"showEditReasonField"),r.prototype),(0,u.Z)(r.prototype,"interceptCloseModal",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"interceptCloseModal"),r.prototype),(0,u.Z)(r.prototype,"insertTable",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"insertTable"),r.prototype),r);function D(e){return S.default.t(`table_builder.spreadsheet.${e}`)}},18339:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"qLVsm41d",block:'[[[8,[39,0],null,[["@title","@closeModal"],[[28,[37,1],["tagging.upload"],null],[30,1]]],[["body"],[[[[1,"\\n    "],[8,[39,2],null,[["@refresh","@closeModal","@id"],[[28,[37,3],["triggerRefresh"],null],[30,1],"tags-uploader"]],null],[1,"\\n  "]],[]]]]]],["@closeModal"],false,["d-modal","i18n","tags-uploader","route-action"]]',moduleName:"discourse/components/modal/tag-upload.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},40371:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_addBulkButton:()=>E,clearBulkButtons:()=>D,default:()=>I});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(72326),c=n(48163),u=n(17579),d=n(10425),p=n(92635),h=n(82099),m=n(63482),g=n(99363),f=n(31369),b=n(4785);const _=(0,n(8620).createTemplateFactory)({id:"OyR7VKkm",block:'[[[8,[39,0],[[24,0,"topic-bulk-actions-modal -large"]],[["@title","@closeModal"],[[28,[37,1],["topics.bulk.actions"],null],[30,1]]],[["default"],[[[[1,"\\n  "],[10,2],[12],[1,"\\n    "],[1,[28,[35,2],[[28,[37,1],["topics.bulk.selected"],[["count"],[[30,2,["topics","length"]]]]]],null]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showProgress"]],[[[1,"    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,2],[[28,[37,1],["topics.bulk.progress"],[["count"],[[30,0,["processedTopicCount"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[41,[30,0,["activeComponent"]],[[[1,"    "],[8,[30,0,["activeComponent"]],null,[["@loading","@topics","@category","@setComponent","@forEachPerformed","@performAndRefresh"],[[30,0,["loading"]],[30,2,["topics"]],[30,2,["category"]],[30,0,["setComponent"]],[30,0,["forEachPerformed"]],[30,0,["performAndRefresh"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"bulk-buttons"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["buttons"]]],null]],null],null,[[[1,"        "],[8,[39,6],[[16,0,[30,3,["class"]]]],[["@action","@label","@icon"],[[28,[37,7],[[30,3,["action"]],[28,[37,8],null,[["topics","category","setComponent","performAndRefresh","forEachPerformed"],[[30,2,["topics"]],[30,2,["category"]],[30,0,["setComponent"]],[30,0,["performAndRefresh"]],[30,0,["forEachPerformed"]]]]]],null],[30,3,["label"]],[30,3,["icon"]]]],null],[1,"\\n"]],[3]],null],[1,"    "],[13],[1,"\\n  "]],[]]]],[]]]],[]]]]]],["@closeModal","@model","button"],false,["d-modal","i18n","html-safe","if","each","-track-array","d-button","fn","hash"]]',moduleName:"discourse/components/modal/topic-bulk-actions.hbs",isStrictMode:!1});var y,w,v,k,x,T,S,C,P=n(31691);const O=[];function E(e){O.push({label:e.label,icon:e.icon,class:e.class,visible:e.visible,action:e.action})}function D(){O.length=0}let I=(y=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",w,this),(0,r.Z)(this,"siteSettings",v,this),(0,r.Z)(this,"dialog",k,this),(0,r.Z)(this,"loading",x,this),(0,r.Z)(this,"showProgress",T,this),(0,r.Z)(this,"processedTopicCount",S,this),(0,r.Z)(this,"activeComponent",C,this),(0,i.Z)(this,"defaultButtons",[{label:"topics.bulk.change_category",icon:"pencil-alt",class:"btn-default",visible:e=>{let{topics:t}=e;return!t.some((e=>e.isPrivateMessage))},action(e){let{setComponent:t}=e;t(g.default)}},{label:"topics.bulk.close_topics",icon:"lock",class:"btn-default bulk-actions__close-topics",visible:e=>{let{topics:t}=e;return!t.some((e=>e.isPrivateMessage))},action(e){let{forEachPerformed:t}=e;t({type:"close"},(e=>e.set("closed",!0)))}},{label:"topics.bulk.archive_topics",icon:"folder",class:"btn-default",visible:e=>{let{topics:t}=e;return!t.some((e=>e.isPrivateMessage))},action(e){let{forEachPerformed:t}=e;t({type:"archive"},(e=>e.set("archived",!0)))}},{label:"topics.bulk.archive_topics",icon:"folder",class:"btn-default",visible:e=>{let{topics:t}=e;return t.some((e=>e.isPrivateMessage))},action:e=>{let{performAndRefresh:t}=e;const n=(0,l.getOwner)(this).lookup("controller:user-private-messages");let r={type:"archive_messages"};n.isGroup&&(r.group=n.groupFilter),t(r)}},{label:"topics.bulk.move_messages_to_inbox",icon:"folder",class:"btn-default",visible:e=>{let{topics:t}=e;return t.some((e=>e.isPrivateMessage))},action:e=>{let{performAndRefresh:t}=e;const n=(0,l.getOwner)(this).lookup("controller:user-private-messages");let r={type:"move_messages_to_inbox"};n.isGroup&&(r.group=n.groupFilter),t(r)}},{label:"topics.bulk.notification_level",icon:"d-regular",class:"btn-default",action(e){let{setComponent:t}=e;t(b.default)}},{label:"topics.bulk.defer",icon:"circle",class:"btn-default",visible:e=>{let{currentUser:t}=e;return t.user_option.enable_defer},action(e){let{performAndRefresh:t}=e;t({type:"destroy_post_timing"})}},{label:"topics.bulk.unlist_topics",icon:"far-eye-slash",class:"btn-default",visible:e=>{let{topics:t}=e;return t.some((e=>e.visible))&&!t.some((e=>e.isPrivateMessage))},action(e){let{forEachPerformed:t}=e;t({type:"unlist"},(e=>e.set("visible",!1)))}},{label:"topics.bulk.relist_topics",icon:"far-eye",class:"btn-default",visible:e=>{let{topics:t}=e;return t.some((e=>!e.visible))&&!t.some((e=>e.isPrivateMessage))},action(e){let{forEachPerformed:t}=e;t({type:"relist"},(e=>e.set("visible",!0)))}},{label:"topics.bulk.reset_bump_dates",icon:"anchor",class:"btn-default",visible:e=>{let{currentUser:t}=e;return t.canManageTopic},action(e){let{performAndRefresh:t}=e;t({type:"reset_bump_dates"})}},{label:"topics.bulk.change_tags",icon:"tag",class:"btn-default",visible:e=>{let{currentUser:t,siteSettings:n}=e;return n.tagging_enabled&&t.canManageTopic},action(e){let{setComponent:t}=e;t(f.default)}},{label:"topics.bulk.append_tags",icon:"tag",class:"btn-default",visible:e=>{let{currentUser:t,siteSettings:n}=e;return n.tagging_enabled&&t.canManageTopic},action(e){let{setComponent:t}=e;t(m.default)}},{label:"topics.bulk.remove_tags",icon:"tag",class:"btn-default",visible:e=>{let{currentUser:t,siteSettings:n}=e;return n.tagging_enabled&&t.canManageTopic},action:e=>{let{performAndRefresh:t,topics:n}=e;this.dialog.deleteConfirm({message:h.default.t("topics.bulk.confirm_remove_tags",{count:n.length}),didConfirm:()=>t({type:"remove_tags"})})}},{label:"topics.bulk.delete",icon:"trash-alt",class:"btn-danger delete-topics",visible:e=>{let{currentUser:t}=e;return t.staff},action(e){let{performAndRefresh:t}=e;t({type:"delete"})}}]),"set-component"===this.args.model.initialAction&&this.setComponent(this.args.model.initialComponent)}get buttons(){return[...this.defaultButtons,...O].filter((e=>{let{visible:t}=e;return!t||t({topics:this.args.model.topics,category:this.args.model.category,currentUser:this.currentUser,siteSettings:this.siteSettings})}))}async perform(e){this.loading=!0,this.args.model.topics.length>20&&(this.showProgress=!0);try{return this._processChunks(e)}catch{this.dialog.alert(h.default.t("generic_error"))}finally{this.loading=!1,this.processedTopicCount=0,this.showProgress=!1}}_generateTopicChunks(e){let t=0;const n=[];for(;t<e.length;){const r=e.slice(t,t+30);n.push(r),t+=30}return n}_processChunks(e){const t=this.args.model.topics,n=this._generateTopicChunks(t),r=[],i=n.map((t=>async()=>{const n=await p.default.bulkOperation(t,e);return this.processedTopicCount=this.processedTopicCount+t.length,n}));return new d.Promise(((e,n)=>{const s=async()=>{if(0===i.length){const n=r.map((e=>t.findBy("id",e)));return e(n)}const o=i.shift();try{const e=await o();e?.topic_ids&&r.push(...e.topic_ids),s()}catch{n()}};s()}))}setComponent(e){this.activeComponent=e}async forEachPerformed(e,t){const n=await this.perform(e);n&&(n.forEach(t),this.args.model.refreshClosure?.(),this.args.closeModal())}async performAndRefresh(e){await this.perform(e),this.args.model.refreshClosure?.(),this.args.closeModal()}},w=(0,s.Z)(y.prototype,"currentUser",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,s.Z)(y.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,s.Z)(y.prototype,"dialog",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,s.Z)(y.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),T=(0,s.Z)(y.prototype,"showProgress",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=(0,s.Z)(y.prototype,"processedTopicCount",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),C=(0,s.Z)(y.prototype,"activeComponent",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),(0,s.Z)(y.prototype,"setComponent",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"setComponent"),y.prototype),(0,s.Z)(y.prototype,"forEachPerformed",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"forEachPerformed"),y.prototype),(0,s.Z)(y.prototype,"performAndRefresh",[c.action],Object.getOwnPropertyDescriptor(y.prototype,"performAndRefresh"),y.prototype),y);(0,P.setComponentTemplate)(_,I)},13639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(48163),l=n(17579),c=n(54712),u=n.n(c),d=n(57959),p=n(38864),h=n(50459);const m=(0,n(8620).createTemplateFactory)({id:"lRv5K4i/",block:'[[[8,[39,0],[[24,0,"user-status"]],[["@title","@closeModal"],[[28,[37,1],["user_status.set_custom_status"],null],[30,1]]],[["body","footer"],[[[[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,2],null,[["@status"],[[30,0,["status"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[51,[30,2,["hidePauseNotifications"]]],[[[1,"      "],[10,0],[14,0,"control-group pause-notifications"],[12],[1,"\\n        "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n          "],[8,[39,4],null,[["@type","@checked"],["checkbox",[30,2,["pauseNotifications"]]]],null],[1,"\\n          "],[1,[28,[35,1],["user_status.pause_notifications"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group control-group-remove-status"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n        "],[1,[28,[35,1],["user_status.remove_status"],null]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[39,5],null,[["@timeShortcuts","@hiddenOptions","@customLabels","@prefilledDatetime","@onTimeSelected","@_itsatrap"],[[30,0,["timeShortcuts"]],[30,0,["hiddenTimeShortcutOptions"]],[30,0,["customTimeShortcutLabels"]],[30,0,["prefilledDateTime"]],[30,0,["onTimeSelected"]],[30,0,["_itsatrap"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[39,6],[[24,0,"btn-primary"]],[["@label","@disabled","@action"],["user_status.save",[30,0,["saveDisabled"]],[30,0,["saveAndClose"]]]],null],[1,"\\n\\n    "],[8,[39,7],null,[["@close"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["showDeleteButton"]],[[[1,"      "],[8,[39,6],[[24,0,"delete-status btn-danger"]],[["@icon","@action"],["trash-alt",[30,0,["delete"]]]],null],[1,"\\n"]],[]],null],[1,"  "]],[]]]]]],["@closeModal","@model"],false,["d-modal","i18n","user-status-picker","unless","input","time-shortcut-picker","d-button","d-modal-cancel","if"]]',moduleName:"discourse/components/modal/user-status.hbs",isStrictMode:!1});var g,f,b,_,y,w=n(31691);function v(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let x=(_=new WeakSet,y=new WeakSet,g=class extends o.default{constructor(){super(...arguments),v(this,y),v(this,_),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"dialog",b,this),(0,i.Z)(this,"status",new d.TrackedObject({...this.args.model.status})),(0,i.Z)(this,"timeShortcuts",k(this,_,T).call(this)),(0,i.Z)(this,"_itsatrap",new(u()))}willDestroy(){super.willDestroy(...arguments),this._itsatrap.destroy()}get showDeleteButton(){return!!this.args.model.status}get prefilledDateTime(){return this.status?.ends_at}get saveDisabled(){return!this.status?.emoji||!this.status?.description}get customTimeShortcutLabels(){return{[h.TIME_SHORTCUT_TYPES.NONE]:"time_shortcut.never"}}get hiddenTimeShortcutOptions(){return[h.TIME_SHORTCUT_TYPES.LAST_CUSTOM]}onTimeSelected(e,t){this.status.endsAt=t}async delete(){try{await this.args.model.deleteAction(),this.args.closeModal()}catch(e){k(this,y,S).call(this,e)}}async saveAndClose(){const e={description:this.status.description,emoji:this.status.emoji,ends_at:this.status.endsAt?.toISOString()};try{await this.args.model.saveAction(e,this.args.model.pauseNotifications),this.args.closeModal()}catch(e){k(this,y,S).call(this,e)}}},f=(0,s.Z)(g.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,s.Z)(g.prototype,"dialog",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(g.prototype,"onTimeSelected",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"onTimeSelected"),g.prototype),(0,s.Z)(g.prototype,"delete",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"delete"),g.prototype),(0,s.Z)(g.prototype,"saveAndClose",[a.action],Object.getOwnPropertyDescriptor(g.prototype,"saveAndClose"),g.prototype),g);function T(){const e=(0,h.timeShortcuts)(this.currentUser.user_option.timezone);return[e.oneHour(),e.twoHours(),e.tomorrow()]}function S(e){"string"==typeof e?this.dialog.alert(e):(0,p.popupAjaxError)(e)}(0,w.setComponentTemplate)(m,x)},57394:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(6659),c=n(47582),u=n(3961),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"wE+wtfUy",block:'[[[10,0],[14,0,"more-topics__container"],[12],[1,"\\n"],[41,[51,[30,0,["singleList"]]],[[[1,"    "],[10,0],[14,0,"row"],[12],[1,"\\n      "],[10,"ul"],[14,0,"nav nav-pills"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["availableTabs"]]],null]],null],null,[[[1,"          "],[10,"li"],[12],[1,"\\n            "],[8,[39,3],[[16,0,[52,[28,[37,5],[[30,1,["id"]],[30,0,["selectedTab"]]],null],"active"]]],[["@translatedTitle","@translatedLabel","@action","@icon"],[[30,1,["name"]],[30,1,["name"]],[28,[37,6],[[30,0,["rememberTopicListPreference"]],[30,1,["id"]]],null],[30,1,["icon"]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[15,0,[29,["more-topics__lists ",[52,[30,0,["singleList"]],"single-list"]]]],[12],[1,"\\n"],[41,[30,2,["relatedMessages","length"]],[[[1,"      "],[8,[39,7],null,[["@topic"],[[30,2]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["suggestedTopics","length"]],[[[1,"      "],[8,[39,8],null,[["@topic"],[[30,2]]],null],[1,"\\n\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["below-suggested-topics","div",[28,[37,10],null,[["topic"],[[30,2]]]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,9],null,[["@name","@outletArgs"],["topic-more-content",[28,[37,10],null,[["model"],[[30,2]]]]]],null],[1,"\\n\\n  "],[13],[1,"\\n\\n"],[41,[30,2,["suggestedTopics","length"]],[[[1,"    "],[10,"h3"],[14,0,"more-topics__browse-more"],[12],[1,"\\n      "],[1,[28,[35,11],[[30,0,["browseMoreMessage"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["tab","@topic"],false,["unless","each","-track-array","d-button","if","eq","fn","related-messages","suggested-topics","plugin-outlet","hash","html-safe"]]',moduleName:"discourse/components/more-topics.hbs",isStrictMode:!1});var h,m,g,f,b,_,y,w,v,k,x=n(31691);let T=(h=(0,o.computed)("moreTopicsPreferenceTracking.topicLists"),m=(0,o.computed)("moreTopicsPreferenceTracking.selectedTab"),g=(0,o.computed)("moreTopicsPreferenceTracking.topicLists"),f=(0,o.computed)("pmTopicTrackingState.isTracking","pmTopicTrackingState.statesModificationCounter","topicTrackingState.messageCount"),b=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"site",_,this),(0,r.Z)(this,"moreTopicsPreferenceTracking",y,this),(0,r.Z)(this,"pmTopicTrackingState",w,this),(0,r.Z)(this,"topicTrackingState",v,this),(0,r.Z)(this,"currentUser",k,this)}rememberTopicListPreference(e){this.moreTopicsPreferenceTracking.updatePreference(e)}get singleList(){return 1===this.availableTabs.length}get selectedTab(){return this.moreTopicsPreferenceTracking.selectedTab}get availableTabs(){return this.moreTopicsPreferenceTracking.topicLists}get browseMoreMessage(){return this.args.topic.isPrivateMessage?this._privateMessageBrowseMoreMessage():this._topicBrowseMoreMessage()}_privateMessageBrowseMoreMessage(){const e=this.currentUser.username,t=this.args.topic.suggested_group_name,n=t?"group":"user",r=this.pmTopicTrackingState.lookupCount("unread",{inboxFilter:n,groupName:t}),i=this.pmTopicTrackingState.lookupCount("new",{inboxFilter:n,groupName:t});if(r+i>0){const n=r>0&&i>0;return t?d.default.messageFormat("user.messages.read_more_group_pm_MF",{HAS_UNREAD_AND_NEW:n,UNREAD:r,NEW:i,username:e,groupName:t,groupLink:this._groupLink(e,t),basePath:(0,c.default)("")}):d.default.messageFormat("user.messages.read_more_personal_pm_MF",{HAS_UNREAD_AND_NEW:n,UNREAD:r,NEW:i,username:e,basePath:(0,c.default)("")})}return t?d.default.t("user.messages.read_more_in_group",{groupLink:this._groupLink(e,t)}):d.default.t("user.messages.read_more",{basePath:(0,c.default)(""),username:e})}_topicBrowseMoreMessage(){let e=this.args.topic.category;e&&e.id===this.site.uncategorized_category_id&&(e=null);let t=0,n=0;return this.currentUser&&(t=this.topicTrackingState.countUnread(),n=this.topicTrackingState.countNew()),n+t>0?d.default.messageFormat("topic.read_more_MF",{HAS_UNREAD_AND_NEW:t>0&&n>0,UNREAD:t,NEW:n,HAS_CATEGORY:!!e,categoryLink:e?(0,l.categoryBadgeHTML)(e):null,basePath:(0,c.default)("")}):e?d.default.t("topic.read_more_in_category",{categoryLink:(0,l.categoryBadgeHTML)(e),latestLink:(0,c.default)("/latest")}):d.default.t("topic.read_more",{categoryLink:(0,c.default)("/categories"),latestLink:(0,c.default)("/latest")})}_groupLink(e,t){return`<a class="group-link" href="${(0,c.default)(`/u/${e}/messages/group/${t}`)}">${(0,u.iconHTML)("users")} ${t}</a>`}},_=(0,i.Z)(b.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.Z)(b.prototype,"moreTopicsPreferenceTracking",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(b.prototype,"pmTopicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.Z)(b.prototype,"topicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.Z)(b.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(b.prototype,"rememberTopicListPreference",[o.action],Object.getOwnPropertyDescriptor(b.prototype,"rememberTopicListPreference"),b.prototype),(0,i.Z)(b.prototype,"singleList",[h],Object.getOwnPropertyDescriptor(b.prototype,"singleList"),b.prototype),(0,i.Z)(b.prototype,"selectedTab",[m],Object.getOwnPropertyDescriptor(b.prototype,"selectedTab"),b.prototype),(0,i.Z)(b.prototype,"availableTabs",[g],Object.getOwnPropertyDescriptor(b.prototype,"availableTabs"),b.prototype),(0,i.Z)(b.prototype,"browseMoreMessage",[f],Object.getOwnPropertyDescriptor(b.prototype,"browseMoreMessage"),b.prototype),b);(0,x.setComponentTemplate)(p,T)},17238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addWidgetCleanCallback:()=>f,default:()=>y,removeWidgetCleanCallback:()=>b,resetWidgetCleanCallbacks:()=>_});var r=n(51512),i=n.n(r),s=n(31691),o=n.n(s),a=n(51372),l=n(16572),c=n(41221),u=n(99046),d=n(40406),p=n(94473),h=n(37080);const m=(0,n(8620).createTemplateFactory)({id:"/zwe00Eu",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["_childComponents"]]],null]],null],null,[[[40,[[[1,"    "],[8,[30,1,["component"]],null,[["@data","@setWrapperElementAttrs"],[[30,1,["data"]],[30,1,["setWrapperElementAttrs"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,3],[[30,1,["element"]]],null],null]],[1]],null]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"discourse/components/mount-widget.hbs",isStrictMode:!1});let g={};function f(e,t){g[e]=g[e]||[],g[e].push(t)}function b(e,t){const n=g[e];if(!n)return;const r=n.indexOf(t);-1!==r&&n.splice(r,1)}function _(){g={}}const y=(0,s.setComponentTemplate)(m,o().extend({_tree:null,_rootNode:null,_timeout:null,_widgetClass:null,_renderCallback:null,_childEvents:null,_dispatched:null,dirtyKeys:null,init(){this._super(...arguments);const e=this.widget;if("post-cooked"===e)throw["Cannot use <MountWidget /> with `post-cooked`.","It's a special-case that needs to be wrapped in another widget.","For example:","  createWidget('test-widget', {","    html(attrs) {","      return [","        new PostCooked(attrs, new DecoratorHelper(this), this.currentUser),","      ];","    },","  });"].join("\n");this.register=(0,h.getRegister)(this),this._widgetClass=(0,p.queryRegistry)(e)||this.register.lookupFactory(`widget:${e}`),this._widgetClass?.class&&(this._widgetClass=this._widgetClass.class),this._widgetClass||console.error(`Error: Could not find widget: ${e}`),this._childEvents=[],this._connected=[],this._childComponents=i().create({content:[]}),this._dispatched=[],this.dirtyKeys=new u.default(e)},didInsertElement(){this._super(...arguments),d.WidgetClickHook.setupDocumentCallback(),this._rootNode=document.createElement("div"),this.element.appendChild(this._rootNode),this._timeout=(0,a.scheduleOnce)("render",this,this.rerenderWidget)},willClearRender(){this._super(...arguments);const e=g[this.widget];e&&e.forEach((e=>e(this._tree))),this._connected.forEach((e=>e.destroy())),this._connected.length=0,(0,p.traverseCustomWidgets)(this._tree,(e=>e.destroy())),this._rootNode=(0,c.patch)(this._rootNode,(0,c.diff)(this._tree,null)),this._tree=null},willDestroyElement(){this._super(...arguments),this._dispatched.forEach((e=>{const[t,n]=e;this.appEvents.off(t,this,n)})),(0,a.cancel)(this._timeout)},afterRender(){},beforePatch(){},afterPatch(){},eventDispatched(e,t,n){t="function"==typeof t?t(n):t;const r=(0,l.camelize)(e.replace(/:/,"-"));this.dirtyKeys.keyDirty(t,{onRefresh:r,refreshArg:n}),this.queueRerender()},dispatch(e,t){this._childEvents.push(e);const n=n=>this.eventDispatched(e,t,n);this._dispatched.push([e,n]),this.appEvents.on(e,this,n)},queueRerender(e){e&&!this._renderCallback&&(this._renderCallback=e),(0,a.scheduleOnce)("render",this,this.rerenderWidget)},buildArgs(){},rerenderWidget(){if((0,a.cancel)(this._timeout),this._rootNode){if(!this._widgetClass)return;const e=Date.now(),t=this.args||this.buildArgs(),n={model:this.model,dirtyKeys:this.dirtyKeys},r=new this._widgetClass(t,this.register,n);r._rerenderable=this,r._emberView=this;const i=(0,c.diff)(this._tree||this._rootNode,r);(0,p.traverseCustomWidgets)(this._tree,(e=>e.willRerenderWidget())),this.beforePatch(),this._rootNode=(0,c.patch)(this._rootNode,i),this.afterPatch(),this._tree=r,(0,p.traverseCustomWidgets)(r,(e=>e.didRenderWidget())),this._renderCallback&&(this._renderCallback(),this._renderCallback=null),this.afterRender(),this.dirtyKeys.renderedKey("*"),this.profileWidget&&console.log(Date.now()-e)}},mountChildComponent(e){this._childComponents.pushObject(e)},unmountChildComponent(e){this._childComponents.removeObject(e)},didUpdateAttrs(){this._super(...arguments),this.queueRerender()}}))},66291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(44795),u=n(17579),d=n(24434),p=n(99230),h=n(47582),m=n(3961),g=n(82099),f=n(8620),b=n(31691);let _=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"router",i,this)}get contents(){const e=this.args.i18nLabel||g.default.t(this.args.label);return this.args.icon?(0,d.htmlSafe)(`${(0,m.iconHTML)(this.args.icon)} ${e}`):e}get active(){if(this.args.route)return this.args.routeParam&&this.router.currentRoute?this.router.currentRoute.params.filter===this.args.routeParam:this.router.isActive(this.args.route)}},(0,b.setComponentTemplate)((0,f.createTemplateFactory)({id:"v8Vq9ivd",block:'[[[1,"\\n    "],[11,"li"],[16,0,[28,[32,0],[[52,[30,0,["active"]],"active"],[30,1]],null]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1,"        "],[8,[32,1],null,[["@route","@model"],[[30,4],[30,3]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[41,[30,4],[[[1,"        "],[8,[32,1],null,[["@route"],[[30,4]]],[["default"],[[[[1,[30,0,["contents"]]]],[]]]]],[1,"\\n"]],[]],[[[1,"        "],[10,3],[15,6,[28,[32,2],[[30,5]],null]],[14,"data-auto-route","true"],[12],[1,[30,0,["contents"]]],[13],[1,"\\n      "]],[]]]],[]]],[1,"    "],[13],[1,"\\n  "]],["@class","&attrs","@routeParam","@route","@path"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/nav-item.js",scope:()=>[p.default,c.LinkTo,h.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},80548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(23183),s=n(31691),o=n.n(s),a=n(48163),l=n(39840),c=n(51372),u=n(71466),d=n.n(u),p=n(79593),h=n(20229),m=n(57555);const g=(0,n(8620).createTemplateFactory)({id:"vgpxbkuw",block:'[[[41,[30,0,["site","mobileView"]],[[[1,"  "],[10,"li"],[14,0,"navigation-toggle"],[12],[1,"\\n    "],[11,3],[24,6,""],[24,0,"toggle-link"],[4,[38,1],["click",[30,0,["toggleDrop"]]],null],[12],[1,"\\n      "],[1,[30,0,["selectedNavItem","displayName"]]],[1,"\\n      "],[1,[28,[35,2],["caret-down"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["expanded"]],[[[1,"    "],[10,"ul"],[14,0,"drop"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["navItems"]]],null]],null],null,[[[1,"        "],[8,[39,5],[[16,0,[28,[37,6],["nav-item_",[30,1,["name"]]],null]]],[["@content","@filterMode","@category"],[[30,1],[30,0,["filterMode"]],[30,0,["category"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","li",[28,[37,8],null,[["category","tag","filterMode"],[[30,0,["category"]],[30,0,["tag"]],[30,0,["filterMode"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["inline-extra-nav-item","li",[28,[37,8],null,[["category","filterMode"],[[30,0,["category"]],[30,0,["filterMode"]]]]]]],null],[1,"\\n"]],[]],[[[42,[28,[37,4],[[28,[37,4],[[30,0,["navItems"]]],null]],null],null,[[[1,"    "],[8,[39,5],[[16,0,[28,[37,6],["nav-item_",[30,2,["name"]]],null]]],[["@content","@filterMode","@category"],[[30,2],[30,0,["filterMode"]],[30,0,["category"]]]],null],[1,"\\n"]],[2]],null],[1,"  "],[8,[39,7],null,[["@name","@connectorTagName","@outletArgs"],["extra-nav-item","li",[28,[37,8],null,[["category","tag","filterMode"],[[30,0,["category"]],[30,0,["tag"]],[30,0,["filterMode"]]]]]]],null],[1,"\\n"]],[]]]],["navItem","navItem"],false,["if","on","d-icon","each","-track-array","navigation-item","concat","plugin-outlet","hash"]]',moduleName:"discourse/components/navigation-bar.hbs",isStrictMode:!1});var f,b,_;const y=(0,s.setComponentTemplate)(g,o().extend((f=(0,m.default)("filterType","navItems"),b=(0,m.observes)("expanded"),_={tagName:"ul",classNameBindings:[":nav",":nav-pills"],elementId:"navigation-bar",filterMode:(0,i.tracked)(),get filterType(){return(0,p.filterTypeForMode)(this.filterMode)},init(){this._super(...arguments)},selectedNavItem(e,t){let n=t.find((e=>!0===e.active));if(n=n||t.find((t=>t.get("filterType")===e)),!n){let t=this.connectors,r=this.category;t&&r&&t.forEach((t=>{t.connectorClass&&"function"==typeof t.connectorClass.path&&"function"==typeof t.connectorClass.displayName&&t.connectorClass.path(r).indexOf(e)>0&&(n={displayName:t.connectorClass.displayName()})}))}return n||t[0]},closedNav(){this.expanded||this.ensureDropClosed()},ensureDropClosed(){!this.element||this.isDestroying||this.isDestroyed||(this.expanded&&this.set("expanded",!1),d()(window).off("click.navigation-bar"),h.default.appEvents.off("dom:clean",this,this.ensureDropClosed))},toggleDrop(e){e?.preventDefault(),this.set("expanded",!this.expanded),this.expanded&&(h.default.appEvents.on("dom:clean",this,this.ensureDropClosed),(0,c.next)((()=>{this.expanded&&(d()(this.element.querySelector(".drop a")).on("click",(()=>(this.element.querySelector(".drop").style.display="none",(0,c.next)((()=>{this.ensureDropClosed()})),!0))),d()(window).on("click.navigation-bar",(()=>(this.ensureDropClosed(),!0))))})))}},(0,r.Z)(_,"filterType",[l.dependentKeyCompat],Object.getOwnPropertyDescriptor(_,"filterType"),_),(0,r.Z)(_,"selectedNavItem",[f],Object.getOwnPropertyDescriptor(_,"selectedNavItem"),_),(0,r.Z)(_,"closedNav",[b],Object.getOwnPropertyDescriptor(_,"closedNav"),_),(0,r.Z)(_,"toggleDrop",[a.action],Object.getOwnPropertyDescriptor(_,"toggleDrop"),_),_)))},8889:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(23183),s=n(31691),o=n.n(s),a=n(39840),l=n(79593),c=n(57555);const u=(0,n(8620).createTemplateFactory)({id:"sBzN9Gtv",block:'[[[10,3],[15,6,[30,0,["hrefLink"]]],[15,0,[30,0,["activeClass"]]],[15,"aria-current",[52,[30,0,["activeClass"]],"true"]],[12],[1,"\\n"],[41,[30,0,["hasIcon"]],[[[1,"    "],[10,1],[15,0,[30,0,["content","name"]]],[12],[13],[1,"\\n"]],[]],null],[1,"  "],[1,[30,0,["content","displayName"]]],[1,"\\n"],[13]],[],false,["if"]]',moduleName:"discourse/components/navigation-item.hbs",isStrictMode:!1});var d,p,h;const m=(0,s.setComponentTemplate)(u,o().extend((d=(0,c.default)("content.filterType","filterType","content.active"),p=(0,c.default)("content.count"),h={tagName:"li",classNameBindings:["active","content.hasIcon:has-icon","content.classNames","isHidden:hidden","content.name"],attributeBindings:["content.title:title"],hidden:!1,activeClass:"",hrefLink:null,filterMode:(0,i.tracked)(),get filterType(){return(0,l.filterTypeForMode)(this.filterMode)},active:(e,t,n)=>void 0!==n?n:e===t,isHidden(e){return!this.active&&this.currentUser&&this.currentUser.trust_level>0&&("new"===this.content.get("name")||"unread"===this.content.get("name"))&&e<1},didReceiveAttrs(){this._super(...arguments);const e=this.content;let t=e.get("href"),n=new URLSearchParams,r=!1;if(e.get("includeCategoryId")){let e=this.get("content.category.id");e&&n.set("category_id",e)}e.currentRouteQueryParams&&(e.currentRouteQueryParams.filter&&(r=!0),e.currentRouteQueryParams.f&&n.set("f",e.currentRouteQueryParams.f)),"categories_and_latest_topics_created_date"===this.siteSettings.desktop_category_page_style&&n.set("order","created");const i=n.toString();(r||i)&&(t+=`?${i}`),this.set("hrefLink",t),this.set("activeClass",this.active?"active":"")}},(0,r.Z)(h,"filterType",[a.dependentKeyCompat],Object.getOwnPropertyDescriptor(h,"filterType"),h),(0,r.Z)(h,"active",[d],Object.getOwnPropertyDescriptor(h,"active"),h),(0,r.Z)(h,"isHidden",[p],Object.getOwnPropertyDescriptor(h,"isHidden"),h),h)))},41143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82006);const i=(0,n(8620).createTemplateFactory)({id:"T2x5mlxh",block:'[[[11,0],[24,0,"topic-replies-toggle-wrapper"],[4,[38,0],["click",[28,[37,1],[[30,0],[30,0,["click"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,2],["list/new-list-header-controls"],[["current","newRepliesCount","newTopicsCount","noStaticLabel"],[[30,1],[30,2],[30,3],true]]]],[1,"\\n"],[13]],["@current","@newRepliesCount","@newTopicsCount"],false,["on","action","raw"]]',moduleName:"discourse/components/new-list-header-controls-wrapper.hbs",isStrictMode:!1});var s=n(31691);class o extends r.default{click(e){const t=e.target;t.closest("button.topics-replies-toggle.--all")?this.args.changeNewListSubset(null):t.closest("button.topics-replies-toggle.--topics")?this.args.changeNewListSubset("topics"):t.closest("button.topics-replies-toggle.--replies")&&this.args.changeNewListSubset("replies")}}(0,s.setComponentTemplate)(i,o)},83483:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o,a,l,c,u=n(94664),d=n(54001),p=n(82006),h=n(23183),m=n(48163),g=n(17579),f=n(69338),b=n(98952),_=n(91423),y=n(8620),w=n(31691);const v="dismissed-prompt";let k=(c=class extends p.default{constructor(){super(...arguments),(0,u.Z)(this,"capabilities",i,this),(0,u.Z)(this,"currentUser",s,this),(0,u.Z)(this,"desktopNotifications",o,this),(0,u.Z)(this,"siteSettings",a,this),(0,u.Z)(this,"bannerDismissed",l,this),this.bannerDismissed=b.keyValueStore.getItem(v)}setBannerDismissed(e){b.keyValueStore.setItem(v,e),this.bannerDismissed=b.keyValueStore.getItem(v)}get showNotificationPromptBanner(){return this.siteSettings.push_notifications_prompt&&!this.desktopNotifications.isNotSupported&&this.currentUser&&this.capabilities.isPwa&&"denied"!==Notification.permission&&"granted"!==Notification.permission&&!this.desktopNotifications.isEnabled&&!this.bannerDismissed}turnon(){this.desktopNotifications.enable(),this.setBannerDismissed(!0)}dismiss(){this.setBannerDismissed(!1)}},(0,w.setComponentTemplate)((0,y.createTemplateFactory)({id:"otIxlpiJ",block:'[[[1,"\\n"],[41,[30,0,["showNotificationPromptBanner"]],[[[1,"      "],[10,0],[14,0,"row"],[12],[1,"\\n        "],[10,0],[14,0,"consent_banner alert alert-info"],[12],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[1,[28,[32,0],["user.desktop_notifications.consent_prompt"],null]],[1,"\\n            "],[8,[32,1],null,[["@display","@action","@label"],["link",[30,0,["turnon"]],"user.desktop_notifications.enable"]],null],[1,"\\n          "],[13],[1,"\\n          "],[8,[32,1],[[24,0,"btn-flat close"]],[["@icon","@action","@title"],["times",[30,0,["dismiss"]],"banner.close"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/notification-consent-banner.js",scope:()=>[_.default,f.default],isStrictMode:!0}),c),r=c,i=(0,d.Z)(r.prototype,"capabilities",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.Z)(r.prototype,"currentUser",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(r.prototype,"desktopNotifications",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(r.prototype,"siteSettings",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.Z)(r.prototype,"bannerDismissed",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(r.prototype,"turnon",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"turnon"),r.prototype),(0,d.Z)(r.prototype,"dismiss",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"dismiss"),r.prototype),r)},82968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o,a=n(54001),l=n(2825),c=n(62617),u=n(54736),d=n(57555),p=n(82099);const h=l.default.extend((r=(0,d.default)("number"),i=(0,d.default)("placeholderKey"),s={classNameBindings:["invalid"],init(){this._super(...arguments),(0,u.default)('NumberField component is deprecated. Use native <input> elements instead.\ne.g. <input {{on "input" (action (mut this.value) value="target.value")}} type="number" value={{this.value}} />',{id:"discourse.number-field",since:"3.2.0.beta5",dropFrom:"3.3.0"})},keyDown:function(e){(0,c.allowOnlyNumericInput)(e,this._minNumber&&this._minNumber<0)},get _minNumber(){if(this.get("min"))return parseInt(this.get("min"),10)},get _maxNumber(){if(this.get("max"))return parseInt(this.get("max"),10)},value:{get:e=>parseInt(e,10),set(e){const t=parseInt(e,10);return isNaN(t)?(this.set("invalid",!0),e):(this.set("invalid",!1),this.set("number",t),t.toString())}},placeholder:e=>e?p.default.t(e):""},(0,a.Z)(s,"value",[r],(o=(o=Object.getOwnPropertyDescriptor(s,"value"))?o.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return o}}),s),(0,a.Z)(s,"placeholder",[i],Object.getOwnPropertyDescriptor(s,"placeholder"),s),s))},48037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579);const l=(0,n(8620).createTemplateFactory)({id:"yIV0M2Jw",block:'[[[41,[30,0,["showing"]],[[[1,"  "],[10,0],[14,0,"offline-indicator"],[12],[1,"\\n    "],[10,1],[12],[1,[28,[35,1],["offline_indicator.no_internet"],null]],[13],[1,"\\n    "],[8,[39,2],null,[["@label","@display","@action"],["offline_indicator.refresh_page","link",[30,0,["refresh"]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n","d-button"]]',moduleName:"discourse/components/offline-indicator.hbs",isStrictMode:!1});var c,u,d=n(31691);let p=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"networkConnectivity",u,this)}get showing(){return!this.networkConnectivity.connected}refresh(){window.location.reload(!0)}},u=(0,i.Z)(c.prototype,"networkConnectivity",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(c.prototype,"refresh",[o.action],Object.getOwnPropertyDescriptor(c.prototype,"refresh"),c.prototype),c);(0,d.setComponentTemplate)(l,p)},91969:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(51372),c=n(17579),u=n(24434),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"6lB2AJW2",block:'[[[41,[28,[37,1],[[30,0,["loadingSlider","mode"]],"slider"],null],[[[1,"  "],[11,0],[16,0,[28,[37,2],["loading-indicator-container",[30,0,["state"]],[52,[30,0,["capabilities","isAppWebview"]],"discourse-hub-webview"]],null]],[16,5,[30,0,["containerStyle"]]],[4,[38,3],["transitionend",[30,0,["onContainerTransitionEnd"]]],null],[12],[1,"\\n    "],[11,0],[24,0,"loading-indicator"],[4,[38,3],["transitionend",[30,0,["onBarTransitionEnd"]]],null],[12],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","eq","concat-class","on"]]',moduleName:"discourse/components/page-loading-slider.hbs",isStrictMode:!1});var h,m,g,f,b=n(31691);let _=(h=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"loadingSlider",m,this),(0,r.Z)(this,"capabilities",g,this),(0,r.Z)(this,"state",f,this),this.loadingSlider.on("stateChanged",this.stateChanged)}stateChanged(e){this._deferredStateChange&&((0,l.cancel)(this._deferredStateChange),this._deferredStateChange=null),e&&this.ready?this.state="loading":e?(this.state="ready",this._deferredStateChange=(0,l.next)((()=>this.state="loading"))):this.state="done"}destroy(){this.loadingSlider.off("stateChange",this,"stateChange"),super.destroy()}onContainerTransitionEnd(e){e.target===e.currentTarget&&"opacity"===e.propertyName&&(this.state="ready")}onBarTransitionEnd(e){e.target===e.currentTarget&&"transform"===e.propertyName&&"loading"===this.state&&(this.state="still-loading")}get containerStyle(){const e=this.loadingSlider.averageLoadingDuration.toFixed(2);return(0,u.htmlSafe)(`--loading-duration: ${e}s`)}},m=(0,i.Z)(h.prototype,"loadingSlider",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"capabilities",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"state",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"ready"}}),(0,i.Z)(h.prototype,"stateChanged",[d.bind],Object.getOwnPropertyDescriptor(h.prototype,"stateChanged"),h.prototype),(0,i.Z)(h.prototype,"onContainerTransitionEnd",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"onContainerTransitionEnd"),h.prototype),(0,i.Z)(h.prototype,"onBarTransitionEnd",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"onBarTransitionEnd"),h.prototype),h);(0,b.setComponentTemplate)(p,_)},78138:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(347);const i=(0,n(8620).createTemplateFactory)({id:"llkzoiRy",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[8,[39,1],null,[["@name","@outletArgs"],["category-list-above-each-category",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n  "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n      ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n    "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,4],[[30,0,["category","color"]]],null]],[12],[1,"\\n      "],[8,[39,5],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n      "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["below-category-title-link","div",[28,[37,2],null,[["category"],[[30,0,["category"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["category","description_excerpt"]],[[[1,"        "],[10,0],[14,0,"category-description"],[12],[1,"\\n          "],[1,[28,[35,6],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["category","isGrandParent"]],[[[1,"        "],[10,"table"],[14,0,"category-list subcategories-with-subcategories"],[12],[1,"\\n          "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"              "],[8,[39,9],null,[["@category","@listType"],[[30,1],[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[41,[30,0,["category","subcategories"]],[[[1,"        "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"            "],[8,[39,10],null,[["@category","@listType"],[[30,2],[30,0,["listType"]]]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "]],[]],null]],[]]],[1,"    "],[13],[1,"\\n\\n    "],[10,"td"],[14,0,"topics"],[12],[1,"\\n      "],[10,0],[15,"title",[30,0,["category","statTitle"]]],[12],[1,[28,[35,11],[[30,0,["category","stat"]]],null]],[13],[1,"\\n      "],[8,[39,12],[[24,0,"unread-new"]],[["@category","@tagName","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],"div",[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[51,[30,0,["isMuted"]]],[[[41,[30,0,["showTopics"]],[[[1,"        "],[10,"td"],[14,0,"latest"],[12],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["category","featuredTopics"]]],null]],null],null,[[[1,"            "],[8,[39,13],null,[["@topic"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["subcategory","subcategory","t"],false,["unless","plugin-outlet","hash","if","category-color-variable","category-title-link","dir-span","each","-track-array","sub-category-row","sub-category-item","html-safe","category-unread","featured-topic"]]',moduleName:"discourse/components/parent-category-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({}))},29475:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(69338),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"nMCOoYgN",block:'[[[1,"\\n  "],[8,[32,0],[[24,0,"btn-social passkey-login-button"]],[["@action","@icon","@label"],[[30,1],"user","login.passkey.name"]],null],[1,"\\n"]],["@passkeyLogin"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/passkey-login-button.js",scope:()=>[r.default],isStrictMode:!0}),a()())},62787:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(2825).default.extend({canToggle:!1,keyPress(e){e.which>=65&&e.which<=90&&!e.shiftKey||e.which>=97&&e.which<=122&&e.shiftKey?(this.set("canToggle",!0),this.set("capsLockOn",!0)):(e.which>=65&&e.which<=90&&e.shiftKey||e.which>=97&&e.which<=122&&!e.shiftKey)&&(this.set("canToggle",!0),this.set("capsLockOn",!1))},keyUp(e){20===e.which&&this.canToggle&&this.toggleProperty("capsLockOn")},focusOut(){this.set("capsLockOn",!1)},focusIn(){this.set("canToggle",!1)}})},99730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(24705),a=n(3055),l=n(14201),c=n(57555);const u=(0,n(8620).createTemplateFactory)({id:"QxNva+5p",block:'[[[8,[39,0],null,[["@item"],[[30,1]]],null]],["@post"],false,["user-stream-item"]]',moduleName:"discourse/components/pending-post.hbs",isStrictMode:!1});var d;const p=(0,i.setComponentTemplate)(u,s().extend((d={didRender(){this._super(...arguments),this._loadOneboxes(),this._resolveUrls()},_loadOneboxes(){(0,l.loadOneboxes)(this.element,a.ajax,this.post.topic_id,this.post.category_id,this.siteSettings.max_oneboxes_per_post,!0)},_resolveUrls(){(0,o.resolveAllShortUrls)(a.ajax,this.siteSettings,this.element,this.opts)}},(0,r.Z)(d,"_loadOneboxes",[c.afterRender],Object.getOwnPropertyDescriptor(d,"_loadOneboxes"),d),(0,r.Z)(d,"_resolveUrls",[c.afterRender],Object.getOwnPropertyDescriptor(d,"_resolveUrls"),d),d)))},27805:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(17579),l=n(33217),c=n(29966),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"+leCynKR",block:'[[[41,[30,0,["showButton"]],[[[1,"  "],[8,[39,1],null,[["@action","@label","@icon"],[[28,[37,2],[[30,0],"openSystemFilePicker"],null],[30,0,["label"]],[30,0,["icon"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["acceptsAllFormats"]],[[[1,"  "],[10,"input"],[15,1,[30,0,["fileInputId"]]],[15,0,[30,0,["fileInputClass"]]],[15,"multiple",[30,0,["allowMultiple"]]],[15,"disabled",[30,0,["fileInputDisabled"]]],[14,4,"file"],[12],[13],[1,"\\n"]],[]],[[[1,"  "],[10,"input"],[15,1,[30,0,["fileInputId"]]],[15,0,[30,0,["fileInputClass"]]],[15,"accept",[30,0,["acceptedFormats"]]],[15,"multiple",[30,0,["allowMultiple"]]],[15,"disabled",[30,0,["fileInputDisabled"]]],[14,4,"file"],[12],[13],[1,"\\n"]],[]]]],[],false,["if","d-button","action"]]',moduleName:"discourse/components/pick-files-button.hbs",isStrictMode:!1});var h,m,g;const f=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.default)(),m=(0,u.default)(),g={dialog:(0,a.inject)(),fileInputId:null,fileInputClass:null,fileInputDisabled:!1,classNames:["pick-files-button"],acceptedFormatsOverride:null,allowMultiple:!1,showButton:!1,didInsertElement(){if(this._super(...arguments),this.onFilesPicked){const e=this.element.querySelector("input");this.set("fileInput",e),e.addEventListener("change",this.onChange,!1)}},willDestroyElement(){this._super(...arguments),this.onFilesPicked&&this.fileInput.removeEventListener("change",this.onChange)},onChange(){const e=this.fileInput.files;this._filesPicked(e)},acceptsAllFormats(){return this.capabilities.isIOS||(0,c.authorizesAllExtensions)(this.currentUser.staff,this.siteSettings)},acceptedFormats(){return(0,l.isBlank)(this.acceptedFormatsOverride)?(0,c.authorizedExtensions)(this.currentUser.staff,this.siteSettings).map((e=>`.${e}`)).join():this.acceptedFormatsOverride},openSystemFilePicker(){this.fileInput.click()},_filesPicked(e){if(e&&e.length)if(this._haveAcceptedTypes(e));else{const e=d.default.t("pick_files_button.unsupported_file_picked",{types:this.acceptedFileTypesString});this.dialog.alert(e)}},_haveAcceptedTypes(e){for(const t of e)if(!this._hasAcceptedExtensionOrType(t))return!1;return!0},_hasAcceptedExtensionOrType(e){const t=this._fileExtension(e.name);return this.acceptedFormats.includes(`.${t}`)||this.acceptedFormats.includes(e.type)},_fileExtension:e=>e.split(".").pop()},(0,r.Z)(g,"onChange",[u.bind],Object.getOwnPropertyDescriptor(g,"onChange"),g),(0,r.Z)(g,"acceptsAllFormats",[h],Object.getOwnPropertyDescriptor(g,"acceptsAllFormats"),g),(0,r.Z)(g,"acceptedFormats",[m],Object.getOwnPropertyDescriptor(g,"acceptedFormats"),g),(0,r.Z)(g,"openSystemFilePicker",[o.action],Object.getOwnPropertyDescriptor(g,"openSystemFilePicker"),g),g)))},56310:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPluginOutletDecorator:()=>p,default:()=>m,resetDecorators:()=>h});var r,i=n(54001),s=n(31691),o=n.n(s),a=n(48163),l=n(4173),c=n(54736),u=n(57555);let d={};function p(e,t){d[e]=d[e]||[],d[e].push(t)}function h(){d={}}const m=o().extend((r={init(){this._super(...arguments);const e=this.args||{};Object.keys(e).forEach((e=>{(0,a.defineProperty)(this,e,(0,a.computed)("args",(()=>(this.args||{})[e])))}));const t=this.deprecatedArgs||{};Object.keys(t).forEach((e=>{(0,a.defineProperty)(this,e,(0,a.computed)("deprecatedArgs",(()=>((0,c.default)(`The ${e} property is deprecated, but is being used in ${this.layoutName}`,{id:"discourse.plugin-connector.deprecated-arg"}),(this.deprecatedArgs||{})[e]))))}));const n=this.connector.connectorClass;if(this.set("actions",n?.actions),this.actions)for(const[e,t]of Object.entries(this.actions))this.set(e,t.bind(this));const r=(0,l.buildArgsWithDeprecations)(e,t);n?.setupComponent?.call(this,r,this)},didReceiveAttrs(){this._super(...arguments),this._decoratePluginOutlets()},_decoratePluginOutlets(){(d[this.connector.outletName]||[]).forEach((e=>e(this.element,this.args)))},willDestroyElement(){this._super(...arguments);const e=this.connector.connectorClass;e?.teardownComponent?.call(this,this)},send(e){const t=this.connector.connectorClass,n=t?.actions?.[e];for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n?n.call(this,...i):this._super(e,...i)}},(0,i.Z)(r,"_decoratePluginOutlets",[u.afterRender],Object.getOwnPropertyDescriptor(r,"_decoratePluginOutlets"),r),r))},90311:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(49246),s=n(54001),o=(n(23183),n(31691)),a=n.n(o),l=n(48163),c=n(17579),u=n(32593),d=n(4173),p=n(54736),h=n(61369),m=n(57555),g=n(91649);const f=(0,n(8620).createTemplateFactory)({id:"9rvQRjHl",block:'[[[41,[30,1],[[[1,"  "],[8,[30,0,["wrapperComponent"]],null,[["@tagName"],[[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[28,[30,0,["getConnectors"]],null,null]],null]],null],null,[[[41,[30,2,["componentClass"]],[[[1,"        "],[8,[30,2,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null],[1,"\\n"]],[]],[[[41,[30,3],[[[1,"        "],[8,[30,2,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,3],[[16,0,[30,2,["classicClassNames"]]]],[["@connector","@args","@deprecatedArgs","@outletArgs","@tagName","@layout"],[[30,2],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[28,[37,4],[[30,5],""],null],[30,2,["template"]]]],null],[1,"\\n      "]],[]]]],[]]]],[2]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,0,["connectorsExist"]],[[[42,[28,[37,2],[[28,[37,2],[[28,[30,0,["getConnectors"]],null,[["hasBlock"],[[48,[30,7]]]]]],null]],null],null,[[[41,[30,6,["componentClass"]],[[[1,"      "],[8,[30,6,["componentClass"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],[["default"],[[[[18,7,null]],[]]]]],[1,"\\n"]],[]],[[[41,[30,3],[[[1,"      "],[8,[30,6,["templateOnly"]],null,[["@outletArgs"],[[30,0,["outletArgsWithDeprecations"]]]],[["default"],[[[[18,7,null]],[]]]]],[1,"\\n"]],[]],[[[1,"      "],[8,[39,3],[[16,0,[30,6,["classicClassNames"]]]],[["@connector","@args","@deprecatedArgs","@outletArgs","@tagName","@layout"],[[30,6],[30,0,["outletArgs"]],[30,4],[30,0,["outletArgsWithDeprecations"]],[28,[37,4],[[30,5],""],null],[30,6,["template"]]]],[["default"],[[[[18,7,null]],[]]]]],[1,"\\n    "]],[]]]],[]]]],[6]],[[[1,"    "],[18,7,null],[1,"\\n"]],[]]]],[]],[[[1,"  "],[18,7,null],[1,"\\n"]],[]]]],[]]]],["@tagName","c","@defaultGlimmer","@deprecatedArgs","@connectorTagName","c","&default"],false,["if","each","-track-array","plugin-connector","or","has-block","yield"]]',moduleName:"discourse/components/plugin-outlet.hbs",isStrictMode:!1});var b,_;let y=(0,g.Z)(n(23183)).cached,w=(b=class extends u.default{constructor(){const e=(super(...arguments),(0,r.Z)(this,"clientErrorHandler",_,this),(0,i.Z)(this,"context",{...(0,h.helperContext)(),get parentView(){return this.parentView},get(){return(0,p.default)("Plugin outlet context is no longer an EmberObject - using `get()` is deprecated.",{id:"discourse.plugin-outlet-context-get"}),(0,l.get)(this,...arguments)}}),this);return this.args.tagName&&(0,p.default)(`The \`tagName\` argument to PluginOutlet is deprecated. If a wrapper element is required, define it manually around the outlet call. Using tagName will prevent wrapper PluginOutlets from functioning correctly. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-tag-name"}),this.args.args&&(0,p.default)(`PluginOutlet arguments should now be passed using \`@outletArgs=\` instead of \`@args=\` (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-args"}),e}getConnectors(){let{hasBlock:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,d.renderedConnectorsFor)(this.args.name,this.outletArgsWithDeprecations,this.context);if(t.length>1&&e){const e=`Multiple connectors were registered for the ${this.args.name} outlet. Using the first.`;return this.clientErrorHandler.displayErrorNotice(e),console.error(e,t.map((e=>e.humanReadableName))),[t[0]]}return t}get connectorsExist(){return(0,d.connectorsExist)(this.args.name)}get outletArgs(){return this.args.outletArgs||this.args.args||{}}get outletArgsWithDeprecations(){return this.args.deprecatedArgs?(0,d.buildArgsWithDeprecations)(this.outletArgs,this.args.deprecatedArgs||{}):this.outletArgs}get parentView(){return(0,p.default)(`parentView should not be used within plugin outlets. Use the available outlet arguments, or inject a service which can provide the context you need. (outlet: ${this.args.name})`,{id:"discourse.plugin-outlet-parent-view"}),this._parentView}set parentView(e){this._parentView=e}get wrapperComponent(){return v}},_=(0,s.Z)(b.prototype,"clientErrorHandler",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(b.prototype,"getConnectors",[m.bind],Object.getOwnPropertyDescriptor(b.prototype,"getConnectors"),b.prototype),(0,s.Z)(b.prototype,"outletArgs",[y],Object.getOwnPropertyDescriptor(b.prototype,"outletArgs"),b.prototype),(0,s.Z)(b.prototype,"outletArgsWithDeprecations",[y],Object.getOwnPropertyDescriptor(b.prototype,"outletArgsWithDeprecations"),b.prototype),b);class v extends(a()){get parentView(){if(this._state)return this._parentView.parentView}set parentView(e){this._parentView=e}}(0,o.setComponentTemplate)(f,w)},26899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(17579),l=n(24434),c=n(57555);const u=(0,n(8620).createTemplateFactory)({id:"3kGtAn2e",block:'[[[1,[30,0,["tipReason"]]],[1," "],[1,[28,[35,0],["times-circle"],null]]],[],false,["d-icon"]]',moduleName:"discourse/components/popup-input-tip.hbs",isStrictMode:!1});var d,p,h;const m=(0,i.setComponentTemplate)(u,s().extend((d=(0,c.default)("bad"),p=(0,c.default)("validation.reason"),h={composer:(0,a.inject)(),tagName:"a",classNameBindings:[":popup-tip","good","bad","lastShownAt::hide"],attributeBindings:["role","ariaLabel","tabindex"],tipReason:null,lastShownAt:(0,o.or)("shownAt","validation.lastShownAt"),bad:(0,o.reads)("validation.failed"),good:(0,o.not)("bad"),tabindex:"0",role(e){if(e)return"alert"},ariaLabel:e=>e?.replace(/(<([^>]+)>)/gi,""),dismiss(){this.set("shownAt",null),this.composer.clearLastValidatedAt(),this.element.previousElementSibling?.focus()},click(){this.dismiss()},keyDown(e){"Enter"===e.key&&this.dismiss()},didReceiveAttrs(){this._super(...arguments);let e=this.get("validation.reason");e?this.set("tipReason",(0,l.htmlSafe)(`${e}`)):this.set("tipReason",null)}},(0,r.Z)(h,"role",[d],Object.getOwnPropertyDescriptor(h,"role"),h),(0,r.Z)(h,"ariaLabel",[p],Object.getOwnPropertyDescriptor(h,"ariaLabel"),h),h)))},15726:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"ceqSN3Cy",block:'[[[10,"h3"],[12],[1,[28,[35,0],[[30,0,["title"]]],null]],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n  "],[18,1,null],[1,"\\n"],[13]],["&default"],false,["i18n","yield"]]',moduleName:"discourse/components/popup-menu.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},74848:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M,fixQuotes:()=>A});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(49246),m=n(54001),g=n(82006),f=n(23183),b=n(55071),_=n(48581),y=n(48163),w=n(17579),v=n(42465),k=n(69338),x=n(23151),T=n(33813),S=n(90311),C=n(99230),P=n(3055),O=n(25477),E=n(62617),D=n(47582),I=n(82099),j=n(8620),Z=n(31691);function A(e){return e.replace(/[\u201C\u201D]/g,'"').replace(/[\u2018\u2019]/g,"'")}let M=(d=class extends g.default{constructor(){super(...arguments),(0,p.Z)(this,"currentUser",i,this),(0,p.Z)(this,"modal",s,this),(0,p.Z)(this,"site",o,this),(0,p.Z)(this,"siteSettings",a,this),(0,p.Z)(this,"appEvents",l,this),(0,p.Z)(this,"toasts",c,this),(0,p.Z)(this,"isFastEditing",u,this),(0,h.Z)(this,"appEventsListeners",(0,v.modifier)((()=>(this.appEvents.on("quote-button:edit",this,"toggleFastEdit"),()=>{this.appEvents.off("quote-button:edit",this,"toggleFastEdit")}))))}get topic(){return this.args.data.topic}get quoteState(){return this.args.data.quoteState}get post(){return this.topic.postStream.findLoadedPost(this.args.data.quoteState.postId)}get quoteSharingEnabled(){return this.site.desktopView&&this.quoteSharingSources.length>0&&!this.topic.invisible&&!this.topic.category?.read_restricted&&("all"===this.siteSettings.share_quote_visibility||"anonymous"===this.siteSettings.share_quote_visibility&&!this.currentUser)}get quoteSharingSources(){return O.default.activeSources(this.siteSettings.share_quote_buttons,this.siteSettings.login_required||this.topic.isPrivateMessage)}get quoteSharingShowLabel(){return this.quoteSharingSources.length>1}get shareUrl(){return(0,D.getAbsoluteURL)((0,E.postUrl)(this.topic.slug,this.topic.id,this.post.post_number))}get embedQuoteButton(){const e=this.topic.details.can_create_post,t=this.topic.details.can_reply_as_new_topic;return(e||t)&&this.currentUser?.get("user_option.enable_quoting")}trapEvents(e){e.stopPropagation()}async copyQuoteToClipboard(){const e=await this.args.data.buildQuote();(0,E.clipboardCopy)(e),this.toasts.success({duration:3e3,data:{message:I.default.t("post.quote_copied_to_clibboard")}}),await this.args.data.hideToolbar()}async closeFastEdit(){this.isFastEditing=!1,await this.args.data.hideToolbar()}async toggleFastEdit(){if(!this.args.data.supportsFastEdit){const e=await(0,P.ajax)(`/posts/${this.post.id}`);if(this.isDestroying||this.isDestroyed)return;let t=0;const n=e.raw.split("\n"),r=A(this.args.data.quoteState.buffer.split("\n")[0].replace(/^\* /,""));return n.some(((e,n)=>{if(e.length&&e.includes(r))return t=n,!0})),this.args.data.editPost(this.post),document.querySelector("#reply-control")?.addEventListener("transitionend",(()=>{const e=document.querySelector(".d-editor-input");!e||this.isDestroyed||this.isDestroying||((0,E.setCaretPosition)(e,n.slice(0,t).join("\n").length+(t>0?1:0)),e.blur(),e.focus())})),void this.args.data.hideToolbar()}this.site.desktopView?this.isFastEditing=!this.isFastEditing:(this.modal.show(T.default,{model:{initialValue:this.args.data.quoteState.buffer,post:this.post}}),this.args.data.hideToolbar())}share(e){O.default.shareSource(e,{url:this.shareUrl,title:this.topic.title,quote:window.getSelection().toString()})}},(0,Z.setComponentTemplate)((0,j.createTemplateFactory)({id:"w4xtTFBq",block:'[[[1,"\\n"],[1,"    "],[11,0],[16,0,[28,[32,0],["quote-button","visible",[52,[30,0,["isFastEditing"]],"fast-editing"]],null]],[4,[32,1],["mousedown",[30,0,["trapEvents"]]],null],[4,[32,1],["mouseup",[30,0,["trapEvents"]]],null],[4,[30,0,["appEventsListeners"]],null,null],[12],[1,"\\n      "],[10,0],[14,0,"buttons"],[12],[1,"\\n        "],[8,[32,2],null,[["@name","@defaultGlimmer","@outletArgs"],["post-text-buttons",true,[28,[32,3],null,[["data","post"],[[30,1],[30,0,["post"]]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["embedQuoteButton"]],[[[1,"            "],[8,[32,4],[[24,0,"btn-flat insert-quote"]],[["@icon","@label","@title","@action"],["quote-left","post.quote_reply","post.quote_reply_shortcut",[30,1,["insertQuote"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canEditPost"]],[[[1,"            "],[8,[32,4],[[24,0,"btn-flat quote-edit-label"],[4,[32,1],["click",[30,0,["toggleFastEdit"]]],null]],[["@icon","@label","@title"],["pencil-alt","post.quote_edit","post.quote_edit_shortcut"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["canCopyQuote"]],[[[1,"            "],[8,[32,4],[[24,0,"btn-flat copy-quote"],[4,[32,1],["click",[30,0,["copyQuoteToClipboard"]]],null]],[["@icon","@label","@title"],["copy","post.quote_copy","post.quote_copy"]],null],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["quote-share-buttons-before","span",[28,[32,3],null,[["data"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,0,["quoteSharingEnabled"]],[[[1,"            "],[10,1],[14,0,"quote-sharing"],[12],[1,"\\n"],[41,[30,0,["quoteSharingShowLabel"]],[[[1,"                "],[8,[32,4],[[24,0,"btn-flat quote-share-label"]],[["@icon","@label"],["share","post.quote_share"]],null],[1,"\\n"]],[]],null],[1,"\\n              "],[10,1],[14,0,"quote-share-buttons"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["quoteSharingSources"]]],null]],null],null,[[[1,"                  "],[8,[32,4],[[24,0,"btn-flat"]],[["@action","@translatedTitle","@icon"],[[28,[32,5],[[30,0,["share"]],[30,2]],null],[30,2,["title"]],[30,2,["icon"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n                "],[8,[32,2],null,[["@name","@connectorTagName","@outletArgs"],["quote-share-buttons-after","span",[28,[32,3],null,[["data"],[[30,1]]]]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"extra"],[12],[1,"\\n"],[41,[30,0,["isFastEditing"]],[[[1,"          "],[8,[32,6],null,[["@initialValue","@post","@close"],[[30,1,["quoteState","buffer"]],[30,0,["post"]],[30,0,["closeFastEdit"]]]],null],[1,"\\n"]],[]],null],[1,"\\n        "],[8,[32,2],null,[["@name","@connectorTagName"],["quote-button-after","div"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@data","source"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-text-selection-toolbar.js",scope:()=>[C.default,_.on,S.default,b.hash,k.default,b.fn,x.default],isStrictMode:!0}),d),r=d,i=(0,m.Z)(r.prototype,"currentUser",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,m.Z)(r.prototype,"modal",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,m.Z)(r.prototype,"site",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,m.Z)(r.prototype,"siteSettings",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,m.Z)(r.prototype,"appEvents",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,m.Z)(r.prototype,"toasts",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.Z)(r.prototype,"isFastEditing",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,m.Z)(r.prototype,"trapEvents",[y.action],Object.getOwnPropertyDescriptor(r.prototype,"trapEvents"),r.prototype),(0,m.Z)(r.prototype,"copyQuoteToClipboard",[y.action],Object.getOwnPropertyDescriptor(r.prototype,"copyQuoteToClipboard"),r.prototype),(0,m.Z)(r.prototype,"closeFastEdit",[y.action],Object.getOwnPropertyDescriptor(r.prototype,"closeFastEdit"),r.prototype),(0,m.Z)(r.prototype,"toggleFastEdit",[y.action],Object.getOwnPropertyDescriptor(r.prototype,"toggleFastEdit"),r.prototype),(0,m.Z)(r.prototype,"share",[y.action],Object.getOwnPropertyDescriptor(r.prototype,"share"),r.prototype),r)},76301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M,fixQuotes:()=>A});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(49246),m=n(54001),g=n(82006),f=n(23183),b=n(48163),_=n(51372),y=n(17579),w=n(42465),v=n(74848),k=n(7179),x=n(62617),T=n(22519),S=n(34405),C=n(56111),P=n(57555),O=n(98233),E=n(91649),D=n(8620),I=n(31691);let j=(0,E.Z)(n(23183)).cached;function Z(e){const t=e.querySelector(".title");if(!t)return;const n=t.querySelector("a:not(.back)");return n?n.textContent.trim():t.textContent.trim().replace(/:$/,"")}function A(e){return e.replace(/[\u201C\u201D]/g,'"').replace(/[\u2018\u2019]/g,"'")}let M=(d=class extends g.default{constructor(){super(...arguments),(0,p.Z)(this,"appEvents",i,this),(0,p.Z)(this,"capabilities",s,this),(0,p.Z)(this,"currentUser",o,this),(0,p.Z)(this,"site",a,this),(0,p.Z)(this,"siteSettings",l,this),(0,p.Z)(this,"menu",c,this),(0,p.Z)(this,"isSelecting",u,this),(0,h.Z)(this,"prevSelectedText",void 0),(0,h.Z)(this,"runLoopHandlers",(0,w.modifier)((()=>()=>{(0,_.cancel)(this.selectionChangeHandler)}))),(0,h.Z)(this,"documentListeners",(0,w.modifier)((()=>(document.addEventListener("mousedown",this.mousedown,{passive:!0}),document.addEventListener("mouseup",this.mouseup,{passive:!0}),document.addEventListener("selectionchange",this.onSelectionChanged),()=>{document.removeEventListener("mousedown",this.mousedown),document.removeEventListener("mouseup",this.mouseup),document.removeEventListener("selectionchange",this.onSelectionChanged)})))),(0,h.Z)(this,"appEventsListeners",(0,w.modifier)((()=>(this.appEvents.on("quote-button:quote",this,"insertQuote"),()=>{this.appEvents.off("quote-button:quote",this,"insertQuote")}))))}willDestroy(){super.willDestroy(...arguments),this.menuInstance?.destroy()}async hideToolbar(){this.args.quoteState.clear(),await(this.menuInstance?.close())}async selectionChanged(){if(this.isSelecting)return;const e=(0,x.selectedText)(),t=window.getSelection();if(t.isCollapsed||""===e)return void(this.menuInstance?.expanded||this.args.quoteState.clear());if(this.menuInstance?.expanded&&this.prevSelectedText===e)return;let n;this.prevSelectedText=e;for(let e=0;e<t.rangeCount;e++){const r=t.getRangeAt(e),i=r.startContainer.nodeType===Node.ELEMENT_NODE?r.startContainer:r.startContainer.parentElement,s=r.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?r.commonAncestorContainer:r.commonAncestorContainer.parentElement;if(!i.closest(".cooked"))return await this.hideToolbar();if(n||=s.closest(".boxed, .reply")?.dataset?.postId,!s.closest(".contents")||!n)return await this.hideToolbar()}const r=(0,x.selectedNode)().nodeType===Node.ELEMENT_NODE?(0,x.selectedNode)():(0,x.selectedNode)().parentElement,i=r.querySelector(".cooked")||r.closest(".cooked");let s={full:!((0,x.selectedRange)().startOffset>0)&&e===(0,k.default)(i.innerHTML)};for(let e=r;e&&"ARTICLE"!==e.tagName;e=e.parentElement)if("ASIDE"===e.tagName&&e.classList.contains("quote")){s.username=e.dataset.username||Z(e),s.post=e.dataset.post,s.topic=e.dataset.topic;break}const o=this.args.quoteState;o.selected(n,e,s);let a=this.canEditPost;if(this.canEditPost){const e=new RegExp((0,O.default)(o.buffer),"gi"),t=i.innerHTML.match(e),n=/[^\x00-\x7F]/;0===o.buffer.length||o.buffer.includes("|")||o.buffer.match(/\n/g)||t?.length>1||n.test(o.buffer)?a=!1:1===t?.length&&(a=!0)}const l={identifier:"post-text-selection-toolbar",component:v.default,inline:!0,placement:this.shouldRenderUnder?"bottom-start":"top-start",fallbackPlacements:this.shouldRenderUnder?["bottom-end","top-start"]:["bottom-start"],offset:this.shouldRenderUnder?25:3,trapTab:!1,data:{canEditPost:this.canEditPost,canCopyQuote:this.canCopyQuote,editPost:this.args.editPost,supportsFastEdit:a,topic:this.args.topic,quoteState:o,insertQuote:this.insertQuote,buildQuote:this.buildQuote,hideToolbar:this.hideToolbar}};await(this.menuInstance?.destroy()),this.menuInstance=await this.menu.show((0,T.default)(),l)}onSelectionChanged(){if(this.isSelecting)return;const{isIOS:e,isWinphone:t,isAndroid:n}=this.capabilities,r=e||t||n?S.INPUT_DELAY:25;this.selectionChangeHandler=(0,C.default)(this,this.selectionChanged,r)}mousedown(){this.isSelecting=!0}mouseup(){this.isSelecting=!1,this.onSelectionChanged()}get post(){return this.args.topic.postStream.findLoadedPost(this.args.quoteState.postId)}get canEditPost(){return this.siteSettings.enable_fast_edit&&this.post?.can_edit}get canCopyQuote(){return this.siteSettings.enable_quote_copy&&this.currentUser?.get("user_option.enable_quoting")}get shouldRenderUnder(){const{isIOS:e,isAndroid:t,isOpera:n}=this.capabilities;return this.site.isMobileDevice||e||t||n}async insertQuote(){await this.args.selectText(),await this.hideToolbar()}async buildQuote(){return await this.args.buildQuoteMarkdown()}},(0,I.setComponentTemplate)((0,D.createTemplateFactory)({id:"77nCOA8W",block:'[[[1,"\\n    "],[11,0],[4,[30,0,["documentListeners"]],null,null],[4,[30,0,["appEventsListeners"]],null,null],[4,[30,0,["runLoopHandlers"]],null,null],[12],[13],[1,"\\n  "]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/post-text-selection.js",isStrictMode:!0}),d),r=d,i=(0,m.Z)(r.prototype,"appEvents",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,m.Z)(r.prototype,"capabilities",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,m.Z)(r.prototype,"currentUser",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,m.Z)(r.prototype,"site",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,m.Z)(r.prototype,"siteSettings",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,m.Z)(r.prototype,"menu",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.Z)(r.prototype,"isSelecting",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,m.Z)(r.prototype,"hideToolbar",[P.bind],Object.getOwnPropertyDescriptor(r.prototype,"hideToolbar"),r.prototype),(0,m.Z)(r.prototype,"selectionChanged",[P.bind],Object.getOwnPropertyDescriptor(r.prototype,"selectionChanged"),r.prototype),(0,m.Z)(r.prototype,"onSelectionChanged",[P.bind],Object.getOwnPropertyDescriptor(r.prototype,"onSelectionChanged"),r.prototype),(0,m.Z)(r.prototype,"mousedown",[P.bind],Object.getOwnPropertyDescriptor(r.prototype,"mousedown"),r.prototype),(0,m.Z)(r.prototype,"mouseup",[P.bind],Object.getOwnPropertyDescriptor(r.prototype,"mouseup"),r.prototype),(0,m.Z)(r.prototype,"shouldRenderUnder",[j],Object.getOwnPropertyDescriptor(r.prototype,"shouldRenderUnder"),r.prototype),(0,m.Z)(r.prototype,"insertQuote",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"insertQuote"),r.prototype),(0,m.Z)(r.prototype,"buildQuote",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"buildQuote"),r.prototype),r)},84947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(31691),i=n(99230),s=n(91423),o=n(8620),a=n(91138),l=n.n(a);const c=(0,r.setComponentTemplate)((0,o.createTemplateFactory)({id:"8OzNtTva",block:'[[[1,"\\n  "],[11,0],[16,0,[28,[32,0],["controls",[30,1]],null]],[17,2],[12],[1,"\\n    "],[10,"label"],[14,0,"checkbox-label"],[12],[1,"\\n      "],[8,[32,1],[[16,"disabled",[30,3]]],[["@type","@checked"],["checkbox",[30,4]]],null],[1,"\\n\\n"],[41,[30,5],[[[1,"        "],[1,[28,[32,2],[[30,6]],[["count"],[[30,5]]]]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[32,2],[[30,6]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],["@class","&attrs","@disabled","@checked","@labelCount","@labelKey"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/preference-checkbox.js",scope:()=>[i.default,r.Input,s.default],isStrictMode:!0}),l()())},75680:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"N6MsCHwi",block:'[[[41,[30,0,["shouldShow"]],[[[41,[30,0,["href"]],[[[1,"    "],[10,3],[15,6,[30,0,["href"]]],[15,"title",[28,[37,1],[[30,0,["title"]]],null]],[15,"aria-label",[28,[37,1],[[30,0,["ariaLabel"]]],null]],[12],[1,"\\n      "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n        "],[1,[28,[35,2],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n      "],[13],[1,"\\n    "],[13]],[]],[[[1,"    "],[10,1],[14,0,"private-message-glyph-wrapper"],[12],[1,"\\n      "],[1,[28,[35,2],["envelope"],[["class"],["private-message-glyph"]]]],[1,"\\n    "],[13]],[]]]],[]],null]],[],false,["if","i18n","d-icon"]]',moduleName:"discourse/components/private-message-glyph.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:null,href:null,title:null,ariaLabel:null,shouldShow:null}))},29780:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"ZP/4db5O",block:'[[[41,[30,0,["showPWAInstallBanner"]],[[[1,"  "],[10,0],[14,0,"row"],[12],[1,"\\n    "],[10,0],[14,0,"pwa-install-banner alert alert-info"],[12],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[8,[39,1],null,[["@action","@text","@textParams"],[[28,[37,2],[[30,0],"turnOn"],null],"pwa.install_banner",[28,[37,3],null,[["title"],[[30,0,["siteSettings","title"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,4],[[24,0,"btn-flat close"]],[["@icon","@action","@title"],["times",[28,[37,2],[[30,0],"dismiss"],null],"banner.close"]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","discourse-linked-text","action","hash","d-button"]]',moduleName:"discourse/components/pwa-install-banner.hbs",isStrictMode:!1});var l,c,u,d,p;const h="dismissed-pwa-install-banner",m=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.on)("didInsertElement"),c=(0,o.on)("willDestroyElement"),u=(0,o.default)("deferredInstallPromptEvent","bannerDismissed"),d={deferredInstallPromptEvent:null,_onInstallPrompt(e){e.preventDefault(),this.set("deferredInstallPromptEvent",e)},_registerListener(){window.addEventListener("beforeinstallprompt",this._onInstallPrompt)},_unregisterListener(){window.removeEventListener("beforeinstallprompt",this._onInstallPrompt)},bannerDismissed:{set(e){return this.keyValueStore.set({key:h,value:e}),this.keyValueStore.get(h)},get(){return this.keyValueStore.get(h)}},showPWAInstallBanner(e,t){return this.capabilities.isAndroid&&this.get("currentUser.trust_level")>0&&e&&!window.matchMedia("(display-mode: standalone)").matches&&!this.capabilities.isAppWebview&&!t},actions:{turnOn(){this.set("bannerDismissed",!0),this.deferredInstallPromptEvent.prompt()},dismiss(){this.set("bannerDismissed",!0)}}},(0,r.Z)(d,"_onInstallPrompt",[o.bind],Object.getOwnPropertyDescriptor(d,"_onInstallPrompt"),d),(0,r.Z)(d,"_registerListener",[l],Object.getOwnPropertyDescriptor(d,"_registerListener"),d),(0,r.Z)(d,"_unregisterListener",[c],Object.getOwnPropertyDescriptor(d,"_unregisterListener"),d),(0,r.Z)(d,"bannerDismissed",[o.default],(p=(p=Object.getOwnPropertyDescriptor(d,"bannerDismissed"))?p.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return p}}),d),(0,r.Z)(d,"showPWAInstallBanner",[u],Object.getOwnPropertyDescriptor(d,"showPWAInstallBanner"),d),d)))},74866:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(54001),o=n(31691),a=n.n(o),l=n(71466),c=n.n(l),u=n(57555);const d=a().extend((r=(0,u.default)("value","selection"),i={tagName:"input",type:"radio",attributeBindings:["name","type","value","checked:checked","disabled:disabled"],click(){const e=c()(this.element).val();this.onChange?this.onChange(e):(this.selection===e&&this.set("selection",void 0),this.set("selection",e))},checked:(e,t)=>e===t},(0,s.Z)(i,"checked",[r],Object.getOwnPropertyDescriptor(i,"checked"),i),i))},69926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(48163),l=n(17579),c=n(47582),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"Ydiy8Olw",block:'[[[11,0],[24,1,"related-messages"],[16,0,[29,["more-topics__list ",[52,[30,0,["hidden"]],"hidden"]]]],[24,"role","complementary"],[24,"aria-labelledby","related-messages-title"],[4,[38,1],[[30,0,["registerList"]]],null],[4,[38,2],[[30,0,["removeList"]]],null],[12],[1,"\\n  "],[10,"h3"],[14,1,"related-messages-title"],[14,0,"more-topics__list-title"],[12],[1,"\\n    "],[1,[28,[35,3],["related_messages.title"],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"topics"],[12],[1,"\\n    "],[8,[39,4],null,[["@hideCategory","@showPosters","@topics"],["true","true",[30,1,["relatedMessages"]]]],null],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["targetUser"]],[[[1,"    "],[10,"h3"],[14,0,"see-all-pms-message"],[12],[1,"\\n      "],[1,[28,[35,5],[[28,[37,3],["related_messages.see_all"],[["path","username"],[[30,0,["searchLink"]],[30,0,["targetUser","username"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["@topic"],false,["if","did-insert","will-destroy","i18n","basic-topic-list","html-safe"]]',moduleName:"discourse/components/related-messages.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=(0,a.computed)("moreTopicsPreferenceTracking.selectedTab"),h=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"moreTopicsPreferenceTracking",m,this),(0,r.Z)(this,"currentUser",g,this),(0,i.Z)(this,"listId","related-Messages")}get hidden(){return this.moreTopicsPreferenceTracking.selectedTab!==this.listId}registerList(){this.moreTopicsPreferenceTracking.registerTopicList({name:u.default.t("related_messages.pill"),id:this.listId})}removeList(){this.moreTopicsPreferenceTracking.removeTopicList(this.listId)}get targetUser(){const e=this.args.topic;if(!e||!e.isPrivateMessage)return;const t=e.details.allowed_users;return e.relatedMessages&&e.relatedMessages.length>=5&&2===t.length&&0===e.details.allowed_groups.length&&t.find((e=>e.username===this.currentUser.username))?t.find((e=>e.username!==this.currentUser.username)):void 0}get searchLink(){return(0,c.default)(`/search?expanded=true&q=%40${this.targetUser.username}%20in%3Apersonal-direct`)}},m=(0,s.Z)(h.prototype,"moreTopicsPreferenceTracking",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(h.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(h.prototype,"hidden",[p],Object.getOwnPropertyDescriptor(h.prototype,"hidden"),h.prototype),(0,s.Z)(h.prototype,"registerList",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"registerList"),h.prototype),(0,s.Z)(h.prototype,"removeList",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"removeList"),h.prototype),h);(0,f.setComponentTemplate)(d,b)},45386:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(82006),s=n(70352),o=n(8620),a=n(31691);class l extends i.default{get datetime(){return this.memoizedDatetime||(this.memoizedDatetime=new Date(this.args.date)),this.memoizedDatetime}get title(){return(0,s.longDate)(this.datetime)}get time(){return this.datetime.getTime()}}r=l,(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"eNGhdWNN",block:'[[[1,"\\n    "],[10,1],[14,0,"relative-date"],[15,"title",[30,0,["title"]]],[15,"data-time",[30,0,["time"]]],[14,"data-format","tiny"],[12],[1,"\\n      "],[1,[28,[32,0],[[30,0,["datetime"]]],null]],[1,"\\n    "],[13],[1,"\\n  "]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-date.js",scope:()=>[s.relativeAge],isStrictMode:!0}),r)},13025:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a=n(94664),l=n(54001),c=n(82006),u=n(23183),d=n(48581),p=n(48163),h=n(33217),m=n(82099),g=n(84762),f=n(8620),b=n(31691);let _=(o=class extends c.default{constructor(){super(...arguments),(0,a.Z)(this,"duration",i,this),(0,a.Z)(this,"selectedInterval",s,this);const e=void 0!==this.args.durationHours,t=void 0!==this.args.durationMinutes;if(e&&t)throw new Error("relative-time needs initial duration in hours OR minutes, both are not supported");e?this._setInitialDurationFromHours():this._setInitialDurationFromMinutes()}_roundedDuration(e){const t=parseFloat(e.toFixed(2));return t%1==0?parseInt(t,10):t}_setInitialDurationFromHours(){null===this.args.durationHours?(this.duration=this.args.durationHours,this.selectedInterval="hours"):this.args.durationHours>=8760?(this.duration=this._roundedDuration(this.args.durationHours/365/24),this.selectedInterval="years"):this.args.durationHours>=730?(this.duration=this._roundedDuration(this.args.durationHours/30/24),this.selectedInterval="months"):this.args.durationHours>=24?(this.duration=this._roundedDuration(this.args.durationHours/24),this.selectedInterval="days"):this.args.durationHours<1?(this.duration=this._roundedDuration(60*this.args.durationHours),this.selectedInterval="mins"):(this.duration=this.args.durationHours,this.selectedInterval="hours")}_setInitialDurationFromMinutes(){this.args.durationMinutes>=525600?(this.duration=this._roundedDuration(this.args.durationMinutes/365/60/24),this.selectedInterval="years"):this.args.durationMinutes>=43800?(this.duration=this._roundedDuration(this.args.durationMinutes/30/60/24),this.selectedInterval="months"):this.args.durationMinutes>=1440?(this.duration=this._roundedDuration(this.args.durationMinutes/60/24),this.selectedInterval="days"):this.args.durationMinutes>=60?(this.duration=this._roundedDuration(this.args.durationMinutes/60),this.selectedInterval="hours"):(this.duration=this.args.durationMinutes,this.selectedInterval="mins")}get durationMin(){return"mins"===this.selectedInterval?1:.1}get durationStep(){return"mins"===this.selectedInterval?1:.05}get intervals(){const e=this.duration?parseFloat(this.duration):0;return[{id:"mins",name:m.default.t("relative_time_picker.minutes",{count:e})},{id:"hours",name:m.default.t("relative_time_picker.hours",{count:e})},{id:"days",name:m.default.t("relative_time_picker.days",{count:e})},{id:"months",name:m.default.t("relative_time_picker.months",{count:e})},{id:"years",name:m.default.t("relative_time_picker.years",{count:e})}].filter((e=>!this.args.hiddenIntervals?.includes(e.id)))}get calculatedMinutes(){if((0,h.isBlank)(this.duration))return null;const e=parseFloat(this.duration);switch(this.selectedInterval){case"mins":return Math.ceil(e);case"hours":return 60*e;case"days":return 60*e*24;case"months":return 60*e*24*30;case"years":return 60*e*24*365}}onChangeInterval(e){this.selectedInterval=e,this.args.onChange?.(this.calculatedMinutes)}onChangeDuration(e){this.duration=e.target.value,this.args.onChange?.(this.calculatedMinutes)}},(0,b.setComponentTemplate)((0,f.createTemplateFactory)({id:"qOQHk3Jf",block:'[[[1,"\\n    "],[10,0],[14,0,"relative-time-picker"],[12],[1,"\\n      "],[11,"input"],[16,"min",[30,0,["durationMin"]]],[16,"step",[30,0,["durationStep"]]],[16,2,[30,0,["duration"]]],[16,1,[30,1]],[24,0,"relative-time-duration"],[24,4,"number"],[4,[32,0],["change",[30,0,["onChangeDuration"]]],null],[12],[13],[1,"\\n      "],[8,[32,1],[[24,0,"relative-time-intervals"]],[["@content","@value","@onChange"],[[30,0,["intervals"]],[30,0,["selectedInterval"]],[30,0,["onChangeInterval"]]]],null],[1,"\\n    "],[13],[1,"\\n  "]],["@id"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-time-picker.js",scope:()=>[d.on,g.default],isStrictMode:!0}),o),r=o,i=(0,l.Z)(r.prototype,"duration",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"selectedInterval",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(r.prototype,"onChangeInterval",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"onChangeInterval"),r.prototype),(0,l.Z)(r.prototype,"onChangeDuration",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"onChangeDuration"),r.prototype),r)},8027:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(17579),u=n(8620),d=n(31691);let p=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"renderGlimmer",i,this)}},(0,d.setComponentTemplate)((0,u.createTemplateFactory)({id:"Ma+3KJMI",block:'[[[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["renderGlimmer","_registrations"]]],null]],null],null,[[[40,[[[1,"        "],[8,[30,1,["component"]],null,[["@data","@setWrapperElementAttrs"],[[30,1,["data"]],[30,1,["setWrapperElementAttrs"]]]],null],[1,"\\n"]],[]],"%cursor:0%",[28,[31,3],[[30,1,["element"]]],null],null]],[1]],null],[1,"  "]],["info"],false,["each","-track-array","in-element","-in-el-null"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/render-glimmer-container.js",isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"renderGlimmer",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},37364:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(54001),s=n(23183),o=n(31691),a=n.n(o),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"8n0K9JK6",block:'[[[10,0],[14,0,"directory-table-container"],[12],[1,"\\n  "],[11,0],[24,0,"directory-table-top-scroll"],[4,[38,0],["scroll",[30,0,["onTopScroll"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"directory-table-top-scroll-fake-content"],[12],[13],[1,"\\n  "],[13],[1,"\\n  "],[11,0],[16,0,[28,[37,1],["directory-table",[30,1]],null]],[24,"role","table"],[16,"aria-label",[30,2]],[16,5,[30,3]],[4,[38,2],[[30,0,["checkScroll"]]],null],[4,[38,3],[[30,0,["checkScroll"]],[30,4]],null],[4,[38,4],[[30,0,["checkScroll"]]],null],[4,[38,0],["scroll",[30,0,["onBottomScroll"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"directory-table__header"],[12],[1,"\\n      "],[18,5,null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"directory-table__body"],[12],[1,"\\n      "],[18,6,null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@className","@ariaLabel","@style","@updates","&header","&body"],false,["on","concat-class","did-insert","did-update","on-resize","yield"]]',moduleName:"discourse/components/responsive-table.hbs",isStrictMode:!1});var u,d,p,h,m;let g=(u=class extends(a()){constructor(){super(...arguments),(0,r.Z)(this,"lastScrollPosition",d,this),(0,r.Z)(this,"ticking",p,this),(0,r.Z)(this,"_table",h,this),(0,r.Z)(this,"_topHorizontalScrollBar",m,this)}checkScroll(){const e=document.querySelector(".directory-table-top-scroll-fake-content");this._table.getBoundingClientRect().bottom<window.innerHeight?e.style.height=0:(e.style.width=`${this._table.scrollWidth}px`,e.style.height="1px")}onTopScroll(){this.onHorizontalScroll(this._topHorizontalScrollBar,this._table)}onBottomScroll(){this.onHorizontalScroll(this._table,this._topHorizontalScrollBar)}onHorizontalScroll(e,t){this.set("lastScrollPosition",e?.scrollLeft),this.ticking||(window.requestAnimationFrame((()=>{t.scrollLeft=this.lastScrollPosition,this.set("ticking",!1)})),this.set("ticking",!0))}},d=(0,i.Z)(u.prototype,"lastScrollPosition",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),p=(0,i.Z)(u.prototype,"ticking",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=(0,i.Z)(u.prototype,"_table",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return document.querySelector(".directory-table")}}),m=(0,i.Z)(u.prototype,"_topHorizontalScrollBar",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return document.querySelector(".directory-table-top-scroll")}}),(0,i.Z)(u.prototype,"checkScroll",[l.bind],Object.getOwnPropertyDescriptor(u.prototype,"checkScroll"),u.prototype),(0,i.Z)(u.prototype,"onTopScroll",[l.bind],Object.getOwnPropertyDescriptor(u.prototype,"onTopScroll"),u.prototype),(0,i.Z)(u.prototype,"onBottomScroll",[l.bind],Object.getOwnPropertyDescriptor(u.prototype,"onBottomScroll"),u.prototype),(0,i.Z)(u.prototype,"onHorizontalScroll",[l.bind],Object.getOwnPropertyDescriptor(u.prototype,"onHorizontalScroll"),u.prototype),u);(0,o.setComponentTemplate)(c,g)},55621:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(55071),u=n(48163),d=n(17579),p=n(16572),h=n(69338),m=n(99230),g=n(43168),f=n(50073),b=n(8620),_=n(31691);let y=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"site",i,this)}get multiple(){return this.args.bundle.actions.length>1}get first(){return this.args.bundle.actions[0]}get placement(){return`${this.site.mobileView?"top":"bottom"}-${(0,g.isRTL)()?"end":"start"}`}perform(e){if(e){const t=this.args.bundle.actions.find((t=>t.id===e));this.args.performAction(t)}else this.args.performAction(this.first)}},(0,_.setComponentTemplate)((0,b.createTemplateFactory)({id:"yOlU6Bfe",block:'[[[1,"\\n"],[41,[30,0,["multiple"]],[[[1,"      "],[8,[32,0],[[16,0,[28,[32,1],["reviewable-action-dropdown","btn-icon-text",[28,[32,2],[[30,0,["first","id"]]],null],[30,0,["first","button_class"]]],null]]],[["@nameProperty","@content","@onChange","@options"],["label",[30,1,["actions"]],[30,0,["perform"]],[28,[32,3],null,[["showCaret","disabled","placement","translatedNone"],[true,[30,2],[30,0,["placement"]],[30,1,["label"]]]]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[32,4],[[16,0,[28,[32,1],["btn-default reviewable-action",[28,[32,2],[[30,0,["first","id"]]],null],[30,0,["first","button_class"]]],null]]],[["@action","@translatedLabel","@disabled"],[[30,0,["perform"]],[30,0,["first","label"]],[30,2]]],null],[1,"\\n"]],[]]],[1,"  "]],["@bundle","@reviewableUpdating"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-bundled-action.js",scope:()=>[f.default,m.default,p.dasherize,c.hash,h.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(r.prototype,"perform",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"perform"),r.prototype),r)},36484:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(3055),a=n(38864),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"Vfzaim/m",block:'[[[41,[30,0,["enabled"]],[[[1,"  "],[10,0],[14,0,"reviewable-claimed-topic"],[12],[1,"\\n"],[41,[30,0,["claimedBy"]],[[[1,"      "],[10,0],[14,0,"claimed-by"],[12],[1,"\\n        "],[1,[28,[35,1],[[30,0,["claimedBy"]]],[["imageSize"],["small"]]]],[1,"\\n        "],[10,1],[14,0,"claimed-username"],[12],[1,[30,0,["claimedBy","username"]]],[13],[1,"\\n      "],[13],[1,"\\n      "],[8,[39,2],[[24,0,"btn-small unclaim"]],[["@icon","@action","@disabled","@title"],["times",[28,[37,3],[[30,0],"unclaim"],null],[30,0,["unassigning"]],"review.unclaim.help"]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,2],[[24,0,"btn-small claim"]],[["@icon","@title","@action"],["user-plus","review.claim.title",[28,[37,3],[[30,0],"claim"],null]]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","avatar","d-button","action"]]',moduleName:"discourse/components/reviewable-claimed-topic.hbs",isStrictMode:!1});var u;const d=(0,i.setComponentTemplate)(c,s().extend((u={tagName:"",enabled(){return"disabled"!==this.siteSettings.reviewable_claiming},actions:{unclaim(){(0,o.ajax)(`/reviewable_claimed_topics/${this.topicId}`,{type:"DELETE"}).then((()=>{this.set("claimedBy",null)}))},claim(){this.store.createRecord("reviewable-claimed-topic").save({topic_id:this.topicId}).then((()=>{this.set("claimedBy",this.currentUser)})).catch(a.popupAjaxError)}}},(0,r.Z)(u,"enabled",[l.default],Object.getOwnPropertyDescriptor(u,"enabled"),u),u)))},73207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(6264);const o=(0,n(8620).createTemplateFactory)({id:"rEzH4/zT",block:'[[[41,[30,0,["post"]],[[[1,"  "],[10,0],[14,0,"reviewable-conversation-post"],[12],[1,"\\n"],[41,[30,0,["showUsername"]],[[[1,"      "],[8,[39,1],[[24,0,"username"]],[["@route","@model"],["user",[30,0,["post","user"]]]],[["default"],[[[[1,"@"],[1,[30,0,["post","user","username"]]]],[]]]]],[1,"\\n"]],[]],null],[1,"    "],[1,[28,[35,2],[[30,0,["post","excerpt"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","link-to","html-safe"]]',moduleName:"discourse/components/reviewable-conversation-post.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({showUsername:(0,s.gte)("index",1)}))},1349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"rgvcFOht",block:'[[[10,0],[14,0,"names"],[12],[1,"\\n  "],[10,1],[14,0,"username"],[12],[1,"\\n"],[41,[30,0,["user"]],[[[1,"      "],[8,[39,1],null,[["@user"],[[30,0,["user"]]]],[["default"],[[[[1,[30,0,["user","username"]]]],[]]]]],[1,"\\n"],[41,[30,0,["user","silenced"]],[[[1,"        "],[1,[28,[35,2],["ban"],[["title"],["user.silenced_tooltip"]]]],[1,"\\n"]],[]],null]],[]],[[[1,"      "],[1,[28,[35,3],["review.deleted_user"],null]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n  "],[8,[39,4],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-post-user","div",[28,[37,5],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n"],[13]],[],false,["if","user-link","d-icon","i18n","plugin-outlet","hash"]]',moduleName:"discourse/components/reviewable-created-by-name.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},21535:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"1b0dD0sL",block:'[[[10,0],[14,0,"created-by"],[12],[1,"\\n"],[41,[30,0,["user"]],[[[1,"    "],[8,[39,1],null,[["@user"],[[30,0,["user"]]]],[["default"],[[[[1,[28,[35,2],[[30,0,["user"]]],[["imageSize"],["large"]]]]],[]]]]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,3],["far-trash-alt"],[["class"],["deleted-user-avatar"]]]],[1,"\\n"]],[]]],[13]],[],false,["if","user-link","avatar","d-icon"]]',moduleName:"discourse/components/reviewable-created-by.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},38091:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163);const l=(0,n(8620).createTemplateFactory)({id:"HLHNYAx5",block:'[[[8,[39,0],null,[["@value","@onChange"],[[30,0,["categoryId"]],[30,0,["onChange"]]]],null]],[],false,["category-chooser"]]',moduleName:"discourse/components/reviewable-field-category.hbs",isStrictMode:!1});var c,u,d=n(31691);let p=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"categoryId",u,this)}onChange(e){this.categoryId=e,this.args.categoryChanged?.(e)}},u=(0,i.Z)(c.prototype,"categoryId",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.value}}),(0,i.Z)(c.prototype,"onChange",[a.action],Object.getOwnPropertyDescriptor(c.prototype,"onChange"),c.prototype),c);(0,d.setComponentTemplate)(l,p)},22606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"adhFukNT",block:'[[[8,[39,0],null,[["@value","@change"],[[30,0,["value"]],[30,0,["valueChanged"]]]],null]],[],false,["d-editor"]]',moduleName:"discourse/components/reviewable-field-editor.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},1256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"JKyUkA0b",block:'[[[8,[39,0],null,[["@value","@onChange","@options"],[[30,0,["value"]],[28,[37,1],[[30,0],"onChange"],null],[28,[37,2],null,[["categoryId"],[[30,0,["tagCategoryId"]]]]]]],null]],[],false,["mini-tag-chooser","action","hash"]]',moduleName:"discourse/components/reviewable-field-tags.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({actions:{onChange(e){this.set("value",e),this.valueChanged&&this.valueChanged({target:{value:e}})}}}))},84331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"tBQ611mt",block:'[[[8,[39,0],[[24,0,"reviewable-input-text"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["input","on"]]',moduleName:"discourse/components/reviewable-field-text.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},27554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"qWCiGgyG",block:'[[[8,[39,0],[[24,0,"reviewable-input-textarea"],[4,[38,1],["change",[30,0,["valueChanged"]]],null]],[["@value"],[[30,0,["value"]]]],null]],[],false,["textarea","on"]]',moduleName:"discourse/components/reviewable-field-textarea.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},30928:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"yOMLoOfQ",block:'[[[41,[30,0,["value"]],[[[1,"  "],[10,0],[15,0,[30,0,["classes"]]],[12],[1,"\\n    "],[10,0],[14,0,"name"],[12],[1,[30,0,["name"]]],[13],[1,"\\n    "],[10,0],[14,0,"value"],[12],[1,[30,0,["value"]]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"discourse/components/reviewable-field.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},98839:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(57555);const u=(0,n(8620).createTemplateFactory)({id:"wUxwxKbd",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n  "],[8,[39,0],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n  "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,1],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n  "],[8,[39,2],null,[["@user","@tagName"],[[30,1,["target_created_by"]],""]],null],[1,"\\n  "],[10,0],[14,0,"post-contents"],[12],[1,"\\n    "],[8,[39,3],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n    "],[11,0],[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]],[4,[38,5],[[30,0,["calculatePostBodySize"]],[30,1]],null],[12],[1,"\\n"],[41,[30,1,["blank_post"]],[[[1,"        "],[10,2],[12],[1,[28,[35,6],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,7],[[30,1,["cooked"]]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1,"      "],[8,[39,8],[[24,0,"btn-default btn-icon post-body__toggle-btn"]],[["@action","@label","@icon"],[[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[10,1],[12],[1,"\\n      "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["after-reviewable-flagged-post-body","div",[28,[37,10],null,[["model"],[[30,1]]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[18,2,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","did-insert","i18n","html-safe","d-button","plugin-outlet","hash","yield"]]',moduleName:"discourse/components/reviewable-flagged-post.hbs",isStrictMode:!1});var d,p,h,m=n(31691);let g=(d=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"isCollapsed",p,this),(0,r.Z)(this,"isLongPost",h,this),(0,i.Z)(this,"maxPostHeight",300)}toggleContent(){this.isCollapsed=!this.isCollapsed}calculatePostBodySize(e){e?.offsetHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}},p=(0,s.Z)(d.prototype,"isCollapsed",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=(0,s.Z)(d.prototype,"isLongPost",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(d.prototype,"toggleContent",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"toggleContent"),d.prototype),(0,s.Z)(d.prototype,"calculatePostBodySize",[c.bind],Object.getOwnPropertyDescriptor(d.prototype,"calculatePostBodySize"),d.prototype),d);(0,m.setComponentTemplate)(u,g)},86197:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(6264);const o=(0,n(8620).createTemplateFactory)({id:"kw2eCqwR",block:'[[[41,[30,0,["filteredHistories"]],[[[1,"  "],[10,"table"],[14,0,"reviewable-histories"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"tr"],[12],[1,"\\n        "],[10,"th"],[14,"colspan","3"],[12],[1,[28,[35,1],["review.history.title"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["filteredHistories"]]],null]],null],null,[[[41,[51,[30,1,["created"]]],[[[1,"          "],[10,"tr"],[12],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[1,[28,[35,5],[[30,1]],null]],[1,"\\n            "],[13],[1,"\\n            "],[10,"td"],[12],[1,"\\n              "],[8,[39,6],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n                "],[1,[28,[35,7],[[30,1,["created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n                "],[1,[30,1,["created_by","username"]]],[1,"\\n              "]],[]]]]],[1,"\\n            "],[13],[1,"\\n            "],[10,"td"],[12],[1,[28,[35,8],[[30,1,["created_at"]]],[["format"],["medium"]]]],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["rh"],false,["if","i18n","each","-track-array","unless","reviewable-history-description","user-link","avatar","format-date"]]',moduleName:"discourse/components/reviewable-histories.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({filteredHistories:(0,s.filterBy)("histories","created",!1)}))},26794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPluginReviewableParam:()=>Z,default:()=>M,registerReviewableActionModal:()=>A});var r=n(54001),i=n(72326),s=n(31691),o=n.n(s),a=n(48163),l=n(17579),c=n(16572),u=n(42455),d=n(24721),p=n(31077),h=n(3055),m=n(38864),g=n(29318),f=n(56746),b=n(57555),_=n(82099);const y=(0,n(8620).createTemplateFactory)({id:"yIQu0RdV",block:'[[[10,0],[15,"data-reviewable-id",[30,0,["reviewable","id"]]],[15,0,[29,["reviewable-item ",[30,0,["customClasses"]]]]],[12],[1,"\\n  "],[10,0],[14,0,"reviewable-meta-data"],[12],[1,"\\n    "],[10,1],[15,0,[28,[37,0],["reviewable-type",[30,0,["reviewable","humanTypeCssClass"]]],null]],[12],[1,[30,0,["reviewable","humanType"]]],[13],[1,"\\n"],[41,[30,0,["reviewable","reply_count"]],[[[1,"      "],[10,1],[14,0,"reply-count"],[12],[1,[28,[35,2],["review.replies"],[["count"],[[30,0,["reviewable","reply_count"]]]]]],[13],[1,"\\n"]],[]],null],[1,"    "],[10,1],[14,0,"created-at"],[12],[1,"\\n      "],[8,[39,3],null,[["@route","@model"],["review.show",[30,0,["reviewable","id"]]]],[["default"],[[[[1,[28,[35,4],[[30,0,["reviewable","created_at"]]],null]]],[]]]]],[1,"\\n    "],[13],[1,"\\n    "],[10,1],[14,0,"status"],[12],[1,"\\n      "],[1,[28,[35,5],[[30,0,["reviewable","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n    "],[13],[1,"\\n    "],[11,3],[24,6,""],[16,"title",[28,[37,2],["review.explain.why"],null]],[24,0,"explain"],[4,[38,6],["click",[28,[37,7],[[30,0,["explainReviewable"]],[30,0,["reviewable"]]],null]],null],[12],[1,"\\n      "],[1,[28,[35,8],["question-circle"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"reviewable-contents"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1,"      "],[10,0],[14,0,"editable-fields"],[12],[1,"\\n"],[41,[30,0,["reviewable","created_by"]],[[[1,"          "],[10,0],[14,0,"editable-created-by"],[12],[1,"\\n            "],[1,[28,[35,9],[[30,0,["reviewable","created_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n            "],[8,[39,10],null,[["@user","@tagName"],[[30,0,["reviewable","created_by"]],""]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,0,["reviewable","editable_fields"]]],null]],null],null,[[[1,"          "],[10,0],[15,0,[29,["editable-field ",[28,[37,13],[[30,1,["id"]]],null]]]],[12],[1,"\\n            "],[46,[28,[37,15],["reviewable-field-",[30,1,["type"]]],null],null,[["tagName","value","tagCategoryId","valueChanged","categoryChanged"],["",[28,[37,16],[[30,0,["reviewable"]],[30,1,["id"]]],null],[30,0,["tagCategoryId"]],[28,[37,17],[[30,0],"valueChanged",[30,1,["id"]]],null],[28,[37,17],[[30,0],"categoryChanged"],null]]],null],[1,"\\n          "],[13],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n"]],[]],[[[46,[30,0,["reviewableComponent"]],null,[["reviewable","tagName"],[[30,0,["reviewable"]],""]],[["default"],[[[[1,"        "],[8,[39,18],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n"]],[]]]]]],[]]],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["displayContextQuestion"]],[[[1,"    "],[10,"h3"],[14,0,"reviewable-item__context-question"],[12],[1,"\\n      "],[1,[30,0,["reviewable","flaggedReviewableContextQuestion"]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,0],[14,0,"reviewable-actions"],[12],[1,"\\n"],[41,[30,0,["reviewable","last_performing_username"]],[[[1,"      "],[10,0],[14,0,"stale-help"],[12],[1,[28,[35,19],[[28,[37,2],["review.stale_help"],[["username"],[[30,0,["reviewable","last_performing_username"]]]]]],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["claimEnabled"]],[[[1,"        "],[10,0],[14,0,"claimed-actions"],[12],[1,"\\n          "],[10,1],[14,0,"help"],[12],[1,[28,[35,19],[[30,0,["claimHelp"]]],null]],[13],[1,"\\n          "],[8,[39,20],null,[["@topicId","@claimedBy"],[[30,0,["topicId"]],[30,0,["reviewable","claimed_by"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canPerform"]],[[[41,[30,0,["editing"]],[[[1,"          "],[8,[39,21],[[24,0,"btn-primary reviewable-action save-edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"check",[28,[37,17],[[30,0],"saveEdit"],null],"review.save"]],null],[1,"\\n          "],[8,[39,21],[[24,0,"btn-danger reviewable-action cancel-edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"times",[28,[37,17],[[30,0],"cancelEdit"],null],"review.cancel"]],null],[1,"\\n"]],[]],[[[42,[28,[37,12],[[28,[37,12],[[30,0,["reviewable","bundled_actions"]]],null]],null],null,[[[1,"            "],[8,[39,22],null,[["@bundle","@performAction","@reviewableUpdating"],[[30,2],[28,[37,17],[[30,0],"perform"],null],[30,0,["disabled"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["reviewable","can_edit"]],[[[1,"            "],[8,[39,21],[[24,0,"reviewable-action btn-default edit"]],[["@disabled","@icon","@action","@label"],[[30,0,["disabled"]],"pencil-alt",[28,[37,17],[[30,0],"edit"],null],"review.edit"]],null],[1,"\\n"]],[]],null]],[]]]],[]],null]],[]]],[1,"    "],[8,[39,23],null,[["@name","@connectorTagName","@outletArgs"],["reviewable-item-actions","div",[28,[37,24],null,[["reviewable"],[[30,0,["reviewable"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["f","bundle"],false,["concat-class","if","i18n","link-to","age-with-tooltip","reviewable-status","on","fn","d-icon","avatar","reviewable-created-by-name","each","-track-array","dasherize","component","concat","editable-value","action","reviewable-scores","html-safe","reviewable-claimed-topic","d-button","reviewable-bundled-action","plugin-outlet","hash"]]',moduleName:"discourse/components/reviewable-item.hbs",isStrictMode:!1});var w,v,k,x,T,S,C,P,O;let E={};const D={},I={revise_and_reject_post:p.default},j={...I};function Z(e,t){D[e]?D[e].push(t):D[e]=[t]}function A(e,t){if(Object.keys(I).includes(e))throw new Error(`Cannot override default action modal class for ${e} (mapped to ${I[e].name})!`);j[e]=t}const M=(0,s.setComponentTemplate)(y,o().extend((w=(0,b.default)("reviewable.type","reviewable.last_performing_username","siteSettings.blur_tl0_flagged_posts_media","reviewable.target_created_by_trust_level"),v=(0,b.default)("reviewable.created_from_flag","reviewable.status"),k=(0,b.default)("reviewable.topic","reviewable.topic_id","reviewable.removed_topic_id"),x=(0,b.default)("siteSettings.reviewable_claiming","topicId"),T=(0,b.default)("claimEnabled","siteSettings.reviewable_claiming","reviewable.claimed_by"),S=(0,b.default)("siteSettings.reviewable_claiming","reviewable.claimed_by"),C=(0,b.default)("reviewable.type"),P=(0,b.default)("_updates.category_id","reviewable.category.id"),O={adminTools:(0,g.default)(),dialog:(0,l.inject)(),modal:(0,l.inject)(),siteSettings:(0,l.inject)(),currentUser:(0,l.inject)(),tagName:"",updating:null,editing:!1,_updates:null,customClasses(e,t,n,r){let i=(0,c.dasherize)(e);return t&&(i=`${i} reviewable-stale`),n&&0===r&&(i=`${i} blur-images`),i},displayContextQuestion:(e,t)=>e&&0===t,topicId:(e,t,n)=>e&&e.id||t||n,claimEnabled:(e,t)=>"disabled"!==e&&!!t,canPerform(e,t,n){return!e||(n?n.id===this.currentUser.id:"required"!==t)},claimHelp(e,t){return t?t.id===this.currentUser.id?_.default.t("review.claim_help.claimed_by_you"):_.default.t("review.claim_help.claimed_by_other",{username:t.username}):"optional"===e?_.default.t("review.claim_help.optional"):_.default.t("review.claim_help.required")},reviewableComponent(e){if(void 0!==E[e])return E[e];const t=(0,c.dasherize)(e),n=(0,i.getOwner)(this),r=n.hasRegistration(`component:${t}`)||n.hasRegistration(`template:components/${t}`);return E[e]=r?t:null,E[e]},tagCategoryId:(e,t)=>e||t,_performConfirmed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.reviewable,r=()=>{let r=n.get("version");this.set("updating",!0);const i={send_email:n.sendEmail,reject_reason:n.rejectReason,...t};return(D[n.type]||[]).forEach((e=>{n[e]&&(i[e]=n[e])})),(0,h.ajax)(`/review/${n.id}/perform/${e.server_action}?version=${r}`,{type:"PUT",data:i}).then((e=>{let t=e.reviewable_perform_result;if(void 0!==t.reviewable_count&&this.currentUser.updateReviewableCount(t.reviewable_count),void 0!==t.unseen_reviewable_count&&this.currentUser.set("unseen_reviewable_count",t.unseen_reviewable_count),!this.remove)return this.store.find("reviewable",n.id);this.remove(t.remove_reviewable_ids)})).catch(m.popupAjaxError).finally((()=>this.set("updating",!1)))};if(e.client_action){let t=this[`client${(0,c.classify)(e.client_action)}`];return t?t.call(this,n,r):void console.error(`No handler for ${e.client_action} found`)}return r()},clientSuspend(e,t){this._penalize("showSuspendModal",e,t)},clientSilence(e,t){this._penalize("showSilenceModal",e,t)},_penalize(e,t,n){let r=this.adminTools;if(r){let i=t.get("target_created_by"),s=t.get("post_id"),o=t.get("raw");return r[e](i,{postId:s,postEdit:o,before:n})}},explainReviewable(e,t){t.preventDefault(),this.modal.show(u.default,{model:{reviewable:e}})},actions:{edit(){this.set("editing",!0),this.set("_updates",{payload:{}})},cancelEdit(){this.set("editing",!1)},saveEdit(){let e=this._updates;return Object.keys(e).forEach((t=>{let n=e[t];"object"==typeof n&&0===Object.keys(n).length&&delete e[t]})),this.set("updating",!0),this.reviewable.update(e).then((()=>this.set("editing",!1))).catch(m.popupAjaxError).finally((()=>this.set("updating",!1)))},categoryChanged(e){let t=f.default.findById(e);t||(t=f.default.findUncategorized()),(0,a.set)(this._updates,"category_id",t.id)},valueChanged(e,t){(0,a.set)(this._updates,e,t.target.value)},perform(e){if(this.updating)return;const t=e.get("confirm_message"),n=e.get("require_reject_reason")?d.default:j[e.server_action];if(t)this.dialog.confirm({message:t,didConfirm:()=>this._performConfirmed(e)});else{if(!n)return this._performConfirmed(e);this.modal.show(n,{model:{reviewable:this.reviewable,performConfirmed:this._performConfirmed,action:e}})}}}},(0,r.Z)(O,"customClasses",[w],Object.getOwnPropertyDescriptor(O,"customClasses"),O),(0,r.Z)(O,"displayContextQuestion",[v],Object.getOwnPropertyDescriptor(O,"displayContextQuestion"),O),(0,r.Z)(O,"topicId",[k],Object.getOwnPropertyDescriptor(O,"topicId"),O),(0,r.Z)(O,"claimEnabled",[x],Object.getOwnPropertyDescriptor(O,"claimEnabled"),O),(0,r.Z)(O,"canPerform",[T],Object.getOwnPropertyDescriptor(O,"canPerform"),O),(0,r.Z)(O,"claimHelp",[S],Object.getOwnPropertyDescriptor(O,"claimHelp"),O),(0,r.Z)(O,"reviewableComponent",[C],Object.getOwnPropertyDescriptor(O,"reviewableComponent"),O),(0,r.Z)(O,"tagCategoryId",[P],Object.getOwnPropertyDescriptor(O,"tagCategoryId"),O),(0,r.Z)(O,"_performConfirmed",[b.bind],Object.getOwnPropertyDescriptor(O,"_performConfirmed"),O),(0,r.Z)(O,"explainReviewable",[a.action],Object.getOwnPropertyDescriptor(O,"explainReviewable"),O),O)))},59269:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(17579),c=n(90124),u=n(70352),d=n(59766),p=n(57555);const h=(0,n(8620).createTemplateFactory)({id:"5lZNHzZN",block:'[[[41,[30,0,["hasEdits"]],[[[1,"  "],[11,3],[24,6,""],[16,0,[29,["has-edits ",[30,0,["historyClass"]]]]],[16,"title",[28,[37,1],["post.last_edited_on"],[["dateTime"],[[30,0,["editedDate"]]]]]],[4,[38,2],["click",[30,0,["showEditHistory"]]],null],[12],[1,"\\n    "],[1,[28,[35,3],["pencil-alt"],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n","on","d-icon"]]',moduleName:"discourse/components/reviewable-post-edits.hbs",isStrictMode:!1});var m,g,f;const b=(0,i.setComponentTemplate)(h,s().extend((m=(0,p.default)("reviewable.post_updated_at"),g=(0,p.default)("reviewable.post_updated_at"),f={modal:(0,l.inject)(),hasEdits:(0,a.gt)("reviewable.post_version",1),historyClass(e){return(0,d.historyHeat)(this.siteSettings,new Date(e))},editedDate:e=>(0,u.longDate)(e),showEditHistory(e){e?.preventDefault();let t=this.get("reviewable.post_id");this.store.find("post",t).then((e=>{this.modal.show(c.default,{model:{post:e,postId:t,postVersion:"latest",topicController:null}})}))}},(0,r.Z)(f,"historyClass",[m],Object.getOwnPropertyDescriptor(f,"historyClass"),f),(0,r.Z)(f,"editedDate",[g],Object.getOwnPropertyDescriptor(f,"editedDate"),f),(0,r.Z)(f,"showEditHistory",[o.action],Object.getOwnPropertyDescriptor(f,"showEditHistory"),f),f)))},69261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"ZpWg80nO",block:'[[[10,0],[14,0,"reviewable-post-header"],[12],[1,"\\n  "],[8,[39,0],null,[["@user","@tagName"],[[30,0,["createdBy"]],""]],null],[1,"\\n"],[41,[30,0,["reviewable","reply_to_post_number"]],[[[1,"    "],[10,3],[15,6,[28,[37,2],[[30,0,["reviewable","topic_url"]],"/",[30,0,["reviewable","reply_to_post_number"]]],null]],[14,0,"reviewable-reply-to"],[12],[1,"\\n      "],[1,[28,[35,3],["share"],null]],[1,"\\n      "],[10,1],[12],[1,[28,[35,4],["review.in_reply_to"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["reviewable-created-by-name","if","concat","d-icon","i18n"]]',moduleName:"discourse/components/reviewable-post-header.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},44920:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"s7pXfIjv",block:'[[[10,0],[14,0,"flagged-post-header"],[12],[1,"\\n  "],[8,[39,0],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n  "],[8,[39,1],null,[["@reviewable","@tagName"],[[30,0,["reviewable"]],""]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n  "],[8,[39,2],null,[["@user","@tagName"],[[30,0,["reviewable","target_created_by"]],""]],null],[1,"\\n  "],[10,0],[14,0,"post-contents"],[12],[1,"\\n    "],[8,[39,3],null,[["@reviewable","@createdBy","@tagName"],[[30,0,["reviewable"]],[30,0,["reviewable","target_created_by"]],""]],null],[1,"\\n    "],[10,0],[14,0,"post-body"],[12],[1,"\\n"],[41,[30,0,["reviewable","blank_post"]],[[[1,"        "],[10,2],[12],[1,[28,[35,5],["review.deleted_post"],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,6],[[30,0,["reviewable","cooked"]]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["reviewable-topic-link","reviewable-post-edits","reviewable-created-by","reviewable-post-header","if","i18n","html-safe","yield"]]',moduleName:"discourse/components/reviewable-post.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},52498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(77314);const d=(0,n(8620).createTemplateFactory)({id:"uqVJBf2/",block:'[[[8,[39,0],null,[["@reviewable","@tagName"],[[30,1],""]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"title-text"],[12],[1,"\\n    "],[1,[28,[35,1],["plus-square"],[["title"],["review.new_topic"]]]],[1,"\\n    "],[1,[30,1,["payload","title"]]],[1,"\\n  "],[13],[1,"\\n  "],[1,[28,[35,2],[[30,1,["category"]]],null]],[1,"\\n  "],[8,[39,3],null,[["@tags","@tagName"],[[30,1,["payload","tags"]],""]],null],[1,"\\n"],[41,[30,1,["payload","via_email"]],[[[1,"    "],[11,3],[24,6,""],[24,0,"show-raw-email"],[4,[38,5],["click",[30,0,["showRawEmail"]]],null],[12],[1,"\\n      "],[1,[28,[35,1],["envelope"],[["title"],["post.via_email"]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]]],[1,"\\n\\n"],[10,0],[14,0,"post-contents-wrapper"],[12],[1,"\\n  "],[8,[39,6],null,[["@user","@tagName"],[[30,1,["target_created_by"]],""]],null],[1,"\\n\\n  "],[10,0],[14,0,"post-contents"],[12],[1,"\\n    "],[8,[39,7],null,[["@reviewable","@createdBy","@tagName"],[[30,1],[30,1,["target_created_by"]],""]],null],[1,"\\n\\n    "],[8,[39,8],[[16,0,[29,["post-body ",[52,[30,0,["isCollapsed"]],"is-collapsed"]]]]],[["@rawText","@categoryId","@topicId","@paintOneboxes","@opts","@onOffsetHeightCalculated"],[[30,1,["payload","raw"]],[30,1,["category_id"]],[30,1,["topic_id"]],true,[28,[37,9],null,[["removeMissing"],[true]]],[30,0,["setPostBodyHeight"]]]],null],[1,"\\n\\n"],[41,[30,0,["isLongPost"]],[[[1,"      "],[8,[39,10],[[24,0,"btn-default btn-icon post-body__toggle-btn"]],[["@action","@label","@icon"],[[30,0,["toggleContent"]],[30,0,["collapseButtonProps","label"]],[30,0,["collapseButtonProps","icon"]]]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[18,2,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@reviewable","&default"],false,["reviewable-topic-link","d-icon","category-badge","reviewable-tags","if","on","reviewable-created-by","reviewable-post-header","cook-text","hash","d-button","yield"]]',moduleName:"discourse/components/reviewable-queued-post.hbs",isStrictMode:!1});var p,h,m,g,f,b=n(31691);let _=(p=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"modal",h,this),(0,r.Z)(this,"isCollapsed",m,this),(0,r.Z)(this,"isLongPost",g,this),(0,r.Z)(this,"postBodyHeight",f,this),(0,i.Z)(this,"maxPostHeight",300)}showRawEmail(e){e?.preventDefault(),this.modal.show(u.default,{model:{rawEmail:this.args.reviewable.payload.raw_email}})}toggleContent(){this.isCollapsed=!this.isCollapsed}get collapseButtonProps(){return this.isCollapsed?{label:"review.show_more",icon:"chevron-down"}:{label:"review.show_less",icon:"chevron-up"}}setPostBodyHeight(e){this.postBodyHeight=e,this.postBodyHeight>this.maxPostHeight?(this.isCollapsed=!0,this.isLongPost=!0):(this.isCollapsed=!1,this.isLongPost=!1)}},h=(0,s.Z)(p.prototype,"modal",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,s.Z)(p.prototype,"isCollapsed",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),g=(0,s.Z)(p.prototype,"isLongPost",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,s.Z)(p.prototype,"postBodyHeight",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,s.Z)(p.prototype,"showRawEmail",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"showRawEmail"),p.prototype),(0,s.Z)(p.prototype,"toggleContent",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleContent"),p.prototype),(0,s.Z)(p.prototype,"setPostBodyHeight",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"setPostBodyHeight"),p.prototype),p);(0,b.setComponentTemplate)(d,_)},50094:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"lxHMsd8I",block:'[[[10,"tr"],[14,0,"reviewable-score"],[12],[1,"\\n  "],[10,"td"],[14,0,"user"],[12],[1,"\\n    "],[8,[39,0],null,[["@user"],[[30,0,["rs","user"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,1],[[30,0,["rs","user"]]],[["imageSize"],["tiny"]]]],[1,"\\n      "],[1,[30,0,["rs","user","username"]]],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n    "],[1,[28,[35,2],[[30,0,["rs","created_at"]]],[["format"],["tiny"]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"td"],[12],[1,"\\n    "],[1,[28,[35,3],[[30,0,["rs","score_type","icon"]]],null]],[1,"\\n    "],[1,[30,0,["title"]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showStatus"]],[[[1,"    "],[10,"td"],[14,0,"reviewed-by"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1,"        "],[8,[39,0],null,[["@user"],[[30,0,["rs","reviewed_by"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,1],[[30,0,["rs","reviewed_by"]]],[["imageSize"],["tiny"]]]],[1,"\\n          "],[1,[30,0,["rs","reviewed_by","username"]]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],[[[1,"        —\\n"]],[]]],[1,"    "],[13],[1,"\\n\\n    "],[10,"td"],[12],[1,"\\n"],[41,[30,0,["rs","reviewed_by"]],[[[1,"        "],[1,[28,[35,2],[[30,0,["rs","reviewed_at"]]],[["format"],["tiny"]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,"td"],[12],[1,"\\n      "],[1,[28,[35,5],[[30,0,["rs","status"]],[30,0,["reviewable","type"]]],null]],[1,"\\n    "],[13],[1,"\\n\\n"]],[]],[[[1,"    "],[10,"td"],[14,"colspan","4"],[12],[13],[1,"\\n"]],[]]],[13]],[],false,["user-link","avatar","format-date","d-icon","if","reviewable-status"]]',moduleName:"discourse/components/reviewable-score.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("rs.score_type.title","reviewable.target_created_by"),u={tagName:"",showStatus:(0,o.gt)("rs.status",0),title:(e,t)=>e&&t?e.replace(/{{username}}|%{username}/,t.username):e},(0,r.Z)(u,"title",[c],Object.getOwnPropertyDescriptor(u,"title"),u),u)))},76027:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"YdwCcfyc",block:'[[[41,[30,0,["reviewable","reviewable_scores"]],[[[1,"  "],[10,0],[14,0,"reviewable-scores__table-wrapper"],[12],[1,"\\n    "],[10,"table"],[14,0,"reviewable-scores"],[12],[1,"\\n      "],[10,"thead"],[12],[1,"\\n        "],[10,"tr"],[12],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.submitted_by"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.date"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.type"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.reviewed_by"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.reviewed_timestamp"],null]],[13],[1,"\\n          "],[10,"th"],[12],[1,[28,[35,1],["review.scores.status"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,"tbody"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[1,"          "],[8,[39,4],null,[["@rs","@reviewable"],[[30,1],[30,0,["reviewable"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["reviewable","reviewable_scores"]]],null]],null],null,[[[41,[30,2,["reason"]],[[[1,"      "],[10,0],[14,0,"reviewable-score-reason"],[12],[1,[28,[35,5],[[30,2,["reason"]]],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["reviewable_conversation"]],[[[1,"      "],[10,0],[14,0,"reviewable-conversation"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2,["reviewable_conversation","conversation_posts"]]],null]],null],null,[[[1,"          "],[8,[39,6],null,[["@post","@index"],[[30,3],[30,4]]],null],[1,"\\n"]],[3,4]],null],[1,"        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[10,3],[15,6,[30,2,["reviewable_conversation","permalink"]]],[14,0,"btn btn-small"],[12],[1,"\\n            "],[1,[28,[35,1],["review.conversation.view_full"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"]],[]],null]],["rs","rs","p","index"],false,["if","i18n","each","-track-array","reviewable-score","html-safe","reviewable-conversation-post"]]',moduleName:"discourse/components/reviewable-scores.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},96076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"RF7OqWzG",block:'[[[41,[30,0,["tags"]],[[[1,"  "],[10,0],[14,0,"list-tags"],[12],[1,"\\n    "],[42,[28,[37,2],[[28,[37,2],[[30,0,["tags"]]],null]],null],null,[[[1,[28,[35,3],[[30,1]],null]]],[1]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["t"],false,["if","each","-track-array","discourse-tag"]]',moduleName:"discourse/components/reviewable-tags.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},64433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"ugzZqGzh",block:'[[[10,0],[14,0,"post-topic"],[12],[1,"\\n"],[41,[30,0,["reviewable","topic"]],[[[1,"    "],[8,[39,1],null,[["@topic","@showPrivateMessageIcon"],[[30,0,["reviewable","topic"]],true]],null],[1,"\\n    "],[10,3],[15,6,[30,0,["reviewable","target_url"]]],[14,0,"title-text"],[12],[1,[28,[35,2],[[30,0,["reviewable","topic","fancyTitle"]]],null]],[13],[1,"\\n    "],[1,[28,[35,3],[[30,0,["reviewable","category"]]],null]],[1,"\\n    "],[8,[39,4],null,[["@tags","@tagName"],[[30,0,["reviewable","topic_tags"]],""]],null],[1,"\\n"]],[]],[[[41,[48,[30,1]],[[[1,"    "],[18,1,null],[1,"\\n"]],[]],[[[1,"    "],[10,1],[14,0,"title-text"],[12],[1,"\\n      "],[1,[28,[35,7],["review.topics.deleted"],null]],[1,"\\n      "],[8,[39,8],null,[["@route","@models"],["topic",[28,[37,9],["-",[30,0,["reviewable","removed_topic_id"]]],null]]],[["default"],[[[[1,[28,[35,7],["review.topics.original"],null]]],[]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[]]]],[]]],[13]],["&default"],false,["if","topic-status","html-safe","category-badge","reviewable-tags","has-block","yield","i18n","link-to","array"]]',moduleName:"discourse/components/reviewable-topic-link.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},44600:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"ESMZJ99p",block:'[[[10,0],[14,0,"reviewable-user-info"],[12],[1,"\\n  "],[10,0],[14,0,"reviewable-user-fields"],[12],[1,"\\n    "],[10,0],[14,0,"reviewable-user-details username"],[12],[1,"\\n      "],[10,0],[14,0,"name"],[12],[1,[28,[35,0],["review.user.username"],null]],[13],[1,"\\n      "],[10,0],[14,0,"value"],[12],[1,"\\n"],[41,[30,0,["reviewable","link_admin"]],[[[1,"          "],[10,3],[15,6,[28,[37,2],[[28,[37,3],["/admin/users/",[30,0,["reviewable","user_id"]],"/",[30,0,["reviewable","payload","username"]]],null]],null]],[12],[1,"\\n            "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[30,0,["reviewable","payload","username"]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details name",[28,[37,0],["review.user.name"],null],[30,0,["reviewable","payload","name"]]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details email",[28,[37,0],["review.user.email"],null],[30,0,["reviewable","payload","email"]]]],null],[1,"\\n\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details bio",[28,[37,0],["review.user.bio"],null],[30,0,["reviewable","payload","bio"]]]],null],[1,"\\n\\n"],[41,[30,0,["reviewable","payload","website"]],[[[1,"      "],[10,0],[14,0,"reviewable-user-details website"],[12],[1,"\\n        "],[10,0],[14,0,"name"],[12],[1,[28,[35,0],["review.user.website"],null]],[13],[1,"\\n        "],[10,0],[14,0,"value"],[12],[1,"\\n          "],[10,3],[15,6,[30,0,["reviewable","payload","website"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[1,[30,0,["reviewable","payload","website"]]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,4],null,[["@classes","@name","@value"],["reviewable-user-details reject-reason",[28,[37,0],["review.user.reject_reason"],null],[30,0,["reviewable","reject_reason"]]]],null],[1,"\\n\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["userFields"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@classes","@name","@value","@tagName"],["reviewable-user-details user-field",[30,1,["name"]],[30,1,["value"]],""]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n\\n  "],[18,2,null],[1,"\\n"],[13]],["f","&default"],false,["i18n","if","get-url","concat","reviewable-field","each","-track-array","yield"]]',moduleName:"discourse/components/reviewable-user.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("reviewable.user_fields"),c={userFields(e){return this.site.collectUserFields(e)}},(0,r.Z)(c,"userFields",[l],Object.getOwnPropertyDescriptor(c,"userFields"),c),c)))},48511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"/s8EjIov",block:'[[[8,[39,0],[[24,0,"btn-primary save-changes"]],[["@action","@disabled","@label"],[[30,0,["action"]],[30,0,["buttonDisabled"]],[30,0,["savingText"]]]],null],[1,"\\n"],[41,[30,0,["saved"]],[[[1,"  "],[10,1],[14,0,"saved"],[12],[1,[28,[35,2],["saved"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,1,null]],["&default"],false,["d-button","if","i18n","yield"]]',moduleName:"discourse/components/save-controls.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("model.isSaving"),u={classNames:["controls","save-button"],buttonDisabled:(0,o.or)("model.isSaving","saveDisabled"),didInsertElement(){this._super(...arguments),this.set("saved",!1)},savingText:e=>e?"saving":"save"},(0,r.Z)(u,"savingText",[c],Object.getOwnPropertyDescriptor(u,"savingText"),u),u)))},84177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(82006),s=n(82099),o=n(8620),a=n(31691);class l extends i.default{get numericValue(){return parseFloat(Math.abs(this.args.value)).toFixed(1)}get isNegative(){return this.args.value<0}get explanationTitle(){return s.default.t(`review.explain.${this.args.label}.title`)}get explanationContent(){return s.default.t(`review.explain.${this.args.label}.name`)}}r=l,(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"3mDnj9Kf",block:'[[[1,"\\n"],[41,[30,1],[[[1,"      "],[10,1],[14,0,"op"],[12],[1,[52,[30,0,["isNegative"]],"-","+"]],[13],[1,"\\n      "],[10,1],[14,0,"score-value"],[12],[1,"\\n        "],[10,1],[14,0,"score-number"],[12],[1,[30,0,["numericValue"]]],[13],[1,"\\n"],[41,[30,2],[[[1,"          "],[10,1],[15,"title",[30,0,["explanationTitle"]]],[14,0,"score-value-type"],[12],[1,"\\n            "],[1,[30,0,["explanationContent"]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"  "]],["@value","@label"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/score-value.js",isStrictMode:!0}),r)},54071:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(31691),i=n.n(r),s=n(51372),o=n(71466),a=n.n(o),l=n(63374);const c=i().extend(l.default,{didReceiveAttrs(){this._super(...arguments),this.set("trackerName",`scroll-tracker-${this.name}`)},didInsertElement(){this._super(...arguments),this.bindScrolling()},didRender(){this._super(...arguments);const e=this.session.get(this.trackerName);e&&e.position>=0&&e.tag===this.tag&&(0,s.next)((()=>a()(window).scrollTop(e.position+1)))},willDestroyElement(){this._super(...arguments),this.unbindScrolling()},scrolled(){this._super(...arguments),this.session.set(this.trackerName,{position:a()(window).scrollTop(),tag:this.tag})}})},28086:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i=n(54001),s=n(51372),o=n(17579),a=n(17238),l=n(31310),c=n(15443),u=n(20229),d=n(75922),p=n(56111),h=n(57555),m=n(26730);const g=a.default.extend((r={screenTrack:(0,o.inject)(),widget:"post-stream",_topVisible:null,_bottomVisible:null,_currentPostObj:null,_currentVisible:null,_currentPercent:null,buildArgs(){return this.getProperties("posts","canCreatePost","filteredPostsCount","multiSelect","gaps","selectedQuery","selectedPostsCount","searchService","showReadIndicator","streamFilters","lastReadPostNumber","highestPostNumber")},scrolled(){if(this.isDestroyed||this.isDestroying)return;if((0,c.isWorkaroundActive)()||document.webkitFullscreenElement||document.fullscreenElement)return;const e=document.elementFromPoint(0,0);if(e&&"IFRAME"===e.tagName.toUpperCase())return;const t=window.innerHeight,n=Math.round(5*t),r=[],i=[],o=document.scrollingElement.scrollTop,a=m.default.offset(document.querySelector(".posts-wrapper")).top,u=this.element.querySelectorAll(".onscreen-post, .cloaked-post"),p=function(e,t,n,r,i){if(i<r)return r;for(;i>r;){const s=Math.floor((r+i)/2),o=e.item(s);m.default.offset(o).top-n+o.clientHeight>t?i=s-1:r=s+1}return r}(u,o-n,a,0,u.length-1);let h=o+t,g=h+n;const f=document.body.clientHeight;h>f&&(h=f),g>f&&(g=f);let b=null,_=null;const y=(0,l.default)(),w=Math.ceil(o+y+5);let v=!0,k=p,x=0;for(;k<u.length;){const e=u.item(k);if(!e)break;const t=m.default.offset(e).top,n=e.clientHeight,s=Math.ceil(t+n);if(v=v&&t<w,t>g)break;s>=o&&t<=h&&r.push(k),null===b&&(t<=w&&s>=w||x<=w&&t>=w)&&(_=(w-t)/n,b=k),x=s,i.push(k),k++}v&&(null===_&&(_=1),null===b&&(b=k-1));const T=this.posts,S=e=>this.queueRerender(e);if(r.length){const e=T.objectAt(r[0]);if(this._topVisible!==e){this._topVisible=e;const t=u.item(r[0]).id,n=()=>{S((()=>{const e=document.getElementById(t);if(!e)return;const n=e=>e?e.offsetTop+n(e.offsetParent):0,r=n(e)-(0,l.default)();window.scrollTo({top:r}),(0,s.schedule)("afterRender",(()=>{window.scrollTo({top:r})}))}))};this.topVisibleChanged({post:e,refresh:n})}const t=T.objectAt(r[r.length-1]);this._bottomVisible!==t&&(this._bottomVisible=t,this.bottomVisibleChanged({post:t,refresh:S}));const n=T.objectAt(b),i=this._currentPostObj!==n;i&&(this._currentPostObj=n,this.currentPostChanged({post:n})),null!==_&&(_=Math.max(0,Math.min(1,_)),(i||this._currentPercent!==_)&&(this._currentPercent=_,this.currentPostScrolled({percent:_})))}else this._topVisible=null,this._bottomVisible=null,this._currentPostObj=null,this._currentPercent=null;const C=[],P=[],O=this._previouslyNearby,E={};i.forEach((e=>{const t=T.objectAt(e),n=t.post_number;delete O[n],r.includes(e)&&(C.push(n),t.read&&P.push(n)),E[n]=t,(0,d.uncloak)(t,this)})),Object.values(O).forEach((e=>(0,d.cloak)(e,this))),this._previouslyNearby=E,this.screenTrack.setOnscreen(C,P)},_scrollTriggered(){(0,s.scheduleOnce)("afterRender",this,this.scrolled)},_posted(e){this.queueRerender((()=>{if(e){const t=e.post_number;u.default.jumpToPost(t,{skipIfOnScreen:!0})}}))},_refresh(e){e&&(e.id?(this.dirtyKeys.keyDirty(`post-${e.id}`),e.refreshLikes&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshLikes"}),e.refreshReaders&&this.dirtyKeys.keyDirty(`post-menu-${e.id}`,{onRefresh:"refreshReaders"})):e.force&&this.dirtyKeys.forceAll()),this.queueRerender(),this._scrollTriggered()},_debouncedScroll(){(0,p.default)(this,this._scrollTriggered,50)},didInsertElement(){this._super(...arguments),this._previouslyNearby={},this.appEvents.on("post-stream:refresh",this,"_debouncedScroll");const e={passive:!0};document.addEventListener("touchmove",this._debouncedScroll,e),window.addEventListener("scroll",this._debouncedScroll,e),this._scrollTriggered(),this.appEvents.on("post-stream:posted",this,"_posted"),this.element.addEventListener("mouseenter",this._handleWidgetButtonHoverState,!0),this.element.addEventListener("mouseleave",this._removeWidgetButtonHoverState,!0),this.appEvents.on("post-stream:refresh",this,"_refresh"),window.onpageshow=function(e){e.persisted&&u.default.routeTo(this.location.pathname)}},willDestroyElement(){this._super(...arguments),document.removeEventListener("touchmove",this._debouncedScroll),window.removeEventListener("scroll",this._debouncedScroll),this.appEvents.off("post-stream:refresh",this,"_debouncedScroll"),this.element.removeEventListener("mouseenter",this._handleWidgetButtonHoverState),this.element.removeEventListener("mouseleave",this._removeWidgetButtonHoverState),this.appEvents.off("post-stream:refresh",this,"_refresh"),this.appEvents.off("post-stream:posted",this,"_posted")},didUpdateAttrs(){this._super(...arguments),this._refresh({force:!0})},_handleWidgetButtonHoverState(e){e.target.classList.contains("widget-button")&&(document.querySelectorAll("button.widget-button").forEach((e=>{e.classList.remove("d-hover")})),e.target.classList.add("d-hover"))},_removeWidgetButtonHoverState(){document.querySelectorAll("button.widget-button").forEach((e=>{e.classList.remove("d-hover")}))}},(0,i.Z)(r,"_debouncedScroll",[h.bind],Object.getOwnPropertyDescriptor(r,"_debouncedScroll"),r),r))},88621:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addAdvancedSearchOptions:()=>A,default:()=>M});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(62617),l=n(56746),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"VMuy7hE9",block:'[[[10,"summary"],[12],[1,"\\n  "],[1,[28,[35,0],["search.advanced.title"],null]],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,0,"search-advanced-filters"],[12],[1,"\\n  "],[10,0],[14,0,"search-advanced-options"],[12],[1,"\\n    "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-above","div",[28,[37,2],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-category"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.in_category.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,3],null,[["@id","@value","@onChange"],["search-in-category",[30,0,["searchedTerms","category","id"]],[28,[37,4],[[30,0],"onChangeSearchTermForCategory"],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"      "],[10,0],[14,0,"control-group advanced-search-tags"],[12],[1,"\\n        "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.with_tags.label"],null]],[13],[1,"\\n        "],[10,0],[14,0,"controls"],[12],[1,"\\n          "],[8,[39,6],null,[["@id","@tags","@everyTag","@unlimitedTagCount","@onChange","@options"],["search-with-tags",[30,0,["searchedTerms","tags"]],true,true,[28,[37,4],[[30,0],"onChangeSearchTermForTags"],null],[28,[37,2],null,[["allowAny","headerAriaLabel"],[false,[28,[37,0],["search.advanced.with_tags.aria_label"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showAllTagsCheckbox"]],[[[1,"            "],[10,"section"],[14,0,"field"],[12],[1,"\\n              "],[10,"label"],[12],[1,"\\n                "],[8,[39,7],[[24,0,"all-tags"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForAllTags"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","all_tags"]]]],null],[1,"\\n                "],[1,[28,[35,0],["search.advanced.filters.all_tags"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"control-group advanced-search-topics-posts"],[12],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[10,"fieldset"],[14,0,"grouped-control"],[12],[1,"\\n          "],[10,"legend"],[14,0,"grouped-control-label"],[12],[1,[28,[35,0],["search.advanced.filters.label"],null]],[13],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1,"            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-title-only"],[24,0,"in-title"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInTitle"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","title"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-title-only"],[12],[1,"\\n                "],[1,[28,[35,0],["search.advanced.filters.title"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-liked"],[24,0,"in-likes"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInLikes"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","likes"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-liked"],[12],[1,[28,[35,0],["search.advanced.filters.likes"],null]],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-in-messages"],[24,0,"in-private"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInMessages"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","messages"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-in-messages"],[12],[1,[28,[35,0],["search.advanced.filters.private"],null]],[13],[1,"\\n            "],[13],[1,"\\n\\n            "],[10,0],[14,0,"grouped-control-field"],[12],[1,"\\n              "],[8,[39,7],[[24,1,"matching-seen"],[24,0,"in-seen"],[4,[38,8],["click",[28,[37,4],[[30,0],"onChangeSearchTermForSpecialInSeen"],[["value"],["target.checked"]]]],null]],[["@type","@checked"],["checkbox",[30,0,["searchedTerms","special","in","seen"]]]],null],[1,"\\n              "],[10,"label"],[14,"for","matching-seen"],[12],[1,[28,[35,0],["search.advanced.filters.seen"],null]],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[8,[39,9],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["in","value",[30,0,["inOptions"]],[30,0,["searchedTerms","in"]],[28,[37,4],[[30,0],"onChangeSearchTermForIn"],null],[28,[37,2],null,[["none","clearable"],["user.locale.any",true]]]]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-topic-status"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.statuses.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["search-status-options","value",[30,0,["statusOptions"]],[30,0,["searchedTerms","status"]],[28,[37,4],[[30,0],"onChangeSearchTermForStatus"],null],[28,[37,2],null,[["none","headerAriaLabel","clearable"],["user.locale.any",[28,[37,0],["search.advanced.statuses.label"],null],true]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-posted-by"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n        "],[1,[28,[35,0],["search.advanced.posted_by.label"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,10],null,[["@id","@value","@onChange","@options"],["search-posted-by",[30,0,["searchedTerms","username"]],[28,[37,4],[[30,0],"onChangeSearchTermForUsername"],null],[28,[37,2],null,[["headerAriaLabel","maximum","excludeCurrentUser"],[[28,[37,0],["search.advanced.posted_by.aria_label"],null],1,false]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group advanced-search-posted-date"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.post.time.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls inline-form full-width"],[12],[1,"\\n        "],[8,[39,9],null,[["@id","@valueProperty","@content","@value","@onChange","@options"],["postTime","value",[30,0,["postTimeOptions"]],[30,0,["searchedTerms","time","when"]],[28,[37,4],[[30,0],"onChangeWhenTime"],null],[28,[37,2],null,[["headerAriaLabel"],[[28,[37,0],["search.advanced.post.time.aria_label"],null]]]]]],null],[1,"\\n        "],[8,[39,11],null,[["@date","@onChange","@inputId"],[[30,0,["searchedTerms","time","days"]],[28,[37,4],[[30,0],"onChangeWhenDate"],null],"search-post-date"]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["advanced-search-options-below","div",[28,[37,2],null,[["searchedTerms","onChangeSearchedTermField"],[[30,0,["searchedTerms"]],[30,0,["onChangeSearchedTermField"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"details"],[14,0,"search-advanced-additional-options"],[12],[1,"\\n    "],[10,"summary"],[12],[1,"\\n      "],[1,[28,[35,0],["search.advanced.additional_options.label"],null]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1,"      "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.post.count.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-min-post-count"],[16,"placeholder",[28,[37,0],["search.advanced.post.min.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.post.min.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMinPostCount"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","min_posts"]]],null]]],null],[1,"\\n        "],[1,[28,[35,13],["arrows-alt-h"],null]],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-max-post-count"],[16,"placeholder",[28,[37,0],["search.advanced.post.max.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.post.max.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMaxPostCount"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","max_posts"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"count-group control-group"],[12],[1,"\\n"],[1,"      "],[10,1],[14,0,"control-label"],[12],[1,[28,[35,0],["search.advanced.views.label"],null]],[13],[1,"\\n      "],[10,0],[14,0,"controls"],[12],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-min-views"],[16,"placeholder",[28,[37,0],["search.advanced.min_views.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.min_views.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMinViews"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","min_views"]]],null]]],null],[1,"\\n        "],[1,[28,[35,13],["arrows-alt-h"],null]],[1,"\\n        "],[8,[39,7],[[24,0,"input-small"],[24,1,"search-max-views"],[16,"placeholder",[28,[37,0],["search.advanced.max_views.placeholder"],null]],[16,"aria-label",[28,[37,0],["search.advanced.max_views.aria_label"],null]],[4,[38,8],["input",[28,[37,4],[[30,0],"onChangeSearchTermMaxViews"],[["value"],["target.value"]]]],null]],[["@type","@value"],["number",[28,[37,12],[[30,0,["searchedTerms","max_views"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[10,0],[14,0,"second-search-button"],[12],[1,"\\n      "],[8,[39,14],[[24,0,"btn-primary search-cta"]],[["@action","@icon","@label","@ariaLabel","@disabled"],[[30,0,["search"]],"search","search.search_button","search.search_button",[30,0,["searchButtonDisabled"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["i18n","plugin-outlet","hash","search-advanced-category-chooser","action","if","tag-chooser","input","on","combo-box","user-chooser","date-input","readonly","d-icon","d-button"]]',moduleName:"discourse/components/search-advanced-options.hbs",isStrictMode:!1});var d;const p=/(([^" \t\n\x0B\f\r]+)?(("[^"]+")?))/g,h=/^(user:|@)/gi,m=/^(category:|#)/gi,g=/^(tags?:|#(?=[a-z0-9\-]+::tag))/gi,f=/^(in|with):/gi,b=/^status:/gi,_=/^min_posts:/gi,y=/^max_posts:/gi,w=/^min_views:/gi,v=/^max_views:/gi,k=/^(before|after):/gi,x=/(^(tags?:|#(?=[a-z0-9\-]+::tag))|::tag\s?$)/gi,T=/^in:likes$/gi,S=/^in:title$/gi,C=/^in:(personal|messages)$/gi,P=/^in:seen$/gi,O=/^(\#[a-zA-Z0-9\-:]+)/gi,E=/^(category:[0-9]+)/gi,D=/^(before|after)/gi,I={images:"with"};let j=[];function Z(){return[{name:c.default.t("search.advanced.filters.first"),value:"first"},{name:c.default.t("search.advanced.filters.pinned"),value:"pinned"},{name:c.default.t("search.advanced.filters.wiki"),value:"wiki"},{name:c.default.t("search.advanced.filters.images"),value:"images"}].concat(...j.map((e=>e.inOptionsForAll)).filter(Boolean))}function A(e){j.push(e)}const M=(0,i.setComponentTemplate)(u,s().extend((d={tagName:"details",attributeBindings:["expandFilters:open"],classNames:["advanced-filters"],category:null,init(){this._super(...arguments),this.setProperties({searchedTerms:{username:null,category:null,tags:null,in:null,special:{in:{title:!1,likes:!1,messages:!1,seen:!1},all_tags:!1},status:null,min_posts:null,max_posts:null,min_views:null,max_views:null,time:{when:"before",days:null}},inOptions:this.currentUser?[{name:c.default.t("search.advanced.filters.unseen"),value:"unseen"},{name:c.default.t("search.advanced.filters.posted"),value:"posted"},{name:c.default.t("search.advanced.filters.created"),value:"created"},{name:c.default.t("search.advanced.filters.watching"),value:"watching"},{name:c.default.t("search.advanced.filters.tracking"),value:"tracking"},{name:c.default.t("search.advanced.filters.bookmarks"),value:"bookmarks"}].concat(...j.map((e=>e.inOptionsForUsers)).filter(Boolean)).concat(Z()):Z(),statusOptions:[{name:c.default.t("search.advanced.statuses.open"),value:"open"},{name:c.default.t("search.advanced.statuses.closed"),value:"closed"},{name:c.default.t("search.advanced.statuses.public"),value:"public"},{name:c.default.t("search.advanced.statuses.archived"),value:"archived"},{name:c.default.t("search.advanced.statuses.noreplies"),value:"noreplies"},{name:c.default.t("search.advanced.statuses.single_user"),value:"single_user"}].concat(...j.map((e=>e.statusOptions)).filter(Boolean)),postTimeOptions:[{name:c.default.t("search.advanced.post.time.before"),value:"before"},{name:c.default.t("search.advanced.post.time.after"),value:"after"}].concat(...j.map((e=>e.postTimeOptions)).filter(Boolean)),showAllTagsCheckbox:!1})},didReceiveAttrs(){this._super(...arguments),this.setSearchedTermValue("searchedTerms.username",h),this.setSearchedTermValueForCategory(),this.setSearchedTermValueForTags();let e=this.inOptions.map((e=>e.value)).join("|");const t=new RegExp(`(in|with):(${e})`,"i");this.setSearchedTermValue("searchedTerms.in",f,t),this.setSearchedTermSpecialInValue("searchedTerms.special.in.likes",T),this.setSearchedTermSpecialInValue("searchedTerms.special.in.title",S),this.setSearchedTermSpecialInValue("searchedTerms.special.in.messages",C),this.setSearchedTermSpecialInValue("searchedTerms.special.in.seen",P);let n=this.statusOptions.map((e=>e.value)).join("|");const r=new RegExp(`status:(${n})`,"i");this.setSearchedTermValue("searchedTerms.status",b,r),this.setSearchedTermValueForPostTime(),this.setSearchedTermValue("searchedTerms.min_posts",_),this.setSearchedTermValue("searchedTerms.max_posts",y),this.setSearchedTermValue("searchedTerms.min_views",w),this.setSearchedTermValue("searchedTerms.max_views",v)},findSearchTerms(){const e=(0,a.escapeExpression)(this.searchTerm);if(!e)return[];const t=e.match(p);if(!t)return[];let n=[];return t.forEach((e=>{0!==e.length&&n.push(e)})),n},filterBlocks(e){const t=this.findSearchTerms();if(!t)return[];let n=[];return t.forEach((t=>{-1!==t.search(e)&&n.push(t)})),n},setSearchedTermValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n=n||t;const r=this.filterBlocks(n);let i=this.get(e);if(0!==r.length){const n=r[0].replace(t,"").toLowerCase();i!==n&&n.length&&this.set(e,n)}else i&&0!==i.length&&this.set(e,null)},setSearchedTermSpecialInValue(e,t){0!==this.filterBlocks(t).length?!0!==this.get(e)&&this.set(e,!0):!1!==this.get(e)&&this.set(e,!1)},setSearchedTermValueForCategory(){const e=this.filterBlocks(m);if(0!==e.length){const t=this.get("searchedTerms.category"),n=e[0].replace(m,"").split(":");let r;n.length>1?r=l.default.list().find((e=>e.get("parentCategory.slug")===n[0]&&e.slug===n[1])):(r=l.default.list().find((e=>!e.parentCategory&&e.slug===n[0])),r||(r=l.default.list().find((e=>e.slug===n[0])))),(!t&&r||t&&r&&t.id!==r.id)&&this.set("searchedTerms.category",r)}else this.set("searchedTerms.category",null)},setSearchedTermValueForTags(){if(!this.siteSettings.tagging_enabled)return;const e=this.filterBlocks(g),t=this.get("searchedTerms.tags");e.length&&this.set("searchedTerms.special.all_tags",e[0].includes("+"));const n=this.get("searchedTerms.special.all_tags");if(0!==e.length){const r=n?"+":",",i=Array.isArray(t)?t.join(r):t,s=e[0].replace(x,"");if(i!==s){const e=s?.split(r);this.set("searchedTerms.tags",e),this.set("showAllTagsCheckbox",!!(e.length>1))}}else t||this.set("searchedTerms.tags",null)},setSearchedTermValueForPostTime(){const e=this.filterBlocks(k);if(0!==e.length){const t=this.get("searchedTerms.time.when"),n=e[0].match(D)[0].toLowerCase(),r=this.get("searchedTerms.time.days"),i=e[0].replace(k,""),s={};t!==n&&(s["searchedTerms.time.when"]=n),r!==i&&(s["searchedTerms.time.days"]=i),this.setProperties(s)}else this.set("searchedTerms.time.when","before"),this.set("searchedTerms.time.days",null)},updateInRegex(e,t){const n=this.filterBlocks(e),r=this.get("searchedTerms.special.in."+t);let i=this.searchTerm||"";r?0===n.length&&(i+=` in:${t}`,this._updateSearchTerm(i)):0!==n.length&&(i=i.replace(n,""),this._updateSearchTerm(i))},onChangeSearchTermMinPostCount(e){this.set("searchedTerms.min_posts",e.length?e:null),this._updateSearchTermForMinPostCount()},onChangeSearchTermMaxPostCount(e){this.set("searchedTerms.max_posts",e.length?e:null),this._updateSearchTermForMaxPostCount()},onChangeSearchTermMinViews(e){this.set("searchedTerms.min_views",e.length?e:null),this._updateSearchTermForMinViews()},onChangeSearchTermMaxViews(e){this.set("searchedTerms.max_views",e.length?e:null),this._updateSearchTermForMaxViews()},onChangeSearchTermForIn(e){this.set("searchedTerms.in",e),this._updateSearchTermForIn()},onChangeSearchTermForStatus(e){this.set("searchedTerms.status",e),this._updateSearchTermForStatus()},onChangeWhenTime(e){e&&(this.set("searchedTerms.time.when",e),this._updateSearchTermForPostTime())},onChangeWhenDate(e){e&&(this.set("searchedTerms.time.days",e.format("YYYY-MM-DD")),this._updateSearchTermForPostTime())},onChangeSearchTermForCategory(e){if(e){const t=l.default.findById(e);this.onChangeCategory&&this.onChangeCategory(t),this.set("searchedTerms.category",t)}else this.onChangeCategory&&this.onChangeCategory(null),this.set("searchedTerms.category",null);this._updateSearchTermForCategory()},onChangeSearchTermForUsername(e){this.set("searchedTerms.username",e.length?e:null),this._updateSearchTermForUsername()},onChangeSearchTermForTags(e){this.set("searchedTerms.tags",e.length?e:null),this._updateSearchTermForTags()},onChangeSearchTermForAllTags(e){this.set("searchedTerms.special.all_tags",e),this._updateSearchTermForTags()},onChangeSearchTermForSpecialInLikes(e){this.set("searchedTerms.special.in.likes",e),this.updateInRegex(T,"likes")},onChangeSearchTermForSpecialInMessages(e){this.set("searchedTerms.special.in.messages",e),this.updateInRegex(C,"messages")},onChangeSearchTermForSpecialInSeen(e){this.set("searchedTerms.special.in.seen",e),this.updateInRegex(P,"seen")},onChangeSearchTermForSpecialInTitle(e){this.set("searchedTerms.special.in.title",e),this.updateInRegex(S,"title")},onChangeSearchedTermField(e,t,n){this.set(`searchedTerms.${e}`,n),this[t]()},_updateSearchTermForTags(){const e=this.filterBlocks(g),t=this.get("searchedTerms.tags");let n=this.searchTerm||"";const r=this.get("searchedTerms.special.all_tags");if(t&&0!==t.length){const i=r?"+":",",s=t.join(i);0!==e.length?n=n.replace(e[0],`tags:${s}`):n+=` tags:${s}`,t.length>1&&this.set("showAllTagsCheckbox",!0),this._updateSearchTerm(n)}else 0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTermForCategory(){const e=this.filterBlocks(m),t=this.get("searchedTerms.category");let n=this.searchTerm||"";const r=0!==e.length?e[0].match(O):null,i=0!==e.length?e[0].match(E):null;if(t){const e=t.id,s=t.slug;if(t.parentCategory){const o=t.parentCategory.slug;r?n=n.replace(r[0],`#${o}:${s}`):i?n=n.replace(i[0],`category:${e}`):n+=s?` #${o}:${s}`:` category:${e}`,this._updateSearchTerm(n)}else r?n=n.replace(r[0],`#${s}`):i?n=n.replace(i[0],`category:${e}`):n+=s?` #${s}`:` category:${e}`,this._updateSearchTerm(n)}else r&&(n=n.replace(r[0],"")),i&&(n=n.replace(i[0],"")),this._updateSearchTerm(n)},_updateSearchTermForUsername(){const e=this.filterBlocks(h),t=this.get("searchedTerms.username");let n=this.searchTerm||"";t&&0!==t.length?(0!==e.length?n=n.replace(e[0],`@${t}`):n+=` @${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTermForPostTime(){const e=this.filterBlocks(k),t=this.get("searchedTerms.time.days");let n=this.searchTerm||"";if(t){const r=this.get("searchedTerms.time.when");0!==e.length?n=n.replace(e[0],`${r}:${t}`):n+=` ${r}:${t}`,this._updateSearchTerm(n)}else 0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTermForIn(){let e=this.inOptions.map((e=>e.value)).join("|");const t=new RegExp(`(in|with):(${e})`,"i"),n=this.filterBlocks(t),r=this.get("searchedTerms.in");let i="in";r in I&&(i=I[r]);let s=this.searchTerm||"";r?(0!==n.length?s=s.replace(n[0],`${i}:${r}`):s+=` ${i}:${r}`,this._updateSearchTerm(s)):0!==n.length&&(s=s.replace(n,""),this._updateSearchTerm(s))},_updateSearchTermForStatus(){let e=this.statusOptions.map((e=>e.value)).join("|");const t=new RegExp(`status:(${e})`,"i"),n=this.filterBlocks(t),r=this.get("searchedTerms.status");let i=this.searchTerm||"";r?(0!==n.length?i=i.replace(n[0],`status:${r}`):i+=` status:${r}`,this._updateSearchTerm(i)):0!==n.length&&(i=i.replace(n[0],""),this._updateSearchTerm(i))},_updateSearchTermForMinPostCount(){const e=this.filterBlocks(_),t=this.get("searchedTerms.min_posts");let n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`min_posts:${t}`):n+=` min_posts:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTermForMaxPostCount(){const e=this.filterBlocks(y),t=this.get("searchedTerms.max_posts");let n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`max_posts:${t}`):n+=` max_posts:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTermForMinViews(){const e=this.filterBlocks(w),t=this.get("searchedTerms.min_views");let n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`min_views:${t}`):n+=` min_views:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTermForMaxViews(){const e=this.filterBlocks(v),t=this.get("searchedTerms.max_views");let n=this.searchTerm||"";t?(0!==e.length?n=n.replace(e[0],`max_views:${t}`):n+=` max_views:${t}`,this._updateSearchTerm(n)):0!==e.length&&(n=n.replace(e[0],""),this._updateSearchTerm(n))},_updateSearchTerm(e){this.onChangeSearchTerm(e.trim())}},(0,r.Z)(d,"onChangeSearchTermMinPostCount",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermMinPostCount"),d),(0,r.Z)(d,"onChangeSearchTermMaxPostCount",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermMaxPostCount"),d),(0,r.Z)(d,"onChangeSearchTermMinViews",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermMinViews"),d),(0,r.Z)(d,"onChangeSearchTermMaxViews",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermMaxViews"),d),(0,r.Z)(d,"onChangeSearchTermForIn",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForIn"),d),(0,r.Z)(d,"onChangeSearchTermForStatus",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForStatus"),d),(0,r.Z)(d,"onChangeWhenTime",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeWhenTime"),d),(0,r.Z)(d,"onChangeWhenDate",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeWhenDate"),d),(0,r.Z)(d,"onChangeSearchTermForCategory",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForCategory"),d),(0,r.Z)(d,"onChangeSearchTermForUsername",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForUsername"),d),(0,r.Z)(d,"onChangeSearchTermForTags",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForTags"),d),(0,r.Z)(d,"onChangeSearchTermForAllTags",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForAllTags"),d),(0,r.Z)(d,"onChangeSearchTermForSpecialInLikes",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForSpecialInLikes"),d),(0,r.Z)(d,"onChangeSearchTermForSpecialInMessages",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForSpecialInMessages"),d),(0,r.Z)(d,"onChangeSearchTermForSpecialInSeen",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForSpecialInSeen"),d),(0,r.Z)(d,"onChangeSearchTermForSpecialInTitle",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchTermForSpecialInTitle"),d),(0,r.Z)(d,"onChangeSearchedTermField",[o.action],Object.getOwnPropertyDescriptor(d,"onChangeSearchedTermField"),d),d)))},20756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"Uo0L7qKg",block:'[[[8,[39,0],null,[["@animationClass"],[[30,0,["animationClass"]]]],[["default"],[[[[1,"\\n  "],[8,[39,1],null,[["@onClose","@inlineResults","@autofocusInput"],[[30,1],true,true]],null],[1,"\\n"]],[]]]]]],["@closeSearchMenu"],false,["menu-panel","search-menu"]]',moduleName:"discourse/components/search-menu-panel.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"site",c,this)}get animationClass(){return this.site.mobileView||this.site.narrowDesktopView?"slide-in":"drop-down"}},c=(0,i.Z)(l.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,u.setComponentTemplate)(a,d)},77441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_TYPE_FILTER:()=>B,MODIFIER_REGEXP:()=>R,SEARCH_INPUT_ID:()=>U,default:()=>q,focusSearchInput:()=>$});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(51372),u=n(17579),d=n(10425),p=n(38864),h=n(13680),m=n(71631),g=n(64519),f=n(20229),b=n(47301),_=n(56111),y=n(47582),w=n(57555);const v=(0,n(8620).createTemplateFactory)({id:"ng7IO2Dz",block:'[[[11,0],[16,0,[30,0,["classNames"]]],[4,[38,0],[[30,0,["setupEventListeners"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"search-input"],[12],[1,"\\n"],[41,[30,0,["search","inTopicContext"]],[[[1,"      "],[8,[39,2],[[24,0,"btn-small search-context"]],[["@icon","@label","@title","@action"],["times","search.in_this_topic","search.in_this_topic_tooltip",[30,0,["clearTopicContext"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["inPMInboxContext"]],[[[1,"      "],[8,[39,2],[[24,0,"btn-small search-context"]],[["@icon","@label","@title","@action"],["times","search.in_messages","search.in_messages_tooltip",[30,0,["clearPMInboxContext"]]]],null],[1,"\\n    "]],[]],null]],[]]],[1,"\\n    "],[8,[39,3],null,[["@name","@outletArgs"],["search-menu-before-term-input",[28,[37,4],null,[["openSearchMenu"],[[30,0,["open"]]]]]]],null],[1,"\\n\\n    "],[8,[39,5],null,[["@searchTermChanged","@typeFilter","@updateTypeFilter","@triggerSearch","@fullSearch","@clearPMInboxContext","@clearTopicContext","@closeSearchMenu","@openSearchMenu","@autofocus"],[[30,0,["searchTermChanged"]],[30,0,["typeFilter"]],[30,0,["updateTypeFilter"]],[30,0,["triggerSearch"]],[30,0,["fullSearch"]],[30,0,["clearPMInboxContext"]],[30,0,["clearTopicContext"]],[30,0,["close"]],[30,0,["open"]],[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["loading"]],[[[1,"      "],[10,0],[14,0,"searching"],[12],[1,"\\n        "],[1,[34,6]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"searching"],[12],[1,"\\n        "],[8,[39,3],null,[["@name"],["search-menu-before-advanced-search"]],null],[1,"\\n"],[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1,"          "],[8,[39,7],null,[["@clearSearch"],[[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[39,8],null,[["@href"],[[30,0,["advancedSearchButtonHref"]]]],null],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n"],[41,[30,2],[[[1,"    "],[8,[39,9],null,[["@loading","@noResults","@results","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["loading"]],[30,0,["noResults"]],[30,0,["results"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["inPMInboxContext"]],[30,0,["triggerSearch"]],[30,0,["updateTypeFilter"]],[30,0,["close"]],[30,0,["searchTermChanged"]],[30,0,["clearSearch"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["displayMenuPanelResults"]],[[[1,"    "],[8,[39,10],null,null,[["default"],[[[[1,"\\n      "],[8,[39,9],null,[["@loading","@noResults","@results","@invalidTerm","@suggestionKeyword","@suggestionResults","@searchTopics","@inPMInboxContext","@triggerSearch","@updateTypeFilter","@closeSearchMenu","@searchTermChanged","@clearSearch"],[[30,0,["loading"]],[30,0,["noResults"]],[30,0,["results"]],[30,0,["invalidTerm"]],[30,0,["suggestionKeyword"]],[30,0,["suggestionResults"]],[30,0,["includesTopics"]],[30,0,["inPMInboxContext"]],[30,0,["triggerSearch"]],[30,0,["updateTypeFilter"]],[30,0,["close"]],[30,0,["searchTermChanged"]],[30,0,["clearSearch"]]]],null],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[]],null]],[]]],[13]],["@autofocusInput","@inlineResults"],false,["did-insert","if","d-button","plugin-outlet","hash","search-menu/search-term","loading-spinner","search-menu/clear-button","search-menu/advanced-button","search-menu/results","menu-panel"]]',moduleName:"discourse/components/search-menu.hbs",isStrictMode:!1});var k,x,T,S,C,P,O,E,D,I,j,Z,A,M,N=n(31691);const z=/(\#[a-zA-Z0-9\-:]*)$/gi,L=/(\@[a-zA-Z0-9\-\_]*)$/gi,F=/(in:|status:|order:|:)([a-zA-Z]*)$/gi,U="search-term",R=/.*(\#|\@|:).*$/gi,B="exclude_topics";function $(){document.getElementById(U).focus()}let q=(k=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"search",x,this),(0,r.Z)(this,"currentUser",T,this),(0,r.Z)(this,"siteSettings",S,this),(0,r.Z)(this,"appEvents",C,this),(0,r.Z)(this,"loading",P,this),(0,r.Z)(this,"results",O,this),(0,r.Z)(this,"noResults",E,this),(0,r.Z)(this,"inPMInboxContext",D,this),(0,r.Z)(this,"typeFilter",I,this),(0,r.Z)(this,"suggestionKeyword",j,this),(0,r.Z)(this,"suggestionResults",Z,this),(0,r.Z)(this,"invalidTerm",A,this),(0,r.Z)(this,"menuPanelOpen",M,this),(0,i.Z)(this,"_debouncer",null),(0,i.Z)(this,"_activeSearch",null)}setupEventListeners(){this.args.inlineResults||(document.addEventListener("mousedown",this.onDocumentPress),document.addEventListener("touchend",this.onDocumentPress))}willDestroy(){this.args.inlineResults||(document.removeEventListener("mousedown",this.onDocumentPress),document.removeEventListener("touchend",this.onDocumentPress)),super.willDestroy(...arguments)}onDocumentPress(e){this.menuPanelOpen&&(e.target.closest(".search-menu-container.menu-panel-results")||this.close())}get classNames(){const e=["search-menu-container"];return this.args.inlineResults||e.push("menu-panel-results"),this.loading&&e.push("loading"),e.join(" ")}get includesTopics(){return this.typeFilter!==B}get searchContext(){return!(!this.search.inTopicContext&&!this.inPMInboxContext)&&this.search.searchContext}close(){if(this.args?.onClose)return this.args.onClose();document.getElementById(U)?.blur(),this.menuPanelOpen=!1}open(){this.menuPanelOpen=!0}fullSearchUrl(e){let t="/search",n=new URLSearchParams;if(this.search.activeGlobalSearchTerm){let e=this.search.activeGlobalSearchTerm;"topic"===this.searchContext?.type?e+=` topic:${this.searchContext.id}`:"private_messages"===this.searchContext?.type&&(e+=" in:messages"),n.set("q",e)}return e?.expanded&&n.set("expanded","true"),""!==n.toString()&&(t=`${t}?${n}`),(0,y.default)(t)}get advancedSearchButtonHref(){return this.fullSearchUrl({expanded:!0})}get displayMenuPanelResults(){return!this.args.inlineResults&&this.menuPanelOpen}clearSearch(e){e.stopPropagation(),e.preventDefault(),this.search.activeGlobalSearchTerm="",$(),this.triggerSearch()}searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.typeFilter=t.searchTopics?null:B,t.setTopicContext&&(this.search.inTopicContext=!0),this.search.activeGlobalSearchTerm=e,this.triggerSearch()}fullSearch(){this.loading=!1;const e=this.fullSearchUrl();e&&f.default.routeTo(e)}updateTypeFilter(e){this.typeFilter=e}clearPMInboxContext(){this.inPMInboxContext=!1}clearTopicContext(){this.search.inTopicContext=!1}cancel(){this._activeSearch&&(this._activeSearch.abort(),this._activeSearch=null)}async perform(){this.cancel();const e=this.matchesSuggestions();if(e)if(this.noResults=!0,this.results={},this.loading=!1,this.suggestionResults=[],"category"===e.type){const t=e.categoriesMatch[0].replace("#",""),n=(0,m.search)(t,this.siteSettings);d.Promise.resolve(n).then((e=>{e!==h.CANCELLED_STATUS&&(this.suggestionResults=e,this.suggestionKeyword="#")}))}else if("username"===e.type){const t=e.usernamesMatch[0].replace("@",""),n={includeGroups:!0,limit:6};t.length>0?n.term=t:n.lastSeenUsers=!0,(0,b.default)(n).then((e=>{e?.users?.length>0?(this.suggestionResults=e.users,this.suggestionKeyword="@"):(this.noResults=!0,this.suggestionKeyword=!1)}))}else this.suggestionKeyword=e[0];else this.suggestionKeyword=!1,this.search.activeGlobalSearchTerm?(0,g.isValidSearchTerm)(this.search.activeGlobalSearchTerm,this.siteSettings)?(this.loading=!0,this.invalidTerm=!1,this._activeSearch=(0,g.searchForTerm)(this.search.activeGlobalSearchTerm,{typeFilter:this.typeFilter,fullSearchUrl:this.fullSearchUrl,searchContext:this.searchContext}),this._activeSearch.then((e=>{e&&(this.searchContext&&this.appEvents.trigger("post-stream:refresh",{force:!0}),this.noResults=0===e.resultTypes.length,this.results=e)})).catch(p.popupAjaxError).finally((()=>{this.loading=!1}))):(this.noResults=!0,this.results={},this.loading=!1,this.invalidTerm=!0):(this.noResults=!1,this.results={},this.loading=!1,this.invalidTerm=!1)}matchesSuggestions(){if(void 0===this.search.activeGlobalSearchTerm||this.includesTopics)return!1;const e=this.search.activeGlobalSearchTerm.trim(),t=e.match(z);if(t)return{type:"category",categoriesMatch:t};const n=e.match(L);if(n)return{type:"username",usernamesMatch:n};return e.match(F)||!1}triggerSearch(){this.noResults=!1,this.includesTopics?("topic"===this.search.contextType&&(this.search.highlightTerm=this.search.activeGlobalSearchTerm),this.loading=!0,(0,c.cancel)(this._debouncer),this.perform(),this.currentUser&&(0,g.updateRecentSearches)(this.currentUser,this.search.activeGlobalSearchTerm)):(this.loading=!1,this.search.inTopicContext||(this._debouncer=(0,_.default)(this,this.perform,400)))}},x=(0,s.Z)(k.prototype,"search",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,s.Z)(k.prototype,"currentUser",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,s.Z)(k.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,s.Z)(k.prototype,"appEvents",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,s.Z)(k.prototype,"loading",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O=(0,s.Z)(k.prototype,"results",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),E=(0,s.Z)(k.prototype,"noResults",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),D=(0,s.Z)(k.prototype,"inPMInboxContext",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"private_messages"===this.search.searchContext?.type}}),I=(0,s.Z)(k.prototype,"typeFilter",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return B}}),j=(0,s.Z)(k.prototype,"suggestionKeyword",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Z=(0,s.Z)(k.prototype,"suggestionResults",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),A=(0,s.Z)(k.prototype,"invalidTerm",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),M=(0,s.Z)(k.prototype,"menuPanelOpen",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(k.prototype,"setupEventListeners",[w.bind],Object.getOwnPropertyDescriptor(k.prototype,"setupEventListeners"),k.prototype),(0,s.Z)(k.prototype,"onDocumentPress",[w.bind],Object.getOwnPropertyDescriptor(k.prototype,"onDocumentPress"),k.prototype),(0,s.Z)(k.prototype,"close",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"close"),k.prototype),(0,s.Z)(k.prototype,"open",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"open"),k.prototype),(0,s.Z)(k.prototype,"fullSearchUrl",[w.bind],Object.getOwnPropertyDescriptor(k.prototype,"fullSearchUrl"),k.prototype),(0,s.Z)(k.prototype,"clearSearch",[w.bind],Object.getOwnPropertyDescriptor(k.prototype,"clearSearch"),k.prototype),(0,s.Z)(k.prototype,"searchTermChanged",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"searchTermChanged"),k.prototype),(0,s.Z)(k.prototype,"fullSearch",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"fullSearch"),k.prototype),(0,s.Z)(k.prototype,"updateTypeFilter",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"updateTypeFilter"),k.prototype),(0,s.Z)(k.prototype,"clearPMInboxContext",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"clearPMInboxContext"),k.prototype),(0,s.Z)(k.prototype,"clearTopicContext",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"clearTopicContext"),k.prototype),(0,s.Z)(k.prototype,"triggerSearch",[l.action],Object.getOwnPropertyDescriptor(k.prototype,"triggerSearch"),k.prototype),k);(0,N.setComponentTemplate)(v,q)},40153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"4a7HItBq",block:'[[[10,3],[14,0,"show-advanced-search"],[15,"title",[28,[37,0],["search.open_advanced"],null]],[15,6,[30,1]],[12],[1,"\\n  "],[1,[28,[35,1],["sliders-h"],null]],[1,"\\n"],[13]],["@href"],false,["i18n","d-icon"]]',moduleName:"discourse/components/search-menu/advanced-button.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},27390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(82006),i=n(62617),s=n(82099);const o=(0,n(8620).createTemplateFactory)({id:"eIJj0C+q",block:'[[[10,0],[14,0,"browser-search-tip"],[12],[1,"\\n  "],[10,1],[14,0,"tip-label"],[12],[1,"\\n    "],[1,[30,0,["translatedLabel"]]],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,0,"tip-description"],[12],[1,"\\n    "],[1,[28,[35,0],["search.browser_tip_description"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n"]]',moduleName:"discourse/components/search-menu/browser-search-tip.hbs",isStrictMode:!1});var a=n(31691);class l extends r.default{get translatedLabel(){return s.default.t("search.browser_tip",{modifier:(0,i.translateModKey)("Meta+")})}}(0,a.setComponentTemplate)(o,l)},66292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"BPWXsITk",block:'[[[11,3],[24,0,"clear-search"],[24,"aria-label","clear_input"],[16,"title",[28,[37,0],["search.clear_search"],null]],[24,6,""],[4,[38,1],["click",[30,1]],null],[12],[1,"\\n  "],[1,[28,[35,2],["times"],null]],[1,"\\n"],[13]],["@clearSearch"],false,["i18n","on","d-icon"]]',moduleName:"discourse/components/search-menu/clear-button.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},72948:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(16289);const c=(0,n(8620).createTemplateFactory)({id:"1TPuLWeI",block:'[[[11,1],[4,[38,0],[[30,0,["highlight"]]],null],[12],[1,"\\n  "],[1,[28,[35,1],[[30,1]],null]],[1,"\\n"],[13]],["@string"],false,["did-insert","html-safe"]]',moduleName:"discourse/components/search-menu/highlighted-search.hbs",isStrictMode:!1});var u,d,p=n(31691);let h=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",d,this)}highlight(e){(0,l.default)(e,this.search.activeGlobalSearchTerm)}},d=(0,i.Z)(u.prototype,"search",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"highlight",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"highlight"),u.prototype),u);(0,p.setComponentTemplate)(c,h)},53998:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(56763),u=n(10339),d=n(38139),p=n(26395),h=n(50207),m=n(18411);const g=(0,n(8620).createTemplateFactory)({id:"Jwmr3ec4",block:'[[[41,[28,[37,1],[[30,0,["search","inTopicContext"]],[28,[37,2],[[30,1]],null]],null],[[[1,"  "],[8,[39,3],null,null,null],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"results"],[12],[1,"\\n"],[41,[51,[30,2]],[[[1,"      "],[8,[39,5],null,[["@name","@outletArgs"],["search-menu-results-top",[28,[37,6],null,[["closeSearchMenu","searchTerm","inTopicContext","searchTopics"],[[30,3],[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","inTopicContext"]],[30,1]]]]]],null],[1,"\\n"],[41,[30,4],[[[1,"        "],[8,[39,7],null,[["@suggestionKeyword","@results","@closeSearchMenu","@searchTermChanged"],[[30,4],[30,5],[30,3],[30,6]]],null],[1,"\\n"]],[]],[[[41,[30,0,["termTooShort"]],[[[1,"        "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,8],["search.too_short"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["noTopicResults"]],[[[1,"        "],[10,0],[14,0,"no-results"],[12],[1,[28,[35,8],["search.no_results"],null]],[13],[1,"\\n"]],[]],[[[41,[30,0,["renderInitialOptions"]],[[[1,"        "],[8,[39,9],null,[["@closeSearchMenu","@searchTermChanged"],[[30,3],[30,6]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,2],[[30,1]],null],[28,[37,2],[[30,7]],null]],null],[[[1,"          "],[8,[39,9],null,[["@closeSearchMenu","@searchTermChanged"],[[30,3],[30,6]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,1],[[30,1],[30,0,["resultTypesWithComponent"]]],null],[[[1,"          "],[8,[39,10],null,[["@resultTypes","@topicResultsOnly","@closeSearchMenu"],[[30,0,["resultTypesWithComponent"]],true,[30,3]]],null],[1,"\\n          "],[8,[39,11],null,[["@updateTypeFilter","@triggerSearch","@resultTypes","@closeSearchMenu","@searchTermChanged"],[[30,8],[30,9],[30,0,["resultTypesWithComponent"]],[30,3],[30,6]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[28,[37,2],[[30,7]],null],[28,[37,2],[[30,1]],null],[30,0,["resultTypesWithComponent"]]],null],[[[1,"          "],[8,[39,10],null,[["@resultTypes","@closeSearchMenu","@searchTermChanged","@displayNameWithUser"],[[30,0,["resultTypesWithComponent"]],[30,3],[30,6],true]],null],[1,"\\n        "]],[]],null]],[]]],[1,"      "]],[]]]],[]]]],[]]]],[]]],[1,"      "],[8,[39,5],null,[["@name","@outletArgs"],["search-menu-results-bottom",[28,[37,6],null,[["inTopicContext","searchTermChanged","searchTopics","closeSearchMenu"],[[30,0,["search","inTopicContext"]],[30,6],[30,1],[30,3]]]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]]]],["@searchTopics","@loading","@closeSearchMenu","@suggestionKeyword","@suggestionResults","@searchTermChanged","@inPMInboxContext","@updateTypeFilter","@triggerSearch"],false,["if","and","not","search-menu/browser-search-tip","unless","plugin-outlet","hash","search-menu/results/assistant","i18n","search-menu/results/initial-options","search-menu/results/types","search-menu/results/more-link"]]',moduleName:"discourse/components/search-menu/results.hbs",isStrictMode:!1});var f,b,_,y=n(31691);const w={"search-result-category":c.default,"search-result-topic":h.default,"search-result-post":d.default,"search-result-user":m.default,"search-result-tag":p.default,"search-result-group":u.default};let v=(f=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",b,this),(0,r.Z)(this,"searchTopics",_,this)}get renderInitialOptions(){return!this.search.activeGlobalSearchTerm&&!this.args.inPMInboxContext}get noTopicResults(){return this.args.searchTopics&&this.args.noResults}get termTooShort(){return this.args.searchTopics&&this.args.invalidTerm}get resultTypesWithComponent(){let e=[];return this.args.results.resultTypes?.map((t=>{e.push({...t,component:w[t.componentName]})})),e}updateSearchTopics(e){this.searchTopics=e}},b=(0,i.Z)(f.prototype,"search",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(f.prototype,"searchTopics",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.searchTopics}}),(0,i.Z)(f.prototype,"updateSearchTopics",[a.action],Object.getOwnPropertyDescriptor(f.prototype,"updateSearchTopics"),f.prototype),f);(0,y.setComponentTemplate)(g,v)},81821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addItemSelectCallback:()=>y,default:()=>v,resetItemSelectCallbacks:()=>w});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(48163),l=n(17579),c=n(77441),u=n(47582),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"N7WtofzZ",block:'[[[11,"li"],[24,0,"search-menu-assistant-item"],[16,"data-usage",[30,1]],[4,[38,0],["keydown",[30,0,["onKeydown"]]],null],[4,[38,0],["click",[30,0,["onClick"]]],null],[12],[1,"\\n  "],[10,3],[14,0,"search-link"],[15,6,[30,0,["href"]]],[12],[1,"\\n    "],[10,1],[15,"aria-label",[28,[37,1],["search.title"],null]],[12],[1,"\\n      "],[1,[28,[35,2],[[28,[37,3],[[30,2],"search"],null]],null]],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["prefix"]],[[[1,"      "],[10,1],[14,0,"search-item-prefix"],[12],[1,"\\n        "],[1,[30,0,["prefix"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3],[[[1,"      "],[10,1],[14,0,"label-suffix"],[12],[1,[28,[35,1],["search.in"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1,"      "],[8,[39,5],null,[["@result"],[[30,4]]],null],[1,"\\n"],[41,[28,[37,6],[[30,5],[30,6]],null],[[[1,"        "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n          "],[1,[28,[35,2],["tag"],null]],[1,[30,5]],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],[[[41,[30,5],[[[41,[28,[37,6],[[30,6],[30,7,["length"]]],null],[[[1,"        "],[10,1],[14,0,"search-item-tag"],[12],[1,[30,0,["tagsSlug"]]],[13],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"search-item-tag"],[12],[1,"\\n          "],[8,[39,7],null,[["@result"],[[30,5]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]]]],[]],[[[41,[30,8],[[[1,"      "],[10,1],[14,0,"search-item-user"],[12],[1,"\\n        "],[8,[39,8],null,[["@result"],[[30,8]]],null],[1,"\\n      "],[13],[1,"\\n    "]],[]],null]],[]]]],[]]],[1,"\\n    "],[10,1],[14,0,"search-item-slug"],[12],[1,"\\n"],[41,[30,9],[[[1,"        "],[10,1],[14,0,"label-suffix"],[12],[1,[30,9]],[13],[1,"\\n"]],[]],null],[1,"      "],[1,[30,10]],[1,"\\n    "],[13],[1,"\\n"],[41,[30,11],[[[1,"      "],[10,1],[14,0,"extra-hint"],[12],[1,"\\n        "],[1,[28,[35,1],["search.enter_hint"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@usage","@icon","@withInLabel","@category","@tag","@isIntersection","@additionalTags","@user","@suffix","@label","@extraHint"],false,["on","i18n","d-icon","or","if","search-menu/results/type/category","and","search-menu/results/type/tag","search-menu/results/type/user"]]',moduleName:"discourse/components/search-menu/results/assistant-item.hbs",isStrictMode:!1});var h,m,g,f,b=n(31691);const _=[];function y(e){_.push(e)}function w(){_.length=0}let v=(h=(0,d.debounce)(100),m=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"search",g,this),(0,r.Z)(this,"appEvents",f,this),(0,i.Z)(this,"icon",this.args.icon||"search")}get href(){let e="#";return this.args.category?(e=this.args.category.url,this.args.tags&&this.args.isIntersection&&(e=(0,u.default)(`/tag/${this.args.tag}`))):this.args.tags&&this.args.isIntersection&&this.args.additionalTags?.length&&(e=(0,u.default)(`/tag/${this.args.tag}`)),e}get prefix(){let e="";return"+"!==this.args.suggestionKeyword?(e=this.search.activeGlobalSearchTerm?.split(this.args.suggestionKeyword)[0].trim()||"",e.length&&(e=`${e} `)):e=this.search.activeGlobalSearchTerm,e}get tagsSlug(){if(this.args.tag&&this.args.additionalTags)return`tags:${[this.args.tag,...this.args.additionalTags].join("+")}`}onKeydown(e){if("Tab"!==e.key){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;"Enter"===e.key&&this.itemSelected(),this.search.handleArrowUpOrDown(e),e.stopPropagation(),e.preventDefault()}}onClick(e){return this.itemSelected(),e.preventDefault(),!1}itemSelected(){let e="";e=this.args.slug?this.prefix.concat(this.args.slug):this.prefix.trim();const t="topic"===this.search.searchContext?.type,n=!t||this.search.activeGlobalSearchTerm;_.length&&!_.some((t=>t({updatedTerm:e,searchTermChanged:this.args.searchTermChanged,usage:this.args.usage})))||(this.args.searchTermChanged(e,{searchTopics:n,...t&&!this.args.searchAllTopics&&{setTopicContext:!0}}),(0,c.focusSearchInput)())}},g=(0,s.Z)(m.prototype,"search",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,s.Z)(m.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(m.prototype,"onKeydown",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"onKeydown"),m.prototype),(0,s.Z)(m.prototype,"onClick",[a.action],Object.getOwnPropertyDescriptor(m.prototype,"onClick"),m.prototype),(0,s.Z)(m.prototype,"itemSelected",[h],Object.getOwnPropertyDescriptor(m.prototype,"itemSelected"),m.prototype),m);(0,b.setComponentTemplate)(p,v)},78678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addSearchSuggestion:()=>b,default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"BWBdEXaT",block:'[[[10,"ul"],[14,0,"search-menu-assistant"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["suggestionType"]],"tagIntersection"],null],[[[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@tag","@additionalTags","@category","@slug","@withInLabel","@isIntersection","@searchAllTopics","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,2,["tagName"]],[30,2,["additionalTags"]],[30,2,["category"]],[30,3],[30,4],true,true,[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[2]],null]],[]],[[[41,[28,[37,1],[[30,0,["suggestionType"]],"categoryOrTag"],null],[[[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[41,[30,8,["model"]],[[[1,"        "],[8,[39,4],null,[["@category","@slug","@withInLabel","@searchAllTopics","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,8,["model"]],[28,[37,5],[[30,0,["fullSlugForCategoryMap"]],[30,8,["model","id"]]],null],[30,4],true,[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,4],null,[["@tag","@slug","@withInLabel","@searchAllTopics","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,8,["name"]],[28,[37,6],[[30,0,["prefix"]],"#",[30,8,["name"]]],null],[30,4],true,[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]]]],[8]],null]],[]],[[[41,[28,[37,1],[[30,0,["suggestionType"]],"user"],null],[[[41,[30,0,["userMatchesInTopic"]],[[[1,"      "],[8,[39,4],null,[["@extraHint","@user","@slug","@suffix","@searchAllTopics","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[true,[30,0,["user"]],[28,[37,6],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,7],["search.in_topics_posts"],null],true,[30,5],[30,6],[30,7]]],null],[1,"\\n\\n      "],[8,[39,4],null,[["@user","@slug","@suffix","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["user"]],[28,[37,6],[[30,0,["prefix"]],"@",[30,0,["user","username"]]],null],[28,[37,7],["search.in_this_topic"],null],[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[]],[[[42,[28,[37,3],[[28,[37,3],[[30,1]],null]],null],null,[[[1,"        "],[8,[39,4],null,[["@user","@slug","@searchAllTopics","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,9],[28,[37,6],[[30,0,["prefix"]],"@",[30,9,["username"]]],null],true,[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[9]],null]],[]]]],[]],[[[42,[28,[37,3],[[28,[37,3],[[30,0,["suggestionShortcuts"]]],null]],null],null,[[[1,"      "],[8,[39,4],null,[["@slug","@label","@searchAllTopics","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[28,[37,6],[[30,0,["prefix"]],[30,10]],null],[30,10],true,[30,5],[30,6],[30,7]]],null],[1,"\\n"]],[10]],null],[1,"  "]],[]]]],[]]]],[]]],[13]],["@results","result","@slug","@withInLabel","@closeSearchMenu","@searchTermChanged","@suggestionKeyword","result","result","item"],false,["if","eq","each","-track-array","search-menu/results/assistant-item","get","concat","i18n"]]',moduleName:"discourse/components/search-menu/results/assistant.hbs",isStrictMode:!1});var l,c,u,d,p,h=n(31691);const m=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],g={"+":"tagIntersection","#":"categoryOrTag","@":"user"};let f=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",c,this),(0,r.Z)(this,"currentUser",u,this),(0,r.Z)(this,"siteSettings",d,this),(0,r.Z)(this,"search",p,this),this.currentUser&&(b("in:likes"),b("in:bookmarks"),b("in:mine"),b("in:messages"),b("in:seen"),b("in:tracking"),b("in:unseen"),b("in:watching")),this.siteSettings.tagging_enabled&&(b("in:tagged"),b("in:untagged"))}get suggestionShortcuts(){const e=this.search.activeGlobalSearchTerm.split(" ").slice(-1);return m.filter((t=>t.includes(e))).slice(0,8)}get userMatchesInTopic(){return 1===this.args.results.length&&this.router.currentRouteName.startsWith("topic.")}get suggestionType(){switch(this.args.suggestionKeyword){case"+":case"#":case"@":return g[this.args.suggestionKeyword]}}get prefix(){let e="";return"+"!==this.args.suggestionKeyword?(e=this.args.slug?.split(this.args.suggestionKeyword)[0].trim()||"",e.length&&(e=`${e} `)):this.args.results.forEach((t=>{e=t.additionalTags?this.args.slug?.split(" ").slice(0,-1).join(" ").trim()||"":this.args.slug?.split("#")[0].trim()||"",e.length&&(e=`${e} `)})),e}get fullSlugForCategoryMap(){const e={};return this.args.results.forEach((t=>{if(t.model){const n=t.model.parentCategory?`#${t.model.parentCategory.slug}:${t.model.slug}`:`#${t.model.slug}`;e[t.model.id]=`${this.prefix}${n}`}})),e}get user(){return this.args.results[0]}},c=(0,i.Z)(l.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,i.Z)(l.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,i.Z)(l.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(l.prototype,"search",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);function b(e){m.includes(e)||m.push(e)}(0,h.setComponentTemplate)(a,f)},21836:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"zXg8FlsU",block:'[[[10,1],[14,0,"blurb"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,1,["created_at"]]],null]],[1,"\\n  "],[10,1],[14,0,"blurb__separator"],[12],[1," - "],[13],[1,"\\n"],[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1,"    "],[10,1],[12],[1,[28,[35,2],[[30,1,["blurb"]]],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,1],[14,0,"blurb__text"],[12],[1,"\\n      "],[8,[39,3],null,[["@string"],[[30,1,["blurb"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],["@result"],false,["format-age","if","html-safe","search-menu/highlighted-search"]]',moduleName:"discourse/components/search-menu/results/blurb.hbs",isStrictMode:!1});var l,c,u,d=n(31691);let p=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",c,this),(0,r.Z)(this,"site",u,this)}},c=(0,i.Z)(l.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,i.Z)(l.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,d.setComponentTemplate)(a,p)},68119:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(54001),s=n(82006),o=n(17579),a=n(77441),l=n(82099),c=n(78678),u=n(81821);const d=(0,n(8620).createTemplateFactory)({id:"5hMgDb2x",block:'[[[10,"ul"],[14,0,"search-menu-initial-options"],[12],[1,"\\n  "],[8,[39,0],null,[["@name","@outletArgs"],["search-menu-initial-options",[28,[37,1],null,[["termMatchesContextTypeKeyword","contextTypeComponent","slug","suggestionKeyword","results","withInLabel","suffix","label","closeSearchMenu","searchTermChanged"],[[30,0,["termMatchesContextTypeKeyword"]],[30,0,["contextTypeComponent"]],[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["termMatchesContextTypeKeyword"]],[[[1,"      "],[8,[39,3],null,[["@slug","@extraHint","@closeSearchMenu","@searchTermChanged","@suggestionKeyword"],[[30,0,["slug"]],true,[30,1],[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,0,["search","activeGlobalSearchTerm"]],[30,0,["search","searchContext"]]],null],[[[41,[30,0,["search","activeGlobalSearchTerm"]],[[[1,"          "],[8,[39,3],null,[["@suffix","@closeSearchMenu","@searchAllTopics","@extraHint","@searchTermChanged","@suggestionKeyword"],[[28,[37,5],["search.in_topics_posts"],null],[30,1],true,true,[30,2],[30,0,["contextTypeKeyword"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["search","searchContext"]],[[[1,"          "],[8,[30,0,["contextTypeComponent"]],null,[["@slug","@suggestionKeyword","@results","@withInLabel","@suffix","@label","@closeSearchMenu","@searchTermChanged"],[[30,0,["slug"]],[30,0,["contextTypeKeyword"]],[30,0,["initialResults"]],[30,0,["withInLabel"]],[30,0,["suffix"]],[30,0,["label"]],[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]],[[[1,"        "],[8,[39,6],null,[["@searchTermChanged"],[[30,2]]],null],[1,"\\n"],[41,[28,[37,7],[[30,0,["currentUser"]],[30,0,["siteSettings","log_search_queries"]]],null],[[[1,"          "],[8,[39,8],null,[["@closeSearchMenu","@searchTermChanged"],[[30,1],[30,2]]],null],[1,"\\n"]],[]],null]],[]]]],[]]],[1,"  "]],[]]]]],[1,"\\n"],[13]],["@closeSearchMenu","@searchTermChanged"],false,["plugin-outlet","hash","if","search-menu/results/assistant-item","or","i18n","search-menu/results/random-quick-tip","and","search-menu/results/recent-searches"]]',moduleName:"discourse/components/search-menu/results/initial-options.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);const b={topic:u.default,private_messages:u.default,category:c.default,tag:c.default,tagIntersection:c.default,user:u.default};let _=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",h,this),(0,r.Z)(this,"siteSettings",m,this),(0,r.Z)(this,"currentUser",g,this),(this.search.activeGlobalSearchTerm||this.search.searchContext)&&this.search.searchContext&&(this.contextTypeComponent=b[this.search.searchContext.type],this.setAttributesForSearchContextType(this.search.searchContext.type))}get termMatchesContextTypeKeyword(){return this.search.activeGlobalSearchTerm?.match(a.MODIFIER_REGEXP)}setAttributesForSearchContextType(e){switch(e){case"topic":this.topicContextType();break;case"private_messages":this.privateMessageContextType();break;case"category":this.categoryContextType();break;case"tag":this.tagContextType();break;case"tagIntersection":this.tagIntersectionContextType();break;case"user":this.userContextType()}}topicContextType(){this.suffix=l.default.t("search.in_this_topic")}privateMessageContextType(){this.slug="in:messages",this.label="in:messages"}categoryContextType(){const e=this.search.searchContext.category,t=e.parentCategory?`#${e.parentCategory.slug}:${e.slug}`:`#${e.slug}`;this.slug=t,this.contextTypeKeyword="#",this.initialResults=[{model:this.search.searchContext.category}],this.withInLabel=!0}tagContextType(){this.slug=`#${this.search.searchContext.name}`,this.contextTypeKeyword="#",this.initialResults=[{name:this.search.searchContext.name}],this.withInLabel=!0}tagIntersectionContextType(){const e=this.search.searchContext;let t;t=e.additionalTags?`tags:${[e.tagId,...e.additionalTags].join("+")}`:`#${e.tagId}`;let n={tagName:e.tagId,additionalTags:e.additionalTags};if(e.category){const r=e.category.parentCategory?`#${e.category.parentCategory.slug}:${e.category.slug}`:`#${e.category.slug}`;n.categoryName=r,n.category=e.category,t+=` ${r}`}this.slug=t,this.contextTypeKeyword="+",this.initialResults=[n],this.withInLabel=!0}userContextType(){this.slug=`@${this.search.searchContext.user.username}`,this.suffix=l.default.t("search.in_posts_by",{username:this.search.searchContext.user.username})}},h=(0,i.Z)(p.prototype,"search",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p);(0,f.setComponentTemplate)(d,_)},75458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(20229);const c=(0,n(8620).createTemplateFactory)({id:"dVX0LYZ1",block:'[[[41,[30,0,["topicResults"]],[[[1,"  "],[11,0],[24,0,"search-menu__show-more"],[4,[38,1],["keyup",[30,0,["onKeyup"]]],null],[12],[1,"\\n"],[41,[30,0,["moreUrl"]],[[[1,"      "],[11,3],[16,6,[30,0,["moreUrl"]]],[24,0,"filter search-link"],[4,[38,1],["click",[30,0,["transitionToMoreUrl"]]],null],[12],[1,"\\n        "],[1,[28,[35,2],["more"],null]],[1,"...\\n      "],[13],[1,"\\n"]],[]],[[[41,[30,0,["topicResults","more"]],[[[1,"      "],[11,3],[24,0,"filter search-link"],[4,[38,1],["click",[28,[37,3],[[30,0,["moreOfType"]],[30,0,["topicResults","type"]]],null]],null],[12],[1,"\\n        "],[1,[28,[35,2],["more"],null]],[1,"...\\n      "],[13],[1,"\\n    "]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","on","i18n","fn"]]',moduleName:"discourse/components/search-menu/results/more-link.hbs",isStrictMode:!1});var u,d,p=n(31691);let h=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",d,this)}get topicResults(){return this.args.resultTypes.filter((e=>"topic"===e.type))[0]}get moreUrl(){return this.topicResults.moreUrl&&this.topicResults.moreUrl()}transitionToMoreUrl(e){return e.preventDefault(),this.args.closeSearchMenu(),l.default.routeTo(this.moreUrl),!1}moreOfType(e){this.args.updateTypeFilter(e),this.args.triggerSearch(),this.args.closeSearchMenu()}onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}},d=(0,i.Z)(u.prototype,"search",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"transitionToMoreUrl",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"transitionToMoreUrl"),u.prototype),(0,i.Z)(u.prototype,"moreOfType",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"moreOfType"),u.prototype),(0,i.Z)(u.prototype,"onKeyup",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"onKeyup"),u.prototype),u);(0,p.setComponentTemplate)(c,h)},841:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addQuickSearchRandomTip:()=>f,default:()=>y,removeDefaultQuickSearchRandomTips:()=>_,resetQuickSearchRandomTips:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(77441),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"blQcw2WA",block:'[[[10,"li"],[14,0,"search-random-quick-tip"],[12],[1,"\\n  "],[11,1],[16,0,[28,[37,0],["tip-label",[52,[30,0,["randomTip","clickable"]],"tip-clickable"]],null]],[24,"role","button"],[4,[38,2],["click",[30,0,["tipSelected"]]],null],[12],[1,"\\n    "],[1,[30,0,["randomTip","label"]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,1],[14,0,"tip-description"],[12],[1,"\\n    "],[1,[30,0,["randomTip","description"]]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["concat-class","if","on"]]',moduleName:"discourse/components/search-menu/results/random-quick-tip.hbs",isStrictMode:!1});var d,p,h=n(31691);const m=[{label:"#",description:c.default.t("search.tips.category_tag"),clickable:!0},{label:"@",description:c.default.t("search.tips.author"),clickable:!0},{label:"in:",description:c.default.t("search.tips.in"),clickable:!0},{label:"status:",description:c.default.t("search.tips.status"),clickable:!0},{label:c.default.t("search.tips.full_search_key",{modifier:"Ctrl"}),description:c.default.t("search.tips.full_search")},{label:"@me",description:c.default.t("search.tips.me")}];let g=[];function f(e){g.includes(e)||g.push(e)}function b(){g=[].concat(m)}function _(){g=g.filter((e=>!m.includes(e)))}b();let y=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",p,this),this.randomTip=g[Math.floor(Math.random()*g.length)]}tipSelected(e){e.target.classList.contains("tip-clickable")&&(this.args.searchTermChanged(this.randomTip.label),(0,l.focusSearchInput)(),e.stopPropagation(),e.preventDefault())}},p=(0,i.Z)(d.prototype,"search",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"tipSelected",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"tipSelected"),d.prototype),d);(0,h.setComponentTemplate)(u,y)},43689:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(7223);const c=(0,n(8620).createTemplateFactory)({id:"LsBfvk3u",block:'[[[41,[30,0,["currentUser","recent_searches"]],[[[1,"  "],[10,0],[14,0,"search-menu-recent"],[12],[1,"\\n    "],[10,0],[14,0,"heading"],[12],[1,"\\n      "],[10,"h4"],[12],[1,[28,[35,1],["search.recent"],null]],[13],[1,"\\n      "],[8,[39,2],[[24,0,"clear-recent-searches"]],[["@title","@icon","@action"],["search.clear_recent","times",[30,0,["clearRecent"]]]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["currentUser","recent_searches"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@icon","@label","@slug","@closeSearchMenu","@searchTermChanged","@usage"],["history",[30,1],[30,1],[30,2],[30,3],"recent-search"]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["slug","@closeSearchMenu","@searchTermChanged"],false,["if","i18n","flat-button","each","-track-array","search-menu/results/assistant-item"]]',moduleName:"discourse/components/search-menu/results/recent-searches.hbs",isStrictMode:!1});var u,d,p,h=n(31691);let m=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",d,this),(0,r.Z)(this,"siteSettings",p,this),this.currentUser&&this.siteSettings.log_search_queries&&!this.currentUser.recent_searches?.length&&this.loadRecentSearches()}clearRecent(){return l.default.resetRecentSearches().then((e=>{e.success&&this.currentUser.recent_searches.clear()}))}onKeyup(e){if("Escape"===e.key)return this.args.closeSearchMenu(),e.preventDefault(),!1;this.search.handleArrowUpOrDown(e)}loadRecentSearches(){l.default.loadRecentSearches().then((e=>{e.success&&e.recent_searches?.length&&this.currentUser.set("recent_searches",e.recent_searches)}))}},d=(0,i.Z)(u.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(u.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"clearRecent",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"clearRecent"),u.prototype),(0,i.Z)(u.prototype,"onKeyup",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"onKeyup"),u.prototype),u);(0,h.setComponentTemplate)(c,m)},56763:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"aSaxH6Gy",block:'[[[1,[28,[35,0],[[30,1]],[["link","allowUncategorized"],[false,true]]]]],["@result"],false,["category-link"]]',moduleName:"discourse/components/search-menu/results/type/category.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},10339:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"iSqtTqod",block:'[[[10,0],[14,0,"group-result"],[12],[1,"\\n"],[41,[30,1,["flairUrl"]],[[[1,"    "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,1,["name"]],[30,1,["flairUrl"]],[30,1,["flairBgColor"]],[30,1,["flairColor"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,2],["users"],null]],[1,"\\n"]],[]]],[1,"  "],[10,0],[14,0,"group-names"],[12],[1,"\\n    "],[10,1],[14,0,"name"],[12],[1,[28,[35,3],[[30,1,["fullName"]],[30,1,["name"]]],null]],[13],[1,"\\n"],[41,[30,1,["fullName"]],[[[1,"      "],[10,0],[14,0,"slug"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],["@result"],false,["if","avatar-flair","d-icon","or"]]',moduleName:"discourse/components/search-menu/results/type/group.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},38139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"b0ku8qNe",block:'[[[1,[28,[35,0],["search.post_format",[30,1]],null]],[1,"\\n"],[8,[39,1],null,[["@result"],[[30,1]]],null]],["@result"],false,["i18n","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/post.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},26395:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Ygddpubc",block:'[[[1,[28,[35,0],["tag"],null]],[1,"\\n"],[1,[28,[35,1],[[28,[37,2],[[30,1,["id"]],[30,1]],null]],[["tagName"],["span"]]]]],["@result"],false,["d-icon","discourse-tag","or"]]',moduleName:"discourse/components/search-menu/results/type/tag.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},50207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"XBwFPDh6",block:'[[[10,1],[14,0,"topic"],[12],[1,"\\n  "],[10,1],[14,0,"first-line"],[12],[1,"\\n    "],[8,[39,0],null,[["@topic","@disableActions"],[[30,1,["topic"]],true]],null],[1,"\\n    "],[10,1],[14,0,"topic-title"],[15,"data-topic-id",[30,1,["topic","id"]]],[12],[1,"\\n"],[41,[28,[37,2],[[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[30,1,["topic_title_headline"]]],null],[[[1,"        "],[10,1],[12],[1,[28,[35,3],[[28,[37,4],[[30,1,["topic_title_headline"]]],null]],null]],[13],[1,"\\n"]],[]],[[[1,"        "],[8,[39,5],null,[["@string"],[[30,1,["topic","fancyTitle"]]]],null],[1,"\\n"]],[]]],[1,"      "],[8,[39,6],null,[["@name","@outletArgs"],["search-menu-results-topic-title-suffix",[28,[37,7],null,[["topic"],[[30,1,["topic"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,0,"second-line"],[12],[1,"\\n    "],[1,[28,[35,8],[[30,1,["topic","category"]]],[["link"],[false]]]],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"      "],[1,[28,[35,9],[[30,1,["topic"]]],[["tagName"],["span"]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,10],null,[["@result"],[[30,1]]],null]],["@result"],false,["topic-status","if","and","replace-emoji","html-safe","search-menu/highlighted-search","plugin-outlet","hash","category-link","discourse-tags","search-menu/results/blurb"]]',moduleName:"discourse/components/search-menu/results/type/topic.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",c,this)}},c=(0,i.Z)(l.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,u.setComponentTemplate)(a,d)},18411:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"T+jeEPjf",block:'[[[1,[28,[35,0],[[30,1]],[["imageSize","template","username"],["small",[30,1,["avatar_template"]],[30,1,["username"]]]]]],[1,"\\n"],[10,0],[14,0,"user-titles"],[12],[1,"\\n"],[41,[28,[37,2],[[30,2],[30,1,["name"]]],null],[[[1,"    "],[10,1],[14,0,"name"],[12],[1,[30,1,["name"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[10,1],[14,0,"username"],[12],[1,"\\n    "],[1,[28,[35,3],[[30,1,["username"]]],null]],[1,"\\n  "],[13],[1,"\\n"],[41,[30,1,["custom_data"]],[[[42,[28,[37,5],[[28,[37,5],[[30,1,["custom_data"]]],null]],null],null,[[[1,"      "],[10,1],[14,0,"custom-field"],[12],[1,[30,3,["name"]]],[1,": "],[1,[30,3,["value"]]],[13],[1,"\\n"]],[3]],null]],[]],null],[13]],["@result","@displayNameWithUser","row"],false,["avatar","if","and","format-username","each","-track-array"]]',moduleName:"discourse/components/search-menu/results/type/user.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},17319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(77559),c=n(20229);const u=(0,n(8620).createTemplateFactory)({id:"AS3dQ+4g",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["filteredResultTypes"]]],null]],null],null,[[[1,"  "],[10,0],[15,0,[30,1,["componentName"]]],[12],[1,"\\n    "],[8,[39,2],null,[["@name","@outletArgs"],["search-menu-results-type-top",[28,[37,3],null,[["resultType"],[[30,1]]]]]],null],[1,"\\n    "],[10,"ul"],[14,0,"list"],[15,"aria-label",[28,[37,4],[[28,[37,5],["search.results"],null]," ",[30,1,["type"]]],null]],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["results"]]],null]],null],null,[[[1,"        "],[11,"li"],[24,0,"item"],[4,[38,6],["keydown",[30,0,["onKeydown"]]],null],[12],[1,"\\n          "],[11,3],[16,6,[28,[37,7],[[30,2,["url"]],[30,2,["path"]]],null]],[24,0,"search-link"],[4,[38,6],["click",[30,0,["onClick"]]],null],[12],[1,"\\n            "],[8,[30,1,["component"]],null,[["@result","@displayNameWithUser"],[[30,2],[30,3]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["resultType","result","@displayNameWithUser"],false,["each","-track-array","plugin-outlet","hash","concat","i18n","on","or"]]',moduleName:"discourse/components/search-menu/results/types.hbs",isStrictMode:!1});var d,p,h=n(31691);let m=(d=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",p,this)}get filteredResultTypes(){return this.args.topicResultsOnly?this.args.resultTypes.filter((e=>"topic"===e.type)):this.args.resultTypes.filter((e=>"topic"!==e.type))}onClick(e){(0,l.wantsNewWindow)(e)||(e.preventDefault(),this.routeToSearchResult(e.currentTarget.href))}onKeydown(e){return"Escape"===e.key?(this.args.closeSearchMenu(),e.preventDefault(),!1):"Enter"===e.key?(e.preventDefault(),e.stopPropagation(),this.routeToSearchResult(e.target.href),!1):(this.search.handleResultInsertion(e),void this.search.handleArrowUpOrDown(e))}routeToSearchResult(e){c.default.routeTo(e),this.args.closeSearchMenu()}},p=(0,i.Z)(d.prototype,"search",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(d.prototype,"onClick",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"onClick"),d.prototype),(0,i.Z)(d.prototype,"onKeydown",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"onKeydown"),d.prototype),(0,i.Z)(d.prototype,"routeToSearchResult",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"routeToSearchResult"),d.prototype),d);(0,h.setComponentTemplate)(u,m)},34110:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addOnKeyUpCallback:()=>y,default:()=>v,resetOnKeyUpCallbacks:()=>w});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(77441),u=n(62617);const d=(0,n(8620).createTemplateFactory)({id:"59iyetn1",block:'[[[11,"input"],[16,1,[30,0,["inputId"]]],[24,"autocomplete","off"],[16,2,[30,0,["search","activeGlobalSearchTerm"]]],[16,"placeholder",[28,[37,0],["search.title"],null]],[16,"aria-label",[28,[37,0],["search.title"],null]],[24,4,"text"],[4,[38,1],["keyup",[30,0,["onKeyup"]]],null],[4,[38,1],["keydown",[30,0,["onKeydown"]]],null],[4,[38,1],["input",[30,0,["updateSearchTerm"]]],null],[4,[38,1],["focus",[30,1]],null],[4,[38,2],[[30,0,["focus"]]],null],[12],[13]],["@openSearchMenu"],false,["i18n","on","did-insert"]]',moduleName:"discourse/components/search-menu/search-term.hbs",isStrictMode:!1});var p,h,m,g,f,b=n(31691);const _=[];function y(e){_.push(e)}function w(){_.clear()}let v=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"search",h,this),(0,r.Z)(this,"appEvents",m,this),(0,r.Z)(this,"lastEnterTimestamp",g,this),(0,r.Z)(this,"searchCleared",f,this)}get inputId(){return c.SEARCH_INPUT_ID}updateSearchTerm(e){this.parseAndUpdateSearchTerm(this.search.activeGlobalSearchTerm,e.target.value),this.searchCleared=!this.search.activeGlobalSearchTerm}focus(e){this.args.autofocus&&(e.focus(),e.select())}onKeydown(e){"Escape"===e.key&&(this.args.closeSearchMenu(),e.preventDefault(),e.stopPropagation())}onKeyup(e){if(!_.length||_.some((t=>t(this,e)))){if(this.args.openSearchMenu(),this.search.handleArrowUpOrDown(e),"Enter"===e.key){const t=this.lastEnterTimestamp&&Date.now()-this.lastEnterTimestamp<15e3;e.ctrlKey||e.metaKey||(0,u.isiPad)()&&e.altKey||this.args.typeFilter!==c.DEFAULT_TYPE_FILTER&&t?(this.args.fullSearch(),this.args.closeSearchMenu()):(this.args.updateTypeFilter(null),this.args.triggerSearch()),this.lastEnterTimestamp=Date.now()}"Backspace"===e.key&&(e.target.value||(this.searchCleared&&(this.args.clearTopicContext(),this.args.clearPMInboxContext(),this.focus(e.target)),this.searchCleared=!0)),e.preventDefault()}}parseAndUpdateSearchTerm(e,t){const n=t.replace(/[\u200B-\u200D\uFEFF]/,"");n!==e&&this.args.searchTermChanged(n)}},h=(0,i.Z)(p.prototype,"search",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"appEvents",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"lastEnterTimestamp",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),f=(0,i.Z)(p.prototype,"searchCleared",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!this.search.activeGlobalSearchTerm}}),(0,i.Z)(p.prototype,"updateSearchTerm",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"updateSearchTerm"),p.prototype),(0,i.Z)(p.prototype,"focus",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"focus"),p.prototype),(0,i.Z)(p.prototype,"onKeydown",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"onKeydown"),p.prototype),(0,i.Z)(p.prototype,"onKeyup",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"onKeyup"),p.prototype),p);(0,b.setComponentTemplate)(d,v)},37964:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Q31gFmjo",block:'[[[10,0],[14,0,"fps-result-entries"],[14,"role","list"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["posts"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@post","@bulkSelectEnabled","@selected","@highlightQuery","@searchLogId"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["selected"]],[30,0,["highlightQuery"]],[30,0,["searchLogId"]]]],null],[1,"\\n"]],[1]],null],[13]],["post"],false,["each","-track-array","search-result-entry"]]',moduleName:"discourse/components/search-result-entries.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:""}))},50010:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(64519),l=n(62617);const c=(0,n(8620).createTemplateFactory)({id:"yBs4FTFV",block:'[[[10,0],[14,0,"author"],[12],[1,"\\n  "],[10,3],[15,6,[30,0,["post","userPath"]]],[15,"data-user-card",[30,0,["post","username"]]],[12],[1,"\\n    "],[1,[28,[35,0],[[30,0,["post"]]],[["imageSize"],["large"]]]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"fps-topic"],[12],[1,"\\n  "],[10,0],[14,0,"topic"],[12],[1,"\\n"],[41,[30,0,["bulkSelectEnabled"]],[[[1,"      "],[8,[39,2],[[24,0,"bulk-select"]],[["@selectedList","@selectedId"],[[30,0,["selected"]],[30,0,["post","topic"]]]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[11,3],[16,6,[30,0,["post","url"]]],[16,0,[29,["search-link",[52,[30,0,["post","topic","visited"]]," visited"]]]],[24,"role","heading"],[24,"aria-level","2"],[4,[38,3],["click",[28,[37,4],[[30,0,["logClick"]],[30,0,["post","topic_id"]]],null]],null],[12],[1,"\\n      "],[1,[28,[35,5],["topic-status"],[["topic","showPrivateMessageIcon"],[[30,0,["post","topic"]],true]]]],[1,"\\n      "],[10,1],[14,0,"topic-title"],[12],[1,"\\n"],[41,[30,0,["post","useTopicTitleHeadline"]],[[[1,"          "],[1,[28,[35,6],[[30,0,["post","topicTitleHeadline"]]],null]],[1,"\\n"]],[]],[[[1,"          "],[8,[39,7],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n            "],[1,[28,[35,6],[[30,0,["post","topic","fancyTitle"]]],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n      "],[8,[39,8],null,[["@name","@outletArgs"],["search-results-topic-title-suffix",[28,[37,9],null,[["topic"],[[30,0,["post","topic"]]]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"search-category"],[12],[1,"\\n"],[41,[30,0,["post","topic","category","parentCategory"]],[[[1,"        "],[1,[28,[35,10],[[30,0,["post","topic","category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[1,[28,[35,10],[[30,0,["post","topic","category"]]],[["hideParent"],[true]]]],[1,"\\n"],[41,[30,0,["post","topic"]],[[[1,"        "],[1,[28,[35,11],[[30,0,["post","topic"]]],null]],[1,"\\n"]],[]],null],[1,"      "],[10,1],[12],[1,"\\n        "],[8,[39,8],null,[["@name","@connectorTagName","@outletArgs"],["full-page-search-category","div",[28,[37,9],null,[["post"],[[30,0,["post"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"blurb container"],[12],[1,"\\n    "],[10,1],[14,0,"date"],[12],[1,"\\n      "],[1,[28,[35,12],[[30,0,["post","created_at"]]],[["format"],["tiny"]]]],[1,"\\n"],[41,[30,0,["post","blurb"]],[[[1,"        "],[10,1],[14,0,"separator"],[12],[1,"-"],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["post","blurb"]],[[[41,[30,0,["siteSettings","use_pg_headlines_for_excerpt"]],[[[1,"        "],[1,[28,[35,6],[[30,0,["post","blurb"]]],null]],[1,"\\n"]],[]],[[[1,"        "],[8,[39,7],null,[["@highlight"],[[30,0,["highlightQuery"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[35,6],[[30,0,["post","blurb"]]],null]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]]]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["showLikeCount"]],[[[41,[30,0,["post","like_count"]],[[[1,"      "],[10,1],[14,0,"like-count"],[12],[1,"\\n        "],[10,1],[14,0,"value"],[12],[1,[30,0,["post","like_count"]]],[13],[1,"\\n        "],[1,[28,[35,13],["heart"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null]],[]],null],[13],[1,"\\n\\n"],[8,[39,8],null,[["@name"],["after-search-result-entry"]],null]],[],false,["avatar","if","track-selected","on","fn","raw","html-safe","highlight-search","plugin-outlet","hash","category-link","discourse-tags","format-date","d-icon"]]',moduleName:"discourse/components/search-result-entry.hbs",isStrictMode:!1});var u;const d=(0,i.setComponentTemplate)(c,s().extend((u={tagName:"div",classNames:["fps-result"],classNameBindings:["bulkSelectEnabled"],attributeBindings:["role"],role:"listitem",logClick(e,t){if(t&&(0,l.modKeysPressed)(t).length>0)return!1;this.searchLogId&&e&&(0,a.logSearchLinkClick)({searchLogId:this.searchLogId,searchResultId:e,searchResultType:"topic"})}},(0,r.Z)(u,"logClick",[o.action],Object.getOwnPropertyDescriptor(u,"logClick"),u),u)))},26416:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(54001),a=n(71466),l=n.n(a),c=n(2825),u=n(64519),d=n(57555),p=n(82099);const h=c.default.extend((r=(0,d.default)("searchService.searchContextEnabled"),i=(0,d.on)("didInsertElement"),s={autocomplete:"off",placeholder:e=>e?"":p.default.t("search.full_page_title"),becomeFocused(){const e=l()(this.element);(0,u.applySearchAutocomplete)(e,this.siteSettings),this.hasAutofocus&&(l()(window).scrollTop(0),e.focus())}},(0,o.Z)(s,"placeholder",[r],Object.getOwnPropertyDescriptor(s,"placeholder"),s),(0,o.Z)(s,"becomeFocused",[i],Object.getOwnPropertyDescriptor(s,"becomeFocused"),s),s))},14695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(7223),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"Dk0RIaVF",block:'[[[10,0],[14,1,"second-factor"],[12],[1,"\\n  "],[10,"h3"],[12],[1,[30,0,["secondFactorTitle"]]],[13],[1,"\\n"],[41,[30,0,["optionalText"]],[[[1,"    "],[10,2],[12],[1,[28,[35,1],[[30,0,["optionalText"]]],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[10,2],[12],[1,[30,0,["secondFactorDescription"]]],[13],[1,"\\n  "],[18,1,null],[1,"\\n"],[41,[30,0,["showToggleMethodLink"]],[[[1,"    "],[10,2],[12],[1,"\\n      "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[38,3],["click",[30,0,["toggleSecondFactorMethod"]]],null],[12],[1,[28,[35,4],[[30,0,["linkText"]]],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["&default"],false,["if","html-safe","yield","on","i18n"]]',moduleName:"discourse/components/second-factor-form.hbs",isStrictMode:!1});var d,p,h,m,g;const f=(0,i.setComponentTemplate)(u,s().extend((d=(0,l.default)("secondFactorMethod"),p=(0,l.default)("secondFactorMethod"),h=(0,l.default)("secondFactorMethod","isLogin"),m=(0,l.default)("backupEnabled","secondFactorMethod"),g={secondFactorTitle(e){switch(e){case a.SECOND_FACTOR_METHODS.TOTP:case a.SECOND_FACTOR_METHODS.SECURITY_KEY:return c.default.t("login.second_factor_title");case a.SECOND_FACTOR_METHODS.BACKUP_CODE:return c.default.t("login.second_factor_backup_title")}},secondFactorDescription(e){switch(e){case a.SECOND_FACTOR_METHODS.TOTP:return c.default.t("login.second_factor_description");case a.SECOND_FACTOR_METHODS.SECURITY_KEY:return c.default.t("login.security_key_description");case a.SECOND_FACTOR_METHODS.BACKUP_CODE:return c.default.t("login.second_factor_backup_description")}},linkText:(e,t)=>t?e===a.SECOND_FACTOR_METHODS.TOTP?"login.second_factor_backup":"login.second_factor":e===a.SECOND_FACTOR_METHODS.TOTP?"user.second_factor_backup.use":"user.second_factor.use",showToggleMethodLink:(e,t)=>e&&t!==a.SECOND_FACTOR_METHODS.SECURITY_KEY,toggleSecondFactorMethod(e){e?.preventDefault();const t=this.secondFactorMethod;this.set("secondFactorToken",""),t===a.SECOND_FACTOR_METHODS.TOTP?this.set("secondFactorMethod",a.SECOND_FACTOR_METHODS.BACKUP_CODE):this.set("secondFactorMethod",a.SECOND_FACTOR_METHODS.TOTP)}},(0,r.Z)(g,"secondFactorTitle",[d],Object.getOwnPropertyDescriptor(g,"secondFactorTitle"),g),(0,r.Z)(g,"secondFactorDescription",[p],Object.getOwnPropertyDescriptor(g,"secondFactorDescription"),g),(0,r.Z)(g,"linkText",[h],Object.getOwnPropertyDescriptor(g,"linkText"),g),(0,r.Z)(g,"showToggleMethodLink",[m],Object.getOwnPropertyDescriptor(g,"showToggleMethodLink"),g),(0,r.Z)(g,"toggleSecondFactorMethod",[o.action],Object.getOwnPropertyDescriptor(g,"toggleSecondFactorMethod"),g),g)))},34436:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(7223),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"is8XjYR0",block:'[[[8,[39,0],[[16,"pattern",[30,0,["pattern"]]],[16,"maxlength",[30,0,["maxlength"]]],[24,0,"second-factor-token-input"],[16,1,[30,0,["inputId"]]],[24,"autocapitalize","off"],[24,"autocorrect","off"],[24,"autofocus","autofocus"],[17,1]],[["@value","@type","@input","@placeholder","@autocomplete"],[[30,0,["value"]],[30,0,["type"]],[28,[37,1],[[30,0],"onInput"],null],[30,0,["placeholder"]],"one-time-code"]],null]],["&attrs"],false,["text-field","action"]]',moduleName:"discourse/components/second-factor-input.hbs",isStrictMode:!1});var u,d,p,h;const m=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("secondFactorMethod"),d=(0,l.default)("secondFactorMethod"),p=(0,l.default)("secondFactorMethod"),h={type:e=>e===a.SECOND_FACTOR_METHODS.TOTP?"tel":e===a.SECOND_FACTOR_METHODS.BACKUP_CODE?"text":void 0,pattern:e=>e===a.SECOND_FACTOR_METHODS.TOTP?"[0-9]{6}":e===a.SECOND_FACTOR_METHODS.BACKUP_CODE?"[a-z0-9]{16}":void 0,maxlength:e=>e===a.SECOND_FACTOR_METHODS.TOTP?"6":e===a.SECOND_FACTOR_METHODS.BACKUP_CODE?"32":void 0,onInput(){this.onTokenInput&&this.onTokenInput(...arguments)}},(0,r.Z)(h,"type",[u],Object.getOwnPropertyDescriptor(h,"type"),h),(0,r.Z)(h,"pattern",[d],Object.getOwnPropertyDescriptor(h,"pattern"),h),(0,r.Z)(h,"maxlength",[p],Object.getOwnPropertyDescriptor(h,"maxlength"),h),(0,r.Z)(h,"onInput",[o.action],Object.getOwnPropertyDescriptor(h,"onInput"),h),h)))},16645:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({classNames:["security-key-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,r.computed)((function(){const e=[];return e.push({id:"edit",icon:"pencil-alt",name:i.default.t("user.second_factor.edit")}),e.push({id:"disable",icon:"trash-alt",name:i.default.t("user.second_factor.disable")}),e})),actions:{onChange(e){switch(e){case"edit":this.editSecurityKey(this.securityKey);break;case"disable":this.disableSingleSecondFactor(this.securityKey)}}}})},75981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(7223);const l=(0,n(8620).createTemplateFactory)({id:"Mni7wD28",block:'[[[10,0],[14,1,"security-key"],[12],[1,"\\n  "],[8,[39,0],[[24,1,"security-key-authenticate-button"],[24,0,"btn-large btn-primary"]],[["@action","@icon","@label"],[[30,0,["action"]],"key","login.security_key_authenticate"]],null],[1,"\\n  "],[10,2],[12],[1,"\\n"],[41,[30,0,["otherMethodAllowed"]],[[[1,"      "],[11,3],[24,6,""],[24,0,"toggle-second-factor-method"],[4,[38,2],["click",[30,0,["useAnotherMethod"]]],null],[12],[1,[28,[35,3],["login.security_key_alternative"],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"],[13]],[],false,["d-button","if","on","i18n"]]',moduleName:"discourse/components/security-key-form.hbs",isStrictMode:!1});var c;const u=(0,i.setComponentTemplate)(l,s().extend((c={useAnotherMethod(e){e?.preventDefault(),this.set("showSecurityKey",!1),this.set("showSecondFactor",!0),this.set("secondFactorMethod",a.SECOND_FACTOR_METHODS.TOTP)}},(0,r.Z)(c,"useAnotherMethod",[o.action],Object.getOwnPropertyDescriptor(c,"useAnotherMethod"),c),c)))},25870:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"TO9+sfqR",block:'[[[10,2],[12],[1,"\\n  "],[8,[39,0],null,[["@key","@count"],["topic.multi_select.description",[30,0,["selectedPostsCount"]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["canSelectAll"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[11,3],[24,0,"select-all"],[24,6,""],[4,[38,2],["click",[30,0,["selectAll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["topic.multi_select.select_all"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeselectAll"]],[[[1,"  "],[10,2],[12],[1,"\\n    "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["deselectAll"]]],null],[12],[1,"\\n      "],[1,[28,[35,3],["topic.multi_select.deselect_all"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canDeleteSelected"]],[[[1,"  "],[8,[39,4],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[30,0,["deleteSelected"]],"far-trash-alt","topic.multi_select.delete"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergeTopic"]],[[[1,"  "],[8,[39,4],[[24,0,"btn-primary move-to-topic"]],[["@action","@icon","@label"],[[28,[37,5],["moveToTopic"],null],"sign-out-alt","topic.move_to.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canChangeOwner"]],[[[1,"  "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,5],["changeOwner"],null],"user","topic.change_owner.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canMergePosts"]],[[[1,"  "],[8,[39,4],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[30,0,["mergePosts"]],"arrows-alt-v","topic.merge_posts.action"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[14,0,"cancel"],[12],[1,"\\n  "],[11,3],[24,6,""],[4,[38,2],["click",[30,0,["toggleMultiSelect"]]],null],[12],[1,"\\n    "],[1,[28,[35,3],["topic.multi_select.cancel"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["count-i18n","if","on","i18n","d-button","route-action"]]',moduleName:"discourse/components/selected-posts.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},32410:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(33217),l=n(25477),c=n(62617),u=n(12933),d=n(57555),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"MyGqE9rr",block:'[[[10,0],[14,0,"header"],[12],[1,"\\n  "],[10,"h3"],[14,0,"title"],[12],[1,[28,[35,0],[[30,0,["shareTitle"]]],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"body"],[12],[1,"\\n  "],[8,[39,1],[[24,0,"topic-share-url"]],[["@value","@aria-label"],[[30,0,["shareUrl"]],[28,[37,2],["share.url"],null]]],null],[1,"\\n\\n  "],[10,0],[14,0,"sources"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["sources"]]],null]],null],null,[[[1,"      "],[8,[39,5],null,[["@source","@title","@action"],[[30,1],[30,0,["topic","title"]],[28,[37,6],[[30,0],"share"],null]]],null],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"],[13]],["source"],false,["html-safe","d-textarea","i18n","each","-track-array","share-source","action"]]',moduleName:"discourse/components/share-panel.hbs",isStrictMode:!1});var m,g,f,b;const _=(0,i.setComponentTemplate)(h,s().extend((m=(0,d.default)("topic.{isPrivateMessage,invisible,category}"),g=(0,d.default)("type","topic.title"),f=(0,d.default)("panel.model.shareUrl","topic.shareUrl"),b={tagName:null,type:(0,o.alias)("panel.model.type"),topic:(0,o.alias)("panel.model.topic"),privateCategory:(0,o.alias)("panel.model.topic.category.read_restricted"),sources(e){const t=this.siteSettings.login_required||e&&e.isPrivateMessage||e&&e.invisible||this.privateCategory;return l.default.activeSources(this.siteSettings.share_links,t)},shareTitle:(e,t)=>(t=(0,c.escapeExpression)(t),p.default.t("share.topic_html",{topicTitle:t})),shareUrl(e,t){if(t=e||t,!(0,a.isEmpty)(t)){if(t.startsWith("/")){const e=window.location;t=`${e.protocol}//${e.host}${t}`}return encodeURI(t)}},didInsertElement(){this._super(...arguments),(0,u.default)((()=>{if(this.element){const e=this.element.querySelector(".topic-share-url");e.style.height=e.scrollHeight+"px",e.focus(),e.setSelectionRange(0,this.shareUrl.length)}}),200)},actions:{share(e){l.default.shareSource(e,{url:this.shareUrl,title:this.get("topic.title")})}}},(0,r.Z)(b,"sources",[m],Object.getOwnPropertyDescriptor(b,"sources"),b),(0,r.Z)(b,"shareTitle",[g],Object.getOwnPropertyDescriptor(b,"shareTitle"),b),(0,r.Z)(b,"shareUrl",[f],Object.getOwnPropertyDescriptor(b,"shareUrl"),b),b)))},29698:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"mWjeWu04",block:'[[[8,[39,0],[[16,0,[28,[37,1],["btn-default share-",[30,0,["source","id"]]],null]]],[["@action","@translatedTitle","@icon"],[[28,[37,2],[[28,[37,3],[[30,0],"share"],null],[30,0,["source"]]],null],[30,0,["source","title"]],[28,[37,4],[[30,0,["source","icon"]],[30,0,["source","htmlIcon"]]],null]]],null]],[],false,["d-button","concat","fn","action","or"]]',moduleName:"discourse/components/share-source.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"",actions:{share(e){this.action(e)}}}))},74103:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(17579),a=n(57555),l=n(82099);const c=(0,n(8620).createTemplateFactory)({id:"dqlGT5Ik",block:'[[[10,0],[14,0,"shared-draft-controls"],[12],[1,"\\n"],[41,[30,0,["publishing"]],[[[1,"    "],[1,[28,[35,1],["shared_drafts.publishing"],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[28,[35,1],["shared_drafts.notice"],null]],[1,"\\n\\n    "],[10,0],[14,0,"publish-field"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["shared_drafts.destination_category"],null]],[13],[1,"\\n      "],[8,[39,2],null,[["@value","@onChange"],[[30,0,["topic","destination_category_id"]],[28,[37,3],[[30,0],"updateDestinationCategory"],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"publish-field"],[12],[1,"\\n"],[41,[30,0,["validCategory"]],[[[1,"        "],[8,[39,4],[[24,0,"btn-primary publish-shared-draft"]],[["@action","@label","@icon"],[[28,[37,3],[[30,0],"publish"],null],"shared_drafts.publish","far-clipboard"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]]],[13]],[],false,["if","i18n","category-chooser","action","d-button"]]',moduleName:"discourse/components/shared-draft-controls.hbs",isStrictMode:!1});var u,d;const p=(0,i.setComponentTemplate)(c,s().extend((u=(0,a.default)("topic.destination_category_id"),d={tagName:"",dialog:(0,o.inject)(),publishing:!1,validCategory(e){return e&&e!==this.site.shared_drafts_category_id},actions:{updateDestinationCategory(e){return this.topic.updateDestinationCategory(e)},publish(){this.dialog.yesNoConfirm({message:l.default.t("shared_drafts.confirm_publish"),didConfirm:()=>{this.set("publishing",!0);const e=this.topic.destination_category_id;return this.topic.publish().then((()=>{this.topic.setProperties({category_id:e,destination_category_id:void 0,is_shared_draft:!1})})).finally((()=>{this.set("publishing",!1)}))}})}}},(0,r.Z)(d,"validCategory",[u],Object.getOwnPropertyDescriptor(d,"validCategory"),d),d)))},97922:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=n(17579),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"AQIl6Thi",block:'[[[1,[28,[35,0],["has-sidebar-page"],null]],[1,"\\n\\n"],[10,"section"],[14,1,"d-sidebar"],[14,0,"sidebar-container"],[12],[1,"\\n"],[41,[30,0,["showSwitchPanelButtonsOnTop"]],[[[1,"    "],[8,[39,2],null,[["@buttons"],[[30,0,["switchPanelButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["sidebarState","showMainPanel"]],[[[1,"    "],[8,[39,3],null,[["@currentUser","@collapsableSections","@panel"],[[30,0,["currentUser"]],true,[30,0,["sidebarState","currentPanel"]]]],null],[1,"\\n"]],[]],[[[1,"    "],[8,[39,4],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],true]],null],[1,"\\n"]],[]]],[1,"\\n"],[41,[51,[30,0,["showSwitchPanelButtonsOnTop"]]],[[[1,"    "],[8,[39,2],null,[["@buttons"],[[30,0,["switchPanelButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,6],null,null,null],[1,"\\n"],[13]],[],false,["body-class","if","sidebar/switch-panel-buttons","sidebar/sections","sidebar/api-panels","unless","sidebar/footer"]]',moduleName:"discourse/components/sidebar.hbs",isStrictMode:!1});var c,u,d,p,h,m,g=n(31691);let f=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",u,this),(0,r.Z)(this,"site",d,this),(0,r.Z)(this,"siteSettings",p,this),(0,r.Z)(this,"currentUser",h,this),(0,r.Z)(this,"sidebarState",m,this),this.site.mobileView&&document.addEventListener("click",this.collapseSidebar)}get showSwitchPanelButtonsOnTop(){return"top"===this.siteSettings.default_sidebar_switch_panel_position}get switchPanelButtons(){return this.sidebarState.displaySwitchPanelButtons&&1!==this.sidebarState.panels.length&&this.currentUser?this.sidebarState.panels.filter((e=>e!==this.sidebarState.currentPanel&&!e.hidden)):[]}collapseSidebar(e){let t=!1;const n=e.composedPath().some((e=>"sidebar-section-header-caret"!==e?.className&&["A","BUTTON"].includes(e.nodeName)?(t=!0,!0):e.className&&"sidebar-wrapper"===e.className));!t&&n||this.args.toggleSidebar()}willDestroy(){super.willDestroy(...arguments),this.site.mobileView&&document.removeEventListener("click",this.collapseSidebar)}},u=(0,i.Z)(c.prototype,"appEvents",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,i.Z)(c.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(c.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(c.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(c.prototype,"sidebarState",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(c.prototype,"collapseSidebar",[a.bind],Object.getOwnPropertyDescriptor(c.prototype,"collapseSidebar"),c.prototype),c);(0,g.setComponentTemplate)(l,f)},60974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(23146),i=n(56746);const s=(0,n(8620).createTemplateFactory)({id:"ttiCJxGR",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@collapsable"],["categories",[28,[37,1],["sidebar.sections.categories.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"    "],[8,[39,4],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@title","@content","@currentWhen","@model","@prefixType","@prefixValue","@prefixColor"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n  "],[8,[39,5],null,null,null],[1,"\\n"]],[]]]]]],["@collapsable","sectionLink"],false,["sidebar/section","i18n","each","-track-array","sidebar/section-link","sidebar/common/all-categories-section-link"]]',moduleName:"discourse/components/sidebar/anonymous/categories-section.hbs",isStrictMode:!1});var o=n(31691);class a extends r.default{constructor(){super(...arguments),this.siteSettings.default_navigation_menu_categories||(this.shouldSortCategoriesByDefault=!1)}get categories(){return this.siteSettings.default_navigation_menu_categories?i.default.findByIds(this.siteSettings.default_navigation_menu_categories.split("|").map((e=>parseInt(e,10)))):this.topSiteCategories}}(0,o.setComponentTemplate)(s,a)},52233:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(20884);class s extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"anonymous",!0)}}},41016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"714TLqzO",block:'[[[10,0],[14,0,"sidebar-sections sidebar-sections-anonymous"],[12],[1,"\\n  "],[8,[39,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n  "],[8,[39,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"    "],[8,[39,3],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[13]],["@collapsableSections"],false,["sidebar/anonymous/custom-sections","sidebar/anonymous/categories-section","if","sidebar/anonymous/tags-section"]]',moduleName:"discourse/components/sidebar/anonymous/sections.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",c,this)}},c=(0,i.Z)(l.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,u.setComponentTemplate)(a,d)},60800:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=(n(23183),n(17579)),a=n(75965),l=n(91649);const c=(0,n(8620).createTemplateFactory)({id:"itGhalZi",block:'[[[41,[30,0,["displaySection"]],[[[1,"  "],[8,[39,1],null,[["@sectionName","@headerLinkText","@collapsable"],["tags",[28,[37,2],["sidebar.sections.tags.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"      "],[8,[39,5],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@content","@title","@currentWhen","@prefixType","@prefixValue","@prefixColor","@models"],[[30,2,["route"]],[30,2,["text"]],[30,2,["title"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["models"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n    "],[8,[39,6],null,null,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null]],["@collapsable","sectionLink"],false,["if","sidebar/section","i18n","each","-track-array","sidebar/section-link","sidebar/common/all-tags-section-link"]]',moduleName:"discourse/components/sidebar/anonymous/tags-section.hbs",isStrictMode:!1});var u,d,p,h,m=n(31691);let g=(0,l.Z)(n(23183)).cached,f=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",d,this),(0,r.Z)(this,"topicTrackingState",p,this),(0,r.Z)(this,"site",h,this)}get displaySection(){return this.site.anonymous_default_navigation_menu_tags?.length>0||this.site.navigation_menu_site_top_tags?.length>0}get sectionLinks(){return(this.site.anonymous_default_navigation_menu_tags||this.site.navigation_menu_site_top_tags).map((e=>new a.default({tag:e,topicTrackingState:this.topicTrackingState})))}},d=(0,i.Z)(u.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(u.prototype,"topicTrackingState",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(u.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"sectionLinks",[g],Object.getOwnPropertyDescriptor(u.prototype,"sectionLinks"),u.prototype),u);(0,m.setComponentTemplate)(c,f)},14687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"H8UYFLDV",block:'[[[10,0],[14,0,"sidebar-sections"],[12],[1,"\\n  "],[8,[39,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"],[13]],["@collapsableSections"],false,["sidebar/api-sections"]]',moduleName:"discourse/components/sidebar/api-panels.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},21397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(82006),i=n(72326);const s=(0,n(8620).createTemplateFactory)({id:"LfpeJw+J",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@headerLinkTitle","@headerActionsIcon","@headerActions","@willDestroy","@collapsable","@displaySection","@hideSectionHeader"],[[30,0,["section","name"]],[30,0,["section","text"]],[30,0,["section","title"]],[30,0,["section","actionsIcon"]],[30,0,["section","actions"]],[30,0,["section","willDestroy"]],[30,1],[30,0,["section","displaySection"]],[30,0,["section","hideSectionHeader"]]]],[["default"],[[[[1,"\\n\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["section","links"]]],null]],null],null,[[[1,"    "],[8,[39,3],null,[["@linkName","@linkClass","@route","@model","@models","@href","@title","@contentCSSClass","@prefixColor","@prefixBadge","@prefixType","@prefixValue","@prefixCSSClass","@suffixType","@suffixValue","@suffixCSSClass","@hoverType","@hoverValue","@hoverAction","@hoverTitle","@currentWhen","@didInsert","@willDestroy","@content","@contentComponent"],[[30,2,["name"]],[30,2,["classNames"]],[30,2,["route"]],[30,2,["model"]],[30,2,["models"]],[30,2,["href"]],[30,2,["title"]],[30,2,["contentCSSClass"]],[30,2,["prefixColor"]],[30,2,["prefixBadge"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixCSSClass"]],[30,2,["suffixType"]],[30,2,["suffixValue"]],[30,2,["suffixCSSClass"]],[30,2,["hoverType"]],[30,2,["hoverValue"]],[30,2,["hoverAction"]],[30,2,["hoverTitle"]],[30,2,["currentWhen"]],[30,2,["didInsert"]],[30,2,["willDestroy"]],[30,2,["text"]],[50,[30,2,["contentComponent"]],0,null,[["status"],[[30,2,["contentComponentArgs"]]]]]]],null],[1,"\\n"]],[2]],null]],[]]]]]],["@collapsable","link"],false,["sidebar/section","each","-track-array","sidebar/section-link","component"]]',moduleName:"discourse/components/sidebar/api-section.hbs",isStrictMode:!1});var o=n(31691);class a extends r.default{constructor(){super(...arguments),this.section=new this.args.sectionConfig,(0,i.setOwner)(this.section,(0,i.getOwner)(this))}}(0,o.setComponentTemplate)(s,a)},49389:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"KvG9aRBj",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["sections"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@sectionConfig","@collapsable"],[[30,1],[30,2]]],null],[1,"\\n"]],[1]],null]],["sectionConfig","@collapsable"],false,["each","-track-array","sidebar/api-section"]]',moduleName:"discourse/components/sidebar/api-sections.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"sidebarState",c,this)}get sections(){return this.sidebarState.combinedMode?this.sidebarState.panels.filter((e=>!e.hidden)).map((e=>e.sections)).flat():this.sidebarState.currentPanel.sections}},c=(0,i.Z)(l.prototype,"sidebarState",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,u.setComponentTemplate)(a,d)},54664:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"JEMF5yGF",block:'[[[8,[39,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-categories",[28,[37,1],["sidebar.all_categories"],null],"discovery.categories","icon","list"]],null]],[],false,["sidebar/section-link","i18n"]]',moduleName:"discourse/components/sidebar/common/all-categories-section-link.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},87433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"oRRPUuRf",block:'[[[8,[39,0],null,[["@linkName","@content","@route","@prefixType","@prefixValue"],["all-tags",[28,[37,1],["sidebar.all_tags"],null],"tags","icon","list"]],null]],[],false,["sidebar/section-link","i18n"]]',moduleName:"discourse/components/sidebar/common/all-tags-section-link.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},23146:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TOP_SITE_CATEGORIES_TO_SHOW:()=>f,default:()=>b});var r,i,s,o,a=n(94664),l=n(49246),c=n(54001),u=n(82006),d=(n(23183),n(17579)),p=n(61766),h=n(39718),m=n(56746);let g=(0,n(91649).Z)(n(23183)).cached;const f=5;let b=(r=class extends u.default{constructor(){super(...arguments),(0,a.Z)(this,"topicTrackingState",i,this),(0,a.Z)(this,"siteSettings",s,this),(0,a.Z)(this,"site",o,this),(0,l.Z)(this,"shouldSortCategoriesByDefault",!0)}get categories(){}get topSiteCategories(){return this.site.categoriesList.filter((e=>!e.parent_category_id&&(0,p.canDisplayCategory)(e.id,this.siteSettings))).slice(0,f)}get sortedCategories(){if(!this.shouldSortCategoriesByDefault)return this.categories;let e=[...this.site.categories];this.siteSettings.fixed_category_positions||e.sort(((e,t)=>e.name.localeCompare(t.name)));const t=this.categories.map((e=>e.id));return m.default.sortCategories(e).reduce(((e,n)=>(t.includes(n.id)&&(0,p.canDisplayCategory)(n.id,this.siteSettings)&&e.push(n),e)),[])}get sectionLinks(){return this.sortedCategories.map((e=>new h.default({category:e,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser})))}},i=(0,c.Z)(r.prototype,"topicTrackingState",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.Z)(r.prototype,"siteSettings",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,c.Z)(r.prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.Z)(r.prototype,"sectionLinks",[g],Object.getOwnPropertyDescriptor(r.prototype,"sectionLinks"),r.prototype),r)},55651:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(72326),l=n(17579),c=n(12145),u=n(51614),d=n(10078);const p=(0,n(8620).createTemplateFactory)({id:"EXnD4XDH",block:'[[[8,[39,0],[[16,0,[30,0,["section","dragCss"]]]],[["@sectionName","@headerLinkText","@indicatePublic","@collapsable","@headerActions","@headerActionsIcon","@hideSectionHeader"],[[30,0,["section","slug"]],[30,0,["section","decoratedTitle"]],[30,0,["section","indicatePublic"]],[30,1],[30,0,["section","headerActions"]],[30,0,["section","headerActionIcon"]],[30,0,["section","hideSectionHeader"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["section","links"]]],null]],null],null,[[[41,[30,2,["externalOrFullReload"]],[[[1,"      "],[8,[39,4],null,[["@shouldDisplay","@linkName","@content","@prefixType","@prefixValue","@fullReload","@href","@linkClass"],[[30,2,["shouldDisplay"]],[30,2,["name"]],[28,[37,5],[[30,2,["text"]]],null],"icon",[30,2,["prefixValue"]],[30,2,["fullReload"]],[30,2,["value"]],[30,2,["linkDragCss"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,4],null,[["@shouldDisplay","@href","@title","@linkName","@route","@model","@models","@query","@content","@badgeText","@prefixType","@prefixValue","@suffixCSSClass","@suffixValue","@suffixType","@currentWhen","@linkClass"],[[30,2,["shouldDisplay"]],[30,2,["href"]],[30,2,["title"]],[30,2,["name"]],[30,2,["route"]],[30,2,["model"]],[30,2,["models"]],[30,2,["query"]],[28,[37,5],[[30,2,["text"]]],null],[30,2,["badgeText"]],"icon",[30,2,["prefixValue"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]],[30,2,["currentWhen"]],[30,2,["linkDragCss"]]]],null],[1,"\\n"]],[]]]],[2]],null],[1,"\\n"],[41,[30,0,["section","moreLinks"]],[[[41,[30,0,["navigationMenu","isDesktopDropdownMode"]],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["section","moreLinks"]]],null]],null],null,[[[1,"        "],[8,[39,6],null,[["@sectionLink"],[[30,3]]],null],[1,"\\n"]],[3]],null],[1,"\\n"],[41,[30,0,["section","moreSectionButtonAction"]],[[[1,"        "],[8,[39,7],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n"]],[]],null]],[]],[[[41,[30,0,["section","moreLinks"]],[[[1,"      "],[8,[39,8],null,[["@sectionLinks","@moreButtonAction","@moreButtonText","@moreButtonIcon"],[[30,0,["section","moreLinks"]],[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonText"]],[30,0,["section","moreSectionButtonIcon"]]]],null],[1,"\\n    "]],[]],null]],[]]]],[]],[[[41,[30,0,["section","moreSectionButtonAction"]],[[[1,"    "],[8,[39,7],null,[["@action","@icon","@text"],[[30,0,["section","moreSectionButtonAction"]],[30,0,["section","moreSectionButtonIcon"]],[30,0,["section","moreSectionButtonText"]]]],null],[1,"\\n  "]],[]],null]],[]]]],[]]]]]],["@collapsable","link","sectionLink"],false,["sidebar/section","each","-track-array","if","sidebar/section-link","replace-emoji","sidebar/more-section-link","sidebar/section-link-button","sidebar/more-section-links"]]',moduleName:"discourse/components/sidebar/common/custom-section.hbs",isStrictMode:!1});var h,m,g,f,b,_,y,w=n(31691);let v=(y=new WeakSet,h=class extends s.default{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=y),t.add(e),(0,r.Z)(this,"currentUser",m,this),(0,r.Z)(this,"navigationMenu",g,this),(0,r.Z)(this,"site",f,this),(0,r.Z)(this,"siteSettings",b,this),(0,r.Z)(this,"section",_,this),this.section=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,y,k).call(this)}willDestroy(){this.section.teardown?.(),super.willDestroy()}},m=(0,i.Z)(h.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"navigationMenu",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"site",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(h.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(h.prototype,"section",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h);function k(){let e=u.default;return"community"===this.args.sectionData.section_type&&(e=this.currentUser?.admin?d.default:c.default),new e({section:this.args.sectionData,owner:(0,a.getOwner)(this)})}(0,w.setComponentTemplate)(p,v)},20884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(17579);const l=(0,n(8620).createTemplateFactory)({id:"XOSm4xre",block:'[[[10,0],[14,0,"sidebar-custom-sections"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["sections"]]],null]],null],null,[[[1,"    "],[8,[39,2],null,[["@sectionData","@collapsable"],[[30,1],[30,2]]],null],[1,"\\n"]],[1]],null],[13]],["section","@collapsable"],false,["each","-track-array","sidebar/common/custom-section"]]',moduleName:"discourse/components/sidebar/common/custom-sections.hbs",isStrictMode:!1});var c,u,d,p,h,m,g,f,b=n(31691);let _=(c=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",u,this),(0,r.Z)(this,"router",d,this),(0,r.Z)(this,"messageBus",p,this),(0,r.Z)(this,"appEvents",h,this),(0,r.Z)(this,"topicTrackingState",m,this),(0,r.Z)(this,"site",g,this),(0,r.Z)(this,"siteSettings",f,this),(0,i.Z)(this,"anonymous",!1)}get sections(){return this.anonymous?this.site.anonymous_sidebar_sections:this.currentUser.sidebarSections}},u=(0,s.Z)(c.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,s.Z)(c.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,s.Z)(c.prototype,"messageBus",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,s.Z)(c.prototype,"appEvents",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,s.Z)(c.prototype,"topicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(c.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,s.Z)(c.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c);(0,b.setComponentTemplate)(l,_)},978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(38864),d=n(56746),p=n(34405),h=n(56111);const m=(0,n(8620).createTemplateFactory)({id:"+gPFd8In",block:'[[[8,[39,0],[[24,0,"sidebar__edit-navigation-menu__categories-modal"]],[["@title","@disableSaveButton","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal"],["sidebar.categories_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[37,1],[[30,0,["siteSettings","default_navigation_menu_categories","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[37,2],["sidebar.categories_form_modal.subtitle.text"],null],[28,[37,2],["sidebar.categories_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1]]],[["default"],[[[[1,"\\n  "],[10,"form"],[14,0,"sidebar-categories-form"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["filteredCategoriesGroupings","length"]],0],null],[[[42,[28,[37,5],[[28,[37,5],[[30,0,["filteredCategoriesGroupings"]]],null]],null],null,[[[1,"        "],[10,0],[14,0,"sidebar-categories-form__row"],[15,5,[28,[37,6],[[28,[37,7],[[30,2],"0.color"],null],"left"],null]],[12],[1,"\\n\\n"],[42,[28,[37,5],[[28,[37,5],[[30,2]],null]],null],null,[[[1,"            "],[10,0],[14,0,"sidebar-categories-form__category-row"],[15,"data-category-id",[30,3,["id"]]],[15,"data-category-level",[30,3,["level"]]],[12],[1,"\\n              "],[10,"label"],[14,0,"sidebar-categories-form__category-label"],[15,"for",[28,[37,8],["sidebar-categories-form__input--",[30,3,["id"]]],null]],[12],[1,"\\n                "],[10,0],[14,0,"sidebar-categories-form__category-wrapper"],[12],[1,"\\n                  "],[10,0],[14,0,"sidebar-categories-form__category-badge"],[12],[1,"\\n                    "],[1,[28,[35,9],[[30,3]],null]],[1,"\\n                  "],[13],[1,"\\n"],[41,[51,[30,3,["parentCategory"]]],[[[1,"                    "],[10,0],[14,0,"sidebar-categories-form__category-description"],[12],[1,"\\n                      "],[1,[28,[35,11],[[30,3,["description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n                    "],[13],[1,"\\n"]],[]],null],[1,"                "],[13],[1,"\\n\\n                "],[8,[39,12],[[16,1,[28,[37,8],["sidebar-categories-form__input--",[30,3,["id"]]],null]],[24,0,"sidebar-categories-form__input"],[16,"disabled",[28,[37,13],[[28,[37,14],[[30,0,["filteredCategoryIds"]],[30,3,["id"]]],null]],null]],[4,[38,15],["click",[28,[37,16],[[30,0,["toggleCategory"]],[30,3,["id"]]],null]],null]],[["@type","@checked"],["checkbox",[28,[37,14],[[30,0,["selectedSidebarCategoryIds"]],[30,3,["id"]]],null]]],null],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[3]],null],[1,"        "],[13],[1,"\\n"]],[2]],null]],[]],[[[1,"      "],[10,0],[14,0,"sidebar-categories-form__no-categories"],[12],[1,"\\n        "],[1,[28,[35,2],["sidebar.categories_form_modal.no_categories"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]]]]]],["@closeModal","categories","category"],false,["sidebar/edit-navigation-menu/modal","gt","i18n","if","each","-track-array","border-color","get","concat","category-badge","unless","dir-span","input","not","includes","on","fn"]]',moduleName:"discourse/components/sidebar/edit-navigation-menu/categories-modal.hbs",isStrictMode:!1});var g,f,b,_,y,w,v,k,x,T,S,C=n(31691);function P(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let E=(T=new WeakSet,S=new WeakSet,g=class extends o.default{constructor(){super(...arguments),P(this,S),P(this,T),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"site",b,this),(0,r.Z)(this,"siteSettings",_,this),(0,r.Z)(this,"filter",y,this),(0,r.Z)(this,"filteredCategoryIds",w,this),(0,r.Z)(this,"onlySelected",v,this),(0,r.Z)(this,"onlyUnselected",k,this),(0,r.Z)(this,"selectedSidebarCategoryIds",x,this),(0,i.Z)(this,"categoryGroupings",[]);let e=[...this.site.categories];this.siteSettings.fixed_category_positions||e.sort(((e,t)=>e.name.localeCompare(t.name))),d.default.sortCategories(e).reduce(((e,t,n,r)=>{if(t.isUncategorizedCategory)return e;e.push(t);const i=r[n+1];return i&&0!==i.level?e:(this.categoryGroupings.push(e),[])}),[])}get filteredCategoriesGroupings(){const e=new Set,t=this.categoryGroupings.reduce(((t,n)=>{const r=new Set,i=t=>{O(this,T,D).call(this,t)&&(t.parentCategory?.parentCategory&&r.add(t.parentCategory.parentCategory),t.parentCategory&&r.add(t.parentCategory),e.add(t.id),r.add(t))};return n.forEach((e=>{this.onlySelected?this.selectedSidebarCategoryIds.includes(e.id)&&i(e):this.onlyUnselected&&this.selectedSidebarCategoryIds.includes(e.id)||i(e)})),r.size>0&&t.push(Array.from(r)),t}),[]);return this.filteredCategoryIds=Array.from(e),t}resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1}filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1}filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0}onFilterInput(e){(0,h.default)(this,O(this,S,I),e,p.INPUT_DELAY)}deselectAll(){this.selectedSidebarCategoryIds.clear()}toggleCategory(e){this.selectedSidebarCategoryIds.includes(e)?this.selectedSidebarCategoryIds.removeObject(e):this.selectedSidebarCategoryIds.addObject(e)}resetToDefaults(){this.selectedSidebarCategoryIds=this.siteSettings.default_navigation_menu_categories.split("|").map((e=>parseInt(e,10)))}save(){this.saving=!0;const e=this.currentUser.sidebar_category_ids;this.currentUser.set("sidebar_category_ids",this.selectedSidebarCategoryIds),this.currentUser.save(["sidebar_category_ids"]).then((()=>{this.args.closeModal()})).catch((t=>{this.currentUser.set("sidebar_category_ids",e),(0,u.popupAjaxError)(t)})).finally((()=>{this.saving=!1}))}},f=(0,s.Z)(g.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,s.Z)(g.prototype,"site",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,s.Z)(g.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,s.Z)(g.prototype,"filter",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),w=(0,s.Z)(g.prototype,"filteredCategoryIds",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,s.Z)(g.prototype,"onlySelected",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),k=(0,s.Z)(g.prototype,"onlyUnselected",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,s.Z)(g.prototype,"selectedSidebarCategoryIds",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[...this.currentUser.sidebar_category_ids]}}),(0,s.Z)(g.prototype,"resetFilter",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"resetFilter"),g.prototype),(0,s.Z)(g.prototype,"filterSelected",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"filterSelected"),g.prototype),(0,s.Z)(g.prototype,"filterUnselected",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"filterUnselected"),g.prototype),(0,s.Z)(g.prototype,"onFilterInput",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"onFilterInput"),g.prototype),(0,s.Z)(g.prototype,"deselectAll",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"deselectAll"),g.prototype),(0,s.Z)(g.prototype,"toggleCategory",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"toggleCategory"),g.prototype),(0,s.Z)(g.prototype,"resetToDefaults",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"resetToDefaults"),g.prototype),(0,s.Z)(g.prototype,"save",[l.action],Object.getOwnPropertyDescriptor(g.prototype,"save"),g.prototype),g);function D(e){return 0===this.filter.length||e.nameLower.includes(this.filter)}function I(e){this.filter=e.toLowerCase()}(0,C.setComponentTemplate)(m,E)},93379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"4tiJb+5P",block:'[[[8,[39,0],[[24,0,"sidebar__edit-navigation-menu__modal -large"],[17,1]],[["@title","@closeModal"],[[28,[37,1],[[30,2]],null],[30,3]]],[["belowModalTitle","belowHeader","body","footer"],[[[[1,"\\n    "],[10,2],[14,0,"sidebar__edit-navigation-menu__deselect-wrapper"],[12],[1,"\\n      "],[8,[39,2],[[24,0,"btn-flat sidebar__edit-navigation-menu__deselect-button"]],[["@label","@ariaLabel","@action"],["sidebar.edit_navigation_modal_form.deselect_button_text","sidebar.edit_navigation_modal_form.deselect_button_text",[30,4]]],null],[1,"\\n\\n      "],[1,[30,5]],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter"],[12],[1,"\\n      "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-input"],[12],[1,"\\n        "],[1,[28,[35,3],["search"],[["class"],["sidebar__edit-navigation-menu__filter-input-icon"]]]],[1,"\\n\\n        "],[8,[39,4],[[24,0,"sidebar__edit-navigation-menu__filter-input-field"],[16,"placeholder",[30,6]],[24,"autofocus","true"],[4,[38,5],["input",[28,[37,6],[[30,0],[30,7]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,0,["filter"]]]],null],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"sidebar__edit-navigation-menu__filter-dropdown-wrapper"],[12],[1,"\\n        "],[8,[39,7],[[24,0,"sidebar__edit-navigation-menu__filter-dropdown"]],[["@value","@content","@onChange","@options"],[[30,0,["filterDropdownValue"]],[30,0,["filterDropdownContent"]],[30,0,["onFilterDropdownChange"]],[28,[37,8],null,[["showCaret","disabled"],[true,[30,8]]]]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[18,13,null],[1,"\\n  "]],[]],[[[1,"\\n    "],[10,0],[14,0,"sidebar__edit-navigation-menu__footer"],[12],[1,"\\n      "],[8,[39,2],[[24,0,"btn-primary sidebar__edit-navigation-menu__save-button"]],[["@label","@disabled","@action"],["save",[30,9],[30,10]]],null],[1,"\\n\\n"],[41,[30,11],[[[1,"        "],[8,[39,2],[[24,0,"btn-flat btn-text sidebar__edit-navigation-menu__reset-defaults-button"]],[["@icon","@label","@disabled","@action"],["undo","sidebar.edit_navigation_modal_form.reset_to_defaults",[30,9],[30,12]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]]]]]],["&attrs","@title","@closeModal","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@loading","@saving","@save","@showResetDefaultsButton","@resetToDefaults","&default"],false,["d-modal","i18n","d-button","d-icon","input","on","action","dropdown-select-box","hash","yield","if"]]',moduleName:"discourse/components/sidebar/edit-navigation-menu/modal.hbs",isStrictMode:!1});var d,p,h,m=n(31691);let g=(d=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"filter",p,this),(0,r.Z)(this,"filterDropdownValue",h,this),(0,i.Z)(this,"filterDropdownContent",[{id:"all",name:c.default.t("sidebar.edit_navigation_modal_form.filter_dropdown.all")},{id:"selected",name:c.default.t("sidebar.edit_navigation_modal_form.filter_dropdown.selected")},{id:"unselected",name:c.default.t("sidebar.edit_navigation_modal_form.filter_dropdown.unselected")}])}onFilterInput(e){this.args.onFilterInput(e)}onFilterDropdownChange(e){switch(this.filterDropdownValue=e,e){case"all":this.args.resetFilter();break;case"selected":this.args.filterSelected();break;case"unselected":this.args.filterUnselected()}}},p=(0,s.Z)(d.prototype,"filter",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),h=(0,s.Z)(d.prototype,"filterDropdownValue",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"all"}}),(0,s.Z)(d.prototype,"onFilterInput",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"onFilterInput"),d.prototype),(0,s.Z)(d.prototype,"onFilterDropdownChange",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"onFilterDropdownChange"),d.prototype),d);(0,m.setComponentTemplate)(u,g)},16080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(38864),u=n(34405),d=n(56111);const p=(0,n(8620).createTemplateFactory)({id:"T29ouT6M",block:'[[[8,[39,0],[[24,0,"sidebar__edit-navigation-menu__tags-modal"]],[["@title","@saving","@save","@showResetDefaultsButton","@resetToDefaults","@deselectAll","@deselectAllText","@inputFilterPlaceholder","@onFilterInput","@resetFilter","@filterSelected","@filterUnselected","@closeModal","@loading"],["sidebar.tags_form_modal.title",[30,0,["saving"]],[30,0,["save"]],[28,[37,1],[[30,0,["siteSettings","default_navigation_menu_tags","length"]],0],null],[30,0,["resetToDefaults"]],[30,0,["deselectAll"]],[28,[37,2],["sidebar.tags_form_modal.subtitle.text"],null],[28,[37,2],["sidebar.tags_form_modal.filter_placeholder"],null],[30,0,["onFilterInput"]],[30,0,["resetFilter"]],[30,0,["filterSelected"]],[30,0,["filterUnselected"]],[30,1],[28,[37,3],[[30,0,["tagsLoading"]],[30,0,["disableFiltering"]]],null]]],[["default"],[[[[1,"\\n"],[41,[30,0,["tagsLoading"]],[[[1,"    "],[1,[28,[35,5],null,[["size"],["large"]]]],[1,"\\n"]],[]],[[[1,"    "],[10,"form"],[14,0,"sidebar-tags-form"],[12],[1,"\\n"],[41,[28,[37,1],[[30,0,["tags","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["tags"]]],null]],null],null,[[[1,"          "],[11,0],[24,0,"sidebar-tags-form__tag"],[16,"data-tag-name",[30,2,["name"]]],[4,[38,8],[[30,0,["didInsertTag"]]],null],[12],[1,"\\n            "],[8,[39,9],[[16,1,[28,[37,10],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[24,0,"sidebar-tags-form__input"],[4,[38,12],["click",[28,[37,13],[[30,0,["toggleTag"]],[30,2,["name"]]],null]],null]],[["@type","@checked"],["checkbox",[28,[37,11],[[30,0,["selectedTags"]],[30,2,["name"]]],null]]],null],[1,"\\n\\n            "],[10,"label"],[14,0,"sidebar-tags-form__tag-label"],[15,"for",[28,[37,10],["sidebar-tags-form__input--",[30,2,["name"]]],null]],[12],[1,"\\n              "],[10,2],[12],[1,"\\n                "],[10,1],[14,0,"sidebar-tags-form__tag-label-name"],[12],[1,"\\n                  "],[1,[30,2,["name"]]],[1,"\\n                "],[13],[1,"\\n\\n                "],[10,1],[14,0,"sidebar-tags-form__tag-label-count"],[12],[1,"\\n                  ("],[1,[30,2,["topic_count"]]],[1,")\\n                "],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[2]],null]],[]],[[[1,"        "],[10,0],[14,0,"sidebar-tags-form__no-tags"],[12],[1,"\\n          "],[1,[28,[35,2],["sidebar.tags_form_modal.no_tags"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n"]],[]]],[1,"\\n  "],[8,[39,14],null,[["@condition"],[[30,0,["tags","loadingMore"]]]],null],[1,"\\n"]],[]]]]]],["@closeModal","tag"],false,["sidebar/edit-navigation-menu/modal","gt","i18n","or","if","loading-spinner","each","-track-array","did-insert","input","concat","includes","on","fn","conditional-loading-spinner"]]',moduleName:"discourse/components/sidebar/edit-navigation-menu/tags-modal.hbs",isStrictMode:!1});var h,m,g,f,b,_,y,w,v,k,x,T,S,C=n(31691);function P(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let E=(T=new WeakSet,S=new WeakSet,h=class extends s.default{constructor(){super(...arguments),P(this,S),P(this,T),(0,r.Z)(this,"currentUser",m,this),(0,r.Z)(this,"siteSettings",g,this),(0,r.Z)(this,"store",f,this),(0,r.Z)(this,"filter",b,this),(0,r.Z)(this,"onlySelected",_,this),(0,r.Z)(this,"onlyUnSelected",y,this),(0,r.Z)(this,"tags",w,this),(0,r.Z)(this,"tagsLoading",v,this),(0,r.Z)(this,"disableFiltering",k,this),(0,r.Z)(this,"selectedTags",x,this),O(this,T,D).call(this)}didInsertTag(e){if(e.dataset.tagName===this.tags.content[this.tags.content.length-1].name){if(this.observer)this.observer.disconnect();else{const e=document.querySelector(".d-modal__body"),t=window.getComputedStyle(e),n=parseFloat(t.marginTop),r=parseFloat(t.paddingTop);this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.tags.loadMore()}))}),{root:document.querySelector(".d-modal__body"),rootMargin:`0px 0px ${n+r}px 0px`,threshold:1})}this.observer.observe(e)}}resetFilter(){this.onlySelected=!1,this.onlyUnselected=!1,O(this,T,D).call(this)}filterSelected(){this.onlySelected=!0,this.onlyUnselected=!1,O(this,T,D).call(this)}filterUnselected(){this.onlySelected=!1,this.onlyUnselected=!0,O(this,T,D).call(this)}onFilterInput(e){this.disableFiltering=!0,(0,d.default)(this,O(this,S,I),e,u.INPUT_DELAY)}deselectAll(){this.selectedTags.clear()}resetToDefaults(){this.selectedTags=this.siteSettings.default_navigation_menu_tags.split("|")}toggleTag(e){this.selectedTags.includes(e)?this.selectedTags.removeObject(e):this.selectedTags.addObject(e)}save(){this.saving=!0;const e=this.currentUser.sidebar_tags;this.currentUser.set("sidebar_tag_names",this.selectedTags),this.currentUser.save(["sidebar_tag_names"]).then((e=>{this.currentUser.set("sidebar_tags",e.user.sidebar_tags),this.args.closeModal()})).catch((t=>{this.currentUser.set("sidebar_tags",e),(0,c.popupAjaxError)(t)})).finally((()=>{this.saving=!1}))}},m=(0,i.Z)(h.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(h.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(h.prototype,"store",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(h.prototype,"filter",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),_=(0,i.Z)(h.prototype,"onlySelected",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=(0,i.Z)(h.prototype,"onlyUnSelected",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w=(0,i.Z)(h.prototype,"tags",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),v=(0,i.Z)(h.prototype,"tagsLoading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,i.Z)(h.prototype,"disableFiltering",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.Z)(h.prototype,"selectedTags",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[...this.currentUser.sidebarTagNames]}}),(0,i.Z)(h.prototype,"didInsertTag",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"didInsertTag"),h.prototype),(0,i.Z)(h.prototype,"resetFilter",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"resetFilter"),h.prototype),(0,i.Z)(h.prototype,"filterSelected",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"filterSelected"),h.prototype),(0,i.Z)(h.prototype,"filterUnselected",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"filterUnselected"),h.prototype),(0,i.Z)(h.prototype,"onFilterInput",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"onFilterInput"),h.prototype),(0,i.Z)(h.prototype,"deselectAll",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"deselectAll"),h.prototype),(0,i.Z)(h.prototype,"resetToDefaults",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"resetToDefaults"),h.prototype),(0,i.Z)(h.prototype,"toggleTag",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"toggleTag"),h.prototype),(0,i.Z)(h.prototype,"save",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"save"),h.prototype),h);async function D(){this.tagsLoading=!0;const e={};""!==this.filter&&(e.filter=this.filter),this.onlySelected&&(e.only_tags=this.selectedTags.join(",")),this.onlyUnselected&&(e.exclude_tags=this.selectedTags.join(",")),await this.store.findAll("listTag",e).then((e=>{this.tags=e})).catch((e=>{(0,c.popupAjaxError)(e)})).finally((()=>{this.tagsLoading=!1,this.disableFiltering=!1}))}function I(e){this.filter=e.toLowerCase(),O(this,T,D).call(this)}(0,C.setComponentTemplate)(p,E)},37910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(54052);const c=(0,n(8620).createTemplateFactory)({id:"wRySA3WI",block:'[[[10,0],[14,0,"sidebar-footer-wrapper"],[12],[1,"\\n  "],[10,0],[14,0,"sidebar-footer-container"],[12],[1,"\\n    "],[10,0],[14,0,"sidebar-footer-actions"],[12],[1,"\\n      "],[8,[39,0],null,[["@name"],["sidebar-footer-actions"]],null],[1,"\\n\\n"],[41,[30,0,["currentUser"]],[[[1,"        "],[8,[39,2],[[24,0,"btn-flat add-section"]],[["@icon","@action","@title"],["plus",[30,0,["addSection"]],"sidebar.sections.custom.add"]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,3],[[30,0,["site","mobileView"]],[28,[37,4],[[30,0,["siteSettings","enable_mobile_theme"]],[30,0,["capabilities","touch"]]],null]],null],[[[1,"        "],[8,[39,2],[[24,0,"sidebar-footer-actions-button sidebar-footer-actions-toggle-mobile-view"]],[["@action","@title","@icon"],[[28,[37,5],["toggleMobileView"],null],[52,[30,0,["site","mobileView"]],"desktop_view","mobile_view"],[52,[30,0,["site","mobileView"]],"desktop","mobile-alt"]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["site","desktopView"]],[[[1,"        "],[8,[39,2],[[24,0,"btn-flat sidebar-footer-actions-button sidebar-footer-actions-keyboard-shortcuts"]],[["@action","@title","@icon"],[[28,[37,5],["showKeyboardShortcutsHelp"],null],"keyboard_shortcuts_help.title","keyboard"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["plugin-outlet","if","d-button","or","and","route-action"]]',moduleName:"discourse/components/sidebar/footer.hbs",isStrictMode:!1});var u,d,p,h,m,g,f=n(31691);let b=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"capabilities",d,this),(0,r.Z)(this,"currentUser",p,this),(0,r.Z)(this,"modal",h,this),(0,r.Z)(this,"site",m,this),(0,r.Z)(this,"siteSettings",g,this)}addSection(){this.modal.show(l.default)}},d=(0,i.Z)(u.prototype,"capabilities",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(u.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(u.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(u.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(u.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"addSection",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"addSection"),u.prototype),u);(0,f.setComponentTemplate)(c,b)},75762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579);const l=(0,n(8620).createTemplateFactory)({id:"yFYd3+ZF",block:'[[[10,0],[14,0,"hamburger-panel"],[12],[1,"\\n  "],[11,0],[24,0,"revamped menu-panel drop-down"],[24,"data-max-width","320"],[4,[38,0],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n    "],[10,0],[14,0,"panel-body"],[12],[1,"\\n      "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n        "],[10,0],[14,0,"sidebar-hamburger-dropdown"],[12],[1,"\\n"],[41,[30,0,["sidebarState","showMainPanel"]],[[[1,"            "],[8,[39,2],null,[["@currentUser","@collapsableSections","@panel"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]],[30,0,["sidebarState","currentPanel"]]]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,3],null,[["@currentUser","@collapsableSections"],[[30,0,["currentUser"]],[30,0,["collapsableSections"]]]],null],[1,"\\n"]],[]]],[1,"          "],[8,[39,4],null,[["@tagName"],[""]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["did-insert","if","sidebar/sections","sidebar/api-panels","sidebar/footer"]]',moduleName:"discourse/components/sidebar/hamburger-dropdown.hbs",isStrictMode:!1});var c,u,d,p,h,m,g=n(31691);let f=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",u,this),(0,r.Z)(this,"currentUser",d,this),(0,r.Z)(this,"site",p,this),(0,r.Z)(this,"siteSettings",h,this),(0,r.Z)(this,"sidebarState",m,this)}triggerRenderedAppEvent(){this.appEvents.trigger("sidebar-hamburger-dropdown:rendered")}get collapsableSections(){if("header dropdown"===this.siteSettings.navigation_menu&&!this.args.collapsableSections)return this.site.mobileView||this.site.narrowDesktopView;this.args.collapsableSections}},u=(0,i.Z)(c.prototype,"appEvents",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,i.Z)(c.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(c.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,i.Z)(c.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(c.prototype,"sidebarState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(c.prototype,"triggerRenderedAppEvent",[o.action],Object.getOwnPropertyDescriptor(c.prototype,"triggerRenderedAppEvent"),c.prototype),c);(0,g.setComponentTemplate)(l,f)},69062:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"khmEPYoI",block:'[[[41,[30,1,["externalOrFullReload"]],[[[1,"  "],[8,[39,1],null,[["@shouldDisplay","@linkName","@content","@prefixType","@prefixValue","@fullReload","@href"],[[30,1,["shouldDisplay"]],[30,1,["name"]],[28,[37,2],[[30,1,["text"]]],null],"icon",[30,1,["prefixValue"]],[30,1,["fullReload"]],[30,1,["value"]]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,1],null,[["@shouldDisplay","@href","@title","@linkName","@route","@model","@models","@query","@content","@badgeText","@prefixType","@prefixValue","@suffixCSSClass","@suffixValue","@suffixType","@currentWhen"],[[30,1,["shouldDisplay"]],[30,1,["href"]],[30,1,["title"]],[30,1,["name"]],[30,1,["route"]],[30,1,["model"]],[30,1,["models"]],[30,1,["query"]],[28,[37,2],[[30,1,["text"]]],null],[30,1,["badgeText"]],"icon",[30,1,["prefixValue"]],[30,1,["suffixCSSClass"]],[30,1,["suffixValue"]],[30,1,["suffixType"]],[30,1,["currentWhen"]]]],null],[1,"\\n"]],[]]]],["@sectionLink"],false,["if","sidebar/section-link","replace-emoji"]]',moduleName:"discourse/components/sidebar/more-section-link.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},84766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(33217),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"Yw3rpoFI",block:'[[[41,[30,0,["activeSectionLink"]],[[[1,"  "],[8,[39,1],null,[["@sectionLink"],[[30,0,["activeSectionLink"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,"li"],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n  "],[8,[39,2],[[24,0,"btn-flat sidebar-more-section-links-details-summary"],[16,"aria-expanded",[52,[30,0,["open"]],"true","false"]]],[["@icon","@action","@label"],["ellipsis-v",[30,0,["toggleSectionLinks"]],"sidebar.more"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["open"]],[[[1,"  "],[10,0],[14,0,"sidebar-more-section-links-details"],[12],[1,"\\n    "],[11,0],[24,0,"sidebar-more-section-links-details-content-wrapper"],[4,[38,3],[[30,0,["registerClickListener"]]],null],[4,[38,4],[[30,0,["unregisterClickListener"]]],null],[12],[1,"\\n\\n      "],[10,0],[14,0,"sidebar-more-section-links-details-content"],[12],[1,"\\n        "],[10,"ul"],[14,0,"sidebar-more-section-links-details-content-main"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"            "],[8,[39,1],null,[["@sectionLink"],[[30,1]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n\\n"],[41,[30,2],[[[1,"          "],[10,0],[14,0,"sidebar-more-section-links-details-content-footer"],[12],[1,"\\n            "],[8,[39,7],null,[["@action","@icon","@text"],[[30,2],[30,3],[30,4]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["sectionLink","@moreButtonAction","@moreButtonIcon","@moreButtonText"],false,["if","sidebar/more-section-link","d-button","did-insert","will-destroy","each","-track-array","sidebar/section-link-button"]]',moduleName:"discourse/components/sidebar/more-section-links.hbs",isStrictMode:!1});var p,h,m,g,f,b,_,y,w,v=n(31691);function k(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function x(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let T=(f=new WeakSet,b=new WeakSet,_=new WeakSet,y=new WeakSet,w=new WeakSet,p=class extends s.default{constructor(){super(...arguments),k(this,w),k(this,y),k(this,_),k(this,b),k(this,f),(0,r.Z)(this,"router",h,this),(0,r.Z)(this,"activeSectionLink",m,this),(0,r.Z)(this,"open",g,this),x(this,w,E).call(this),this.router.on("routeDidChange",this,x(this,w,E))}willDestroy(){super.willDestroy(...arguments),x(this,b,C).call(this),this.router.off("routeDidChange",this,x(this,w,E))}get sectionLinks(){return this.activeSectionLink?x(this,f,S).call(this,this.args.sectionLinks):this.args.sectionLinks}get secondarySectionLinks(){return this.activeSectionLink?x(this,f,S).call(this,this.args.secondarySectionLinks):this.args.secondarySectionLinks}closeDetails(e){this.open&&(e.target.className.includes("sidebar-section-link")||e.target.className.includes("sidebar-section-link-button")||x(this,y,O).call(this,e))&&(this.open=!1)}registerClickListener(){x(this,_,P).call(this)}unregisterClickListener(){x(this,b,C).call(this)}toggleSectionLinks(){this.open=!this.open}},h=(0,i.Z)(p.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"activeSectionLink",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"open",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(p.prototype,"closeDetails",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"closeDetails"),p.prototype),(0,i.Z)(p.prototype,"registerClickListener",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"registerClickListener"),p.prototype),(0,i.Z)(p.prototype,"unregisterClickListener",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"unregisterClickListener"),p.prototype),(0,i.Z)(p.prototype,"toggleSectionLinks",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleSectionLinks"),p.prototype),p);function S(e){return e.filter((e=>e.name!==this.activeSectionLink.name))}function C(){document.removeEventListener("click",this.closeDetails)}function P(){document.addEventListener("click",this.closeDetails)}function O(e){return!e.composedPath().some((e=>"sidebar-more-section-links-details"===e.className))}function E(){const e=this.args.sectionLinks.find((e=>{const t=[e.route];return e.model?t.push(e.model):e.models&&t.push(...e.models),(0,c.isEmpty)(e.query)||t.push({queryParams:e.query}),this.router.isActive(...t)&&e}));this.activeSectionLink=e}(0,v.setComponentTemplate)(d,T)},74490:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(12933);const u=(0,n(8620).createTemplateFactory)({id:"RFVya1DS",block:'[[[11,0],[16,0,[28,[37,0],["sidebar-section-form-link","row-wrapper",[30,0,["dragCssClass"]]],null]],[24,"draggable","true"],[4,[38,1],["dragstart",[30,0,["dragHasStarted"]]],null],[4,[38,1],["dragover",[30,0,["dragOver"]]],null],[4,[38,1],["dragenter",[30,0,["dragEnter"]]],null],[4,[38,1],["dragleave",[30,0,["dragLeave"]]],null],[4,[38,1],["dragend",[30,0,["dragEnd"]]],null],[4,[38,1],["drop",[30,0,["dropItem"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"draggable"],[15,"data-link-name",[30,1,["name"]]],[12],[1,"\\n    "],[1,[28,[35,2],["grip-lines"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"input-group"],[12],[1,"\\n    "],[8,[39,3],[[16,0,[30,1,["iconCssClass"]]]],[["@name","@value","@options","@onlyAvailable","@onChange"],["icon",[30,1,["icon"]],[28,[37,4],null,[["maximum","caretDownIcon","caretUpIcon","icons"],[1,"caret-down","caret-up",[30,1,["icon"]]]]],true,[28,[37,5],[[30,0],[28,[37,6],[[30,1,["icon"]]],null]],null]]],null],[1,"\\n"],[41,[30,1,["invalidIconMessage"]],[[[1,"      "],[10,0],[14,0,"icon warning"],[12],[1,"\\n        "],[1,[30,1,["invalidIconMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"input-group"],[12],[1,"\\n    "],[8,[39,8],[[24,3,"link-name"],[16,0,[30,1,["nameCssClass"]]],[4,[38,1],["input",[28,[37,5],[[30,0],[28,[37,6],[[30,1,["name"]]],null]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,1,["name"]]]],null],[1,"\\n"],[41,[30,1,["invalidNameMessage"]],[[[1,"      "],[10,0],[14,0,"name warning"],[12],[1,"\\n        "],[1,[30,1,["invalidNameMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"input-group"],[12],[1,"\\n    "],[8,[39,8],[[24,3,"link-url"],[16,0,[30,1,["valueCssClass"]]],[4,[38,1],["input",[28,[37,5],[[30,0],[28,[37,6],[[30,1,["value"]]],null]],[["value"],["target.value"]]]],null]],[["@type","@value"],["text",[30,1,["value"]]]],null],[1,"\\n"],[41,[30,1,["invalidValueMessage"]],[[[1,"      "],[10,0],[14,0,"value warning"],[12],[1,"\\n        "],[1,[30,1,["invalidValueMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[8,[39,9],[[24,0,"btn-flat delete-link"]],[["@icon","@action","@title"],["trash-alt",[28,[37,10],[[30,2],[30,1]],null],"sidebar.sections.custom.links.delete"]],null],[1,"\\n"],[13]],["@link","@deleteLink"],false,["concat-class","on","d-icon","icon-picker","hash","action","mut","if","input","d-button","fn"]]',moduleName:"discourse/components/sidebar/section-form-link.hbs",isStrictMode:!1});var d,p,h=n(31691);let m=(d=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"dragCssClass",p,this),(0,i.Z)(this,"dragCount",0)}isAboveElement(e){e.preventDefault();const t=e.currentTarget.getBoundingClientRect();return e.offsetY<t.height/2}dragHasStarted(e){e.dataTransfer.effectAllowed="move",this.args.setDraggedLinkCallback(this.args.link),this.dragCssClass="dragging"}dragOver(e){e.preventDefault(),"dragging"!==this.dragCssClass&&(this.isAboveElement(e)?this.dragCssClass="drag-above":this.dragCssClass="drag-below")}dragEnter(){this.dragCount++}dragLeave(){this.dragCount--,0!==this.dragCount||"drag-above"!==this.dragCssClass&&"drag-below"!==this.dragCssClass||(0,c.default)((()=>{this.dragCssClass=null}),10)}dropItem(e){e.stopPropagation(),this.dragCount=0,this.args.reorderCallback(this.args.link,this.isAboveElement(e)),this.dragCssClass=null}dragEnd(){this.dragCount=0,this.dragCssClass=null}},p=(0,s.Z)(d.prototype,"dragCssClass",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(d.prototype,"dragHasStarted",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"dragHasStarted"),d.prototype),(0,s.Z)(d.prototype,"dragOver",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"dragOver"),d.prototype),(0,s.Z)(d.prototype,"dragEnter",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"dragEnter"),d.prototype),(0,s.Z)(d.prototype,"dragLeave",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"dragLeave"),d.prototype),(0,s.Z)(d.prototype,"dropItem",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"dropItem"),d.prototype),(0,s.Z)(d.prototype,"dragEnd",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"dragEnd"),d.prototype),d);(0,h.setComponentTemplate)(u,m)},6528:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"TllS1A7l",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],[[16,"aria-controls",[30,2]],[16,"aria-expanded",[52,[30,3],"true","false"]],[24,0,"sidebar-section-header sidebar-section-header-collapsable btn-flat"]],[["@title","@action"],["sidebar.toggle_section",[30,4]]],[["default"],[[[[1,"\\n    "],[18,5,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  "],[10,1],[14,0,"sidebar-section-header"],[12],[1,"\\n    "],[18,5,null],[1,"\\n  "],[13],[1,"\\n"]],[]]]],["@collapsable","@sidebarSectionContentID","@isExpanded","@toggleSectionDisplay","&default"],false,["if","d-button","yield"]]',moduleName:"discourse/components/sidebar/section-header.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},92776:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"OIP7G0vz",block:'[[[10,0],[14,0,"sidebar-section-link-wrapper"],[12],[1,"\\n  "],[11,"button"],[24,0,"btn btn-flat sidebar-section-link-button sidebar-row"],[24,4,"button"],[4,[38,0],["click",[30,1]],null],[12],[1,"\\n    "],[10,1],[14,0,"sidebar-section-link-prefix icon"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,2]],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n      "],[1,[30,3]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["@action","@icon","@text"],false,["on","d-icon"]]',moduleName:"discourse/components/sidebar/section-link-button.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},52914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82006),i=n(95665);const s=(0,n(8620).createTemplateFactory)({id:"OahHlLqS",block:'[[[41,[30,1],[[[1,"  "],[10,1],[15,0,[28,[37,1],["sidebar-section-link-prefix",[30,1],[30,2]],null]],[15,5,[52,[30,3],[28,[37,2],[[28,[37,3],["color: ",[30,3]],null]],null]]],[12],[1,"\\n\\n"],[41,[28,[37,4],[[30,1],"image"],null],[[[1,"      "],[10,"img"],[15,"src",[30,0,["prefixValue"]]],[14,0,"prefix-image"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1],"text"],null],[[[1,"      "],[10,1],[14,0,"prefix-text"],[12],[1,"\\n        "],[1,[30,0,["prefixValue"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1],"icon"],null],[[[1,"      "],[1,[28,[35,5],[[30,0,["prefixValue"]]],[["class"],["prefix-icon"]]]],[1,"\\n"]],[]],[[[41,[28,[37,4],[[30,1],"span"],null],[[[1,"      "],[10,1],[15,5,[28,[37,2],[[28,[37,3],["background: linear-gradient(90deg, ",[30,0,["prefixValue"]],")"],null]],null]],[14,0,"prefix-span"],[12],[13],[1,"\\n    "]],[]],null]],[]]]],[]]]],[]]],[1,"\\n"],[41,[30,4],[[[1,"      "],[1,[28,[35,5],[[30,4]],[["class"],["prefix-badge"]]]],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@prefixType","@prefixCSSClass","@prefixColor","@prefixBadge"],false,["if","concat-class","html-safe","concat","eq","d-icon"]]',moduleName:"discourse/components/sidebar/section-link-prefix.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,class extends r.default{get prefixValue(){if(this.args.prefixType||this.args.prefixValue){if("span"===this.args.prefixType){let e=this.args.prefixValue;return e=e.reduce(((e,t)=>{const n=(0,i.isHex)(t);return n&&e.push(`#${n} 50%`),e}),[]),1===e.length&&e.push(e[0]),e.join(", ")}return this.args.prefixValue}}})},95665:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h,isHex:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(17579),a=n(54736);const l=(0,n(8620).createTemplateFactory)({id:"AfyQAbxk",block:'[[[41,[30,0,["shouldDisplay"]],[[[1,"  "],[11,"li"],[24,0,"sidebar-section-link-wrapper"],[16,"data-list-item-name",[30,1]],[17,2],[12],[1,"\\n"],[41,[30,3],[[[1,"      "],[10,3],[15,6,[30,3]],[14,"rel","noopener noreferrer"],[15,"target",[30,0,["target"]]],[15,"title",[30,4]],[15,"data-link-name",[30,1]],[15,0,[30,0,["linkClass"]]],[12],[1,"\\n        "],[8,[39,1],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,5],[30,6],[30,7],[30,0,["prefixColor"]],[30,8]]],null],[1,"\\n\\n        "],[10,1],[14,0,"sidebar-section-link-content-text"],[12],[1,"\\n          "],[1,[30,9]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[8,[39,2],[[16,"title",[30,4]],[16,"data-link-name",[30,1]],[16,0,[30,0,["linkClass"]]]],[["@route","@query","@models","@current-when"],[[30,10],[28,[37,3],[[30,11],[28,[37,4],null,null]],null],[30,0,["models"]],[30,12]]],[["default"],[[[[1,"\\n\\n        "],[8,[39,1],null,[["@prefixType","@prefixValue","@prefixCSSClass","@prefixColor","@prefixBadge"],[[30,5],[30,6],[30,7],[30,0,["prefixColor"]],[30,8]]],null],[1,"\\n\\n        "],[10,1],[15,0,[28,[37,5],["sidebar-section-link-content-text",[30,13]],null]],[12],[1,"\\n          "],[1,[30,9]],[1,"\\n          "],[1,[30,14]],[1,"\\n        "],[13],[1,"\\n\\n"],[41,[30,15],[[[1,"          "],[10,1],[14,0,"sidebar-section-link-content-badge"],[12],[1,"\\n            "],[1,[30,15]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,16],[[[1,"          "],[10,1],[15,0,[28,[37,5],["sidebar-section-link-suffix",[30,17],[30,18]],null]],[12],[1,"\\n"],[41,[28,[37,6],[[30,17],"icon"],null],[[[1,"              "],[1,[28,[35,7],[[30,16]],null]],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,19],[[[1,"          "],[10,1],[14,0,"sidebar-section-link-hover"],[12],[1,"\\n            "],[11,"button"],[16,"title",[30,20]],[24,0,"sidebar-section-hover-button"],[24,4,"button"],[4,[38,8],["click",[30,21]],null],[12],[1,"\\n"],[41,[28,[37,6],[[30,22],"icon"],null],[[[1,"                "],[1,[28,[35,7],[[30,19]],[["class"],["hover-icon"]]]],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "]],[]]]]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["@linkName","&attrs","@href","@title","@prefixType","@prefixValue","@prefixCSSClass","@prefixBadge","@content","@route","@query","@currentWhen","@contentCSSClass","@contentComponent","@badgeText","@suffixValue","@suffixType","@suffixCSSClass","@hoverValue","@hoverTitle","@hoverAction","@hoverType"],false,["if","sidebar/section-link-prefix","link-to","or","hash","concat-class","eq","d-icon","on"]]',moduleName:"discourse/components/sidebar/section-link.hbs",isStrictMode:!1});var c,u,d=n(31691);function p(e){const t=e?.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/);return t?t[1]:void 0}let h=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",u,this),this.args.didInsert?.()}willDestroy(){super.willDestroy(...arguments),this.args.willDestroy?.()}get shouldDisplay(){return void 0===this.args.shouldDisplay||this.args.shouldDisplay}get linkClass(){let e=["sidebar-section-link","sidebar-row"];return this.args.linkClass&&e.push(this.args.linkClass),this.args.class&&((0,a.default)("SectionLink's @class arg has been renamed to @linkClass",{id:"discourse.section-link-class-arg",since:"3.2.0.beta4",dropFrom:"3.3.0.beta1"}),e.push(this.args.class)),e.join(" ")}get target(){return this.args.fullReload?"_self":this.currentUser?.user_option?.external_links_in_new_tab?"_blank":"_self"}get models(){return this.args.model?[this.args.model]:this.args.models?this.args.models:[]}get prefixColor(){const e=p(this.args.prefixColor);return e?`#${e}`:void 0}},u=(0,i.Z)(c.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c);(0,d.setComponentTemplate)(l,h)},23911:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"cM0n1q7u",block:'[[[10,0],[14,0,"sidebar-section-message-wrapper sidebar-row"],[12],[1,"\\n  "],[10,0],[14,0,"sidebar-section-message"],[12],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["yield"]]',moduleName:"discourse/components/sidebar/section-message.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},98221:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579);const u=(0,n(8620).createTemplateFactory)({id:"nhZRfHWn",block:'[[[41,[30,0,["displaySection"]],[[[1,"  "],[11,0],[16,"data-section-name",[30,1]],[24,0,"sidebar-section-wrapper sidebar-section"],[17,2],[12],[1,"\\n"],[41,[51,[30,3]],[[[1,"      "],[10,0],[14,0,"sidebar-section-header-wrapper sidebar-row"],[12],[1,"\\n        "],[8,[39,2],null,[["@collapsable","@sidebarSectionContentID","@toggleSectionDisplay","@isExpanded"],[[30,4],[30,0,["sidebarSectionContentID"]],[30,0,["toggleSectionDisplay"]],[30,0,["displaySectionContent"]]]],[["default"],[[[[1,"\\n"],[41,[30,4],[[[1,"            "],[10,1],[14,0,"sidebar-section-header-caret"],[12],[1,"\\n              "],[1,[28,[35,3],[[30,0,["headerCaretIcon"]]],null]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"\\n          "],[10,1],[14,0,"sidebar-section-header-text"],[12],[1,"\\n            "],[1,[30,5]],[1,"\\n          "],[13],[1,"\\n\\n"],[41,[30,6],[[[1,"            "],[8,[39,4],[[24,0,"sidebar-section-header-global-indicator"]],[["@icon"],["globe"]],[["default"],[[[[1,"\\n              "],[10,1],[14,0,"sidebar-section-header-global-indicator__content"],[12],[1,[28,[35,3],["shield-alt"],null]],[1,[28,[35,5],["sidebar.sections.global_section"],null]],[13],[1,"\\n            "]],[]]]]],[1,"\\n"]],[]],null],[1,"        "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isSingleHeaderAction"]],[[[42,[28,[37,7],[[28,[37,7],[[30,7]],null]],null],null,[[[1,"            "],[11,"button"],[24,0,"sidebar-section-header-button"],[16,"title",[30,8,["title"]]],[24,4,"button"],[4,[38,8],["click",[30,8,["action"]]],null],[12],[1,"\\n              "],[1,[28,[35,3],[[30,9]],null]],[1,"\\n            "],[13],[1,"\\n"]],[8]],null]],[]],null],[1,"\\n"],[41,[30,0,["isMultipleHeaderActions"]],[[[1,"          "],[8,[39,9],[[24,0,"sidebar-section-header-dropdown"]],[["@options","@content","@onChange"],[[28,[37,10],null,[["icon","placementStrategy"],[[30,9],"absolute"]]],[30,7],[30,0,["handleMultipleHeaderActions"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displaySectionContent"]],[[[1,"      "],[10,"ul"],[14,0,"sidebar-section-content"],[15,1,[30,0,["sidebarSectionContentID"]]],[12],[1,"\\n        "],[18,10,null],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["@sectionName","&attrs","@hideSectionHeader","@collapsable","@headerLinkText","@indicatePublic","@headerActions","headerAction","@headerActionsIcon","&default"],false,["if","unless","sidebar/section-header","d-icon","d-tooltip","i18n","each","-track-array","on","dropdown-select-box","hash","yield"]]',moduleName:"discourse/components/sidebar/section.hbs",isStrictMode:!1});var d,p,h,m=n(31691);let g=(d=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"keyValueStore",p,this),(0,r.Z)(this,"displaySectionContent",h,this),(0,i.Z)(this,"sidebarSectionContentID",`sidebar-section-content-${this.args.sectionName}`),(0,i.Z)(this,"collapsedSidebarSectionKey",`sidebar-section-${this.args.sectionName}-collapsed`),this.args.collapsable?this.displaySectionContent=void 0===this.keyValueStore.getItem(this.collapsedSidebarSectionKey):this.displaySectionContent=!0}willDestroy(){super.willDestroy(...arguments),this.args.willDestroy?.()}toggleSectionDisplay(){this.displaySectionContent=!this.displaySectionContent,this.displaySectionContent?this.keyValueStore.remove(this.collapsedSidebarSectionKey):this.keyValueStore.setItem(this.collapsedSidebarSectionKey,!0),event.key||document.activeElement.blur()}handleMultipleHeaderActions(e){this.args.headerActions.find((t=>t.id===e)).action()}get headerCaretIcon(){return this.displaySectionContent?"angle-down":"angle-right"}get isSingleHeaderAction(){return 1===this.args.headerActions?.length}get isMultipleHeaderActions(){return this.args.headerActions?.length>1}get displaySection(){return void 0===this.args.displaySection||this.args.displaySection}},p=(0,s.Z)(d.prototype,"keyValueStore",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,s.Z)(d.prototype,"displaySectionContent",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(d.prototype,"toggleSectionDisplay",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"toggleSectionDisplay"),d.prototype),(0,s.Z)(d.prototype,"handleMultipleHeaderActions",[l.action],Object.getOwnPropertyDescriptor(d.prototype,"handleMultipleHeaderActions"),d.prototype),d);(0,m.setComponentTemplate)(u,g)},41413:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"3Cp7p/7Z",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],null,[["@collapsableSections","@panel"],[[30,2],[30,3]]],null],[1,"\\n"]],[]],[[[1,"  "],[8,[39,2],null,[["@collapsableSections"],[[30,2]]],null],[1,"\\n"]],[]]]],["@currentUser","@collapsableSections","@panel"],false,["if","sidebar/user/sections","sidebar/anonymous/sections"]]',moduleName:"discourse/components/sidebar/sections.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},85524:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579),c=n(62617),u=n(47582);const d=(0,n(8620).createTemplateFactory)({id:"SNRLx6il",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1,"  "],[8,[39,2],[[16,"data-key",[30,2,["key"]]],[24,0,"btn-default sidebar__panel-switch-button"]],[["@action","@icon","@disabled","@translatedLabel"],[[28,[37,3],[[30,0,["switchPanel"]],[30,2]],null],[30,2,["switchButtonIcon"]],[30,0,["isSwitching"]],[30,2,["switchButtonLabel"]]]],null],[1,"\\n"]],[2]],null]],["@buttons","button"],false,["each","-track-array","d-button","fn"]]',moduleName:"discourse/components/sidebar/switch-panel-buttons.hbs",isStrictMode:!1});var p,h,m,g,f=n(31691);let b=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"router",h,this),(0,r.Z)(this,"sidebarState",m,this),(0,r.Z)(this,"isSwitching",g,this)}switchPanel(e){this.isSwitching=!0,this.sidebarState.currentPanel.lastKnownURL=this.router.currentURL;const t=e.lastKnownURL||e.switchButtonDefaultUrl,n="/"===t?`discovery.${(0,c.defaultHomepage)()}`:(0,u.default)(t);this.router.transitionTo(n).then((()=>{this.sidebarState.setPanel(e.key)})).finally((()=>{this.isSwitching=!1}))}},h=(0,i.Z)(p.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"sidebarState",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"isSwitching",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,i.Z)(p.prototype,"switchPanel",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"switchPanel"),p.prototype),p);(0,f.setComponentTemplate)(d,b)},19105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{REFRESH_COUNTS_APP_EVENT_NAME:()=>k,default:()=>x});var r=n(94664),i=n(54001),s=(n(23183),n(48163)),o=n(17579),a=n(23146),l=n(978),c=n(61766),u=n(56746),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"c2hez7lk",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["categories",[28,[37,1],["sidebar.sections.categories.header_link_text"],null],[28,[37,2],[[28,[37,3],null,[["action","title"],[[30,0,["showModal"]],[28,[37,1],["sidebar.sections.categories.header_action_title"],null]]]]],null],"pencil-alt",[30,1]]],[["default"],[[[[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["sectionLinks","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"      "],[8,[39,8],[[16,"data-category-id",[30,2,["category","id"]]]],[["@route","@query","@title","@content","@currentWhen","@model","@badgeText","@prefixBadge","@prefixType","@prefixValue","@prefixColor","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["query"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["model"]],[30,2,["badgeText"]],[30,2,["prefixBadge"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null]],[]],null],[1,"\\n  "],[8,[39,9],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1,"    "],[8,[39,8],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-categories",[28,[37,1],["sidebar.sections.categories.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[37,3],null,[["filter"],["default_navigation_menu_categories"]]]]],null],[1,"\\n"]],[]],null]],[]]]]]],["@collapsable","sectionLink"],false,["sidebar/section","i18n","array","hash","if","gt","each","-track-array","sidebar/section-link","sidebar/common/all-categories-section-link"]]',moduleName:"discourse/components/sidebar/user/categories-section.hbs",isStrictMode:!1});var h,m,g,f,b,_,y=n(91649),w=n(31691);let v=(0,y.Z)(n(23183)).cached;const k="sidebar:refresh-categories-section-counts";let x=(h=(0,d.debounce)(300),m=class extends a.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",g,this),(0,r.Z)(this,"currentUser",f,this),(0,r.Z)(this,"modal",b,this),(0,r.Z)(this,"router",_,this),this.callbackId=this.topicTrackingState.onStateChange((()=>{this._refreshCounts()})),this.appEvents.on(k,this,this._refreshCounts)}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId),this.appEvents.off(k,this,this._refreshCounts)}_refreshCounts(){this.sectionLinks.forEach((e=>{e.refreshCounts()}))}get categories(){return this.currentUser.sidebarCategoryIds?.length>0?u.default.findByIds(this.currentUser.sidebarCategoryIds):this.topSiteCategories}get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarCategories}get hasDefaultSidebarCategories(){return(0,c.hasDefaultSidebarCategories)(this.siteSettings)}showModal(){this.modal.show(l.default)}},g=(0,i.Z)(m.prototype,"appEvents",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"modal",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(m.prototype,"router",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"_refreshCounts",[h],Object.getOwnPropertyDescriptor(m.prototype,"_refreshCounts"),m.prototype),(0,i.Z)(m.prototype,"categories",[v],Object.getOwnPropertyDescriptor(m.prototype,"categories"),m.prototype),(0,i.Z)(m.prototype,"showModal",[s.action],Object.getOwnPropertyDescriptor(m.prototype,"showModal"),m.prototype),m);(0,w.setComponentTemplate)(p,x)},80380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(54001),s=n(20884),o=n(3055),a=n(57555);let l=(r=class extends s.default{constructor(){super(...arguments),this.messageBus.subscribe("/refresh-sidebar-sections",this._refresh)}willDestroy(){this.messageBus.unsubscribe("/refresh-sidebar-sections")}_refresh(){return(0,o.ajax)("/sidebar_sections.json",{}).then((e=>{this.currentUser.set("sidebar_sections",e.sidebar_sections)}))}},(0,i.Z)(r.prototype,"_refresh",[a.bind],Object.getOwnPropertyDescriptor(r.prototype,"_refresh"),r.prototype),r)},79771:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GROUP_MESSAGES_INBOX_FILTERS:()=>S,INBOX:()=>w,NEW:()=>k,PERSONAL_MESSAGES_INBOX_FILTERS:()=>T,UNREAD:()=>v,default:()=>C});var r=n(94664),i=n(54001),s=n(82006),o=(n(23183),n(72326)),a=n(17579),l=n(44692),c=n(35201),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"Xi2UQra4",block:'[[[8,[39,0],null,[["@sectionName","@headerActionIcon","@headerActions","@headerActionsIcon","@headerLinkText","@collapsable"],["messages","plus",[28,[37,1],[[28,[37,2],null,[["action","title"],[[28,[37,3],[[28,[37,4],["composePrivateMessage"],null],null,null],null],[28,[37,5],["sidebar.sections.messages.header_action_title"],null]]]]],null],"plus",[28,[37,5],["sidebar.sections.messages.header_link_text"],null],[30,1]]],[["default"],[[[[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["personalMessagesSectionLinks"]]],null]],null],null,[[[41,[30,2,["shouldDisplay"]],[[[1,"      "],[8,[39,9],null,[["@linkName","@linkClass","@route","@model","@prefixType","@prefixValue","@currentWhen","@content"],[[30,2,["name"]],[30,2,["class"]],[30,2,["route"]],[30,2,["model"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["currentWhen"]],[30,2,["text"]]]],null],[1,"\\n"]],[]],null]],[2]],null],[1,"\\n"],[41,[28,[37,10],[[30,0,["groupMessagesSectionLinks","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["groupMessagesSectionLinks"]]],null]],null],null,[[[41,[30,3,["shouldDisplay"]],[[[1,"        "],[8,[39,9],null,[["@linkName","@linkClass","@route","@prefixType","@prefixValue","@models","@currentWhen","@content"],[[30,3,["name"]],[30,3,["class"]],[30,3,["route"]],[30,3,["prefixType"]],[30,3,["prefixValue"]],[30,3,["models"]],[30,3,["currentWhen"]],[30,3,["text"]]]],null],[1,"\\n"]],[]],null]],[3]],null]],[]],null]],[]]]]]],["@collapsable","personalMessageSectionLink","groupMessageSectionLink"],false,["sidebar/section","array","hash","fn","route-action","i18n","each","-track-array","if","sidebar/section-link","gt"]]',moduleName:"discourse/components/sidebar/user/messages-section.hbs",isStrictMode:!1});var p,h,m,g,f,b=n(91649),_=n(31691);let y=(0,b.Z)(n(23183)).cached;const w="inbox",v="unread",k="new",x="archive",T=[w,k,v,"sent",x],S=[w,k,v,x];let C=(p=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",h,this),(0,r.Z)(this,"pmTopicTrackingState",m,this),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"router",f,this),this.appEvents.on("page:changed",this,this._refreshSectionLinksDisplayState),this._pmTopicTrackingStateKey="messages-section",this.pmTopicTrackingState.onStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}_refreshSectionLinkCounts(){for(const e of this.allSectionLinks)e.refreshCount()}willDestroy(){super.willDestroy(...arguments),this.appEvents.off("page:changed",this,this._refreshSectionLinksDisplayState),this.pmTopicTrackingState.offStateChange(this._pmTopicTrackingStateKey,this._refreshSectionLinkCounts)}_refreshSectionLinksDisplayState(){const e=this.router.currentRoute.name,t=this.router.currentRoute.parent.name,n=this.router.currentRoute.parent.params;if(t.includes("userPrivateMessages")||"topic"===t){const r={currentRouteName:e,currentRouteParentParams:n};if("topic"===t){const e=(0,o.getOwner)(this).lookup("controller:topic");e.model.isPrivateMessage&&(r.privateMessageTopic=e.model)}for(const e of this.allSectionLinks)e.pageChanged(r)}else for(const e of this.allSectionLinks)e.collapse()}get personalMessagesSectionLinks(){const e=[];return T.forEach((t=>{e.push(new c.default({currentUser:this.currentUser,type:t,pmTopicTrackingState:this.pmTopicTrackingState}))})),e}get groupMessagesSectionLinks(){const e=[];return this.currentUser.groupsWithMessages.sort(((e,t)=>e.name.localeCompare(t.name))).forEach((t=>{S.forEach((n=>{e.push(new l.default({group:t,type:n,currentUser:this.currentUser,pmTopicTrackingState:this.pmTopicTrackingState}))}))})),e}get allSectionLinks(){return[...this.groupMessagesSectionLinks,...this.personalMessagesSectionLinks]}},h=(0,i.Z)(p.prototype,"appEvents",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,i.Z)(p.prototype,"pmTopicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,i.Z)(p.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(p.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(p.prototype,"_refreshSectionLinkCounts",[u.bind],Object.getOwnPropertyDescriptor(p.prototype,"_refreshSectionLinkCounts"),p.prototype),(0,i.Z)(p.prototype,"personalMessagesSectionLinks",[y],Object.getOwnPropertyDescriptor(p.prototype,"personalMessagesSectionLinks"),p.prototype),(0,i.Z)(p.prototype,"groupMessagesSectionLinks",[y],Object.getOwnPropertyDescriptor(p.prototype,"groupMessagesSectionLinks"),p.prototype),p);(0,_.setComponentTemplate)(d,C)},1509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"Cp86GXea",block:'[[[10,0],[14,0,"sidebar-sections"],[12],[1,"\\n  "],[8,[39,0],null,[["@collapsable"],[[30,1]]],null],[1,"\\n  "],[8,[39,1],null,[["@collapsable"],[[30,1]]],null],[1,"\\n\\n"],[41,[30,0,["currentUser","display_sidebar_tags"]],[[[1,"    "],[8,[39,3],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["enableMessagesSection"]],[[[1,"    "],[8,[39,4],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,5],null,[["@collapsable"],[[30,1]]],null],[1,"\\n"],[13]],["@collapsableSections"],false,["sidebar/user/custom-sections","sidebar/user/categories-section","if","sidebar/user/tags-section","sidebar/user/messages-section","sidebar/api-sections"]]',moduleName:"discourse/components/sidebar/user/sections.hbs",isStrictMode:!1});var l,c,u,d,p=n(31691);let h=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",c,this),(0,r.Z)(this,"currentUser",u,this),(0,r.Z)(this,"site",d,this)}get enableMessagesSection(){return this.currentUser?.can_send_private_messages}},c=(0,i.Z)(l.prototype,"siteSettings",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,i.Z)(l.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,i.Z)(l.prototype,"site",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,p.setComponentTemplate)(a,h)},83875:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(94664),i=n(54001),s=n(82006),o=(n(23183),n(48163)),a=n(17579),l=n(16080),c=n(61766),u=n(2616),d=n(75965),p=n(91649);const h=(0,n(8620).createTemplateFactory)({id:"qG53i+PS",block:'[[[8,[39,0],null,[["@sectionName","@headerLinkText","@headerActions","@headerActionsIcon","@collapsable"],["tags",[28,[37,1],["sidebar.sections.tags.header_link_text"],null],[28,[37,2],[[28,[37,3],null,[["action","title"],[[30,0,["showModal"]],[28,[37,1],["sidebar.sections.tags.header_action_title"],null]]]]],null],"pencil-alt",[30,1]]],[["default"],[[[[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["sectionLinks","length"]],0],null],[[[42,[28,[37,7],[[28,[37,7],[[30,0,["sectionLinks"]]],null]],null],null,[[[1,"      "],[8,[39,8],[[16,"data-tag-name",[30,2,["tagName"]]]],[["@route","@title","@content","@currentWhen","@prefixType","@prefixValue","@prefixColor","@badgeText","@models","@suffixCSSClass","@suffixValue","@suffixType"],[[30,2,["route"]],[30,2,["title"]],[30,2,["text"]],[30,2,["currentWhen"]],[30,2,["prefixType"]],[30,2,["prefixValue"]],[30,2,["prefixColor"]],[30,2,["badgeText"]],[30,2,["models"]],[30,2,["suffixCSSClass"]],[30,2,["suffixValue"]],[30,2,["suffixType"]]]],null],[1,"\\n"]],[2]],null]],[]],null],[1,"\\n  "],[8,[39,9],null,null,null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDefaultConfig"]],[[[1,"    "],[8,[39,8],null,[["@linkName","@content","@prefixType","@prefixValue","@route","@model","@query"],["configure-default-navigation-menu-tags",[28,[37,1],["sidebar.sections.tags.configure_defaults"],null],"icon","wrench","adminSiteSettingsCategory","sidebar",[28,[37,3],null,[["filter"],["default_navigation_menu_tags"]]]]],null],[1,"\\n"]],[]],null]],[]]]]]],["@collapsable","sectionLink"],false,["sidebar/section","i18n","array","hash","if","gt","each","-track-array","sidebar/section-link","sidebar/common/all-tags-section-link"]]',moduleName:"discourse/components/sidebar/user/tags-section.hbs",isStrictMode:!1});var m,g,f,b,_,y,w,v,k=n(31691);let x=(0,p.Z)(n(23183)).cached,T=(m=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"modal",f,this),(0,r.Z)(this,"pmTopicTrackingState",b,this),(0,r.Z)(this,"router",_,this),(0,r.Z)(this,"site",y,this),(0,r.Z)(this,"siteSettings",w,this),(0,r.Z)(this,"topicTrackingState",v,this),this.callbackId=this.topicTrackingState.onStateChange((()=>{this.sectionLinks.forEach((e=>{e.refreshCounts&&e.refreshCounts()}))}))}willDestroy(){super.willDestroy(...arguments),this.topicTrackingState.offStateChange(this.callbackId)}get sectionLinks(){const e=[];let t;t=this.currentUser.sidebarTags.length>0?this.currentUser.sidebarTags:this.site.navigation_menu_site_top_tags||[];for(const n of t)n.pm_only?e.push(new u.default({tag:n,currentUser:this.currentUser})):e.push(new d.default({tag:n,topicTrackingState:this.topicTrackingState,currentUser:this.currentUser}));return e}get shouldDisplayDefaultConfig(){return this.currentUser.admin&&!this.hasDefaultSidebarTags}get hasDefaultSidebarTags(){return(0,c.hasDefaultSidebarTags)(this.siteSettings)}showModal(){this.modal.show(l.default)}},g=(0,i.Z)(m.prototype,"currentUser",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.Z)(m.prototype,"modal",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,i.Z)(m.prototype,"pmTopicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,i.Z)(m.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,i.Z)(m.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,i.Z)(m.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,i.Z)(m.prototype,"topicTrackingState",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(m.prototype,"sectionLinks",[x],Object.getOwnPropertyDescriptor(m.prototype,"sectionLinks"),m.prototype),(0,i.Z)(m.prototype,"showModal",[o.action],Object.getOwnPropertyDescriptor(m.prototype,"showModal"),m.prototype),m);(0,k.setComponentTemplate)(h,T)},99375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(40375),l=n(12933);const c=(0,n(8620).createTemplateFactory)({id:"lEqV6T74",block:'[[[10,0],[14,0,"signup-cta alert alert-info"],[12],[1,"\\n"],[41,[30,0,["session","hideSignupCta"]],[[[1,"    "],[10,"h3"],[12],[1,"\\n      "],[1,[28,[35,1],["signup_cta.hidden_for_session"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[10,"h3"],[12],[1,[28,[35,2],[[28,[37,1],["signup_cta.intro"],null]],null]],[13],[1,"\\n    "],[10,2],[12],[1,[28,[35,2],[[28,[37,1],["signup_cta.value_prop"],null]],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"buttons"],[12],[1,"\\n      "],[8,[39,3],[[24,0,"btn-primary"]],[["@action","@label","@icon"],[[28,[37,4],["showCreateAccount"],null],"signup_cta.sign_up","user"]],null],[1,"\\n      "],[8,[39,3],[[24,0,"no-icon"]],[["@action","@label"],[[28,[37,5],[[30,0],"hideForSession"],null],"signup_cta.hide_session"]],null],[1,"\\n      "],[11,3],[24,6,""],[4,[38,6],["click",[30,0,["neverShow"]]],null],[12],[1,[28,[35,1],["signup_cta.hide_forever"],null]],[13],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],[],false,["if","i18n","replace-emoji","d-button","route-action","action","on"]]',moduleName:"discourse/components/signup-cta.hbs",isStrictMode:!1});var u;const d=(0,i.setComponentTemplate)(c,s().extend((u={action:"showCreateAccount",neverShow(e){e?.preventDefault(),this.keyValueStore.setItem("anon-cta-never","t"),this.session.set("showSignupCta",!1)},actions:{hideForSession(){this.session.set("hideSignupCta",!0),this.keyValueStore.setItem("anon-cta-hidden",Date.now()),(0,l.default)((()=>this.session.set("showSignupCta",!1)),2e4)}},_turnOffIfHidden:(0,a.on)("willDestroyElement",(function(){this.session.get("hideSignupCta")&&this.session.set("showSignupCta",!1)}))},(0,r.Z)(u,"neverShow",[o.action],Object.getOwnPropertyDescriptor(u,"neverShow"),u),u)))},87842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x,forceDropdownForMenuPanels:()=>k});var r,i,s,o,a=n(54001),l=n(51372),c=n(22902),u=n(54712),d=n.n(u),p=n(17238),h=n(90793),m=n(49886),g=n(13473),f=n(21101),b=n(44821),_=n(34405),y=n(12933),w=n(57555);let v=[];function k(e){return"string"==typeof e&&(e=[e]),v.push(...e)}const x=p.default.extend(f.default,b.default,(r=(0,w.observes)("currentUser.unread_notifications","currentUser.unread_high_priority_notifications","currentUser.all_unread_notifications_count","currentUser.reviewable_count","currentUser.unseen_reviewable_count","session.defaultColorSchemeIsDark","session.darkModeAvailable"),i=(0,w.observes)("site.narrowDesktopView"),s={widget:"header",docAt:null,dockedHeader:null,_animate:!1,_swipeMenuOrigin:"right",_topic:null,_itsatrap:null,_applicationElement:null,_PANEL_WIDTH:340,_swipeEvents:null,notificationsChanged(){this.queueRerender()},narrowDesktopViewChanged(){this.eventDispatched("dom:clean","header"),this._dropDownHeaderEnabled()&&this.appEvents.on("sidebar-hamburger-dropdown:rendered",this,"_animateMenu")},_animateOpening(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=document.querySelector(".header-cloak");let r=this._swipeEvents.getMaxAnimationTimeMs();t&&this.pxClosed>0&&(r=this._swipeEvents.getMaxAnimationTimeMs(this.pxClosed/Math.abs(t.velocityX)));const i={duration:r,fill:"forwards",easing:"ease-out"};e.animate([{transform:"translate3d(0, 0, 0)"}],i),n.animate([{opacity:1}],i),this.pxClosed=null},_animateClosing(e,t,n){this._animate=!0;const r=document.querySelector(".header-cloak");let i=this._swipeEvents.getMaxAnimationTimeMs();if(e&&this.pxClosed>0){const t=this._PANEL_WIDTH-this.pxClosed;i=this._swipeEvents.getMaxAnimationTimeMs(t/Math.abs(e.velocityX))}const s={duration:i,fill:"forwards"};let o=-this._PANEL_WIDTH;"right"===n&&(o=this._PANEL_WIDTH),t.animate([{transform:`translate3d(${o}px, 0, 0)`}],s).finished.then((()=>{(0,l.schedule)("afterRender",(()=>{this.eventDispatched("dom:clean","header")}))})),r.animate([{opacity:0}],s),this.pxClosed=null},_isRTL:()=>"rtl"===document.querySelector("html").classList.direction,_leftMenuClass(){return this._isRTL()?"user-menu":"hamburger-panel"},onSwipeStart(e){const t=e.detail,n=t.center;!document.elementsFromPoint(n.x,n.y).some((e=>e.classList.contains("panel-body")||e.classList.contains("header-cloak")))||"left"!==t.direction&&"right"!==t.direction?e.preventDefault():(this.movingElement=document.querySelector(".menu-panel"),this.cloakElement=document.querySelector(".header-cloak"),(0,m.default)(!0,document.querySelector(".panel-body")))},onSwipeEnd(e){const t=e.detail,n=document.querySelectorAll(".menu-panel"),r=this._swipeMenuOrigin;(0,m.default)(!1,document.querySelector(".panel-body")),n.forEach((e=>{this._swipeEvents.shouldCloseMenu(t,r)?this._animateClosing(t,e,r):this._animateOpening(e,t)}))},onSwipeCancel(){const e=document.querySelectorAll(".menu-panel");(0,m.default)(!1,document.querySelector(".panel-body")),e.forEach((e=>{this._animateOpening(e)}))},onSwipe(e){const t=e.detail,n=this.movingElement,r=this.cloakElement;this.pxClosed=Math.max(0,-t.deltaX);let i=-this.pxClosed;"right"===this._swipeMenuOrigin&&(this.pxClosed=Math.max(0,t.deltaX),i=this.pxClosed),n.animate([{transform:`translate3d(${i}px, 0, 0)`}],{fill:"forwards"}),r.animate([{opacity:(this._PANEL_WIDTH-this.pxClosed)/this._PANEL_WIDTH}],{fill:"forwards"})},dockCheck(){const e=this.header;if(null===this.docAt){if(!e)return;this.docAt=e.offsetTop}const t=this._applicationElement??=document.querySelector(".ember-application"),n=t?t.offsetTop:0;window.pageYOffset-n>=this.docAt?this.dockedHeader||(document.body.classList.add("docked"),this.dockedHeader=!0):this.dockedHeader&&(document.body.classList.remove("docked"),this.dockedHeader=!1)},setTopic(e){this.eventDispatched("dom:clean","header"),this._topic=e,this.queueRerender()},willRender(){this._super(...arguments),this.get("currentUser.staff")&&document.body.classList.add("staff")},didInsertElement(){this._super(...arguments),this._resizeDiscourseMenuPanel=()=>this.afterRender(),window.addEventListener("resize",this._resizeDiscourseMenuPanel),this.appEvents.on("header:show-topic",this,"setTopic"),this.appEvents.on("header:hide-topic",this,"setTopic"),this.appEvents.on("user-menu:rendered",this,"_animateMenu"),this._dropDownHeaderEnabled()&&this.appEvents.on("sidebar-hamburger-dropdown:rendered",this,"_animateMenu"),this.dispatch("notifications:changed","user-notifications"),this.dispatch("header:keyboard-trigger","header"),this.dispatch("user-menu:navigation","user-menu"),this.appEvents.on("dom:clean",this,"_cleanDom"),this.currentUser&&this.currentUser.on("status-changed",this,"queueRerender");const e=document.querySelector("header.d-header");this._itsatrap=new(d())(e),this._itsatrap.bind(["up","down"],(e=>this._handleArrowKeysNav(e)))},_handleArrowKeysNav(e){const t=document.querySelector(".menu-tabs-container .btn.active");if(t){let n=Number(document.activeElement.dataset.tabNumber||t.dataset.tabNumber);const r=document.querySelectorAll(".menu-tabs-container .btn").length-1,i="ArrowDown"===e.key;let s=i?n+1:n-1;i&&s>r&&(s=0),!i&&s<0&&(s=r),e.preventDefault(),document.querySelector(`.menu-tabs-container .btn[data-tab-number='${s}']`).focus()}},_cleanDom(){this.element.querySelector(".menu-panel")&&this.eventDispatched("dom:clean","header")},willDestroyElement(){this._super(...arguments),window.removeEventListener("resize",this._resizeDiscourseMenuPanel),this.appEvents.off("header:show-topic",this,"setTopic"),this.appEvents.off("header:hide-topic",this,"setTopic"),this.appEvents.off("dom:clean",this,"_cleanDom"),this.appEvents.off("user-menu:rendered",this,"_animateMenu"),this._dropDownHeaderEnabled()&&this.appEvents.off("sidebar-hamburger-dropdown:rendered",this,"_animateMenu"),this.currentUser&&this.currentUser.off("status-changed",this,"queueRerender"),this._itsatrap?.destroy(),this._itsatrap=null},buildArgs(){return{topic:this._topic,canSignUp:this.canSignUp,sidebarEnabled:this.sidebarEnabled,showSidebar:this.showSidebar,navigationMenuQueryParamOverride:this.navigationMenuQueryParamOverride}},afterRender(){const e=document.querySelector(".header-title .topic-link");e&&this._topic&&h.topicTitleDecorators.forEach((t=>t(this._topic,e,"header-title"))),this._animateMenu()},_animateMenu(){const e=document.querySelectorAll(".menu-panel");if(0===e.length)return void(this._animate=this.site.mobileView||this.site.narrowDesktopView);let t=this.site.mobileView||this.site.narrowDesktopView?"slide-in":"drop-down";e.forEach((e=>{(function(e){if(!v)return!1;for(let t of v)if(e.classList.contains(t))return!0;return!1})(e)&&(t="drop-down",this._animate=!1);const n=document.querySelector(".header-cloak");if(e.classList.remove("drop-down"),e.classList.remove("slide-in"),e.classList.add(t),this._animate){let t=null,r=this._PANEL_WIDTH;this._swipeMenuOrigin="right",(this.site.mobileView||this.site.narrowDesktopView)&&e.parentElement.classList.contains(this._leftMenuClass())&&(this._swipeMenuOrigin="left",r=-this._PANEL_WIDTH),t=e.animate([{transform:`translate3d(${r}px, 0, 0)`}],{fill:"forwards"}).finished,(0,_.isTesting)()&&(0,c.waitForPromise)(t),n.animate([{opacity:0}],{fill:"forwards"}),n.style.display="block",t.then((()=>{(0,_.isTesting)()?this._animateOpening(e):(0,y.default)((()=>this._animateOpening(e)))}))}this._animate=!1}))},_dropDownHeaderEnabled(){return!this.sidebarEnabled||this.site.narrowDesktopView}},(0,a.Z)(s,"notificationsChanged",[r],Object.getOwnPropertyDescriptor(s,"notificationsChanged"),s),(0,a.Z)(s,"narrowDesktopViewChanged",[i],Object.getOwnPropertyDescriptor(s,"narrowDesktopViewChanged"),s),(0,a.Z)(s,"onSwipeStart",[w.bind],Object.getOwnPropertyDescriptor(s,"onSwipeStart"),s),(0,a.Z)(s,"onSwipeEnd",[w.bind],Object.getOwnPropertyDescriptor(s,"onSwipeEnd"),s),(0,a.Z)(s,"onSwipeCancel",[w.bind],Object.getOwnPropertyDescriptor(s,"onSwipeCancel"),s),(0,a.Z)(s,"onSwipe",[w.bind],Object.getOwnPropertyDescriptor(s,"onSwipe"),s),s)).extend((o={classNames:["d-header-wrap"],classNameBindings:["site.mobileView::drop-down-mode"],headerWrap:null,header:null,init(){this._super(...arguments),this._resizeObserver=null},updateHeaderOffset(){const e=Math.min(0,window.scrollY);let t=Math.max(0,Math.floor(this.headerWrap.getBoundingClientRect().top))+e;const n=document.documentElement.style,r=parseInt(n.getPropertyValue("--header-offset"),10)||0,i=this.headerWrap.offsetHeight+t;r!==i&&n.setProperty("--header-offset",`${i}px`)},onScroll(){(0,l.schedule)("afterRender",this.updateHeaderOffset)},didInsertElement(){this._super(...arguments),this.appEvents.on("site-header:force-refresh",this,"queueRerender"),this.headerWrap=document.querySelector(".d-header-wrap"),this.headerWrap&&((0,l.schedule)("afterRender",(()=>{this.header=this.headerWrap.querySelector("header.d-header"),this.updateHeaderOffset();const e=this.header.offsetTop;document.documentElement.style.setProperty("--header-top",`${e}px`)})),window.addEventListener("scroll",this.onScroll,{passive:!0})),this._resizeObserver=new ResizeObserver((e=>{for(let t of e)if(t.contentRect){const e=this.header?.offsetTop;document.documentElement.style.setProperty("--header-top",`${e}px`),this.updateHeaderOffset()}})),this._resizeObserver.observe(this.headerWrap),this._swipeEvents=new g.default(this.element),this.site.mobileView&&(this._swipeEvents.addTouchListeners(),this.element.addEventListener("swipestart",this.onSwipeStart),this.element.addEventListener("swipeend",this.onSwipeEnd),this.element.addEventListener("swipecancel",this.onSwipeCancel),this.element.addEventListener("swipe",this.onSwipe))},willDestroyElement(){this._super(...arguments),window.removeEventListener("scroll",this.onScroll),this._resizeObserver?.disconnect(),this.appEvents.off("site-header:force-refresh",this,"queueRerender"),this.site.mobileView&&(this.element.removeEventListener("swipestart",this.onSwipeStart),this.element.removeEventListener("swipeend",this.onSwipeEnd),this.element.removeEventListener("swipecancel",this.onSwipeCancel),this.element.removeEventListener("swipe",this.onSwipe),this._swipeEvents.removeTouchListeners())}},(0,a.Z)(o,"updateHeaderOffset",[w.bind],Object.getOwnPropertyDescriptor(o,"updateHeaderOffset"),o),(0,a.Z)(o,"onScroll",[w.bind],Object.getOwnPropertyDescriptor(o,"onScroll"),o),o))},95631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(85947),l=n(38864),c=n(92635),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"1801cP72",block:'[[[41,[30,0,["showSlowModeNotice"]],[[[1,"  "],[10,0],[14,0,"topic-status-info"],[12],[1,"\\n    "],[10,"h3"],[14,0,"slow-mode-heading"],[12],[1,"\\n      "],[10,1],[12],[1,"\\n        "],[1,[28,[35,1],["hourglass-start"],null]],[1,"\\n        "],[1,[28,[35,2],["topic.slow_mode_notice.duration"],[["duration"],[[30,0,["durationText"]]]]]],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["user","canManageTopic"]],[[[1,"        "],[8,[39,3],[[24,0,"slow-mode-remove"]],[["@action","@icon"],[[30,0,["disableSlowMode"]],"trash-alt"]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon","i18n","d-button"]]',moduleName:"discourse/components/slow-mode-info.hbs",isStrictMode:!1});var p,h,m;const g=(0,i.setComponentTemplate)(d,s().extend((p=(0,u.default)("topic.slow_mode_seconds"),h=(0,u.default)("topic.slow_mode_seconds","topic.closed"),m={durationText:e=>(0,a.durationTextFromSeconds)(e),showSlowModeNotice:(e,t)=>e>0&&!t,disableSlowMode(){c.default.setSlowMode(this.topic.id,0).catch(l.popupAjaxError).then((()=>this.set("topic.slow_mode_seconds",0)))}},(0,r.Z)(m,"durationText",[p],Object.getOwnPropertyDescriptor(m,"durationText"),m),(0,r.Z)(m,"showSlowModeNotice",[h],Object.getOwnPropertyDescriptor(m,"showSlowModeNotice"),m),(0,r.Z)(m,"disableSlowMode",[o.action],Object.getOwnPropertyDescriptor(m,"disableSlowMode"),m),m)))},88228:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(51372),l=n(34405),c=n(47582),u=n(12933),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"Sh7MsQp1",block:'[[[41,[30,0,["showPrompt"]],[[[1,"  "],[10,0],[15,0,[29,["software-update-prompt",[52,[30,0,["animatePrompt"]]," require-software-refresh"]]]],[12],[1,"\\n    "],[10,0],[14,0,"wrap"],[12],[1,"\\n      "],[10,0],[14,0,"update-prompt-main-content"],[14,"aria-live","polite"],[12],[1,"\\n        "],[10,1],[14,"role","button"],[15,"onclick",[28,[37,1],[[30,0],"refreshPage"],null]],[14,0,"update-prompt-message"],[12],[1,[28,[35,2],["redo"],null]],[1,"\\n          "],[1,[28,[35,3],[[28,[37,4],["software_update_prompt.message"],null]],null]],[13],[1,"\\n        "],[10,1],[14,0,"update-prompt-dismiss"],[12],[10,1],[15,"aria-label",[28,[37,4],["software_update_prompt.dismiss"],null]],[14,"role","button"],[15,"onclick",[28,[37,1],[[30,0],"dismiss"],null]],[12],[1,[28,[35,2],["times"],null]],[13],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","action","d-icon","html-safe","i18n"]]',moduleName:"discourse/components/software-update-prompt.hbs",isStrictMode:!1});var h,m;const g=(0,i.setComponentTemplate)(p,s().extend((h=(0,d.on)("willDestroyElement"),m={tagName:"",showPrompt:!1,animatePrompt:!1,_timeoutHandler:null,init(){this._super(...arguments),this.messageBus.subscribe("/refresh_client",this.onRefresh),this.messageBus.subscribe("/global/asset-version",this.onAsset)},willDestroy(){this._super(...arguments),this.messageBus.unsubscribe("/refresh_client",this.onRefresh),this.messageBus.unsubscribe("/global/asset-version",this.onAsset)},onRefresh(){this.session.requiresRefresh=!0},onAsset(e){this.session.assetVersion!==e&&(this.session.requiresRefresh=!0),!this._timeoutHandler&&this.session.requiresRefresh&&((0,l.isTesting)()?this.updatePromptState(!0):this._timeoutHandler=(0,u.default)((()=>{this.updatePromptState(!0)}),864e5))},rootUrl:()=>(0,c.default)("/"),updatePromptState(e){const t=e?"showPrompt":"animatePrompt",n=e?"animatePrompt":"showPrompt";this.set(t,e),(0,l.isTesting)()?this.set(n,e):(0,u.default)((()=>{this.set(n,e)}),500)},refreshPage(){document.location.reload()},dismiss(){this.updatePromptState(!1)},_resetTimeoutHandler(){this._timeoutHandler&&(0,a.cancel)(this._timeoutHandler),this._timeoutHandler=null}},(0,r.Z)(m,"onRefresh",[d.bind],Object.getOwnPropertyDescriptor(m,"onRefresh"),m),(0,r.Z)(m,"onAsset",[d.bind],Object.getOwnPropertyDescriptor(m,"onAsset"),m),(0,r.Z)(m,"rootUrl",[d.default],Object.getOwnPropertyDescriptor(m,"rootUrl"),m),(0,r.Z)(m,"refreshPage",[o.action],Object.getOwnPropertyDescriptor(m,"refreshPage"),m),(0,r.Z)(m,"dismiss",[o.action],Object.getOwnPropertyDescriptor(m,"dismiss"),m),(0,r.Z)(m,"_resetTimeoutHandler",[h],Object.getOwnPropertyDescriptor(m,"_resetTimeoutHandler"),m),m)))},78463:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(347);const i=(0,n(8620).createTemplateFactory)({id:"7m6NDasE",block:'[[[41,[51,[30,0,["isMuted"]]],[[[1,"  "],[10,1],[14,0,"subcategory"],[12],[1,"\\n    "],[8,[39,1],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n    "],[1,[28,[35,2],[[30,0,["category"]]],[["hideParent"],["true"]]]],[1,"\\n"],[41,[51,[30,0,["hideUnread"]]],[[[1,"      "],[8,[39,3],null,[["@category","@unreadTopicsCount","@newTopicsCount"],[[30,0,["category"]],[30,0,["unreadTopicsCount"]],[30,0,["newTopicsCount"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["unless","category-title-before","category-link","category-unread"]]',moduleName:"discourse/components/sub-category-item.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({}))},98465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(347);const i=(0,n(8620).createTemplateFactory)({id:"FP2Xp8A6",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"  "],[10,"tr"],[15,"data-category-id",[30,0,["category","id"]]],[15,"data-notification-level",[30,0,["category","notificationLevelString"]]],[15,0,[29,[[52,[30,0,["category","description_excerpt"]],"has-description","no-description"],"\\n      ",[52,[30,0,["category","uploaded_logo","url"]],"has-logo","no-logo"]]]],[12],[1,"\\n    "],[10,"td"],[15,0,[29,["category ",[52,[30,0,["isMuted"]],"muted"]]]],[15,5,[28,[37,2],[[30,0,["category","color"]]],null]],[12],[1,"\\n      "],[8,[39,3],null,[["@tagName","@category"],["h4",[30,0,["category"]]]],null],[1,"\\n"],[41,[30,0,["category","description_excerpt"]],[[[1,"        "],[10,0],[14,0,"category-description subcategory-description"],[12],[1,"\\n          "],[1,[28,[35,4],[[30,0,["category","description_excerpt"]]],[["htmlSafe"],["true"]]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["category","subcategories"]],[[[1,"        "],[10,0],[14,0,"subcategories"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["category","subcategories"]]],null]],null],null,[[[1,"            "],[8,[39,7],null,[["@category","@hideUnread","@listType"],[[30,1],"true",[30,0,["listType"]]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["subsubcategory"],false,["unless","if","border-color","category-title-link","dir-span","each","-track-array","sub-category-item"]]',moduleName:"discourse/components/sub-category-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({}))},53793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"MHVOjDO9",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["categories"]]],null]],null],null,[[[1,"  "],[10,"table"],[14,0,"category-list subcategory-list with-topics"],[12],[1,"\\n    "],[10,"thead"],[12],[1,"\\n      "],[10,"tr"],[12],[1,"\\n        "],[10,"th"],[14,0,"parent-category"],[12],[1,"\\n          "],[8,[39,2],null,[["@category"],[[30,1]]],null],[1,"\\n          "],[10,1],[14,0,"stat"],[15,"title",[30,1,["statTitle"]]],[12],[1,[28,[35,3],[[30,1,["stat"]]],null]],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"th"],[14,0,"topics"],[12],[1,[28,[35,4],["categories.topics"],null]],[13],[1,"\\n        "],[10,"th"],[14,0,"latest"],[12],[1,[28,[35,4],["categories.latest"],null]],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,"tbody"],[14,"aria-labelledby","categories-only-category"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1,["subcategories"]]],null]],null],null,[[[1,"        "],[8,[39,5],null,[["@category","@showTopics"],[[30,2],true]],null],[1,"\\n"]],[2]],[[[1,"        "],[8,[39,5],null,[["@category","@showTopics"],[[30,1],true]],null],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[1]],null]],["category","subCategory"],false,["each","-track-array","category-title-link","html-safe","i18n","parent-category-row"]]',moduleName:"discourse/components/subcategories-with-featured-topics.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},75562:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(48163),l=n(17579),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"4zv3Wk5N",block:'[[[11,0],[24,1,"suggested-topics"],[16,0,[29,["more-topics__list ",[52,[30,0,["hidden"]],"hidden"]]]],[24,"role","complementary"],[24,"aria-labelledby","suggested-topics-title"],[4,[38,1],[[30,0,["registerList"]]],null],[4,[38,2],[[30,0,["removeList"]]],null],[12],[1,"\\n"],[41,[51,[30,0,["hidden"]]],[[[1,"    "],[8,[39,4],null,[["@id","@titleText","@contentText","@placement"],["suggested_topics",[28,[37,5],["user_tips.suggested_topics.title"],null],[28,[37,5],["user_tips.suggested_topics.content"],null],"top-start"]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"h3"],[14,1,"suggested-topics-title"],[14,0,"more-topics__list-title"],[12],[1,"\\n    "],[1,[28,[35,5],[[30,0,["suggestedTitleLabel"]]],null]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"topics"],[12],[1,"\\n"],[41,[30,1,["isPrivateMessage"]],[[[1,"      "],[8,[39,6],null,[["@hideCategory","@showPosters","@topics"],["true","true",[30,1,["suggestedTopics"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,6],null,[["@topics"],[[30,1,["suggestedTopics"]]]],null],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n"],[13]],["@topic"],false,["if","did-insert","will-destroy","unless","user-tip","i18n","basic-topic-list"]]',moduleName:"discourse/components/suggested-topics.hbs",isStrictMode:!1});var d,p,h,m,g=n(31691);let f=(d=(0,a.computed)("moreTopicsPreferenceTracking.selectedTab"),p=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"moreTopicsPreferenceTracking",h,this),(0,r.Z)(this,"currentUser",m,this),(0,i.Z)(this,"listId","suggested-topics")}get suggestedTitleLabel(){const e=this.currentUser&&this.currentUser.pmPath(this.args.topic);return this.args.topic.isPrivateMessage&&e?"suggested_topics.pm_title":"suggested_topics.title"}get hidden(){return this.moreTopicsPreferenceTracking.selectedTab!==this.listId}registerList(){this.moreTopicsPreferenceTracking.registerTopicList({name:c.default.t("suggested_topics.pill"),id:this.listId})}removeList(){this.moreTopicsPreferenceTracking.removeTopicList(this.listId)}},h=(0,s.Z)(p.prototype,"moreTopicsPreferenceTracking",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,s.Z)(p.prototype,"currentUser",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(p.prototype,"hidden",[d],Object.getOwnPropertyDescriptor(p.prototype,"hidden"),p.prototype),(0,s.Z)(p.prototype,"registerList",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"registerList"),p.prototype),(0,s.Z)(p.prototype,"removeList",[a.action],Object.getOwnPropertyDescriptor(p.prototype,"removeList"),p.prototype),p);(0,g.setComponentTemplate)(u,f)},1609:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(94664),i=n(54001),s=n(82006),o=n(48163),a=n(17579),l=n(82099);const c=(0,n(8620).createTemplateFactory)({id:"zSmVewOQ",block:'[[[10,0],[14,0,"summary-box__container"],[12],[1,"\\n"],[41,[30,1,["hasTopRepliesSummary"]],[[[1,"    "],[10,2],[12],[1,[28,[35,1],[[30,0,["topRepliesSummaryInfo"]]],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"summarization-buttons"],[12],[1,"\\n"],[41,[30,1,["summarizable"]],[[[41,[30,0,["summary","showSummaryBox"]],[[[1,"        "],[8,[39,2],[[24,0,"btn-primary topic-strategy-summarization"]],[["@action","@title","@label","@icon"],[[30,0,["collapseSummary"]],"summary.buttons.hide","summary.buttons.hide","chevron-up"]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[39,2],[[24,0,"btn-primary topic-strategy-summarization"]],[["@action","@translatedLabel","@translatedTitle","@icon","@disabled"],[[30,0,["generateSummary"]],[30,0,["generateSummaryTitle"]],[30,0,["generateSummaryTitle"]],[30,0,["generateSummaryIcon"]],[30,0,["summary","loading"]]]],null],[1,"\\n"]],[]]]],[]],null],[1,"\\n"],[41,[30,1,["hasTopRepliesSummary"]],[[[1,"      "],[8,[39,2],[[24,0,"top-replies"]],[["@action","@translatedTitle","@translatedLabel","@icon"],[[30,0,["toggleTopRepliesFilter"]],[30,0,["topRepliesTitle"]],[30,0,["topRepliesLabel"]],[30,0,["topRepliesIcon"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["summary","showSummaryBox"]],[[[1,"    "],[10,"article"],[14,0,"summary-box"],[12],[1,"\\n"],[41,[28,[37,3],[[30,0,["summary","loading"]],[28,[37,4],[[30,0,["summary","text"]]],null]],null],[[[1,"        "],[8,[39,5],null,null,null],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"generated-summary"],[12],[1,[30,0,["summary","text"]]],[13],[1,"\\n\\n"],[41,[30,0,["summary","summarizedOn"]],[[[1,"          "],[10,0],[14,0,"summarized-on"],[12],[1,"\\n            "],[10,2],[12],[1,"\\n              "],[1,[28,[35,6],["summary.summarized_on"],[["date"],[[30,0,["summary","summarizedOn"]]]]]],[1,"\\n\\n              "],[8,[39,7],null,[["@placements"],[[28,[37,8],["top-end"],null]]],[["trigger","content"],[[[[1,"\\n                  "],[1,[28,[35,9],["info-circle"],null]],[1,"\\n                "]],[]],[[[1,"\\n                  "],[1,[28,[35,6],["summary.model_used"],[["model"],[[30,0,["summary","summarizedBy"]]]]]],[1,"\\n                "]],[]]]]],[1,"\\n            "],[13],[1,"\\n\\n"],[41,[30,0,["summary","outdated"]],[[[1,"              "],[10,2],[14,0,"outdated-summary"],[12],[1,"\\n                "],[1,[30,0,["outdatedSummaryWarningText"]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],null]],[]]],[1,"    "],[13],[1,"\\n"]],[]],null],[13]],["@postAttrs"],false,["if","html-safe","d-button","and","not","ai-summary-skeleton","i18n","d-tooltip","array","d-icon"]]',moduleName:"discourse/components/summary-box.hbs",isStrictMode:!1});var u,d,p=n(31691);let h=(u=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",d,this)}get summary(){return this.args.postAttrs.summary}get generateSummaryTitle(){const e=this.summary.canRegenerate?"summary.buttons.regenerate":"summary.buttons.generate";return l.default.t(e)}get generateSummaryIcon(){return this.summary.canRegenerate?"sync":"discourse-sparkles"}get outdatedSummaryWarningText(){let e=l.default.t("summary.outdated");return!this.args.postAttrs.hasTopRepliesSummary&&this.summary.newPostsSinceSummary>0&&(e+=" ",e+=l.default.t("summary.outdated_posts",{count:this.summary.newPostsSinceSummary})),e}get topRepliesSummaryEnabled(){return this.args.postAttrs.topicSummaryEnabled}get topRepliesSummaryInfo(){if(this.args.postAttrs.topicSummaryEnabled)return l.default.t("summary.enabled_description");const e=this.args.postAttrs.topicWordCount;if(e&&this.siteSettings.read_time_word_count>0){const t=Math.ceil(Math.max(e/this.siteSettings.read_time_word_count,4*this.args.postAttrs.topicPostsCount/60));return l.default.messageFormat("summary.description_time_MF",{replyCount:this.args.postAttrs.topicReplyCount,readingTime:t})}return l.default.t("summary.description",{count:this.args.postAttrs.topicReplyCount})}get topRepliesTitle(){if(!this.topRepliesSummaryEnabled)return l.default.t("summary.short_title")}get topRepliesLabel(){const e=this.topRepliesSummaryEnabled?"summary.disable":"summary.enable";return l.default.t(e)}get topRepliesIcon(){if(!this.topRepliesSummaryEnabled)return"layer-group"}toggleTopRepliesFilter(){const e=this.topRepliesSummaryEnabled?"cancelFilter":"showTopReplies";this.args.actionDispatchFunc(e)}collapseSummary(){this.args.actionDispatchFunc("collapseSummary")}generateSummary(){this.args.actionDispatchFunc("showSummary")}},d=(0,i.Z)(u.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(u.prototype,"toggleTopRepliesFilter",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"toggleTopRepliesFilter"),u.prototype),(0,i.Z)(u.prototype,"collapseSummary",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"collapseSummary"),u.prototype),(0,i.Z)(u.prototype,"generateSummary",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"generateSummary"),u.prototype),u);(0,p.setComponentTemplate)(c,h)},87493:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(51372),a=n(24434),l=n(3961),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"mJT5cJoN",block:'[[[10,0],[14,0,"header-contents"],[15,1,[30,0,["id"]]],[14,"role","button"],[14,"tabindex","0"],[15,"aria-label",[30,0,["ariaLabel"]]],[15,"aria-pressed",[30,0,["pressedState"]]],[12],[1,"\\n\\n  "],[18,1,null],[1,"\\n  "],[10,1],[14,0,"text"],[12],[1,"\\n    "],[1,[28,[35,1],null,[["field","labelKey","icon","translated"],[[30,0,["field"]],[30,0,["labelKey"]],[30,0,["icon"]],[30,0,["translated"]]]]]],[1,"\\n    "],[1,[30,0,["chevronIcon"]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["yield","directory-table-header-title"]]',moduleName:"discourse/components/table-header-toggle.hbs",isStrictMode:!1});var p,h;const m=(0,i.setComponentTemplate)(d,s().extend((p=(0,c.default)("order","field","asc"),h={tagName:"div",classNames:["directory-table__column-header","sortable"],attributeBindings:["title","colspan","ariaSort:aria-sort","role"],role:"columnheader",labelKey:null,chevronIcon:null,columnIcon:null,translated:!1,automatic:!1,onActiveRender:null,pressedState:null,ariaLabel:null,ariaSort(){return this.order===this.field?this.asc?"ascending":"descending":"none"},toggleProperties(){this.order===this.field?this.set("asc",!this.asc||null):this.setProperties({order:this.field,asc:null})},toggleChevron(){if(this.order===this.field){let e=(0,l.iconHTML)(this.asc?"chevron-up":"chevron-down");this.set("chevronIcon",(0,a.htmlSafe)(`${e}`))}else this.set("chevronIcon",null)},click(){this.toggleProperties()},keyPress(e){13===e.which&&this.toggleProperties()},didReceiveAttrs(){this._super(...arguments),this.automatic||this.translated||this.set("labelKey",this.field),this.set("id",`table-header-toggle-${this.field.replace(/\s/g,"")}`),this.toggleChevron(),this._updateA11yAttributes()},didRender(){this._super(...arguments),this.onActiveRender&&this.chevronIcon&&this.onActiveRender(this.element)},_updateA11yAttributes(){let e="";const t=this.order===this.field;if("heart"===this.icon&&(e+=`${u.default.t("likes_lowercase",{count:2})} `),this.translated)e+=this.field;else{const t=this.labelKey||`directory.${this.field}`;e+=u.default.t(t+"_long",{defaultValue:u.default.t(t)})}this.set("ariaLabel",u.default.t("directory.sort.label",{criteria:e})),t?(this.asc?this.set("pressedState","mixed"):this.set("pressedState","true"),this._focusHeader()):this.set("pressedState","false")},_focusHeader(){(0,o.schedule)("afterRender",(()=>{document.getElementById(this.id)?.focus()}))}},(0,r.Z)(h,"ariaSort",[p],Object.getOwnPropertyDescriptor(h,"ariaSort"),h),h)))},74652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(54001),i=n(31691),s=n.n(i),o=n(20229),a=n(47582),l=n(57555);const c=(0,n(8620).createTemplateFactory)({id:"vzIVmx5d",block:'[[[1,[30,0,["tagId"]]]],[],false,[]]',moduleName:"discourse/components/tag-drop-link.hbs",isStrictMode:!1});var u,d,p;const h=(0,i.setComponentTemplate)(c,s().extend((u=(0,l.default)("tagId","category"),d=(0,l.default)("tagId"),p={tagName:"a",classNameBindings:[":tag-badge-wrapper",":badge-wrapper",":bullet","tagClass"],attributeBindings:["href"],href(e,t){let n;return n=t?"/tags"+t.path+"/"+e:"/tag/"+e,(0,a.default)(n)},tagClass:e=>"tag-"+e,click(e){return e.preventDefault(),o.default.routeTo(this.href),!0}},(0,r.Z)(p,"href",[u],Object.getOwnPropertyDescriptor(p,"href"),p),(0,r.Z)(p,"tagClass",[d],Object.getOwnPropertyDescriptor(p,"tagClass"),p),p)))},88617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(17579),a=n(33217),l=n(20003),c=n(5751),u=n(12506),d=n(57555),p=n(82099);const h=(0,n(8620).createTemplateFactory)({id:"YvXjsB3D",block:'[[[10,"section"],[14,0,"group-name"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["tagging.groups.name_placeholder"],null]],[13],[1,"\\n  "],[10,0],[12],[8,[39,1],null,[["@value"],[[30,0,["buffered","name"]]]],null],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-tags-list"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["tagging.groups.tags_label"],null]],[13],[10,"br"],[12],[13],[1,"\\n  "],[8,[39,2],null,[["@tags","@everyTag","@unlimitedTagCount","@excludeSynonyms","@options"],[[30,0,["buffered","tag_names"]],true,true,true,[28,[37,3],null,[["allowAny","filterPlaceholder"],[true,"tagging.groups.tags_placeholder"]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"parent-tag-section"],[12],[1,"\\n  "],[10,"label"],[12],[1,[28,[35,0],["tagging.groups.parent_tag_label"],null]],[13],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,2],null,[["@tags","@everyTag","@excludeSynonyms","@options"],[[30,0,["buffered","parent_tag_name"]],true,true,[28,[37,3],null,[["allowAny","filterPlaceholder","maximum"],[true,"tagging.groups.parent_tag_placeholder",1]]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"description"],[12],[1,[28,[35,0],["tagging.groups.parent_tag_description"],null]],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-one-per-topic"],[12],[1,"\\n  "],[10,"label"],[12],[1,"\\n    "],[8,[39,4],[[24,3,"onepertopic"]],[["@type","@checked"],["checkbox",[30,0,["buffered","one_per_topic"]]]],null],[1,"\\n    "],[1,[28,[35,0],["tagging.groups.one_per_topic_label"],null]],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"section"],[14,0,"group-visibility"],[12],[1,"\\n  "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n    "],[8,[39,5],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","public","public-permission",[30,0,["buffered","permissionName"]],[28,[37,6],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n    "],[10,"label"],[14,0,"radio"],[14,"for","public-permission"],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.groups.everyone_can_use"],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n    "],[8,[39,5],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","visible","visible-permission",[30,0,["buffered","permissionName"]],[28,[37,6],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n    "],[10,"label"],[14,0,"radio"],[14,"for","visible-permission"],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.groups.usable_only_by_groups"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n      "],[8,[39,7],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,6],[[30,0],"setPermissionsGroups"],null],[28,[37,3],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"group-visibility-option"],[12],[1,"\\n    "],[8,[39,5],[[24,0,"tag-permissions-choice"]],[["@name","@value","@id","@selection","@onChange"],["tag-permissions-choice","private","private-permission",[30,0,["buffered","permissionName"]],[28,[37,6],[[30,0],"setPermissionsType"],null]]],null],[1,"\\n\\n    "],[10,"label"],[14,0,"radio"],[14,"for","private-permission"],[12],[1,"\\n      "],[1,[28,[35,0],["tagging.groups.visible_only_to_groups"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"group-access-control"],[12],[1,"\\n      "],[8,[39,7],null,[["@content","@value","@labelProperty","@onChange","@options"],[[30,0,["allGroups"]],[30,0,["selectedGroupIds"]],"name",[28,[37,6],[[30,0],"setPermissionsGroups"],null],[28,[37,3],null,[["filterPlaceholder"],["tagging.groups.select_groups_placeholder"]]]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"tag-group-controls"],[12],[1,"\\n  "],[8,[39,8],[[24,0,"btn-primary"]],[["@action","@disabled","@label"],[[28,[37,6],[[30,0],"save"],null],[30,0,["buffered","isSaving"]],"tagging.groups.save"]],null],[1,"\\n\\n  "],[8,[39,8],[[24,0,"btn-danger"]],[["@action","@disabled","@icon","@label"],[[28,[37,6],[[30,0],"destroy"],null],[30,0,["buffered","isNew"]],"far-trash-alt","tagging.groups.delete"]],null],[1,"\\n"],[13]],[],false,["i18n","text-field","tag-chooser","hash","input","radio-button","action","group-chooser","d-button"]]',moduleName:"discourse/components/tag-groups-form.hbs",isStrictMode:!1});var m,g,f;const b=(0,i.setComponentTemplate)(h,s().extend((0,l.bufferedProperty)("model"),(m=(0,d.default)("buffered.name","buffered.tag_names","buffered.permissions"),g=(0,d.default)("buffered.permissions","allGroups"),f={router:(0,o.inject)(),dialog:(0,o.inject)(),tagName:"",allGroups:null,init(){this._super(...arguments),this.setGroupOptions()},setGroupOptions(){c.default.findAll().then((e=>{this.set("allGroups",e)}))},cannotSave(e,t,n){return(0,a.isEmpty)(e)||(0,a.isEmpty)(t)||!this.everyoneSelected(n)&&(0,a.isEmpty)(this.selectedGroupNames(n))},selectedGroupIds(e,t){if(!e||!t)return[];const n=Object.keys(e);let r=[];return t.forEach((e=>{n.includes(e.name)&&r.push(e.id)})),r},everyoneSelected:e=>!e||e.everyone===u.default.FULL,selectedGroupNames:e=>e?Object.keys(e).filter((e=>"everyone"!==e)):[],actions:{setPermissionsType(e){let t=Object.assign({},this.buffered.get("permissions"));"private"===e?delete t.everyone:t.everyone="visible"===e?u.default.READONLY:u.default.FULL,this.buffered.set("permissions",t)},setPermissionsGroups(e){let t=Object.assign({},this.buffered.get("permissions"));this.allGroups.forEach((n=>{e.includes(n.id)?t[n.name]=u.default.FULL:delete t[n.name]})),this.buffered.set("permissions",t)},save(){if(this.cannotSave)return this.dialog.alert(p.default.t("tagging.groups.cannot_save")),!1;const e=this.buffered.getProperties("name","tag_names","parent_tag_name","one_per_topic","permissions");e.permissions&&e.permissions.everyone!==u.default.FULL||(e.permissions={everyone:u.default.FULL}),this.model.save(e).then((()=>{this.commitBuffer(),this.onSave?this.onSave():this.router.transitionTo("tagGroups.index")}))},destroy(){return this.dialog.yesNoConfirm({message:p.default.t("tagging.groups.confirm_delete"),didConfirm:()=>{this.model.destroyRecord().then((()=>{this.onDestroy&&this.onDestroy()}))}})}}},(0,r.Z)(f,"cannotSave",[m],Object.getOwnPropertyDescriptor(f,"cannotSave"),f),(0,r.Z)(f,"selectedGroupIds",[g],Object.getOwnPropertyDescriptor(f,"selectedGroupIds"),f),f)))},88412:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(17579),c=n(24434),u=n(33217),d=n(3055),p=n(38864),h=n(57555),m=n(82099);const g=(0,n(8620).createTemplateFactory)({id:"3nBXLarj",block:'[[[10,"section"],[14,0,"tag-info"],[12],[1,"\\n"],[41,[30,0,["tagInfo"]],[[[1,"    "],[10,0],[14,0,"tag-name"],[12],[1,"\\n"],[41,[30,0,["editing"]],[[[1,"        "],[10,0],[14,0,"edit-tag-wrapper"],[12],[1,"\\n          "],[8,[39,1],null,[["@id","@value","@maxlength","@input","@autofocus"],["edit-name",[28,[37,2],[[30,0,["tagInfo","name"]]],null],[30,0,["siteSettings","max_tag_length"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["newTagName"]]],null]],[["value"],["target.value"]]],"true"]],null],[1,"\\n\\n          "],[8,[39,5],[[24,1,"edit-description"],[16,"placeholder",[28,[37,6],["tagging.description"],null]],[16,"maxlength",1000],[24,"autofocus","true"],[4,[38,7],["input",[28,[37,3],[[30,0],[28,[37,4],[[30,0,["newTagDescription"]]],null]],[["value"],["target.value"]]]],null]],[["@value"],[[28,[37,2],[[30,0,["tagInfo","descriptionWithNewLines"]]],null]]],null],[1,"\\n          "],[10,0],[14,0,"edit-controls"],[12],[1,"\\n"],[41,[51,[30,0,["updateDisabled"]]],[[[1,"              "],[8,[39,9],[[24,0,"btn-primary submit-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,3],[[30,0],"finishedEditing"],null],"check","tagging.save"]],null],[1,"\\n"]],[]],null],[1,"            "],[8,[39,9],[[24,0,"btn-default cancel-edit"]],[["@action","@icon","@ariaLabel"],[[28,[37,3],[[30,0],"cancelEditing"],null],"times","cancel"]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,0],[14,0,"tag-name-wrapper"],[12],[1,"\\n          "],[1,[28,[35,10],[[30,0,["tagInfo","name"]]],[["tagName"],["div"]]]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1,"            "],[11,3],[24,6,""],[24,0,"edit-tag"],[16,"title",[28,[37,6],["tagging.edit_tag"],null]],[4,[38,7],["click",[30,0,["edit"]]],null],[12],[1,[28,[35,11],["pencil-alt"],null]],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"tag-description-wrapper"],[12],[1,"\\n          "],[10,1],[12],[1,[28,[35,12],[[30,0,["tagInfo","description"]]],null]],[13],[1,"\\n        "],[13],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"tag-associations"],[12],[1,"\\n"],[41,[30,0,["tagInfo","tag_group_names"]],[[[1,"        "],[1,[30,0,["tagGroupsInfo"]]],[1,"\\n"]],[]],null],[41,[30,0,["tagInfo","categories"]],[[[1,"        "],[1,[30,0,["categoriesInfo"]]],[1,"\\n        "],[10,"br"],[12],[13],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["tagInfo","categories"]]],null]],null],null,[[[1,"          "],[1,[28,[35,15],[[30,1]],null]],[1,"\\n"]],[1]],null]],[]],null],[41,[30,0,["nothingToShow"]],[[[41,[30,0,["tagInfo","category_restricted"]],[[[1,"          "],[1,[28,[35,6],["tagging.category_restricted"],null]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,12],[[28,[37,6],["tagging.default_info"],null]],null]],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1,"            "],[1,[28,[35,12],[[28,[37,6],["tagging.staff_info"],[["basePath"],[[28,[37,16],null,null]]]]],null]],[1,"\\n"]],[]],null]],[]]]],[]],null],[1,"    "],[13],[1,"\\n"],[41,[30,0,["tagInfo","synonyms"]],[[[1,"      "],[10,0],[14,0,"synonyms-list"],[12],[1,"\\n        "],[10,"h3"],[12],[1,[28,[35,6],["tagging.synonyms"],null]],[13],[1,"\\n        "],[10,0],[12],[1,[28,[35,12],[[28,[37,6],["tagging.synonyms_description"],[["base_tag_name"],[[30,0,["tagInfo","name"]]]]]],null]],[13],[1,"\\n        "],[10,0],[14,0,"tag-list"],[12],[1,"\\n"],[42,[28,[37,14],[[28,[37,14],[[30,0,["tagInfo","synonyms"]]],null]],null],null,[[[1,"            "],[10,0],[14,0,"tag-box"],[12],[1,"\\n              "],[1,[28,[35,10],[[30,2,["id"]]],[["pmOnly","tagName"],[[30,2,["pmOnly"]],"div"]]]],[1,"\\n"],[41,[30,0,["editSynonymsMode"]],[[[1,"                "],[11,3],[24,6,""],[24,0,"unlink-synonym"],[4,[38,7],["click",[28,[37,17],[[30,0,["unlinkSynonym"]],[30,2]],null]],null],[12],[1,"\\n                  "],[1,[28,[35,11],["unlink"],[["title"],["tagging.remove_synonym"]]]],[1,"\\n                "],[13],[1,"\\n                "],[11,3],[24,6,""],[24,0,"delete-synonym"],[4,[38,7],["click",[28,[37,17],[[30,0,["deleteSynonym"]],[30,2]],null]],null],[12],[1,"\\n                  "],[1,[28,[35,11],["far-trash-alt"],[["title"],["tagging.delete_tag"]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["editSynonymsMode"]],[[[1,"      "],[10,"section"],[14,0,"add-synonyms field"],[12],[1,"\\n        "],[10,"label"],[14,"for","add-synonyms"],[12],[1,[28,[35,6],["tagging.add_synonyms_label"],null]],[13],[1,"\\n        "],[10,0],[12],[1,"\\n          "],[8,[39,18],null,[["@id","@tags","@blockedTags","@everyTag","@excludeSynonyms","@excludeHasSynonyms","@unlimitedTagCount","@allowCreate"],["add-synonyms",[30,0,["newSynonyms"]],[28,[37,19],[[30,0,["tagInfo","name"]]],null],true,true,true,true,true]],null],[1,"\\n          "],[8,[39,9],[[24,0,"ok"]],[["@action","@disabled","@icon"],[[28,[37,3],[[30,0],"addSynonyms"],null],[30,0,["addSynonymsDisabled"]],"check"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["canAdminTag"]],[[[1,"      "],[10,"section"],[12],[1,"\\n        "],[8,[39,20],null,[["@name","@outletArgs"],["tag-custom-settings",[28,[37,21],null,[["tag"],[[30,0,["tagInfo"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"tag-actions"],[12],[1,"\\n        "],[8,[39,9],[[24,1,"edit-synonyms"],[24,0,"btn-default"]],[["@action","@icon","@label"],[[28,[37,3],[[30,0],"toggleEditControls"],null],"cog","tagging.edit_synonyms"]],null],[1,"\\n"],[41,[30,0,["canAdminTag"]],[[[1,"          "],[8,[39,9],[[24,1,"delete-tag"],[24,0,"btn-danger delete-tag"]],[["@action","@icon","@label"],[[28,[37,3],[[30,0],"deleteTag"],null],"far-trash-alt","tagging.delete_tag"]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[30,0,["loading"]],[[[1,"    "],[10,0],[12],[1,[28,[35,6],["loading"],null]],[13],[1,"\\n"]],[]],null],[13]],["category","tag"],false,["if","text-field","readonly","action","mut","textarea","i18n","on","unless","d-button","discourse-tag","d-icon","html-safe","each","-track-array","category-link","base-path","fn","tag-chooser","array","plugin-outlet","hash"]]',moduleName:"discourse/components/tag-info.hbs",isStrictMode:!1});var f,b,_,y,w;const v=(0,i.setComponentTemplate)(g,s().extend((f=(0,h.default)("tagInfo.tag_group_names"),b=(0,h.default)("tagInfo.categories"),_=(0,h.default)("tagInfo.tag_group_names","tagInfo.categories","tagInfo.synonyms"),y=(0,h.default)("newTagName"),w={dialog:(0,l.inject)(),tagName:"",loading:!1,tagInfo:null,newSynonyms:null,showEditControls:!1,canAdminTag:(0,a.reads)("currentUser.staff"),editSynonymsMode:(0,a.and)("canAdminTag","showEditControls"),editing:!1,newTagName:null,newTagDescription:null,router:(0,l.inject)(),tagGroupsInfo:e=>m.default.t("tagging.tag_groups_info",{count:e.length,tag_groups:e.join(", ")}),categoriesInfo:e=>m.default.t("tagging.category_restrictions",{count:e.length}),nothingToShow:(e,t,n)=>(0,u.isEmpty)(e)&&(0,u.isEmpty)(t)&&(0,u.isEmpty)(n),updateDisabled(e){const t=new RegExp(this.site.tags_filter_regexp,"g");return 0===(e=e?e.replace(t,"").trim():"").length},didInsertElement(){this._super(...arguments),this.loadTagInfo()},loadTagInfo(){if(!this.loading)return this.set("loading",!0),this.store.find("tag-info",this.tag.id).then((e=>{this.set("tagInfo",e),this.set("tagInfo.synonyms",e.synonyms.map((e=>this.store.createRecord("tag",e))))})).finally((()=>this.set("loading",!1))).catch(p.popupAjaxError)},edit(e){e?.preventDefault(),this.tagInfo.set("descriptionWithNewLines",this.tagInfo.description?.replaceAll("<br>","\n")),this.setProperties({editing:!0,newTagName:this.tag.id,newTagDescription:this.tagInfo.description})},unlinkSynonym(e,t){t?.preventDefault(),(0,d.ajax)(`/tag/${this.tagInfo.name}/synonyms/${e.id}`,{type:"DELETE"}).then((()=>this.tagInfo.synonyms.removeObject(e))).catch(p.popupAjaxError)},deleteSynonym(e,t){t?.preventDefault(),this.dialog.yesNoConfirm({message:m.default.t("tagging.delete_synonym_confirm",{tag_name:e.text}),didConfirm:()=>e.destroyRecord().then((()=>this.tagInfo.synonyms.removeObject(e))).catch(p.popupAjaxError)})},toggleEditControls(){this.toggleProperty("showEditControls")},cancelEditing(){this.set("editing",!1)},finishedEditing(){const e=this.tag.id;this.newTagDescription=this.newTagDescription?.replaceAll("\n","<br>"),this.tag.update({id:this.newTagName,description:this.newTagDescription}).then((t=>{this.set("editing",!1),this.tagInfo.set("description",this.newTagDescription),t.responseJson.tag&&e!==t.responseJson.tag.id&&this.router.transitionTo("tag.show",t.responseJson.tag.id)})).catch(p.popupAjaxError)},deleteTag(){const e=this.get("list.topic_list.tags.firstObject.topic_count")||0;let t=0===e?m.default.t("tagging.delete_confirm_no_topics"):m.default.t("tagging.delete_confirm",{count:e});this.tagInfo.synonyms.length>0&&(t+=" "+m.default.t("tagging.delete_confirm_synonyms",{count:this.tagInfo.synonyms.length})),this.dialog.deleteConfirm({message:t,didConfirm:async()=>{try{await this.tag.destroyRecord(),this.router.transitionTo("tags.index")}catch{this.dialog.alert(m.default.t("generic_error"))}}})},addSynonyms(){this.dialog.confirm({message:(0,c.htmlSafe)(m.default.t("tagging.add_synonyms_explanation",{count:this.newSynonyms.length,tag_name:this.tagInfo.name})),didConfirm:()=>(0,d.ajax)(`/tag/${this.tagInfo.name}/synonyms`,{type:"POST",data:{synonyms:this.newSynonyms}}).then((e=>{e.success?(this.set("newSynonyms",null),this.loadTagInfo()):e.failed_tags?this.dialog.alert(m.default.t("tagging.add_synonyms_failed",{tag_names:Object.keys(e.failed_tags).join(", ")})):this.dialog.alert(m.default.t("generic_error"))})).catch(p.popupAjaxError)})}},(0,r.Z)(w,"tagGroupsInfo",[f],Object.getOwnPropertyDescriptor(w,"tagGroupsInfo"),w),(0,r.Z)(w,"categoriesInfo",[b],Object.getOwnPropertyDescriptor(w,"categoriesInfo"),w),(0,r.Z)(w,"nothingToShow",[_],Object.getOwnPropertyDescriptor(w,"nothingToShow"),w),(0,r.Z)(w,"updateDisabled",[y],Object.getOwnPropertyDescriptor(w,"updateDisabled"),w),(0,r.Z)(w,"edit",[o.action],Object.getOwnPropertyDescriptor(w,"edit"),w),(0,r.Z)(w,"unlinkSynonym",[o.action],Object.getOwnPropertyDescriptor(w,"unlinkSynonym"),w),(0,r.Z)(w,"deleteSynonym",[o.action],Object.getOwnPropertyDescriptor(w,"deleteSynonym"),w),(0,r.Z)(w,"toggleEditControls",[o.action],Object.getOwnPropertyDescriptor(w,"toggleEditControls"),w),(0,r.Z)(w,"cancelEditing",[o.action],Object.getOwnPropertyDescriptor(w,"cancelEditing"),w),(0,r.Z)(w,"finishedEditing",[o.action],Object.getOwnPropertyDescriptor(w,"finishedEditing"),w),(0,r.Z)(w,"deleteTag",[o.action],Object.getOwnPropertyDescriptor(w,"deleteTag"),w),(0,r.Z)(w,"addSynonyms",[o.action],Object.getOwnPropertyDescriptor(w,"addSynonyms"),w),w)))},81689:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(56746),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"8u9V0Lt0",block:'[[[41,[30,0,["title"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["category"]],[[[1,"  "],[8,[39,1],null,[["@category"],[[30,0,["category"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["tagGroupName"]],[[[1,"  "],[10,"h3"],[12],[1,[30,0,["tagGroupName"]]],[13],[1,"\\n"]],[]],null],[42,[28,[37,3],[[28,[37,3],[[30,0,["sortedTags"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"tag-box"],[12],[1,"\\n    "],[1,[28,[35,4],[[30,1,["id"]]],[["description","isPrivateMessage","pmOnly","tagsForUser"],[[30,1,["description"]],[30,0,["isPrivateMessage"]],[30,1,["pmOnly"]],[30,0,["tagsForUser"]]]]]],[1,"\\n"],[41,[30,1,["pmOnly"]],[[[1,"      "],[1,[28,[35,5],["envelope"],null]],[1,"\\n"]],[]],null],[41,[30,1,["totalCount"]],[[[1,"      "],[10,1],[14,0,"tag-count"],[12],[1,"\\n        x\\n        "],[1,[30,1,["totalCount"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[1]],null],[10,0],[14,0,"clearfix"],[12],[13]],["tag"],false,["if","category-title-link","each","-track-array","discourse-tag","d-icon"]]',moduleName:"discourse/components/tag-list.hbs",isStrictMode:!1});var d,p,h,m,g;const f=(0,i.setComponentTemplate)(u,s().extend((d=(0,l.default)("titleKey"),p=(0,l.default)("categoryId"),h=(0,l.default)("category.fullSlug"),m=(0,l.default)("tagGroupName"),g={classNameBindings:[":tags-list",":tag-list","categoryClass","tagGroupNameClass"],isPrivateMessage:!1,sortedTags:(0,o.sort)("tags","sortProperties"),title:e=>e&&c.default.t(e),category:e=>e&&a.default.findById(e),categoryClass:e=>e&&`tag-list-${e}`,tagGroupNameClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`tag-group-${e}`}},(0,r.Z)(g,"title",[d],Object.getOwnPropertyDescriptor(g,"title"),g),(0,r.Z)(g,"category",[p],Object.getOwnPropertyDescriptor(g,"category"),g),(0,r.Z)(g,"categoryClass",[h],Object.getOwnPropertyDescriptor(g,"categoryClass"),g),(0,r.Z)(g,"tagGroupNameClass",[m],Object.getOwnPropertyDescriptor(g,"tagGroupNameClass"),g),g)))},40549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({pluginApiIdentifiers:["tags-admin-dropdown"],classNames:["tags-admin-dropdown"],actionsMapping:null,selectKitOptions:{icons:["wrench","caret-down"],showFullTitle:!1},content:(0,r.computed)((function(){return[{id:"manageGroups",name:i.default.t("tagging.manage_groups"),description:i.default.t("tagging.manage_groups_description"),icon:"tags"},{id:"uploadTags",name:i.default.t("tagging.upload"),description:i.default.t("tagging.upload_description"),icon:"upload"},{id:"deleteUnusedTags",name:i.default.t("tagging.delete_unused"),description:i.default.t("tagging.delete_unused_description"),icon:"trash-alt"}]})),actions:{onChange(e){const t=this.actionsMapping[e];t&&t()}}})},86588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Jm6vymle",block:'[[[18,1,[[28,[37,1],null,[["activeTile"],[[30,0,["activeTile"]]]]]]]],["&default"],false,["yield","hash"]]',moduleName:"discourse/components/tap-tile-grid.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({classNames:["tap-tile-grid"],activeTile:null}))},46215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(31691),i=n.n(r),s=n(6264),o=n(63319);const a=(0,n(8620).createTemplateFactory)({id:"YzzhQB97",block:'[[[41,[30,0,["icon"]],[[[1,"  "],[1,[28,[35,1],[[30,0,["icon"]]],null]],[1,"\\n"]],[]],null],[18,1,null]],["&default"],false,["if","d-icon","yield"]]',moduleName:"discourse/components/tap-tile.hbs",isStrictMode:!1}),l=(0,r.setComponentTemplate)(a,i().extend({init(){this._super(...arguments),this.set("elementId",`tap_tile_${this.tileId}`)},classNames:["tap-tile"],classNameBindings:["active"],attributeBindings:["role","ariaPressed","tabIndex"],role:"button",tabIndex:0,ariaPressed:(0,s.reads)("active"),click(){this.onChange(this.tileId)},keyDown(e){"Enter"===e.key&&(e.stopPropagation(),this.onChange(this.tileId))},active:(0,o.propertyEqual)("activeTile","tileId")}))},2825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(54001),a=n(89906),l=n(51372),c=n(43168),u=n(56111),d=n(57555),p=n(82099);const h=a.TextField.extend((r=(0,d.default)("placeholderKey"),i={attributeBindings:["autocorrect","autocapitalize","autofocus","maxLength","dir","aria-label","aria-controls"],init(){this._super(...arguments),this._prevValue=null,this._timer=null},didReceiveAttrs(){this._super(...arguments),this._prevValue=this.value},didUpdateAttrs(){this._super(...arguments),this._prevValue!==this.value&&(this.onChangeImmediate&&(0,l.next)((()=>this.onChangeImmediate(this.value))),this.onChange&&((0,l.cancel)(this._timer),this._timer=(0,u.default)(this,this._debouncedChange,500)))},_debouncedChange(){(0,l.next)((()=>this.onChange(this.value)))},get dir(){if(this.siteSettings.support_mixed_text_direction){const e=this.get("value");return e&&(0,c.isRTL)(e)?"rtl":e&&(0,c.isLTR)(e)?"ltr":(0,c.siteDir)()}},willDestroyElement(){this._super(...arguments),(0,l.cancel)(this._timer)},placeholder:{get(){return this._placeholder?this._placeholder:this.placeholderKey?p.default.t(this.placeholderKey):""},set(e){return this._placeholder=e}}},(0,o.Z)(i,"placeholder",[r],(s=(s=Object.getOwnPropertyDescriptor(i,"placeholder"))?s.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return s}}),i),i))},96235:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"5pDKnoM2",block:'[[[1,[28,[35,0],[[30,0,["text"]]],null]]],[],false,["html-safe"]]',moduleName:"discourse/components/text-overflow.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},88394:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(24434),l=n(33217);const c=(0,n(8620).createTemplateFactory)({id:"DcLZyXCT",block:'[[[8,[39,0],null,[["@value","@content","@onChange","@options"],[[30,0,["time"]],[30,0,["timeOptions"]],[28,[37,1],[[30,0],"onChangeTime"],null],[28,[37,2],null,[["translatedNone","allowAny","filterable","autoInsertNoneItem","translatedFilterPlaceholder"],["--:--",true,false,false,"--:--"]]]]],null]],[],false,["combo-box","action","hash"]]',moduleName:"discourse/components/time-input.hbs",isStrictMode:!1});var u;function d(e){return{hours:Math.floor(e/60),minutes:e%60}}const p=(0,i.setComponentTemplate)(c,s().extend((u={classNames:["d-time-input"],hours:null,minutes:null,relativeDate:null,didReceiveAttrs(){this._super(...arguments),(0,l.isPresent)(this.date)&&this.setProperties({hours:this.date.hours(),minutes:this.date.minutes()}),(0,l.isPresent)(this.date)||(0,l.isPresent)(this.hours)||(0,l.isPresent)(this.minutes)||this.setProperties({hours:null,minutes:null})},minimumTime:(0,o.computed)("relativeDate","date",(function(){if(this.relativeDate)return this.date?this.date.isSame(this.relativeDate,"day")?60*this.relativeDate.hours()+this.relativeDate.minutes():0:60*this.relativeDate.hours()+this.relativeDate.minutes()})),timeOptions:(0,o.computed)("minimumTime","hours","minutes",(function(){let e=[],t=0,n=this.minimumTime?this.minimumTime>this.time?this.time:this.minimumTime:0;for(e.push(n);t<95&&(n+=this.minimumTime?t<=3?15:30:15,!(n>1440));)e.push(n),t++;return this.time&&!e.includes(this.time)&&(e=[this.time].concat(e)),e=e.sort(((e,t)=>e-t)),e.map((e=>{let t,n=function(e){const t=d(e);return`${t.hours.toString().padStart(2,"0")}:${t.minutes.toString().padStart(2,"0")}`}(e);if(this.date&&this.relativeDate){const r=this.date.clone().startOf("day").add(e,"minutes").diff(this.relativeDate,"minutes");r<1440&&(t=(0,a.htmlSafe)(`${n} <small>(${function(e){const t=d(e);let n="";return t.hours?(n=`${t.hours}h`,t.minutes>0&&(n=`${n} ${t.minutes} min`)):n=`${t.minutes} min`,n}(r)})</small>`))}return{id:e,name:n,label:t,title:n}}))})),time:(0,o.computed)("minimumTime","hours","minutes",(function(){if((0,l.isPresent)(this.hours)&&(0,l.isPresent)(this.minutes))return 60*parseInt(this.hours,10)+parseInt(this.minutes,10)})),onFocusIn(e,t){e&&t.target&&t.target.select()},onChangeTime(e){if((0,l.isPresent)(e)&&this.onChange)if("string"==typeof e&&e.length){let[t,n]=e.split(":");t&&n&&(t<0&&(t=0),t>23&&(t=23),n<0&&(n=0),n>59&&(n=59),this.onChange({hours:parseInt(t,10),minutes:parseInt(n,10)}))}else this.onChange({hours:d(e).hours,minutes:d(e).minutes})}},(0,r.Z)(u,"onFocusIn",[o.action],Object.getOwnPropertyDescriptor(u,"onFocusIn"),u),(0,r.Z)(u,"onChangeTime",[o.action],Object.getOwnPropertyDescriptor(u,"onChangeTime"),u),u)))},99193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(50459),c=n(18225),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"Wlkve3s+",block:'[[[8,[39,0],null,[["@activeTile"],[[30,0,["selectedShortcut"]]]],[["default"],[[[[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["options"]]],null]],null],null,[[[41,[51,[30,2,["hidden"]]],[[[1,"      "],[8,[39,4],null,[["@icon","@tileId","@activeTile","@onChange"],[[30,2,["icon"]],[30,2,["id"]],[30,1,["activeTile"]],[28,[37,5],[[30,0],"selectShortcut"],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"tap-tile-title"],[12],[1,[28,[35,6],[[30,2,["label"]]],null]],[13],[1,"\\n        "],[10,0],[14,0,"tap-tile-date"],[12],[1,[30,2,["timeFormatted"]]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,2,["isCustomTimeShortcut"]],[[[41,[30,0,["customDatetimeSelected"]],[[[1,"        "],[10,0],[14,0,"control-group custom-date-time-wrap custom-input-wrap"],[12],[1,"\\n          "],[10,0],[14,0,"tap-tile-date-input"],[12],[1,"\\n            "],[1,[28,[35,8],["calendar-alt"],null]],[1,"\\n            "],[8,[39,9],null,[["@value","@defaultDate","@onSelect","@id"],[[30,0,["customDate"]],[30,0,["defaultCustomDate"]],[28,[37,5],[[30,0],[28,[37,10],[[30,0,["customDate"]]],null]],null],"custom-date"]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"tap-tile-time-input"],[12],[1,"\\n            "],[1,[28,[35,8],["far-clock"],null]],[1,"\\n            "],[8,[39,11],[[24,"placeholder","--:--"],[24,1,"custom-time"],[24,0,"time-input"]],[["@type","@value"],["time",[30,0,["customTime"]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"control-group custom-date-time-wrap custom-relative-wrap"],[12],[1,"\\n          "],[10,"label"],[14,0,"control-label"],[14,"for","bookmark-relative-time-picker"],[12],[1,"\\n            "],[1,[28,[35,6],["relative_time_picker.relative"],null]],[1,"\\n          "],[13],[1,"\\n          "],[8,[39,12],null,[["@id","@onChange"],["bookmark-relative-time-picker",[28,[37,5],[[30,0],"relativeTimeChanged"],null]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null]],[2]],null]],[1]]]]]],["grid","option"],false,["tap-tile-grid","each","-track-array","unless","tap-tile","action","i18n","if","d-icon","date-picker-future","mut","input","relative-time-picker"]]',moduleName:"discourse/components/time-shortcut-picker.hbs",isStrictMode:!1});var h,m,g,f,b;const _={"l t":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.LATER_TODAY]},"l w":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.LATER_THIS_WEEK]},"n d":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.TOMORROW]},"n b w":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.START_OF_NEXT_BUSINESS_WEEK]},"n m":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.NEXT_MONTH]},"c r":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.CUSTOM]},"n r":{handler:"selectShortcut",args:[l.TIME_SHORTCUT_TYPES.NONE]}},y=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.on)("init"),m=(0,u.observes)("prefilledDatetime"),g=(0,u.observes)("customDate","customTime"),f=(0,u.default)("timeShortcuts","hiddenOptions","customLabels","userTimezone"),b={tagName:"",userTimezone:null,onTimeSelected:null,selectedShortcut:null,selectedTime:null,selectedDate:null,selectedDatetime:null,prefilledDatetime:null,hiddenOptions:null,customOptions:null,lastCustomDate:null,lastCustomTime:null,parsedLastCustomDatetime:null,customDate:null,customTime:null,_itsatrap:null,_setupPicker(){this.setProperties({userTimezone:this.currentUser.user_option.timezone,hiddenOptions:this.hiddenOptions||[],customOptions:this.customOptions||[],customLabels:this.customLabels||{}}),this.prefilledDatetime&&this.parsePrefilledDatetime(),this._bindKeyboardShortcuts()},prefilledDatetimeChanged(){this.prefilledDatetime?this.parsePrefilledDatetime():this.setProperties({customDate:null,customTime:null,selectedShortcut:null})},willDestroyElement(){this._super(...arguments),this._itsatrap.unbind(Object.keys(_))},parsePrefilledDatetime(){let e=(0,c.parseCustomDatetime)(this.prefilledDatetime,null,this.userTimezone);if(e.isSame((0,c.laterToday)()))return this.set("selectedShortcut",l.TIME_SHORTCUT_TYPES.LATER_TODAY);this.setProperties({customDate:e.format("YYYY-MM-DD"),customTime:e.format("HH:mm"),selectedShortcut:l.TIME_SHORTCUT_TYPES.CUSTOM})},_loadLastUsedCustomDatetime(){const e=this.keyValueStore.lastCustomTime,t=this.keyValueStore.lastCustomDate;if(e&&t){let n=(0,c.parseCustomDatetime)(t,e,this.userTimezone);if(!n.isValid()||n<(0,c.now)(this.userTimezone))return;this.setProperties({lastCustomDate:t,lastCustomTime:e,parsedLastCustomDatetime:n})}},_bindKeyboardShortcuts(){Object.keys(_).forEach((e=>{this._itsatrap.bind(e,(()=>{let t=_[e];return this.send(t.handler,...t.args),!1}))}))},customDatetimeSelected:(0,a.equal)("selectedShortcut",l.TIME_SHORTCUT_TYPES.CUSTOM),relativeTimeSelected:(0,a.equal)("selectedShortcut",l.TIME_SHORTCUT_TYPES.RELATIVE),customDatetimeFilled:(0,a.and)("customDate","customTime"),customDatetimeChanged(){this.customDatetimeFilled&&this.selectShortcut(l.TIME_SHORTCUT_TYPES.CUSTOM)},options(e,t,n,r){let i;this._loadLastUsedCustomDatetime(),i=e&&e.length?e:(0,l.defaultTimeShortcuts)(r),i=(0,l.hideDynamicTimeShortcuts)(i,r,this.siteSettings);let s=(0,l.specialShortcutOptions)();if(this.lastCustomDate&&this.lastCustomTime){let e=s.findBy("id",l.TIME_SHORTCUT_TYPES.LAST_CUSTOM);e.time=this.parsedLastCustomDatetime,e.timeFormatKey="dates.long_no_year",e.hidden=!1}return i=i.concat(s),t.length>0&&i.forEach((e=>{t.includes(e.id)&&(e.hidden=!0)})),this._applyCustomLabels(i,n),i.forEach((e=>e.timeFormatted=(0,l.formatTime)(e))),i},relativeTimeChanged(e){let t=(0,c.now)(this.userTimezone).add(e,"minutes");this.set("selectedDatetime",t),this.onTimeSelected&&this.onTimeSelected(l.TIME_SHORTCUT_TYPES.RELATIVE,t)},selectShortcut(e){if(this.options.filterBy("hidden").mapBy("id").includes(e))return;let t=null;if(e===l.TIME_SHORTCUT_TYPES.CUSTOM){const e=this._defaultCustomDateTime();this.set("customDate",this.customDate||e.format("YYYY-MM-DD")),this.set("customTime",this.customTime||e.format("HH:mm"));const n=(0,c.parseCustomDatetime)(this.customDate,this.customTime,this.userTimezone);n.isValid()&&this.customDate&&(t=n,this.keyValueStore.lastCustomTime=this.customTime,this.keyValueStore.lastCustomDate=this.customDate)}else t=this.options.findBy("id",e).time;this.setProperties({selectedShortcut:e,selectedDatetime:t}),this.onTimeSelected&&this.onTimeSelected(e,t)},_applyCustomLabels(e,t){e.forEach((e=>{t[e.id]&&(e.label=t[e.id])}))},_formatTime(e){e.forEach((e=>{e.time&&e.timeFormatKey&&(e.timeFormatted=e.time.format(d.default.t(e.timeFormatKey)))}))},_defaultCustomDateTime(){return moment.tz(this.userTimezone).add(1,"hour")}},(0,r.Z)(b,"_setupPicker",[h],Object.getOwnPropertyDescriptor(b,"_setupPicker"),b),(0,r.Z)(b,"prefilledDatetimeChanged",[m],Object.getOwnPropertyDescriptor(b,"prefilledDatetimeChanged"),b),(0,r.Z)(b,"customDatetimeChanged",[g],Object.getOwnPropertyDescriptor(b,"customDatetimeChanged"),b),(0,r.Z)(b,"options",[f],Object.getOwnPropertyDescriptor(b,"options"),b),(0,r.Z)(b,"relativeTimeChanged",[o.action],Object.getOwnPropertyDescriptor(b,"relativeTimeChanged"),b),(0,r.Z)(b,"selectShortcut",[o.action],Object.getOwnPropertyDescriptor(b,"selectShortcut"),b),b)))},52067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"QZEASR5+",block:'[[[8,[39,0],[[24,0,"btn-link toggle-password-mask"]],[["@action","@label","@title"],[[30,1],[52,[30,2],"login.show_password","login.hide_password"],[52,[30,2],"login.show_password_title","login.hide_password_title"]]],null]],["@togglePasswordMask","@maskPassword"],false,["d-button","if"]]',moduleName:"discourse/components/toggle-password-mask.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},72980:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({classNames:["token-based-auth-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,r.computed)((function(){return[{id:"edit",icon:"pencil-alt",name:i.default.t("user.second_factor.edit")},{id:"disable",icon:"trash-alt",name:i.default.t("user.second_factor.disable")}]})),actions:{onChange(e){switch(e){case"edit":this.editSecondFactor(this.totp);break;case"disable":this.disableSingleSecondFactor(this.totp)}}}})},92120:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"k1TABCMA",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["periods"]]],null]],null],null,[[[1,"  "],[8,[39,2],[[24,0,"btn-default"]],[["@action","@translatedLabel"],[[28,[37,3],[[30,0,["changePeriod"]],[30,1]],null],[28,[37,4],[[30,1]],null]]],null],[1,"\\n"]],[1]],null]],["p"],false,["each","-track-array","d-button","fn","period-title"]]',moduleName:"discourse/components/top-period-buttons.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("period"),u={classNames:["top-title-buttons"],periods(e){return this.site.get("periods").filter((t=>t!==e))},changePeriod(e){this.action(e)}},(0,r.Z)(u,"periods",[c],Object.getOwnPropertyDescriptor(u,"periods"),u),(0,r.Z)(u,"changePeriod",[o.action],Object.getOwnPropertyDescriptor(u,"changePeriod"),u),u)))},60715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(17238).default.extend({classNames:"topic-admin-menu-button-container",tagName:"span",widget:"topic-admin-menu-button",buildArgs(){return this.getProperties("topic","openUpwards","rightSide")}})},90894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"fznjOsUh",block:'[[[41,[51,[30,0,["topic","isPrivateMessage"]]],[[[1,"  "],[1,[28,[35,1],[[30,0,["topic","category"]]],[["recursive","hideParent"],[true,true]]]],[1,"\\n"]],[]],null],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["siteSettings","tagging_enabled"]],[[[1,"    "],[10,0],[14,0,"list-tags"],[12],[1,"\\n      "],[1,[28,[35,3],[[30,0,["topic"]]],[["mode","tags"],["list",[30,0,["topic","tags"]]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1,"    "],[1,[28,[35,4],[[30,0,["topic"]]],null]],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["topic-category","div",[28,[37,6],null,[["topic","category"],[[30,0,["topic"]],[30,0,["topic","category"]]]]]]],null],[1,"\\n"],[13]],[],false,["unless","bound-category-link","if","discourse-tags","topic-featured-link","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-category.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend())},72582:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(17579),l=n(62498),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"FpGrKeuA",block:'[[[41,[30,0,["showBasedOnPosition"]],[[[1,"  "],[10,0],[15,0,[29,["row ",[30,0,["containerClass"]]]]],[12],[1,"\\n"],[41,[30,0,["showDismissRead"]],[[[1,"      "],[8,[39,1],[[16,1,[30,0,["dismissReadId"]]],[24,0,"btn-default dismiss-read"]],[["@action","@translatedLabel","@title"],[[30,0,["dismissReadPosts"]],[30,0,["dismissLabel"]],"topics.bulk.dismiss_tooltip"]],null],[1,"\\n"]],[]],null],[41,[30,0,["showResetNew"]],[[[1,"      "],[8,[39,1],[[16,1,[30,0,["dismissNewId"]]],[24,0,"btn-default dismiss-read"]],[["@action","@icon","@translatedLabel"],[[30,0,["resetNew"]],"check",[30,0,["dismissNewLabel"]]]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-button"]]',moduleName:"discourse/components/topic-dismiss-buttons.hbs",isStrictMode:!1});var p,h,m,g,f,b,_;const y=(0,i.setComponentTemplate)(d,s().extend((p=(0,c.default)("position"),h=(0,c.default)("position"),m=(0,c.default)("position"),g=(0,c.default)("position","model.topics.length"),f=(0,c.default)("selectedTopics.length"),b=(0,c.default)("selectedTopics.length"),_={tagName:"",classNames:["topic-dismiss-buttons"],currentUser:(0,a.inject)(),modal:(0,a.inject)(),position:null,selectedTopics:null,model:null,containerClass:e=>`dismiss-container-${e}`,dismissReadId:e=>`dismiss-topics-${e}`,dismissNewId:e=>`dismiss-new-${e}`,showBasedOnPosition(e,t){return"top"!==e||this.currentUser?.new_new_view_enabled||t>5},dismissLabel:e=>0===e?u.default.t("topics.bulk.dismiss_button"):u.default.t("topics.bulk.dismiss_button_with_selected",{count:e}),dismissNewLabel(e){return this.currentUser?.new_new_view_enabled?u.default.t("topics.bulk.dismiss_button"):0===e?u.default.t("topics.bulk.dismiss_new"):u.default.t("topics.bulk.dismiss_new_with_selected",{count:e})},dismissReadPosts(){let e="topics.bulk.dismiss_read";this.selectedTopics.length&&(e="topics.bulk.dismiss_read_with_selected"),this.modal.show(l.default,{model:{title:e,count:this.selectedTopics.length,dismissRead:this.dismissRead}})}},(0,r.Z)(_,"containerClass",[p],Object.getOwnPropertyDescriptor(_,"containerClass"),_),(0,r.Z)(_,"dismissReadId",[h],Object.getOwnPropertyDescriptor(_,"dismissReadId"),_),(0,r.Z)(_,"dismissNewId",[m],Object.getOwnPropertyDescriptor(_,"dismissNewId"),_),(0,r.Z)(_,"showBasedOnPosition",[g],Object.getOwnPropertyDescriptor(_,"showBasedOnPosition"),_),(0,r.Z)(_,"dismissLabel",[f],Object.getOwnPropertyDescriptor(_,"dismissLabel"),_),(0,r.Z)(_,"dismissNewLabel",[b],Object.getOwnPropertyDescriptor(_,"dismissNewLabel"),_),(0,r.Z)(_,"dismissReadPosts",[o.action],Object.getOwnPropertyDescriptor(_,"dismissReadPosts"),_),_)))},93187:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r=n(54001),i=n(31691),s=n.n(i),o=n(51372),a=n(17579),l=n(71466),c=n.n(l),u=n(20229),d=n(10158),p=n(57555),h=n(82099);const m=(0,n(8620).createTemplateFactory)({id:"6i45Ny/9",block:'[[[8,[39,0],[[24,0,"btn-default full jump-top"]],[["@action","@ariaLabel"],[[28,[37,1],[[30,0],"enterTop"],null],"topic_entrance.sr_jump_top_button"]],[["default"],[[[[1,"\\n  "],[1,[28,[35,2],["step-backward"],null]],[1,"\\n  "],[1,[28,[35,3],[[30,0,["topDate"]]],null]],[1,"\\n"]],[]]]]],[1,"\\n\\n"],[8,[39,0],[[24,0,"btn-default full jump-bottom"]],[["@action","@ariaLabel"],[[28,[37,1],[[30,0],"enterBottom"],null],"topic_entrance.sr_jump_bottom_button"]],[["default"],[[[[1,"\\n  "],[1,[28,[35,3],[[30,0,["bottomDate"]]],null]],[1,"\\n  "],[1,[28,[35,2],["step-forward"],null]],[1,"\\n"]],[]]]]]],[],false,["d-button","action","d-icon","html-safe"]]',moduleName:"discourse/components/topic-entrance.hbs",isStrictMode:!1});var g,f,b,_,y,w,v,k,x,T;function S(e,t){const n=new Date;return e.toDateString()===n.toDateString()?moment(e).format(h.default.t("dates.time")):e.getYear()===n.getYear()?moment(e).format(t?h.default.t("dates.long_date_without_year_with_linebreak"):h.default.t("dates.long_no_year_no_time")):moment(e).format(t?h.default.t("dates.long_date_with_year_with_linebreak"):h.default.t("dates.long_date_with_year_without_time"))}const C=(0,i.setComponentTemplate)(m,s().extend(d.default,(g=(0,p.default)("topic.created_at"),f=(0,p.default)("topic.bumped_at"),b=(0,p.default)("createdDate","bumpedDate"),_=(0,p.default)("createdDate","showTime"),y=(0,p.default)("bumpedDate","showTime"),w={router:(0,a.inject)(),session:(0,a.inject)(),historyStore:(0,a.inject)(),elementId:"topic-entrance",classNameBindings:["visible::hidden"],topic:null,visible:null,_position:null,_originalActiveElement:null,_activeButton:null,createdDate:e=>new Date(e),bumpedDate:e=>new Date(e),showTime:(e,t)=>t.getTime()-e.getTime()<1728e5,topDate:(e,t)=>S(e,t),bottomDate:(e,t)=>S(e,t),didInsertElement(){this._super(...arguments),this.appEvents.on("topic-entrance:show",this,"_show")},_setCSS(){const e=this._position,t=c()(this.element),n=t.width(),r=t.height();e.left=parseInt(e.left,10)-n/2,e.top=parseInt(e.top,10)-r/2;const i=c()(window).width();e.left+n>i&&(e.left=i-n-15),t.css(e)},_escListener(e){"Escape"===e.key?this.cleanUp():"Tab"===e.key&&("top"===this._activeButton?(this._jumpBottomButton().focus(),this._activeButton="bottom",e.preventDefault()):"bottom"===this._activeButton&&(this._jumpTopButton().focus(),this._activeButton="top",e.preventDefault()))},_jumpTopButton(){return this.element.querySelector(".jump-top")},_jumpBottomButton(){return this.element.querySelector(".jump-bottom")},_setupEscListener(){document.body.addEventListener("keydown",this._escListener)},_removeEscListener(){document.body.removeEventListener("keydown",this._escListener)},_trapFocus(){this._originalActiveElement=document.activeElement,this._jumpTopButton().focus(),this._activeButton="top"},_releaseFocus(){this._originalActiveElement&&(this._originalActiveElement.focus(),this._originalActiveElement=null)},_applyDomChanges(){this._setCSS(),this._setupEscListener(),this._trapFocus()},_show(e){this._position=e.position,this.setProperties({topic:e.topic,visible:!0}),(0,o.scheduleOnce)("afterRender",this,this._applyDomChanges),c()("html").off("mousedown.topic-entrance").on("mousedown.topic-entrance",(e=>{const t=c()(e.target);"topic-entrance"!==t.prop("id")&&0===c()(this.element).has(t).length&&this.cleanUp()}))},cleanUp(){this.setProperties({topic:null,visible:!1}),c()("html").off("mousedown.topic-entrance"),this._removeEscListener(),this._releaseFocus()},willDestroyElement(){this._super(...arguments),this.appEvents.off("topic-entrance:show",this,"_show")},_jumpTo(e){this.historyStore.set("lastTopicIdViewed",this.topic.id),this.cleanUp(),u.default.routeTo(e)},actions:{enterTop(){this._jumpTo(this.get("topic.url"))},enterBottom(){this._jumpTo(this.get("topic.lastPostUrl"))}}},(0,r.Z)(w,"createdDate",[g],(v=(v=Object.getOwnPropertyDescriptor(w,"createdDate"))?v.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return v}}),w),(0,r.Z)(w,"bumpedDate",[f],(k=(k=Object.getOwnPropertyDescriptor(w,"bumpedDate"))?k.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return k}}),w),(0,r.Z)(w,"showTime",[b],Object.getOwnPropertyDescriptor(w,"showTime"),w),(0,r.Z)(w,"topDate",[_],(x=(x=Object.getOwnPropertyDescriptor(w,"topDate"))?x.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return x}}),w),(0,r.Z)(w,"bottomDate",[y],(T=(T=Object.getOwnPropertyDescriptor(w,"bottomDate"))?T.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return T}}),w),(0,r.Z)(w,"_escListener",[p.bind],Object.getOwnPropertyDescriptor(w,"_escListener"),w),w)))},53797:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(35814),c=n(73638),u=n(35591),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"yTv5aOCT",block:'[[[10,0],[14,0,"topic-footer-main-buttons"],[12],[1,"\\n  "],[8,[39,0],null,[["@topic","@openUpwards","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleFeaturedOnProfile","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,0,["topic"]],"true",[30,0,["toggleMultiSelect"]],[30,0,["showTopicSlowModeUpdate"]],[30,0,["deleteTopic"]],[30,0,["recoverTopic"]],[30,0,["toggleFeaturedOnProfile"]],[30,0,["toggleClosed"]],[30,0,["toggleArchived"]],[30,0,["toggleVisibility"]],[30,0,["showTopicTimerModal"]],[30,0,["showFeatureTopic"]],[30,0,["showChangeTimestamp"]],[30,0,["resetBumpDate"]],[30,0,["convertToPublicTopic"]],[30,0,["convertToPrivateMessage"]]]],null],[1,"\\n\\n"],[41,[30,0,["site","mobileView"]],[[[1,"    "],[8,[39,2],null,[["@topic","@content"],[[30,0,["topic"]],[30,0,["dropdownButtons"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["inlineActionables"]]],null]],null],null,[[[41,[28,[37,5],[[30,1,["type"]],"inline-button"],null],[[[1,"      "],[8,[39,6],[[16,1,[28,[37,7],["topic-footer-button-",[30,1,["id"]]],null]],[16,0,[28,[37,8],["btn-default","topic-footer-button",[30,1,["classNames"]]],null]]],[["@action","@icon","@translatedLabel","@translatedTitle","@translatedAriaLabel","@disabled"],[[30,1,["action"]],[30,1,["icon"]],[30,1,["label"]],[30,1,["title"]],[30,1,["ariaLabel"]],[30,1,["disabled"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[8,[39,9],[[16,0,[28,[37,8],["topic-footer-dropdown",[30,1,["classNames"]]],null]]],[["@id","@value","@content","@onChange","@options"],[[28,[37,7],["topic-footer-dropdown-",[30,1,["id"]]],null],[30,1,["value"]],[30,1,["content"]],[28,[37,10],[[30,0],[30,1,["action"]]],null],[28,[37,11],null,[["icon","none","disabled"],[[30,1,["icon"]],[30,1,["noneItem"]],[30,1,["disabled"]]]]]]],null],[1,"\\n"]],[]]]],[1]],null],[1,"\\n  "],[8,[39,12],null,[["@name","@outletArgs","@connectorTagName"],["topic-footer-main-buttons-before-create",[28,[37,11],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n\\n"],[41,[30,0,["topic","details","can_create_post"]],[[[1,"    "],[8,[39,6],[[24,0,"btn-primary create"]],[["@icon","@action","@label","@title"],["reply",[30,0,["replyToPost"]],"topic.reply.title","topic.reply.help"]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,12],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-main-buttons",[28,[37,11],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,13],null,[["@pinned","@topic"],[[30,0,["topic","pinned"]],[30,0,["topic"]]]],null],[1,"\\n\\n"],[41,[30,0,["showNotificationsButton"]],[[[41,[30,0,["showNotificationUserTip"]],[[[1,"    "],[8,[39,14],null,[["@id","@triggerSelector","@titleText","@contentText"],["topic_notification_levels",".notifications-button",[28,[37,15],["user_tips.topic_notification_levels.title"],null],[28,[37,15],["user_tips.topic_notification_levels.content"],null]]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[8,[39,16],null,[["@notificationLevel","@topic"],[[30,0,["topic","details","notification_level"]],[30,0,["topic"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[8,[39,12],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-footer-buttons",[28,[37,11],null,[["topic"],[[30,0,["topic"]]]]],"span"]],null]],["actionable"],false,["topic-admin-menu-button","if","topic-footer-mobile-dropdown","each","-track-array","eq","d-button","concat","concat-class","dropdown-select-box","action","hash","plugin-outlet","pinned-button","user-tip","i18n","topic-notifications-button"]]',moduleName:"discourse/components/topic-footer-buttons.hbs",isStrictMode:!1});var h,m,g,f,b,_,y,w,v,k,x;const T=(0,i.setComponentTemplate)(p,s().extend((h=(0,d.default)("canSendPms","topic.isPrivateMessage"),m=(0,d.default)("inlineButtons.[]","topic.assigned_to_user"),g=(0,d.default)("topic.isPrivateMessage"),f=(0,d.default)("topic.details.notification_level"),b=(0,d.default)("topic.message_archived"),_=(0,d.default)("topic.message_archived"),y=(0,d.default)("topic.message_archived"),w={elementId:"topic-footer-buttons",attributeBindings:["role"],role:"region",canArchive:(e,t)=>e&&t,inlineButtons:(0,c.getTopicFooterButtons)(),inlineDropdowns:(0,u.getTopicFooterDropdowns)(),inlineActionables:(0,o.computed)("inlineButtons.[]","inlineDropdowns.[]",(function(){return this.inlineButtons.filterBy("dropdown",!1).filterBy("anonymousOnly",!1).concat(this.inlineDropdowns).sortBy("priority").reverse()})),dropdownButtons:e=>e.filter((e=>e.dropdown)),showNotificationsButton(e){return!e||this.canSendPms},showNotificationUserTip:e=>e>=l.NotificationLevels.TRACKING,canSendPms:(0,a.alias)("currentUser.can_send_private_messages"),canInviteTo:(0,a.alias)("topic.details.can_invite_to"),canDefer:(0,a.alias)("currentUser.user_option.enable_defer"),inviteDisabled:(0,a.or)("topic.archived","topic.closed","topic.deleted"),archiveIcon:e=>e?"envelope":"folder",archiveTitle:e=>e?"topic.move_to_inbox.help":"topic.archive_message.help",archiveLabel:e=>e?"topic.move_to_inbox.title":"topic.archive_message.title"},(0,r.Z)(w,"canArchive",[h],Object.getOwnPropertyDescriptor(w,"canArchive"),w),(0,r.Z)(w,"dropdownButtons",[m],Object.getOwnPropertyDescriptor(w,"dropdownButtons"),w),(0,r.Z)(w,"showNotificationsButton",[g],Object.getOwnPropertyDescriptor(w,"showNotificationsButton"),w),(0,r.Z)(w,"showNotificationUserTip",[f],Object.getOwnPropertyDescriptor(w,"showNotificationUserTip"),w),(0,r.Z)(w,"archiveIcon",[b],(v=(v=Object.getOwnPropertyDescriptor(w,"archiveIcon"))?v.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return v}}),w),(0,r.Z)(w,"archiveTitle",[_],(k=(k=Object.getOwnPropertyDescriptor(w,"archiveTitle"))?k.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return k}}),w),(0,r.Z)(w,"archiveLabel",[y],(x=(x=Object.getOwnPropertyDescriptor(w,"archiveLabel"))?x.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return x}}),w),w)))},13772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I,navigateToTopic:()=>D,showEntrance:()=>E});var r=n(54001),i=n(72326),s=n(31691),o=n.n(s),a=n(6264),l=n(40375),c=n(51372),u=n(17579),d=n(24434),p=n(71466),h=n.n(p),m=n(90793),g=n(77559),f=n(20229),b=n(24816),_=n(21896),y=n(57555),w=n(82099);const v=(0,n(8620).createTemplateFactory)({id:"r8eDUZIW",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["above-topic-list-item",[28,[37,1],null,[["topic"],[[30,0,["topic"]]]]]]],null],[1,"\\n"],[1,[30,0,["topicListItemContents"]]]],[],false,["plugin-outlet","hash"]]',moduleName:"discourse/components/topic-list-item.hbs",isStrictMode:!1});var k,x,T,S,C,P,O;function E(e){let t=h()(e.target);if(t.hasClass("posts-map")||t.parents(".posts-map").length>0)return"A"!==t.prop("tagName")&&(t=t.find("a"),0===t.length&&(t=t.end())),this.appEvents.trigger("topic-entrance:show",{topic:this.topic,position:t.offset()}),!1}function D(e,t){return(0,i.getOwner)(this).lookup("service:history-store").set("lastTopicIdViewed",e.id),f.default.routeTo(t||e.get("url")),!1}const I=(0,s.setComponentTemplate)(v,o().extend((k=(0,y.observes)("topic.pinned","expandGloballyPinned","expandAllPinned"),x=(0,y.default)("topic.participant_groups"),T=(0,y.default)("topic.id"),S=(0,y.default)("topic.unread_by_group_member"),C=(0,y.default)("topic.unread_by_group_member"),P=(0,y.default)("topic","lastVisitedTopic"),O={router:(0,u.inject)(),historyStore:(0,u.inject)(),tagName:"tr",classNameBindings:[":topic-list-item","unboundClassNames","topic.visited"],attributeBindings:["data-topic-id","role","ariaLevel:aria-level"],"data-topic-id":(0,a.alias)("topic.id"),didReceiveAttrs(){this._super(...arguments),this.renderTopicListItem()},renderTopicListItem(){const e=(0,_.findRawTemplate)("list/topic-list-item");e&&(this.set("topicListItemContents",(0,d.htmlSafe)(e(this,b.RUNTIME_OPTIONS))),(0,c.schedule)("afterRender",(()=>{if(!this.isDestroyed&&!this.isDestroying&&(this.selected&&this.selected.includes(this.topic)&&(this.element.querySelector("input.bulk-select").checked=!0),this._shouldFocusLastVisited())){const e=this._titleElement();e&&(e.addEventListener("focus",this._onTitleFocus),e.addEventListener("blur",this._onTitleBlur))}})))},didInsertElement(){this._super(...arguments),this.includeUnreadIndicator&&this.messageBus.subscribe(this.unreadIndicatorChannel,this.onMessage),(0,c.schedule)("afterRender",(()=>{if(this.element&&!this.isDestroying&&!this.isDestroyed){const e=this.element.querySelector(".raw-topic-link");e&&m.topicTitleDecorators?.forEach((t=>t(this.topic,e,"topic-list-item-title")))}}))},willDestroyElement(){if(this._super(...arguments),this.messageBus.unsubscribe(this.unreadIndicatorChannel,this.onMessage),this._shouldFocusLastVisited()){const e=this._titleElement();e&&(e.removeEventListener("focus",this._onTitleFocus),e.removeEventListener("blur",this._onTitleBlur))}},onMessage(e){document.querySelector(`.indicator-topic-${e.topic_id}`).classList.toggle("read",!e.show_indicator)},participantGroups:e=>e?e.map((e=>({name:e,url:(0,f.groupPath)(e)}))):[],unreadIndicatorChannel:e=>`/private-messages/unread-indicator/${e}`,unreadClass:e=>e?"":"read",includeUnreadIndicator:e=>void 0!==e,newDotText(){return this.currentUser&&this.currentUser.trust_level>0?"":w.default.t("filters.new.lower_title")},unboundClassNames(e,t){let n=[];return e.get("category")&&n.push("category-"+e.get("category.fullSlug")),e.get("tags")&&e.get("tags").forEach((e=>n.push("tag-"+e))),e.get("hasExcerpt")&&n.push("has-excerpt"),e.get("unseen")&&n.push("unseen-topic"),e.unread_posts&&n.push("unread-posts"),["liked","archived","bookmarked","pinned","closed"].forEach((t=>{e.get(t)&&n.push(t)})),e===t&&n.push("last-visit"),n.join(" ")},hasLikes(){return this.get("topic.like_count")>0},hasOpLikes(){return this.get("topic.op_like_count")>0},expandPinned(){if(!this.get("topic.pinned"))return!1;if(this.site.mobileView){if(!this.siteSettings.show_pinned_excerpt_mobile)return!1}else if(!this.siteSettings.show_pinned_excerpt_desktop)return!1;return!(!this.expandGloballyPinned||!this.get("topic.pinned_globally"))||!!this.expandAllPinned},showEntrance:E,click(e){const t=this.showEntrance(e);if(!1===t)return t;const n=this.topic,r=e.target,i=r.classList;if(i.contains("bulk-select")){const t=this.selected;if(r.checked){if(t.addObject(n),this.lastChecked&&e.shiftKey){const e=Array.from(document.querySelectorAll("input.bulk-select")),t=e.indexOf(r),n=e.findIndex((e=>e.id===this.lastChecked.id)),i=Math.min(t,n),s=Math.max(t,n);e.slice(i,s).filter((e=>!0!==e.checked)).forEach((e=>{e.click()}))}this.set("lastChecked",r)}else t.removeObject(n),this.set("lastChecked",null)}return i.contains("raw-topic-link")||i.contains("post-activity")?!!(0,g.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(n,r.getAttribute("href"))):this.site.mobileView&&e.target.matches(".topic-list-data, .main-link, .right, .topic-item-stats, .topic-item-stats__category-tags, .discourse-tags")?!!(0,g.wantsNewWindow)(e)||(e.preventDefault(),this.navigateToTopic(n,n.lastUnreadUrl)):i.contains("d-icon-thumbtack")&&r.closest("a.topic-status")?(this.topic.togglePinnedForUser(),!1):this.unhandledRowClick(e,n)},unhandledRowClick(){},keyDown(e){if("Enter"===e.key&&e.target.classList.contains("post-activity"))return e.preventDefault(),this.navigateToTopic(this.topic,e.target.getAttribute("href"))},navigateToTopic:D,highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLastViewedTopic:!1};(0,c.schedule)("afterRender",(()=>{!this.element||this.isDestroying||this.isDestroyed||(this.element.classList.add("highlighted"),this.element.setAttribute("data-islastviewedtopic",e.isLastViewedTopic),this.element.addEventListener("animationend",(()=>{this.element.classList.remove("highlighted")})),e.isLastViewedTopic&&this._shouldFocusLastVisited()&&this._titleElement()?.focus())}))},_highlightIfNeeded:(0,l.on)("didInsertElement",(function(){this.historyStore.get("lastTopicIdViewed")===this.topic.id?(this.historyStore.delete("lastTopicIdViewed"),this.highlight({isLastViewedTopic:!0})):this.get("topic.highlight")&&(this.set("topic.highlight",!1),this.highlight())})),_onTitleFocus(){!this.element||this.isDestroying||this.isDestroyed||this._mainLinkElement().classList.add("focused")},_onTitleBlur(){!this.element||this.isDestroying||this.isDestroyed||this._mainLinkElement().classList.remove("focused")},_shouldFocusLastVisited(){return!this.site.mobileView&&this.focusLastVisitedTopic},_mainLinkElement(){return this.element.querySelector(".main-link")},_titleElement(){return this.element.querySelector(".main-link .title")}},(0,r.Z)(O,"renderTopicListItem",[k],Object.getOwnPropertyDescriptor(O,"renderTopicListItem"),O),(0,r.Z)(O,"onMessage",[y.bind],Object.getOwnPropertyDescriptor(O,"onMessage"),O),(0,r.Z)(O,"participantGroups",[x],Object.getOwnPropertyDescriptor(O,"participantGroups"),O),(0,r.Z)(O,"unreadIndicatorChannel",[T],Object.getOwnPropertyDescriptor(O,"unreadIndicatorChannel"),O),(0,r.Z)(O,"unreadClass",[S],Object.getOwnPropertyDescriptor(O,"unreadClass"),O),(0,r.Z)(O,"includeUnreadIndicator",[C],Object.getOwnPropertyDescriptor(O,"includeUnreadIndicator"),O),(0,r.Z)(O,"newDotText",[y.default],Object.getOwnPropertyDescriptor(O,"newDotText"),O),(0,r.Z)(O,"unboundClassNames",[P],Object.getOwnPropertyDescriptor(O,"unboundClassNames"),O),(0,r.Z)(O,"expandPinned",[y.default],Object.getOwnPropertyDescriptor(O,"expandPinned"),O),(0,r.Z)(O,"_onTitleFocus",[y.bind],Object.getOwnPropertyDescriptor(O,"_onTitleFocus"),O),(0,r.Z)(O,"_onTitleBlur",[y.bind],Object.getOwnPropertyDescriptor(O,"_onTitleBlur"),O),O)))},49271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(39840),a=n(6264),l=n(40375),c=n(17579),u=n(81533),d=n(57555),p=n(40371);const h=(0,n(8620).createTemplateFactory)({id:"NedHfSdA",block:'[[[10,"thead"],[14,0,"topic-list-header"],[12],[1,"\\n  "],[1,[28,[35,0],["topic-list-header"],[["canBulkSelect","toggleInTitle","hideCategory","showPosters","showLikes","showOpLikes","order","ascending","sortable","listTitle","bulkSelectEnabled","bulkSelectHelper","experimentalTopicBulkActionsEnabled","canDoBulkActions","showTopicsAndRepliesToggle","newListSubset","newRepliesCount","newTopicsCount"],[[30,0,["canBulkSelect"]],[30,0,["toggleInTitle"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["order"]],[30,0,["ascending"]],[30,0,["sortable"]],[30,0,["listTitle"]],[30,0,["bulkSelectEnabled"]],[30,0,["bulkSelectHelper"]],[30,0,["experimentalTopicBulkActionsEnabled"]],[30,0,["canDoBulkActions"]],[30,0,["showTopicsAndRepliesToggle"]],[30,0,["newListSubset"]],[30,0,["newRepliesCount"]],[30,0,["newTopicsCount"]]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["before-topic-list-body",[28,[37,2],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null],[1,"\\n\\n"],[10,"tbody"],[14,0,"topic-list-body"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["filteredTopics"]]],null]],null],null,[[[1,"    "],[8,[39,5],null,[["@topic","@bulkSelectEnabled","@showTopicPostBadges","@hideCategory","@showPosters","@showLikes","@showOpLikes","@expandGloballyPinned","@expandAllPinned","@lastVisitedTopic","@selected","@lastChecked","@tagsForUser","@focusLastVisitedTopic","@index"],[[30,1],[30,0,["bulkSelectEnabled"]],[30,0,["showTopicPostBadges"]],[30,0,["hideCategory"]],[30,0,["showPosters"]],[30,0,["showLikes"]],[30,0,["showOpLikes"]],[30,0,["expandGloballyPinned"]],[30,0,["expandAllPinned"]],[30,0,["lastVisitedTopic"]],[30,0,["selected"]],[30,0,["lastChecked"]],[30,0,["tagsForUser"]],[30,0,["focusLastVisitedTopic"]],[30,2]]],null],[1,"\\n    "],[1,[28,[35,0],["list/visited-line"],[["lastVisitedTopic","topic"],[[30,0,["lastVisitedTopic"]],[30,1]]]]],[1,"\\n    "],[8,[39,1],null,[["@name","@outletArgs","@connectorTagName"],["after-topic-list-item",[28,[37,2],null,[["topic","index"],[[30,1],[30,2]]]],"tr"]],null],[1,"\\n"]],[1,2]],null],[13],[1,"\\n\\n"],[8,[39,1],null,[["@name","@outletArgs"],["after-topic-list-body",[28,[37,2],null,[["topics","selected","bulkSelectEnabled","lastVisitedTopic","discoveryList","hideCategory"],[[30,0,["topics"]],[30,0,["selected"]],[30,0,["bulkSelectEnabled"]],[30,0,["lastVisitedTopic"]],[30,0,["discoveryList"]],[30,0,["hideCategory"]]]]]]],null]],["topic","index"],false,["raw","plugin-outlet","hash","each","-track-array","topic-list-item"]]',moduleName:"discourse/components/topic-list.hbs",isStrictMode:!1});var m,g,f,b,_;const y=(0,i.setComponentTemplate)(h,s().extend(u.default,(m=(0,d.default)("order"),g=(0,d.default)("order"),f=(0,d.observes)("topics.[]"),b=(0,d.observes)("topics","order","ascending","category","top"),_={modal:(0,c.inject)(),router:(0,c.inject)(),tagName:"table",classNames:["topic-list"],classNameBindings:["bulkSelectEnabled:sticky-header"],showTopicPostBadges:!0,listTitle:"topic.title",get canDoBulkActions(){return this.currentUser?.canManageTopic&&this.bulkSelectHelper?.selected.length},filteredTopics:(0,a.alias)("topics"),_init:(0,l.on)("init",(function(){this.addObserver("hideCategory",this.rerender),this.addObserver("order",this.rerender),this.addObserver("ascending",this.rerender),this.refreshLastVisited()})),get selected(){return this.bulkSelectHelper?.selected},get bulkSelectEnabled(){return this.bulkSelectHelper?.bulkSelectEnabled},get toggleInTitle(){return!this.bulkSelectHelper?.bulkSelectEnabled&&this.get("canBulkSelect")},experimentalTopicBulkActionsEnabled(){return this.currentUser?.use_experimental_topic_bulk_actions},sortable(){return!!this.changeSort},showLikes:e=>"likes"===e,showOpLikes:e=>"op_likes"===e,topicsAdded(){this.lastVisitedTopic||this.refreshLastVisited()},lastVisitedTopicChanged(){this.refreshLastVisited()},scrolled(){this._super(...arguments);let e=this.onScroll;e&&e.call(this)},_updateLastVisitedTopic(e,t,n,r){if(this.set("lastVisitedTopic",null),!this.highlightLastVisited)return;if(t&&"activity"!==t)return;if(r)return;if(!e||1===e.length)return;if(n)return;let i,s,o=this.currentUser;if(!o||!o.previous_visit_at)return;let a,l=o.get("previousVisitAt"),c=0;for(;e[c]&&e[c].get("pinned");)c++;for(a=e.length-1;a>=c;a--){if(e[a].get("bumpedAt")>l){i=e[a];break}s=e[a]}i&&s&&(s.get("bumpedAt")>l||this.set("lastVisitedTopic",i))},refreshLastVisited(){this._updateLastVisitedTopic(this.topics,this.order,this.ascending,this.top)},click(e){const t=(t,n)=>{let r=e.target.closest(t);r&&n(r)};t("button.bulk-select",(()=>{this.bulkSelectHelper.toggleBulkSelect(),this.rerender()})),t("button.bulk-select-all",(()=>{this.bulkSelectHelper.autoAddTopicsToBulkSelect=!0,document.querySelectorAll("input.bulk-select:not(:checked)").forEach((e=>e.click()))})),t("button.bulk-clear-all",(()=>{this.bulkSelectHelper.autoAddTopicsToBulkSelect=!1,document.querySelectorAll("input.bulk-select:checked").forEach((e=>e.click()))})),t("th.sortable",(e=>{this.changeSort(e.dataset.sortOrder),this.rerender()})),t("button.bulk-select-actions",(()=>{this.modal.show(p.default,{model:{topics:this.bulkSelectHelper.selected,category:this.category,refreshClosure:()=>this.router.refresh()}})})),t("button.topics-replies-toggle",(e=>{e.classList.contains("--all")?this.changeNewListSubset(null):e.classList.contains("--topics")?this.changeNewListSubset("topics"):e.classList.contains("--replies")&&this.changeNewListSubset("replies"),this.rerender()}))},keyDown(e){"Enter"!==e.key&&" "!==e.key||((t,n)=>{let r=e.target.closest("th.sortable");r&&n.call(this,r)})(0,(e=>{this.changeSort(e.dataset.sortOrder),this.rerender()}))}},(0,r.Z)(_,"bulkSelectEnabled",[o.dependentKeyCompat],Object.getOwnPropertyDescriptor(_,"bulkSelectEnabled"),_),(0,r.Z)(_,"experimentalTopicBulkActionsEnabled",[d.default],Object.getOwnPropertyDescriptor(_,"experimentalTopicBulkActionsEnabled"),_),(0,r.Z)(_,"sortable",[d.default],Object.getOwnPropertyDescriptor(_,"sortable"),_),(0,r.Z)(_,"showLikes",[m],Object.getOwnPropertyDescriptor(_,"showLikes"),_),(0,r.Z)(_,"showOpLikes",[g],Object.getOwnPropertyDescriptor(_,"showOpLikes"),_),(0,r.Z)(_,"topicsAdded",[f],Object.getOwnPropertyDescriptor(_,"topicsAdded"),_),(0,r.Z)(_,"lastVisitedTopicChanged",[b],Object.getOwnPropertyDescriptor(_,"lastVisitedTopicChanged"),_),_)))},36817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addTopicParticipantClassesCallback:()=>h,default:()=>m});var r,i=n(82006),s=n(24434),o=n(3167),a=n(20229),l=n(80709),c=n(58826),u=n(8620),d=n(31691);const p=[];function h(e){p.push(e)}class m extends i.default{get avatarImage(){return(0,s.htmlSafe)((0,l.avatarImg)({avatarTemplate:this.args.participant.avatar_template,size:"medium",title:this.args.participant.name||this.args.participant.username}))}get participantClasses(){const{primary_group_name:e}=this.args.participant;return[e?`group-${e}`:null,p.map((e=>e(this.args.participant)))].filter(Boolean).flat(3).join(" ")}get linkClasses(){return["poster","trigger-user-card",this.args.toggledUsers?.has(this.args.participant.username)?"toggled":null].filter(Boolean).join(" ")}get userUrl(){(0,a.userPath)(this.args.participant)}}r=m,(0,d.setComponentTemplate)((0,u.createTemplateFactory)({id:"KeUH8giD",block:'[[[1,"\\n    "],[10,0],[15,0,[30,0,["participantClasses"]]],[12],[1,"\\n      "],[10,3],[15,0,[30,0,["linkClasses"]]],[15,"data-user-card",[30,1,["username"]]],[15,"title",[30,1,["username"]]],[15,6,[30,0,["userUrl"]]],[12],[1,"\\n        "],[1,[30,0,["avatarImage"]]],[1,"\\n"],[41,[28,[32,0],[[30,1,["post_count"]],1],null],[[[1,"          "],[10,1],[14,0,"post-count"],[12],[1,[30,1,["post_count"]]],[13],[1,"\\n"]],[]],null],[1,"        "],[8,[32,1],null,[["@user"],[[30,1]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],["@participant"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-participant.js",scope:()=>[c.default,o.default],isStrictMode:!0}),r)},30896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(49246),s=n(82006),o=n(36817),a=n(8620),l=n(31691);class c extends s.default{constructor(){super(...arguments),(0,i.Z)(this,"toggledUsers",new Set(this.args.userFilters))}}r=c,(0,l.setComponentTemplate)((0,a.createTemplateFactory)({id:"LvWN9W/3",block:'[[[1,"\\n    "],[1,[30,1]],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,2]],null]],null],null,[[[1,"      "],[8,[32,0],null,[["@participant","@toggledUsers"],[[30,3],[30,0,["toggledUsers"]]]],null],[1,"\\n"]],[3]],null],[1,"  "]],["@title","@participants","participant"],false,["each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-map/topic-participants.js",scope:()=>[o.default],isStrictMode:!0}),r)},27581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"KdX53xZU",block:'[[[41,[51,[30,0,["hidden"]]],[[[1,"  "],[10,0],[14,0,"topic-navigation-popup"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"close btn-flat"]],[["@action","@icon"],[[30,0,["close"]],"times"]],null],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["&default"],false,["unless","d-button","yield"]]',moduleName:"discourse/components/topic-navigation-popup.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("popupId"),u={tagName:"",popupId:null,hidden:!1,init(){if(this._super(...arguments),this.popupKey){const e=this.keyValueStore.getItem(this.popupKey);!0===e||e>+new Date?this.set("hidden",!0):this.keyValueStore.removeItem(this.popupKey)}},popupKey(e){if(e)return`dismiss_topic_nav_popup_${e}`},close(){if(this.set("hidden",!0),this.popupKey)if(this.dismissDuration){const e=+new Date+this.dismissDuration;this.keyValueStore.setItem(this.popupKey,e)}else this.keyValueStore.setItem(this.popupKey,!0)}},(0,r.Z)(u,"popupKey",[c],Object.getOwnPropertyDescriptor(u,"popupKey"),u),(0,r.Z)(u,"close",[o.action],Object.getOwnPropertyDescriptor(u,"close"),u),u)))},67234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(51372),c=n(17579),u=n(71466),d=n.n(u),p=n(31310),h=n(13473),m=n(56111),g=n(12933),f=n(57555),b=n(6187);const _=(0,n(8620).createTemplateFactory)({id:"Je3pbzQj",block:'[[[41,[30,0,["canRender"]],[[[1,"  "],[18,1,[[30,0,["info"]]]],[1,"\\n"]],[]],null]],["&default"],false,["if","yield"]]',moduleName:"discourse/components/topic-navigation.hbs",isStrictMode:!1});var y,w;const v=(0,i.setComponentTemplate)(_,s().extend((y=(0,f.observes)("info.topicProgressExpanded"),w={modal:(0,c.inject)(),classNameBindings:["info.topicProgressExpanded:topic-progress-expanded","info.renderTimeline:with-timeline:with-topic-progress"],composerOpen:null,info:null,canRender:!0,_lastTopicId:null,_swipeEvents:null,init(){this._super(...arguments),this.set("info",a().create())},didUpdateAttrs(){this._super(...arguments),this._lastTopicId!==this.topic.id&&(this._lastTopicId=this.topic.id,this.set("canRender",!1),(0,l.next)((()=>this.set("canRender",!0))))},_performCheckSize(){if(this.element&&!this.isDestroying&&!this.isDestroyed)if(this.info.topicProgressExpanded)this.info.set("renderTimeline",!0);else if(this.site.mobileView)this.info.set("renderTimeline",!1);else{const e=document.querySelector("#reply-control")?.offsetHeight||0,t=window.innerHeight-e-(0,p.headerOffset)();this.info.set("renderTimeline",this.mediaQuery.matches&&t>325)}},_checkSize(){(0,m.default)(this,this._performCheckSize,200,!0)},_topicScrolled(e){this.set("info.prevEvent",e)},_expanded(){this.get("info.topicProgressExpanded")?d()(window).on("click.hide-fullscreen",(e=>{let t=d()(e.target),n=t.parents();t.is(".widget-button")||n.is(".widget-button")||n.is("#discourse-modal")||t.is("#discourse-modal")||n.is(".modal-footer")||!t.is(".topic-timeline")&&n.is("#topic-progress-wrapper")||n.is(".timeline-open-jump-to-post-prompt-btn")||t.is(".timeline-open-jump-to-post-prompt-btn")||this._collapseFullscreen()})):d()(window).off("click.hide-fullscreen"),this._checkSize()},composerOpened(){this.set("composerOpen",!0),this._checkSize()},composerClosed(){this.set("composerOpen",!1),this._checkSize()},_collapseFullscreen(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;this.get("info.topicProgressExpanded")&&(d()(".timeline-fullscreen").removeClass("show"),(0,g.default)((()=>{!this.element||this.isDestroying||this.isDestroyed||(this.set("info.topicProgressExpanded",!1),this._checkSize())}),e))},keyboardTrigger(e){"jump"===e.type&&this.modal.show(b.default,{model:{topic:this.topic,jumpToIndex:this.jumpToIndex,jumpToDate:this.jumpToDate}})},onSwipeStart(e){const t=e.detail,n=t.originalEvent.target;!n.classList.contains("docked")&&n.closest(".timeline-container")?(t.originalEvent.preventDefault(),document.elementFromPoint(t.center.x,t.center.y).closest(".timeline-scrollarea-wrapper")?e.preventDefault():"up"!==t.direction&&"down"!==t.direction||(this.movingElement=document.querySelector(".timeline-container"))):e.preventDefault()},onSwipeCancel(){let e=this._swipeEvents.getMaxAnimationTimeMs();document.querySelector(".timeline-container").animate([{transform:"translate3d(0, 0, 0)"}],{duration:e,fill:"forwards",easing:"ease-out"})},onSwipeEnd(e){const t=e.detail,n=document.querySelector(".timeline-container"),r=n.offsetHeight;let i=this._swipeEvents.getMaxAnimationTimeMs();if(this._swipeEvents.shouldCloseMenu(t,"bottom")){const e=r-this.pxClosed;i=this._swipeEvents.getMaxAnimationTimeMs(e/Math.abs(t.velocityY)),n.animate([{transform:`translate3d(0, ${r}px, 0)`}],{duration:i,fill:"forwards"}).finished.then((()=>this._collapseFullscreen(0)))}else{const e=this.pxClosed;i=this._swipeEvents.getMaxAnimationTimeMs(e/Math.abs(t.velocityY)),n.animate([{transform:"translate3d(0, 0, 0)"}],{duration:i,fill:"forwards",easing:"ease-out"})}},onSwipe(e){const t=e.detail;t.originalEvent.preventDefault(),this.pxClosed=Math.max(0,t.deltaY),this.movingElement.animate([{transform:`translate3d(0, ${this.pxClosed}px, 0)`}],{fill:"forwards"})},didInsertElement(){this._super(...arguments),this._lastTopicId=this.topic.id,this.appEvents.on("topic:current-post-scrolled",this,this._topicScrolled).on("topic:jump-to-post",this,this._collapseFullscreen).on("topic:keyboard-trigger",this,this.keyboardTrigger),this.site.desktopView&&(this.mediaQuery=matchMedia("(min-width: 925px)"),this.mediaQuery.addEventListener("change",this._checkSize),this.appEvents.on("composer:opened",this,this.composerOpened),this.appEvents.on("composer:resize-ended",this,this.composerOpened),this.appEvents.on("composer:closed",this,this.composerClosed),d()("#reply-control").on("div-resized",this._checkSize)),this._checkSize(),this._swipeEvents=new h.default(this.element),this.site.mobileView&&(this._swipeEvents.addTouchListeners(),this.element.addEventListener("swipestart",this.onSwipeStart),this.element.addEventListener("swipeend",this.onSwipeEnd),this.element.addEventListener("swipecancel",this.onSwipeCancel),this.element.addEventListener("swipe",this.onSwipe))},willDestroyElement(){this._super(...arguments),this.appEvents.off("topic:current-post-scrolled",this,this._topicScrolled).off("topic:jump-to-post",this,this._collapseFullscreen).off("topic:keyboard-trigger",this,this.keyboardTrigger),d()(window).off("click.hide-fullscreen"),this.site.desktopView&&(this.mediaQuery.removeEventListener("change",this._checkSize),this.appEvents.off("composer:opened",this,this.composerOpened),this.appEvents.off("composer:resize-ended",this,this.composerOpened),this.appEvents.off("composer:closed",this,this.composerClosed),d()("#reply-control").off("div-resized",this._checkSize)),this.site.mobileView&&(this.element.removeEventListener("swipestart",this.onSwipeStart),this.element.removeEventListener("swipeend",this.onSwipeEnd),this.element.removeEventListener("swipecancel",this.onSwipeCancel),this.element.removeEventListener("swipe",this.onSwipe),this._swipeEvents.removeTouchListeners())}},(0,r.Z)(w,"_checkSize",[f.bind],Object.getOwnPropertyDescriptor(w,"_checkSize"),w),(0,r.Z)(w,"_expanded",[y],Object.getOwnPropertyDescriptor(w,"_expanded"),w),(0,r.Z)(w,"onSwipeStart",[f.bind],Object.getOwnPropertyDescriptor(w,"onSwipeStart"),w),(0,r.Z)(w,"onSwipeCancel",[f.bind],Object.getOwnPropertyDescriptor(w,"onSwipeCancel"),w),(0,r.Z)(w,"onSwipeEnd",[f.bind],Object.getOwnPropertyDescriptor(w,"onSwipeEnd"),w),(0,r.Z)(w,"onSwipe",[f.bind],Object.getOwnPropertyDescriptor(w,"onSwipe"),w),w)))},38574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(31691),i=n.n(r),s=n(6264),o=n(82099);const a=(0,n(8620).createTemplateFactory)({id:"rBC99KK0",block:'[[[41,[30,0,["displayUnreadPosts"]],[[[1," "],[10,3],[15,6,[30,0,["url"]]],[15,"title",[28,[37,1],["topic.unread_posts"],[["count"],[[30,0,["displayUnreadPosts"]]]]]],[14,0,"badge badge-notification unread-posts"],[12],[1,[30,0,["displayUnreadPosts"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["unseen"]],[[[1," "],[10,3],[15,6,[30,0,["url"]]],[15,"title",[28,[37,1],["topic.new"],null]],[14,0,"badge badge-notification new-topic"],[12],[1,[30,0,["newDotText"]]],[13],[1,"\\n"]],[]],null]],[],false,["if","i18n"]]',moduleName:"discourse/components/topic-post-badges.hbs",isStrictMode:!1}),l=(0,r.setComponentTemplate)(a,i().extend({tagName:"span",classNameBindings:[":topic-post-badges"],newDotText:null,init(){this._super(...arguments),this.set("newDotText",this.currentUser&&this.currentUser.trust_level>0?" ":o.default.t("filters.new.lower_title"))},displayUnreadPosts:(0,s.or)("newPosts","unreadPosts")}))},69165:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(51372),c=n(34405),u=n(12933),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"I/HtEhcg",block:'[[[41,[51,[30,0,["hideProgress"]]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showBackButton"]],[[[1,"  "],[10,0],[14,0,"progress-back-container"],[12],[1,"\\n    "],[8,[39,3],[[24,0,"btn-primary progress-back"]],[["@label","@action","@icon"],["topic.timeline.back",[30,0,["goBack"]],"arrow-down"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"nav"],[15,"title",[28,[37,4],["topic.progress.title"],null]],[15,"aria-label",[28,[37,4],["topic.progress.title"],null]],[15,0,[52,[30,0,["hideProgress"]],"hidden"]],[14,1,"topic-progress"],[15,5,[28,[37,5],[[30,0,["progressStyle"]]],null]],[12],[1,"\\n  "],[10,0],[14,0,"nums"],[12],[1,"\\n    "],[10,"h4"],[12],[1,[30,0,["progressPosition"]]],[13],[1,"\\n    "],[10,1],[15,0,[52,[30,0,["hugeNumberOfPosts"]],"hidden"]],[12],[1,"\\n      "],[10,1],[12],[1,"/"],[13],[1,"\\n      "],[10,"h4"],[12],[1,[30,0,["postStream","filteredPostsCount"]]],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"bg"],[12],[13],[1,"\\n"],[13],[1,"\\n\\n"],[8,[39,6],null,[["@name","@connectorTagName"],["after-topic-progress","div"]],null]],["&default"],false,["unless","yield","if","d-button","i18n","html-safe","plugin-outlet"]]',moduleName:"discourse/components/topic-progress.hbs",isStrictMode:!1});var h,m,g,f,b;const _=(0,c.isTesting)()?0:500,y=(0,i.setComponentTemplate)(p,s().extend((h=(0,d.default)("postStream.loaded","topic.currentPost","postStream.filteredPostsCount"),m=(0,d.default)("postStream.filteredPostsCount"),g=(0,d.default)("progressPosition","topic.last_read_post_id"),f=(0,d.default)("_streamPercentage"),b={elementId:"topic-progress-wrapper",classNameBindings:["docked","withTransitions"],docked:!1,withTransitions:null,progressPosition:null,postStream:(0,a.alias)("topic.postStream"),_streamPercentage:null,hideProgress(e,t,n){const r=!this.site.mobileView&&n<2;return!e||!t||r},hugeNumberOfPosts(e){return e>=this.siteSettings.short_progress_text_threshold},showBackButton(e,t){if(!t)return;const n=this.get("postStream.stream"),r=n.indexOf(t)||0;return r<n.length-1&&r>e},_topicScrolled(e){this.docked?this.setProperties({progressPosition:this.get("postStream.filteredPostsCount"),_streamPercentage:100}):this.setProperties({progressPosition:e.postIndex,_streamPercentage:(100*e.percent).toFixed(2)})},progressStyle:e=>`--progress-bg-width: ${e||0}%`,didInsertElement(){this._super(...arguments),this.appEvents.on("composer:resized",this,this._composerEvent).on("topic:current-post-scrolled",this,this._topicScrolled),this.prevEvent&&(0,l.scheduleOnce)("afterRender",this,this._topicScrolled,this.prevEvent),(0,l.scheduleOnce)("afterRender",this,this._startObserver),(0,u.default)(this._addCssTransitions,_)},willDestroyElement(){this._super(...arguments),this._topicBottomObserver?.disconnect(),this.appEvents.off("composer:resized",this,this._composerEvent).off("topic:current-post-scrolled",this,this._topicScrolled)},_addCssTransitions(){this.isDestroying||this.isDestroyed||this.set("withTransitions",!0)},_startObserver(){"IntersectionObserver"in window&&(this._topicBottomObserver=this._setupObserver(),this._topicBottomObserver.observe(document.querySelector("#topic-bottom")))},_setupObserver(){const e=document.querySelector("#reply-control")?.clientHeight||50;return new IntersectionObserver(this._intersectionHandler,{threshold:1,rootMargin:`0px 0px -${e}px 0px`})},_composerEvent(){"IntersectionObserver"in window&&(this._topicBottomObserver?.disconnect(),this._startObserver())},_intersectionHandler(e){if(!this.element||this.isDestroying||this.isDestroyed)return;const t=document.querySelector("#reply-control")?.clientHeight||0;if(!this.site.mobileView&&t)return this.set("docked",!1),void this.element.style.setProperty("bottom",`${t}px`);if(!0===e[0].isIntersecting)this.set("docked",!0),this.element.style.removeProperty("bottom");else if(e[0].boundingClientRect.top>0)if(this.set("docked",!1),0===t){const e=document.querySelector(".posts-filtered-notice")?.clientHeight||0;0===e?this.element.style.removeProperty("bottom"):this.element.style.setProperty("bottom",`${e}px`)}else this.element.style.setProperty("bottom",`${t}px`)},click(e){e.target.closest("#topic-progress")&&this.toggleProperty("expanded")},goBack(){this.jumpToPost(this.get("topic.last_read_post_number"))}},(0,r.Z)(b,"hideProgress",[h],Object.getOwnPropertyDescriptor(b,"hideProgress"),b),(0,r.Z)(b,"hugeNumberOfPosts",[m],Object.getOwnPropertyDescriptor(b,"hugeNumberOfPosts"),b),(0,r.Z)(b,"showBackButton",[g],Object.getOwnPropertyDescriptor(b,"showBackButton"),b),(0,r.Z)(b,"progressStyle",[f],Object.getOwnPropertyDescriptor(b,"progressStyle"),b),(0,r.Z)(b,"_addCssTransitions",[d.bind],Object.getOwnPropertyDescriptor(b,"_addCssTransitions"),b),(0,r.Z)(b,"_intersectionHandler",[d.bind],Object.getOwnPropertyDescriptor(b,"_intersectionHandler"),b),(0,r.Z)(b,"goBack",[o.action],Object.getOwnPropertyDescriptor(b,"goBack"),b),b)))},57304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(54001),i=n(31691),s=n.n(i),o=n(24434),a=n(71466),l=n.n(a),c=n(3961),u=n(57555),d=n(82099);const p=(0,n(8620).createTemplateFactory)({id:"l1iM1Gha",block:'[[[41,[30,0,["topicClosedArchived"]],[[[10,1],[15,"title",[30,0,["closedArchivedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["closedArchivedIcon"]]],[13]],[]],null],[41,[30,0,["closedIcon"]],[[[10,1],[15,"title",[30,0,["closedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["closedIcon"]]],[13]],[]],null],[41,[30,0,["archivedIcon"]],[[[10,1],[15,"title",[30,0,["archivedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["archivedIcon"]]],[13]],[]],null],[41,[30,0,["topicPrivateMessage"]],[[[10,1],[15,"title",[30,0,["privateMessageTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["privateMessageIcon"]]],[13]],[]],null],[41,[30,0,["topicWarning"]],[[[10,1],[15,"title",[30,0,["warningTitle"]]],[14,0,"topic-status topic-status-warning"],[12],[1,[30,0,["warningIcon"]]],[13]],[]],null],[41,[30,0,["topicPinned"]],[[[41,[30,0,["canAct"]],[[[10,3],[14,6,""],[15,"title",[30,0,["pinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["pinnedIcon"]]],[13]],[]],[[[10,1],[15,"title",[30,0,["pinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["pinnedIcon"]]],[13]],[]]]],[]],null],[41,[30,0,["topicUnpinned"]],[[[41,[30,0,["canAct"]],[[[10,3],[14,6,""],[15,"title",[30,0,["unpinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["unpinnedIcon"]]],[13]],[]],[[[10,1],[15,"title",[30,0,["unpinnedTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["unpinnedIcon"]]],[13]],[]]]],[]],null],[41,[30,0,["topicInvisible"]],[[[10,1],[15,"title",[30,0,["invisibleTitle"]]],[14,0,"topic-status"],[12],[1,[30,0,["invisibleIcon"]]],[13]],[]],null],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["after-topic-status","div",[28,[37,2],null,[["topic"],[[30,0,["topic"]]]]]]],null]],[],false,["if","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-status.hbs",isStrictMode:!1});var h,m,g,f,b,_,y,w;const v=(0,i.setComponentTemplate)(p,s().extend((h=(0,u.default)("disableActions"),m=(0,u.default)("topic.closed","topic.archived"),g=(0,u.default)("topic.is_warning"),f=(0,u.default)("showPrivateMessageIcon","topic.isPrivateMessage","topic.is_warning"),b=(0,u.default)("topic.pinned"),_=(0,u.default)("topic.unpinned"),y=(0,u.default)("topic.invisible"),w={disableActions:!1,classNames:["topic-statuses"],click(e){if(this.canAct&&l()(e.target).hasClass("d-icon-thumbtack")){const e=this.topic;return e.get("pinned")?e.clearPin():e.rePin(),!1}},canAct(e){return this.currentUser&&!e},topicClosedArchived(e,t){return e&&t?(this._set("closedArchived","lock","locked_and_archived"),this._reset("closed"),this._reset("archived"),!0):(this._reset("closedArchived"),e?this._set("closed","lock","locked"):this._reset("closed"),t?this._set("archived","lock","archived"):this._reset("archived"),!1)},topicWarning(e){return e?this._set("warning","envelope","warning"):this._reset("warning")},topicPrivateMessage(e,t,n){return e&&t&&!n?this._set("privateMessage","envelope","personal_message"):this._reset("privateMessage")},topicPinned(e){return e?this._set("pinned","thumbtack","pinned"):this._reset("pinned")},topicUnpinned(e){return e?this._set("unpinned","thumbtack","unpinned",{class:"unpinned"}):this._reset("unpinned")},topicInvisible(e){return e?this._set("invisible","far-eye-slash","unlisted"):this._reset("invisible")},_set(e,t,n,r){return this.set(`${e}Icon`,(0,o.htmlSafe)((0,c.iconHTML)(`${t}`,r))),this.set(`${e}Title`,d.default.t(`topic_statuses.${n}.help`)),!0},_reset(e){return this.set(`${e}Icon`,null),this.set(`${e}Title`,null),!1}},(0,r.Z)(w,"canAct",[h],Object.getOwnPropertyDescriptor(w,"canAct"),w),(0,r.Z)(w,"topicClosedArchived",[m],Object.getOwnPropertyDescriptor(w,"topicClosedArchived"),w),(0,r.Z)(w,"topicWarning",[g],Object.getOwnPropertyDescriptor(w,"topicWarning"),w),(0,r.Z)(w,"topicPrivateMessage",[f],Object.getOwnPropertyDescriptor(w,"topicPrivateMessage"),w),(0,r.Z)(w,"topicPinned",[b],Object.getOwnPropertyDescriptor(w,"topicPinned"),w),(0,r.Z)(w,"topicUnpinned",[_],Object.getOwnPropertyDescriptor(w,"topicUnpinned"),w),(0,r.Z)(w,"topicInvisible",[y],Object.getOwnPropertyDescriptor(w,"topicInvisible"),w),w)))},74690:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(29318),d=n(57555);const p=(0,n(8620).createTemplateFactory)({id:"JPmohxAs",block:'[[[8,[39,0],null,[["@id","@titleText","@contentText","@placement","@triggerSelector"],["topic_timeline",[28,[37,1],["user_tips.topic_timeline.title"],null],[28,[37,1],["user_tips.topic_timeline.content"],null],"left",".timeline-scrollarea-wrapper"]],null],[1,"\\n\\n"],[11,0],[16,0,[28,[37,2],["timeline-container",[30,0,["classes"]]],null]],[4,[38,3],[[30,0,["addShowClass"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"topic-timeline"],[12],[1,"\\n    "],[8,[39,4],null,[["@model","@enteredIndex","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@fullscreen","@mobileView","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost","@setDocked","@setDockedBottom"],[[30,1],[30,0,["enteredIndex"]],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,0,["setDocked"]],[30,0,["setDockedBottom"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@model","@jumpTop","@jumpBottom","@jumpEnd","@jumpToIndex","@jumpToPostPrompt","@fullscreen","@mobileView","@toggleMultiSelect","@showTopicSlowModeUpdate","@showTopReplies","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@replyToPost"],false,["user-tip","i18n","concat-class","did-insert","topic-timeline/container"]]',moduleName:"discourse/components/topic-timeline.hbs",isStrictMode:!1});var h,m,g,f,b,_,y=n(31691);let w=(h=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",m,this),(0,r.Z)(this,"currentUser",g,this),(0,r.Z)(this,"enteredIndex",f,this),(0,r.Z)(this,"docked",b,this),(0,r.Z)(this,"dockedBottom",_,this),(0,i.Z)(this,"adminTools",(0,u.default)()),this.args.prevEvent&&(this.enteredIndex=this.args.prevEvent.postIndex-1)}get createdAt(){return new Date(this.args.model.created_at)}get classes(){const e=[];return this.args.fullscreen&&e.push("timeline-fullscreen"),this.docked&&(e.push("timeline-docked"),this.dockedBottom&&e.push("timeline-docked-bottom")),e.join(" ")}addShowClass(e){this.args.fullscreen&&!this.args.addShowClass&&e.classList.add("show")}setDocked(e){this.docked!==e&&(this.docked=e)}setDockedBottom(e){this.dockedBottom!==e&&(this.dockedBottom=e)}},m=(0,s.Z)(h.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,s.Z)(h.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,s.Z)(h.prototype,"enteredIndex",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.enteredIndex}}),b=(0,s.Z)(h.prototype,"docked",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_=(0,s.Z)(h.prototype,"dockedBottom",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,s.Z)(h.prototype,"addShowClass",[d.bind],Object.getOwnPropertyDescriptor(h.prototype,"addShowClass"),h.prototype),(0,s.Z)(h.prototype,"setDocked",[l.action],Object.getOwnPropertyDescriptor(h.prototype,"setDocked"),h.prototype),(0,s.Z)(h.prototype,"setDockedBottom",[l.action],Object.getOwnPropertyDescriptor(h.prototype,"setDockedBottom"),h.prototype),h);(0,y.setComponentTemplate)(p,w)},49787:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"pj0fniQr",block:'[[[8,[39,0],[[24,0,"btn-primary btn-small back-button"]],[["@title","@action"],[[28,[37,1],["topic.timeline.back_description"],null],[30,1]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],["topic.timeline.back"],null]],[1,"\\n"]],[]]]]]],["@onGoBack"],false,["d-button","i18n"]]',moduleName:"discourse/components/topic-timeline/back-button.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},39972:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SCROLLER_HEIGHT:()=>N,default:()=>B,setDesktopScrollAreaHeight:()=>R,timelineDate:()=>$});var r=n(94664),i=n(49246),s=n(54001),o=n(82006),a=n(23183),l=n(48163),c=n(17579),u=n(24434),d=n(31310),p=n(67927),h=n(57555),m=n(26730),g=n(82099);const f=(0,n(8620).createTemplateFactory)({id:"9iGseZwI",block:'[[[41,[30,1],[[[1,"  "],[10,0],[14,0,"title"],[12],[1,"\\n    "],[10,"h2"],[12],[1,"\\n      "],[11,3],[24,0,"fancy-title"],[24,6,""],[4,[38,1],["click",[30,2]],null],[12],[1,[30,0,["topicTitle"]]],[13],[1,"\\n    "],[13],[1,"\\n"],[41,[28,[37,2],[[30,0,["siteSettings","topic_featured_link_enabled"]],[30,0,["showTags"]]],null],[[[1,"      "],[10,0],[14,0,"topic-header-extra"],[12],[1,"\\n"],[41,[30,0,["showTags"]],[[[1,"          "],[10,0],[14,0,"list-tags"],[12],[1,"\\n            "],[1,[28,[35,3],[[30,3]],[["mode","tags"],["list",[30,3,["tags"]]]]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[30,0,["siteSettings","topic_featured_link_enabled"]],[[[1,"          "],[1,[28,[35,4],[[30,3]],null]],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,3,["isPrivateMessage"]]],null],[30,3,["category"]]],null],[[[1,"      "],[10,0],[14,0,"topic-category"],[12],[1,"\\n"],[41,[30,3,["category","parentCategory"]],[[[1,"          "],[1,[28,[35,7],[[30,3,["category","parentCategory"]]],null]],[1,"\\n"]],[]],null],[1,"        "],[1,[28,[35,7],[[30,3,["category"]]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["excerpt"]],[[[1,"      "],[10,0],[14,0,"post-excerpt"],[12],[1,[28,[35,8],[[30,0,["excerpt"]]],null]],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[28,[37,6],[[30,1]],null],[30,0,["currentUser"]]],null],[[[1,"  "],[10,0],[14,0,"timeline-controls"],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@outletArgs"],["timeline-controls-before",[28,[37,10],null,[["model"],[[30,3]]]]]],null],[1,"\\n    "],[8,[39,11],null,[["@topic","@addKeyboardTargetClass","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage"],[[30,3],true,[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["displayTimeLineScrollArea"]],[[[1,"  "],[10,0],[14,0,"timeline-scrollarea-wrapper"],[12],[1,"\\n    "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n      "],[10,3],[14,0,"start-date"],[15,"onClick",[30,0,["updatePercentage"]]],[15,"title",[30,0,["startDate"]]],[12],[1,"\\n        "],[10,1],[12],[1,"\\n          "],[1,[30,0,["startDate"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[11,0],[24,0,"timeline-scrollarea"],[16,5,[30,0,["timelineScrollareaStyle"]]],[4,[38,12],[[30,0,["registerScrollarea"]]],null],[12],[1,"\\n      "],[10,0],[14,0,"timeline-padding"],[15,5,[30,0,["beforePadding"]]],[15,"onClick",[30,0,["updatePercentage"]]],[12],[13],[1,"\\n      "],[8,[39,13],[[4,[38,12],[[30,0,["registerScroller"]]],null]],[["@current","@total","@onGoBack","@fullscreen","@showDockedButton","@date","@didStartDrag","@dragMove","@didEndDrag"],[[30,0,["current"]],[30,0,["total"]],[30,0,["onGoBack"]],[30,1],[30,0,["showDockedButton"]],[30,0,["date"]],[30,0,["didStartDrag"]],[30,0,["dragMove"]],[30,0,["didEndDrag"]]]],null],[1,"\\n      "],[10,0],[14,0,"timeline-padding"],[15,5,[30,0,["afterPadding"]]],[15,"onClick",[30,0,["updatePercentage"]]],[12],[13],[1,"\\n\\n"],[41,[28,[37,5],[[30,0,["hasBackPosition"]],[30,0,["showButton"]]],null],[[[1,"        "],[10,0],[14,0,"timeline-last-read"],[15,5,[30,0,["lastReadStyle"]]],[12],[1,"\\n          "],[1,[28,[35,14],["minus"],[["class"],["progress"]]]],[1,"\\n          "],[8,[39,15],null,[["@onGoBack"],[[30,0,["goBack"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"timeline-date-wrapper"],[12],[1,"\\n      "],[10,3],[14,0,"now-date"],[15,"onClick",[30,0,["updatePercentage"]]],[12],[1,"\\n        "],[10,1],[12],[1,"\\n          "],[1,[28,[35,16],[[30,0,["nowDate"]],[30,0,["nowDateOptions"]]],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"timeline-footer-controls"],[12],[1,"\\n"],[41,[30,0,["displaySummary"]],[[[1,"      "],[11,"button"],[24,0,"show-summary btn btn-small"],[16,"title",[28,[37,17],["summary.short_title"],null]],[24,4,"button"],[4,[38,1],["click",[30,17]],null],[12],[1,"\\n        "],[1,[28,[35,14],["layer-group"],null]],[1,"\\n        "],[1,[28,[35,17],["summary.short_label"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[30,0,["currentUser"]],[28,[37,6],[[30,1]],null]],null],[[[41,[30,0,["canCreatePost"]],[[[1,"        "],[11,"button"],[24,0,"btn btn-default create reply-to-post no-text btn-icon"],[16,"title",[28,[37,17],["topic.reply.help"],null]],[24,4,"button"],[4,[38,1],["click",[28,[37,18],[[30,18],null],null]],null],[12],[1,"\\n          "],[1,[28,[35,14],["reply"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[41,[30,1],[[[1,"      "],[11,"button"],[24,0,"timeline-open-jump-to-post-prompt-btn btn btn-text jump-to-post"],[16,"title",[28,[37,17],["topic.progress.jump_prompt_long"],null]],[24,4,"button"],[4,[38,1],["click",[30,19]],null],[12],[1,"\\n        "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n          "],[1,[28,[35,17],["topic.progress.jump_prompt"],null]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["currentUser"]],[[[1,"      "],[8,[39,19],null,[["@notificationLevel","@topic","@showFullTitle","@appendReason","@placement","@showCaret"],[[30,3,["details","notification_level"]],[30,3],false,false,"bottom-end",false]],null],[1,"\\n"],[41,[30,20],[[[1,"        "],[8,[39,11],null,[["@topic","@addKeyboardTargetClass","@openUpwards"],[[30,3],true,true]],null],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[8,[39,9],null,[["@name","@outletArgs"],["timeline-footer-controls-after",[28,[37,10],null,[["model"],[[30,3]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@fullscreen","@jumpTop","@model","@toggleMultiSelect","@showTopicSlowModeUpdate","@deleteTopic","@recoverTopic","@toggleClosed","@toggleArchived","@toggleVisibility","@showTopicTimerModal","@showFeatureTopic","@showChangeTimestamp","@resetBumpDate","@convertToPublicTopic","@convertToPrivateMessage","@showTopReplies","@replyToPost","@jumpToPostPrompt","@mobileView"],false,["if","on","or","discourse-tags","topic-featured-link","and","not","category-link","html-safe","plugin-outlet","hash","topic-admin-menu-button","did-insert","topic-timeline/scroller","d-icon","topic-timeline/back-button","age-with-tooltip","i18n","fn","topic-notifications-button"]]',moduleName:"discourse/components/topic-timeline/container.hbs",isStrictMode:!1});var b,_,y,w,v,k,x,T,S,C,P,O,E,D,I,j,Z,A,M=n(31691);const N=50,z=170,L=300;let F=z,U=L;function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{min:z,max:L};F=e.min,U=e.max}let B=(b=(0,h.debounce)(50),_=class extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"appEvents",y,this),(0,r.Z)(this,"siteSettings",w,this),(0,r.Z)(this,"currentUser",v,this),(0,r.Z)(this,"showButton",k,this),(0,r.Z)(this,"current",x,this),(0,r.Z)(this,"percentage",T,this),(0,r.Z)(this,"total",S,this),(0,r.Z)(this,"date",C,this),(0,r.Z)(this,"lastReadPercentage",P,this),(0,r.Z)(this,"lastRead",O,this),(0,r.Z)(this,"lastReadTop",E,this),(0,r.Z)(this,"before",D,this),(0,r.Z)(this,"after",I,this),(0,r.Z)(this,"timelineScrollareaStyle",j,this),(0,r.Z)(this,"dragging",Z,this),(0,r.Z)(this,"excerpt",A,this),(0,i.Z)(this,"intersectionObserver",null),(0,i.Z)(this,"scrollareaElement",null),(0,i.Z)(this,"scrollerElement",null),(0,i.Z)(this,"dragOffset",null),this.args.mobileView||(this.appEvents.on("topic:current-post-scrolled",this.postScrolled),this.appEvents.on("composer:opened",this.calculatePosition),this.appEvents.on("composer:resized",this.calculatePosition),this.appEvents.on("composer:closed",this.calculatePosition),this.appEvents.on("post-stream:posted",this.calculatePosition)),this.intersectionObserver=new IntersectionObserver((e=>{for(const t of e){const e=t.boundingClientRect;"topic-bottom"===t.target.id?this.topicBottom=e.y+window.scrollY:this.topicTop=e.y+window.scrollY}}));const e=[document.querySelector(".container.posts"),document.querySelector("#topic-bottom")];for(let t=0;t<e.length;t++)this.intersectionObserver.observe(e[t]);this.calculatePosition(),this.dockCheck()}get displaySummary(){return this.siteSettings.summary_timeline_button&&!this.args.fullScreen&&this.args.model.has_summary&&!this.args.model.postStream.summary}get displayTimeLineScrollArea(){if(this.args.mobileView)return!0;if(1===this.total){const e=document.querySelector(".posts-wrapper");if(e&&e.offsetHeight<1e3)return!1}return!0}get canCreatePost(){return this.args.model.details?.can_create_post}get topicTitle(){return(0,u.htmlSafe)(this.args.mobileView?this.args.model.fancyTitle:"")}get showTags(){return this.siteSettings.tagging_enabled&&this.args.model.tags?.length>0}get style(){return(0,u.htmlSafe)(`height: ${this.scrollareaHeight}px`)}get beforePadding(){return(0,u.htmlSafe)(`height: ${this.before}px`)}get afterPadding(){return(0,u.htmlSafe)(`height: ${this.after}px`)}get showDockedButton(){return!this.args.mobileView&&this.hasBackPosition&&!this.showButton}get hasBackPosition(){return this.lastRead&&this.lastRead>3&&this.lastRead>this.current&&Math.abs(this.lastRead-this.current)>3&&Math.abs(this.lastRead-this.total)>1&&this.lastRead!==this.total}get lastReadStyle(){return(0,u.htmlSafe)(`height: 20px; top: ${this.topPosition}px`)}get topPosition(){const e=this.scrollareaHeight-10;return this.lastReadTop>e?e:this.lastReadTop}get scrollareaHeight(){const e=document.getElementById("reply-control").offsetHeight||0,t=document.querySelector(".d-header")?.offsetHeight||0,n=(window.innerHeight-e-t)/2,r=this.args.mobileView?z:F,i=this.args.mobileView?L:U;return Math.max(r,Math.min(n,i))}get startDate(){return $(this.args.model.createdAt)}get nowDateOptions(){return{addAgo:!0,defaultFormat:$}}get nowDate(){return this.args.model.get("last_posted_at")||this.args.model.get("created_at")}get lastReadHeight(){return Math.round(this.lastReadPercentage*this.scrollareaHeight)}calculatePosition(){this.timelineScrollareaStyle=(0,u.htmlSafe)(`height: ${this.scrollareaHeight}px`);const e=this.args.model,t=e.postStream;this.total=t.filteredPostsCount,this.scrollPosition=this.clamp(Math.floor(this.total*this.percentage),0,this.total)+1,this.current=this.clamp(this.scrollPosition,1,this.total);const n=t.closestDaysAgoFor(this.current);let r;if(void 0===n){const e=t.posts.findBy("id",t.stream[this.current]);e&&(r=new Date(e.created_at))}else null!==n?(r=new Date,r.setDate(r.getDate()-n||0)):r=null;this.date=r;const i=e.last_read_post_number,s=e.last_read_post_id;if(s&&i){const n=t.stream.indexOf(s)+1;this.lastRead=n,this.lastReadPercentage=this._percentFor(e,n)}this.position!==this.scrollPosition&&(this.position=this.scrollPosition,this.updateScrollPosition(this.current)),this.before=this.scrollareaRemaining()*this.percentage,this.after=this.scrollareaHeight-this.before-N,null!==this.percentage&&this.hasBackPosition&&(this.lastReadTop=Math.round(this.lastReadPercentage*this.scrollareaHeight),this.showButton=this.before+N-5<this.lastReadTop||this.before>this.lastReadTop+25)}updateScrollPosition(e){if(!this.args.fullscreen)return;const t=this.args.model.postStream;!this.position!==e&&t.excerpt(e-1).then((t=>{if(t&&this.position===e){let e="";t.username&&(e="<span class='username'>"+t.username+":</span> "),t.excerpt?this.excerpt=e+t.excerpt:t.action_code&&(this.excerpt=`${e} ${(0,p.actionDescriptionHtml)(t.action_code,t.created_at,t.username)}`)}}))}updatePercentage(e){const t=(e.pageY||e.touches[0].pageY)-this.dragOffset,n=m.default.offset(this.scrollareaElement).top,r=this.scrollareaElement.offsetHeight,i=this.scrollerElement.offsetHeight,s=n+i/2,o=r-i;this.percentage=this.clamp(parseFloat(t-s)/o),this.commit()}didStartDrag(e){const t=e.pageY||e.touches[0].pageY,n=m.default.offset(this.scrollerElement).top+this.scrollerElement.offsetHeight/2;this.dragOffset=t-n,this.dragging=!0}dragMove(e){e.stopPropagation(),e.preventDefault(),this.updatePercentage(e)}didEndDrag(){this.dragging=!1,this.dragOffset=null,this.commit()}postScrolled(e){this.current=e.postIndex,this.percentage=e.percent,this.calculatePosition(),this.dockCheck()}goBack(){this.args.jumpToIndex(this.lastRead)}dockCheck(){const e=document.querySelector(".timeline-container"),t=e&&e.offsetHeight||400,n=this.dockAt,r=(0,d.headerOffset)()+window.pageYOffset,i=r+t;this.dockBottom=!1,r<this.topicTop?this.dockAt=parseInt(this.topicTop,10):i>this.topicBottom?(this.dockAt=parseInt(this.topicBottom-t,10),this.dockBottom=!0,this.dockAt<0&&(this.dockAt=0)):this.dockAt=null,this.dockAt!==n&&(this.dockAt?(this.args.setDocked(!0),this.dockBottom&&this.args.setDockedBottom(!0)):(this.args.setDocked(!1),this.args.setDockedBottom(!1)))}commit(){this.calculatePosition(),this.dragging||(this.current===this.scrollPosition?this.args.jumpToIndex(this.current):this.args.jumpEnd())}clamp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(Math.min(e,n),t)}scrollareaRemaining(){return this.scrollareaHeight-N}willDestroy(){super.willDestroy(...arguments),this.args.mobileView||(this.intersectionObserver?.disconnect(),this.intersectionObserver=null,this.appEvents.off("composer:opened",this.calculatePosition),this.appEvents.off("composer:resized",this.calculatePosition),this.appEvents.off("composer:closed",this.calculatePosition),this.appEvents.off("topic:current-post-scrolled",this.postScrolled),this.appEvents.off("post-stream:posted",this.calculatePosition))}_percentFor(e,t){const n=e.postStream.filteredPostsCount;switch(t){case 0:return 0;case n-1:return 1;default:return this.clamp(parseFloat(t)/n)}}registerScrollarea(e){this.scrollareaElement=e}registerScroller(e){this.scrollerElement=e}},y=(0,s.Z)(_.prototype,"appEvents",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,s.Z)(_.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,s.Z)(_.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,s.Z)(_.prototype,"showButton",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),x=(0,s.Z)(_.prototype,"current",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,s.Z)(_.prototype,"percentage",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this._percentFor(this.args.model,this.args.enteredIndex)}}),S=(0,s.Z)(_.prototype,"total",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,s.Z)(_.prototype,"date",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,s.Z)(_.prototype,"lastReadPercentage",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=(0,s.Z)(_.prototype,"lastRead",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,s.Z)(_.prototype,"lastReadTop",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,s.Z)(_.prototype,"before",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,s.Z)(_.prototype,"after",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,s.Z)(_.prototype,"timelineScrollareaStyle",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,s.Z)(_.prototype,"dragging",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),A=(0,s.Z)(_.prototype,"excerpt",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,s.Z)(_.prototype,"calculatePosition",[h.bind],Object.getOwnPropertyDescriptor(_.prototype,"calculatePosition"),_.prototype),(0,s.Z)(_.prototype,"updateScrollPosition",[b],Object.getOwnPropertyDescriptor(_.prototype,"updateScrollPosition"),_.prototype),(0,s.Z)(_.prototype,"updatePercentage",[h.bind],Object.getOwnPropertyDescriptor(_.prototype,"updatePercentage"),_.prototype),(0,s.Z)(_.prototype,"didStartDrag",[h.bind],Object.getOwnPropertyDescriptor(_.prototype,"didStartDrag"),_.prototype),(0,s.Z)(_.prototype,"dragMove",[h.bind],Object.getOwnPropertyDescriptor(_.prototype,"dragMove"),_.prototype),(0,s.Z)(_.prototype,"didEndDrag",[h.bind],Object.getOwnPropertyDescriptor(_.prototype,"didEndDrag"),_.prototype),(0,s.Z)(_.prototype,"postScrolled",[h.bind],Object.getOwnPropertyDescriptor(_.prototype,"postScrolled"),_.prototype),(0,s.Z)(_.prototype,"goBack",[l.action],Object.getOwnPropertyDescriptor(_.prototype,"goBack"),_.prototype),(0,s.Z)(_.prototype,"registerScrollarea",[l.action],Object.getOwnPropertyDescriptor(_.prototype,"registerScrollarea"),_.prototype),(0,s.Z)(_.prototype,"registerScroller",[l.action],Object.getOwnPropertyDescriptor(_.prototype,"registerScroller"),_.prototype),_);function $(e){const t=e.getFullYear()===(new Date).getFullYear()?"long_no_year_no_time":"timeline_date";return moment(e).format(g.default.t(`dates.${t}`))}(0,M.setComponentTemplate)(f,B)},68748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(49246),i=n(82006),s=n(24434),o=n(39972),a=n(82099);const l=(0,n(8620).createTemplateFactory)({id:"wLtEmEbL",block:'[[[11,0],[16,5,[30,0,["style"]]],[24,0,"timeline-scroller"],[17,1],[4,[38,0],null,[["didStartDrag","didEndDrag","dragMove"],[[30,2],[30,3],[30,4]]]],[12],[1,"\\n"],[41,[30,5],[[[1,"    "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n      "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n        "],[1,[30,0,["repliesShort"]]],[1,"\\n      "],[13],[1,"\\n"],[41,[30,6],[[[1,"        "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n          "],[1,[30,0,["timelineAgo"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[28,[37,2],[[30,7],[28,[37,3],[[30,8]],null]],null],[[[1,"        "],[8,[39,4],null,[["@onGoBack"],[[30,9]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"timeline-handle"],[12],[13],[1,"\\n    "],[10,0],[14,0,"timeline-scroller-content"],[12],[1,"\\n      "],[10,0],[14,0,"timeline-replies"],[12],[1,"\\n        "],[1,[30,0,["repliesShort"]]],[1,"\\n      "],[13],[1,"\\n"],[41,[30,6],[[[1,"        "],[10,0],[14,0,"timeline-ago"],[12],[1,"\\n          "],[1,[30,0,["timelineAgo"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[28,[37,2],[[30,7],[28,[37,3],[[30,8]],null]],null],[[[1,"        "],[8,[39,4],null,[["@onGoBack"],[[30,9]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]]],[13]],["&attrs","@didStartDrag","@didEndDrag","@dragMove","@fullscreen","@date","@showDockedButton","@dragging","@onGoBack"],false,["draggable","if","and","not","topic-timeline/back-button"]]',moduleName:"discourse/components/topic-timeline/scroller.hbs",isStrictMode:!1});var c=n(31691);class u extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"style",(0,s.htmlSafe)(`height: ${o.SCROLLER_HEIGHT}px`))}get repliesShort(){const e=this.args.current,t=this.args.total;return a.default.t("topic.timeline.replies_short",{current:e,total:t})}get timelineAgo(){return(0,o.timelineDate)(this.args.date)}}(0,c.setComponentTemplate)(l,u)},79951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(54001),i=n(31691),s=n.n(i),o=n(51372),a=n(24434),l=n(61016),c=n(56746),u=n(34405),d=n(3961),p=n(12933),h=n(57555),m=n(82099);const g=(0,n(8620).createTemplateFactory)({id:"8jVZAuuT",block:'[[[41,[30,0,["showTopicTimer"]],[[[1,"  "],[10,"h3"],[14,0,"topic-timer-heading"],[12],[1,"\\n    "],[10,1],[15,"title",[30,0,["title"]]],[12],[1,"\\n      "],[1,[30,0,["clockIcon"]]],[1,"\\n      "],[1,[30,0,["notice"]]],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"topic-timer-modify"],[12],[1,"\\n"],[41,[30,0,["showEdit"]],[[[1,"        "],[8,[39,1],[[24,0,"topic-timer-edit no-text"]],[["@title","@icon","@action"],["post.controls.edit_timer","pencil-alt",[30,0,["showTopicTimerModal"]]]],null],[1,"\\n"]],[]],null],[41,[30,0,["showTrashCan"]],[[[1,"        "],[8,[39,1],[[24,0,"topic-timer-remove no-text"]],[["@title","@icon","@action"],["post.controls.remove_timer","trash-alt",[30,0,["removeTopicTimer"]]]],null],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-button"]]',moduleName:"discourse/components/topic-timer-info.hbs",isStrictMode:!1});var f,b,_,y,w;const v=(0,i.setComponentTemplate)(g,s().extend((f=(0,h.on)("didReceiveAttrs"),b=(0,h.on)("willDestroyElement"),_=(0,h.default)("canModifyTimer","removeTopicTimer"),y=(0,h.default)("canModifyTimer","showTopicTimerModal"),w={classNames:["topic-timer-info"],_delayedRerender:null,clockIcon:(0,a.htmlSafe)(`${(0,d.iconHTML)("far-clock")}`),trashLabel:m.default.t("post.controls.remove_timer"),title:null,notice:null,showTopicTimer:null,showTopicTimerModal:null,removeTopicTimer:null,setupRenderer(){this.renderTopicTimer()},cancelDelayedRenderer(){this._delayedRerender&&(0,o.cancel)(this._delayedRerender)},canModifyTimer(){return this.currentUser&&this.currentUser.get("canManageTopic")},showTrashCan:(e,t)=>e&&t,showEdit:(e,t)=>e&&t,additionalOpts:()=>({}),renderTopicTimer(){const e=this.statusType===l.DELETE_REPLIES_TYPE;if(!e&&!this.basedOnLastPost&&(!this.executeAt||this.executeAt<moment()))return void this.set("showTopicTimer",null);if(this.isDestroyed)return;const t=this.topicClosed?"close":"open";if(void 0!==this.topicClosed&&t===this.statusType)return;const n=moment(this.executeAt),r=moment.duration(n-moment()),i=r.asMinutes();if(i>0||e||this.basedOnLastPost){if(!this.executeAt)return;let e=parseInt(this.durationMinutes,10)||0,t={timeLeft:r.humanize(!0),duration:moment.duration(e,"minutes").humanize({s:60,m:60,h:24})};const n=this.categoryId;if(n){const e=c.default.findById(n);t=Object.assign({categoryName:e.get("slug"),categoryUrl:e.get("url")},t)}t=Object.assign(t,this.additionalOpts()),this.setProperties({title:(0,a.htmlSafe)(`${moment(this.executeAt).format("LLLL")}`),notice:(0,a.htmlSafe)(`${m.default.t(this._noticeKey(),t)}`),showTopicTimer:!0}),(0,u.isTesting)()||(this._delayedRerender=(0,p.default)((()=>{this.renderTopicTimer()}),this.rerenderDelay(i)))}else this.set("showTopicTimer",null)},rerenderDelay:e=>e>2160?432e5:e>1410?36e5:e>90?18e5:e>2?6e4:1e3,_noticeKey(){let e=this.statusType;return"silent_close"===e&&(e="close"),this.basedOnLastPost&&"close"===e&&(e="close_after_last_post"),`topic.status_update_notice.auto_${e}`}},(0,r.Z)(w,"setupRenderer",[f],Object.getOwnPropertyDescriptor(w,"setupRenderer"),w),(0,r.Z)(w,"cancelDelayedRenderer",[b],Object.getOwnPropertyDescriptor(w,"cancelDelayedRenderer"),w),(0,r.Z)(w,"canModifyTimer",[h.default],Object.getOwnPropertyDescriptor(w,"canModifyTimer"),w),(0,r.Z)(w,"showTrashCan",[_],Object.getOwnPropertyDescriptor(w,"showTrashCan"),w),(0,r.Z)(w,"showEdit",[y],Object.getOwnPropertyDescriptor(w,"showEdit"),w),w)))},90793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addTopicTitleDecorator:()=>c,default:()=>d,resetTopicTitleDecorators:()=>u,topicTitleDecorators:()=>l});var r=n(31691),i=n.n(r),s=n(51372),o=n(48078);const a=(0,n(8620).createTemplateFactory)({id:"57nlOKqN",block:'[[[10,0],[14,0,"container"],[12],[1,"\\n  "],[10,0],[14,0,"title-wrapper"],[12],[1,"\\n    "],[18,1,null],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["topic-title","div",[28,[37,2],null,[["model"],[[30,0,["model"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["&default"],false,["yield","plugin-outlet","hash"]]',moduleName:"discourse/components/topic-title.hbs",isStrictMode:!1});let l=[];function c(e){l.push(e)}function u(){l.length=0}const d=(0,r.setComponentTemplate)(a,i().extend(o.default,{elementId:"topic-title",didInsertElement(){this._super(...arguments),(0,s.schedule)("afterRender",(()=>{if(this.element&&!this.isDestroying&&!this.isDestroyed){const e=this.element.querySelector(".fancy-title");e&&l&&l.forEach((t=>t(this.model,e,"topic-title")))}}))}}))},16174:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"LQrVbpZQ",block:'[[[8,[39,0],null,[["@type","@checked"],["checkbox",[30,0,["selected"]]]],null]],[],false,["input"]]',moduleName:"discourse/components/track-selected.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.observes)("selected"),c={tagName:"span",selectionChanged(){const e=this.selected,t=this.selectedList,n=this.selectedId;e?t.addObject(n):t.removeObject(n)}},(0,r.Z)(c,"selectionChanged",[l],Object.getOwnPropertyDescriptor(c,"selectionChanged"),c),c)))},47862:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({classNames:["two-factor-backup-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,r.computed)((function(){const e=[];return e.push({id:"edit",icon:"pencil-alt",name:i.default.t("user.second_factor.edit")}),this.secondFactorBackupEnabled&&e.push({id:"disable",icon:"trash-alt",name:i.default.t("user.second_factor.disable")}),e})),actions:{onChange(e){switch(e){case"edit":this.editSecondFactorBackup();break;case"disable":this.disableSecondFactorBackup()}}}})},37704:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(88548),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"je4ghZHh",block:'[[[10,"label"],[14,0,"btn"],[15,"disabled",[30,0,["uploading"]]],[15,"title",[28,[37,0],["admin.backups.upload.title"],null]],[12],[1,"\\n  "],[1,[28,[35,1],["upload"],null]],[1,[30,0,["uploadButtonText"]]],[1,"\\n  "],[10,"input"],[14,0,"hidden-upload-field"],[15,"disabled",[30,0,["uploading"]]],[14,"accept",".gz"],[14,4,"file"],[12],[13],[1,"\\n"],[13]],[],false,["i18n","d-icon"]]',moduleName:"discourse/components/uppy-backup-uploader.hbs",isStrictMode:!1});var d,p,h;const m=(0,i.setComponentTemplate)(u,s().extend(a.default,(d=(0,l.default)("localBackupStorage"),p=(0,l.default)("uploading","uploadProgress"),h={id:"uppy-backup-uploader",tagName:"span",type:"backup",uploadRootPath:"/admin/backups",uploadUrl:"/admin/backups/upload",useMultipartUploadsIfAvailable(e){return!e&&this.siteSettings.enable_direct_s3_uploads},useChunkedUploads:(0,o.alias)("localBackupStorage"),uploadButtonText:(e,t)=>e?c.default.t("admin.backups.upload.uploading_progress",{progress:t}):c.default.t("admin.backups.upload.label"),validateUploadedFilesOptions:()=>({skipValidation:!0}),uploadDone(e){this.done(e.file_name)}},(0,r.Z)(h,"useMultipartUploadsIfAvailable",[d],Object.getOwnPropertyDescriptor(h,"useMultipartUploadsIfAvailable"),h),(0,r.Z)(h,"uploadButtonText",[p],Object.getOwnPropertyDescriptor(h,"uploadButtonText"),h),h)))},18997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(6264),l=n(51372),c=n(24434),u=n(33217),d=n(71466),p=n.n(d),h=n(99121),m=n(29966),g=n(88548),f=n(47582),b=n(57555),_=n(82099);const y=(0,n(8620).createTemplateFactory)({id:"GhwzBLs3",block:'[[[10,0],[14,0,"uploaded-image-preview input-xxlarge"],[15,5,[30,0,["backgroundStyle"]]],[12],[1,"\\n"],[41,[30,0,["showingPlaceholder"]],[[[1,"    "],[10,0],[14,0,"placeholder-overlay"],[15,5,[30,0,["placeholderStyle"]]],[12],[13],[1,"\\n"]],[]],null],[1,"  "],[10,0],[14,0,"image-upload-controls"],[12],[1,"\\n    "],[10,"label"],[15,0,[29,["btn btn-default pad-left no-text ",[52,[30,0,["disabled"]],"disabled"]]]],[15,"title",[30,0,["disabledReason"]]],[12],[1,"\\n      "],[1,[28,[35,1],["far-image"],null]],[1,"\\n      "],[8,[39,2],null,[["@fileInputDisabled","@fileInputClass","@acceptedFormatsOverride"],[[30,0,["disabled"]],"hidden-upload-field","image/*"]],null],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1,"      "],[8,[39,3],[[24,0,"btn-danger pad-left no-text"]],[["@action","@icon"],[[28,[37,4],[[30,0],"trash"],null],"far-trash-alt"]],null],[1,"\\n      "],[8,[39,3],[[16,"data-lightbox-trigger",[52,[30,0,["experimentalLightboxEnabled"]],"true"]],[24,0,"image-uploader-lightbox-btn no-text"]],[["@icon","@title","@disabled","@action"],["discourse-expand","expand",[30,0,["loadingLightbox"]],[52,[51,[30,0,["experimentalLightboxEnabled"]]],[30,0,["toggleLightbox"]]]]],null],[1,"\\n"]],[]],null],[1,"\\n    "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["uploading"]]],"hidden"]]]],[12],[1,[28,[35,6],["upload_selector.uploading"],null]],[1,"\\n      "],[1,[30,0,["uploadProgress"]]],[1,"%"],[13],[1,"\\n    "],[10,1],[15,0,[29,["btn ",[52,[51,[30,0,["processing"]]],"hidden"]]]],[12],[1,[28,[35,6],["upload_selector.processing"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["imageUrl"]],[[[1,"    "],[10,3],[14,0,"lightbox"],[15,6,[30,0,["imageCDNURL"]]],[15,"title",[30,0,["imageFilename"]]],[14,"rel","nofollow ugc noopener"],[12],[1,"\\n\\n      "],[10,0],[14,0,"meta"],[12],[1,"\\n        "],[10,1],[14,0,"informations"],[12],[1,"\\n          "],[1,[30,0,["imageWidth"]]],[1,"x"],[1,[30,0,["imageHeight"]]],[1,"\\n          "],[1,[30,0,["imageFilesize"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["if","d-icon","pick-files-button","d-button","action","unless","i18n"]]',moduleName:"discourse/components/uppy-image-uploader.hbs",isStrictMode:!1});var w,v,k,x,T,S,C,P,O,E,D;const I=(0,i.setComponentTemplate)(y,s().extend(g.default,(w=(0,b.default)("siteSettings.enable_experimental_lightbox"),v=(0,b.default)("disabled","notAllowed"),k=(0,b.default)("currentUser.staff","siteSettings.{authorized_extensions,authorized_extensions_for_staff}"),x=(0,b.default)("imageUrl","placeholderUrl"),T=(0,b.default)("placeholderUrl"),S=(0,b.default)("imageUrl"),C=(0,b.default)("imageCDNURL"),P=(0,b.default)("imageUrl"),O=(0,b.on)("didRender"),E=(0,b.on)("willDestroyElement"),D={classNames:["image-uploader"],disabled:(0,a.or)("notAllowed","uploading","processing"),experimentalLightboxEnabled:e=>e,disabledReason(e,t){if(e&&t)return _.default.t("post.errors.no_uploads_authorized")},notAllowed(){return!(0,m.authorizesOneOrMoreExtensions)(this.currentUser?.staff,this.siteSettings)},showingPlaceholder:(e,t)=>!e&&t,placeholderStyle:e=>(0,u.isEmpty)(e)?(0,c.htmlSafe)(""):(0,c.htmlSafe)(`background-image: url(${e})`),imageCDNURL:e=>(0,u.isEmpty)(e)?(0,c.htmlSafe)(""):(0,f.getURLWithCDN)(e),backgroundStyle:e=>(0,c.htmlSafe)(`background-image: url(${e})`),imageBaseName(e){if(!(0,u.isEmpty)(e))return e.split("/").slice(-1)[0]},validateUploadedFilesOptions:()=>({imagesOnly:!0}),_uppyReady(){this._onPreProcessComplete((()=>{this.set("processing",!1)}))},uploadDone(e){this.setProperties({imageFilesize:e.human_filesize,imageFilename:e.original_filename,imageWidth:e.width,imageHeight:e.height}),this.onUploadDone?this.onUploadDone(e):this.set("imageUrl",e.url)},_applyLightbox(){this.experimentalLightboxEnabled?(0,h.setupLightboxes)({container:this.element,selector:".lightbox"}):(0,l.next)((()=>(0,h.default)(this.element,this.siteSettings)))},_closeOnRemoval(){this.experimentalLightboxEnabled?(0,h.cleanupLightboxes)():p().magnificPopup?.instance&&p().magnificPopup.instance.close()},toggleLightbox(){p()(this.element.querySelector("a.lightbox"))?.magnificPopup("open")},actions:{trash(){this._reset(),this.onUploadDeleted?this.onUploadDeleted():this.setProperties({imageUrl:null})}}},(0,r.Z)(D,"experimentalLightboxEnabled",[w],Object.getOwnPropertyDescriptor(D,"experimentalLightboxEnabled"),D),(0,r.Z)(D,"disabledReason",[v],Object.getOwnPropertyDescriptor(D,"disabledReason"),D),(0,r.Z)(D,"notAllowed",[k],Object.getOwnPropertyDescriptor(D,"notAllowed"),D),(0,r.Z)(D,"showingPlaceholder",[x],Object.getOwnPropertyDescriptor(D,"showingPlaceholder"),D),(0,r.Z)(D,"placeholderStyle",[T],Object.getOwnPropertyDescriptor(D,"placeholderStyle"),D),(0,r.Z)(D,"imageCDNURL",[S],Object.getOwnPropertyDescriptor(D,"imageCDNURL"),D),(0,r.Z)(D,"backgroundStyle",[C],Object.getOwnPropertyDescriptor(D,"backgroundStyle"),D),(0,r.Z)(D,"imageBaseName",[P],Object.getOwnPropertyDescriptor(D,"imageBaseName"),D),(0,r.Z)(D,"_applyLightbox",[O],Object.getOwnPropertyDescriptor(D,"_applyLightbox"),D),(0,r.Z)(D,"_closeOnRemoval",[E],Object.getOwnPropertyDescriptor(D,"_closeOnRemoval"),D),(0,r.Z)(D,"toggleLightbox",[o.action],Object.getOwnPropertyDescriptor(D,"toggleLightbox"),D),D)))},3167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(14382),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"/5P0TS+t",block:'[[[41,[30,0,["flair"]],[[[1,"  "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["flair","flairName"]],[30,0,["flair","flairUrl"]],[30,0,["flair","flairBgColor"]],[30,0,["flair","flairColor"]]]],null],[1,"\\n"]],[]],null]],[],false,["if","avatar-flair"]]',moduleName:"discourse/components/user-avatar-flair.hbs",isStrictMode:!1});var c,u;const d=(0,i.setComponentTemplate)(l,s().extend((c=(0,a.default)("user"),u={tagName:"",flair(e){if(!e||!e.flair_group_id)return;if(e.flair_url||e.flair_bg_color)return{flairName:e.flair_name,flairUrl:e.flair_url,flairBgColor:e.flair_bg_color,flairColor:e.flair_color};const t=(0,o.default)(this.site,e);return t?{flairName:t.flair_name,flairUrl:t.flair_url,flairBgColor:t.flair_bg_color,flairColor:t.flair_color}:void 0}},(0,r.Z)(u,"flair",[c],Object.getOwnPropertyDescriptor(u,"flair"),u),u)))},50403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"dzTGBxDW",block:'[[[10,3],[14,0,"user-card-badge-link"],[15,6,[30,0,["badgeUrl"]]],[12],[1,"\\n  "],[8,[39,0],null,[["@badge"],[[30,1]]],[["default"],[[[[1,"\\n"],[41,[30,0,["showGrantCount"]],[[[1,"      "],[10,1],[14,0,"count"],[12],[1," (×"],[1,[30,2]],[1,")"],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"],[13]],["@badge","@count"],false,["badge-button","if"]]',moduleName:"discourse/components/user-badge.hbs",isStrictMode:!1});var l,c,u;const d=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("count"),c=(0,o.default)("badge","user"),u={tagName:"",showGrantCount:e=>e&&e>1,badgeUrl(){let e=this.get("user.username_lower")||"";return e=""!==e?"?username="+e:"",this.get("badge.url")+e}},(0,r.Z)(u,"showGrantCount",[l],Object.getOwnPropertyDescriptor(u,"showGrantCount"),u),(0,r.Z)(u,"badgeUrl",[c],Object.getOwnPropertyDescriptor(u,"badgeUrl"),u),u)))},85170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>G});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(6264),c=n(16572),u=n(33217),d=n(63319),p=n(70352),h=n(9387),m=n(35193),g=n(62617),f=n(83470),b=n(80471),_=n(10158),y=n(7223),w=n(47582),v=n(57555),k=n(82099);const x=(0,n(8620).createTemplateFactory)({id:"6PJ0VnM2",block:'[[[41,[30,0,["visible"]],[[[1,"  "],[8,[39,1],null,[["@name","@outletArgs"],["before-user-card-content",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"card-content"],[12],[1,"\\n"],[41,[30,0,["loading"]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"user-card-avatar"],[12],[1,"\\n          "],[10,0],[14,0,"card-avatar-placeholder animated-placeholder placeholder-animation"],[12],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"card-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"card-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"card-row"],[12],[1,"\\n        "],[10,0],[14,0,"animated-placeholder placeholder-animation"],[12],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,0],[14,0,"card-row first-row"],[12],[1,"\\n        "],[10,0],[14,0,"user-card-avatar"],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1,"            "],[10,1],[14,0,"card-huge-avatar"],[12],[1,[28,[35,3],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]],[[[1,"            "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"card-huge-avatar"],[4,[38,4],["click",[28,[37,5],[[30,0,["handleShowUser"]],[30,0,["user"]]],null]],null],[12],[1,[28,[35,3],[[30,0,["user"]],"huge"],null]],[13],[1,"\\n"]],[]]],[1,"\\n          "],[8,[39,6],null,[["@user"],[[30,0,["user"]]]],null],[1,"\\n\\n          "],[10,0],[12],[1,"\\n            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-avatar-flair","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,0],[14,0,"names"],[12],[1,"\\n          "],[10,"h1"],[15,0,[29,[[30,0,["staff"]],"\\n              ",[30,0,["newUser"]],"\\n              ",[52,[30,0,["nameFirst"]],"full-name","username"]]]],[12],[1,"\\n"],[41,[30,0,["contentHidden"]],[[[1,"              "],[10,1],[14,1,"discourse-user-card-title"],[14,0,"name-username-wrapper"],[12],[1,"\\n                "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,7],[[30,0,["user","username"]]],null]]],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[11,3],[16,6,[30,0,["user","path"]]],[24,0,"user-profile-link"],[4,[38,4],["click",[28,[37,5],[[30,0,["handleShowUser"]],[30,0,["user"]]],null]],null],[12],[1,"\\n                "],[10,1],[14,1,"discourse-user-card-title"],[14,0,"name-username-wrapper"],[12],[1,"\\n                  "],[1,[52,[30,0,["nameFirst"]],[30,0,["user","name"]],[28,[37,7],[[30,0,["user","username"]]],null]]],[1,"\\n                "],[13],[1,"\\n                "],[1,[28,[35,8],[[30,0,["user"]]],[["currentUser"],[[30,0,["currentUser"]]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]]],[1,"          "],[13],[1,"\\n          "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-username","div",[28,[37,2],null,[["user","showUser"],[[30,0,["user"]],[28,[37,5],[[30,0,["handleShowUser"]],[30,0,["user"]]],null]]]]]],null],[1,"\\n"],[41,[30,0,["nameFirst"]],[[[1,"            "],[10,"h2"],[14,0,"username"],[12],[1,[30,0,["user","username"]]],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","name"]],[[[1,"              "],[10,"h2"],[14,0,"full-name"],[12],[1,[30,0,["user","name"]]],[13],[1,"\\n"]],[]],null]],[]]],[41,[30,0,["user","title"]],[[[1,"            "],[10,"h2"],[12],[1,[30,0,["user","title"]]],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","staged"]],[[[1,"            "],[10,"h2"],[14,0,"staged"],[12],[1,[28,[35,9],["user.staged"],null]],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasStatus"]],[[[1,"            "],[10,"h3"],[14,0,"user-status"],[12],[1,"\\n              "],[1,[28,[35,10],[[30,0,["userStatusEmoji"]]],null]],[1,"\\n              "],[10,1],[14,0,"user-status__description"],[12],[1,"\\n                "],[1,[30,0,["user","status","description"]]],[1,"\\n              "],[13],[1,"\\n              "],[1,[28,[35,11],[[30,0,["user","status","ends_at"]]],[["format"],["tiny"]]]],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[10,0],[12],[1,"\\n            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-post-names","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"ul"],[14,0,"usercard-controls"],[12],[1,"\\n"],[41,[30,0,["user","can_send_private_message_to_user"]],[[[1,"            "],[10,"li"],[14,0,"compose-pm"],[12],[1,"\\n              "],[8,[39,12],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,5],[[28,[37,13],[[30,0],"composePM"],null],[30,0,["user"]],[30,0,["post"]]],null],"envelope","user.private_message"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-below-message-button","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,13],[[30,0],"close"],null]]]]]],null],[1,"\\n"],[41,[30,0,["showFilter"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,12],[[24,0,"btn-default"]],[["@action","@icon","@translatedLabel"],[[28,[37,5],[[28,[37,13],[[30,0],"filterPosts"],null],[30,0,["user"]]],null],"filter",[30,0,["filterPostsLabel"]]]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[30,0,["hasUserFilters"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,12],null,[["@action","@icon","@label"],[[28,[37,13],[[30,0],"cancelFilter"],null],"times","topic.filters.cancel"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDelete"]],[[[1,"            "],[10,"li"],[12],[1,"\\n              "],[8,[39,12],[[24,0,"btn-danger"]],[["@action","@icon","@label"],[[28,[37,5],[[28,[37,13],[[30,0],"deleteUser"],null],[30,0,["user"]]],null],"exclamation-triangle","admin.user.delete"]],null],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"          "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-buttons","li",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,13],[[30,0],"close"],null]]]]]],null],[1,"\\n        "],[13],[1,"\\n        "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-additional-controls","div",[28,[37,2],null,[["user","close"],[[30,0,["user"]],[28,[37,13],[[30,0],"close"],null]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["user","profile_hidden"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n          "],[10,0],[14,0,"profile-hidden"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,9],["user.profile_hidden"],null]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","inactive"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n          "],[10,0],[14,0,"inactive-user"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,9],["user.inactive_user"],null]],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "]],[]],null]],[]]],[1,"\\n"],[41,[30,0,["isSuspendedOrHasBio"]],[[[1,"        "],[10,0],[14,0,"card-row second-row"],[12],[1,"\\n"],[41,[30,0,["user","suspend_reason"]],[[[1,"            "],[10,0],[14,0,"suspended"],[12],[1,"\\n              "],[10,0],[14,0,"suspension-date"],[12],[1,"\\n                "],[1,[28,[35,14],["ban"],null]],[1,"\\n"],[41,[30,0,["user","suspendedForever"]],[[[1,"                  "],[1,[28,[35,9],["user.suspended_permanently"],null]],[1,"\\n"]],[]],[[[1,"                  "],[1,[28,[35,9],["user.suspended_notice"],[["date"],[[30,0,["user","suspendedTillDate"]]]]]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n              "],[10,0],[14,0,"suspension-reason"],[12],[1,"\\n                "],[10,1],[14,0,"suspension-reason-title"],[12],[1,[28,[35,9],["user.suspended_reason"],null]],[13],[1,"\\n                "],[10,1],[14,0,"suspension-reason-description"],[12],[1,[30,0,["user","suspend_reason"]]],[13],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],[[[41,[30,0,["user","bio_excerpt"]],[[[1,"              "],[10,0],[14,0,"bio"],[12],[1,"\\n                "],[8,[39,15],null,null,[["default"],[[[[1,"\\n                  "],[1,[28,[35,10],[[30,0,["user","bio_excerpt"]]],null]],[1,"\\n                "]],[]]]]],[1,"\\n              "],[13],[1,"\\n"]],[]],null]],[]]],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showFeaturedTopic"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n          "],[10,0],[14,0,"featured-topic"],[12],[1,"\\n            "],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["user.featured_topic"],null]],[13],[1,"\\n            "],[8,[39,16],null,[["@route","@models"],["topic",[28,[37,17],[[30,0,["user","featured_topic","slug"]],[30,0,["user","featured_topic","id"]]],null]]],[["default"],[[[[1,[28,[35,18],[[28,[37,10],[[30,0,["user","featured_topic","fancy_title"]]],null]],null]]],[]]]]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["hasLocaleOrWebsite"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n          "],[10,0],[14,0,"location-and-website"],[12],[1,"\\n"],[41,[30,0,["user","website_name"]],[[[1,"              "],[10,1],[14,0,"website-name"],[12],[1,"\\n                "],[1,[28,[35,14],["globe"],null]],[1,"\\n"],[41,[30,0,["linkWebsite"]],[[[1,"                  "],[10,3],[15,6,[30,0,["user","website"]]],[15,"rel",[29,["noopener ",[52,[51,[30,0,["removeNoFollow"]]],"nofollow ugc"]]]],[14,"target","_blank"],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]],[[[1,"                  "],[10,1],[15,"title",[30,0,["user","website"]]],[12],[1,[30,0,["user","website_name"]]],[13],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["user","location"]],[[[1,"              "],[10,1],[14,0,"location"],[12],[1,"\\n                "],[1,[28,[35,14],["map-marker-alt"],null]],[1,"\\n                "],[10,1],[12],[1,[30,0,["user","location"]]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showUserLocalTime"]],[[[1,"              "],[10,1],[14,0,"local-time"],[15,"title",[28,[37,9],["local_time"],null]],[12],[1,"\\n                "],[1,[28,[35,14],["far-clock"],null]],[1,"\\n                "],[10,1],[12],[1,[30,0,["formattedUserLocalTime"]]],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"            "],[10,1],[12],[1,"\\n              "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-location-and-website","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n            "],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[10,0],[14,0,"card-row metadata-row"],[12],[1,"\\n"],[41,[51,[30,0,["contentHidden"]]],[[[1,"          "],[10,0],[14,0,"metadata"],[12],[1,"\\n"],[41,[30,0,["user","last_posted_at"]],[[[1,"              "],[10,"h3"],[12],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["last_post"],null]],[13],[1,"\\n                "],[1,[28,[35,11],[[30,0,["user","last_posted_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"]],[]],null],[1,"            "],[10,"h3"],[12],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["joined"],null]],[13],[1,"\\n              "],[1,[28,[35,11],[[30,0,["user","created_at"]]],[["leaveAgo"],["true"]]]],[13],[1,"\\n"],[41,[30,0,["user","time_read"]],[[[1,"              "],[10,"h3"],[15,"title",[30,0,["timeReadTooltip"]]],[12],[1,"\\n                "],[10,1],[14,0,"desc"],[12],[1,[28,[35,9],["time_read"],null]],[13],[1,"\\n                "],[1,[28,[35,20],[[30,0,["user","time_read"]]],null]],[1,"\\n"],[41,[30,0,["showRecentTimeRead"]],[[[1,"                  "],[10,1],[12],[1,"("],[1,[28,[35,9],["time_read_recently"],[["time_read"],[[30,0,["recentTimeRead"]]]]]],[1,")"],[13],[1,"\\n"]],[]],null],[1,"              "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showCheckEmail"]],[[[1,"              "],[10,"h3"],[14,0,"email"],[12],[1,"\\n                "],[1,[28,[35,14],["envelope"],[["title"],["user.email.title"]]]],[1,"\\n"],[41,[30,0,["user","email"]],[[[1,"                  "],[1,[30,0,["user","email"]]],[1,"\\n"]],[]],[[[1,"                  "],[8,[39,12],[[24,0,"btn-primary"]],[["@action","@icon","@label"],[[28,[37,5],[[28,[37,13],[[30,0],"checkEmail"],null],[30,0,["user"]]],null],"envelope","admin.users.check_email.text"]],null],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n"]],[]],null],[1,"            "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"        "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-after-metadata","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[30,0,["publicUserFields"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n          "],[10,0],[14,0,"public-user-fields"],[12],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,0,["publicUserFields"]]],null]],null],null,[[[41,[30,1,["value"]],[[[1,"                "],[10,0],[15,0,[29,["public-user-field public-user-field__",[30,1,["field","dasherized_name"]]]]],[12],[1,"\\n                  "],[10,1],[14,0,"user-field-name"],[12],[1,[30,1,["field","name"]]],[1,":"],[13],[1,"\\n                  "],[10,1],[14,0,"user-field-value"],[12],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,1,["value"]]],null]],null],null,[[[1,"                      "],[10,1],[14,0,"user-field-value-list-item"],[12],[1,[30,2]],[13],[1,"\\n"]],[2]],[[[1,"                      "],[1,[30,1,["value"]]],[1,"\\n"]],[]]],[1,"                  "],[13],[1,"\\n                "],[13],[1,"\\n"]],[]],null]],[1]],null],[1,"          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,1],null,[["@name","@connectorTagName","@outletArgs"],["user-card-before-badges","div",[28,[37,2],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n\\n"],[41,[30,0,["showBadges"]],[[[1,"        "],[10,0],[14,0,"card-row"],[12],[1,"\\n"],[41,[30,0,["user","featured_user_badges"]],[[[1,"            "],[10,0],[14,0,"badge-section"],[12],[1,"\\n"],[42,[28,[37,22],[[28,[37,22],[[30,0,["user","featured_user_badges"]]],null]],null],null,[[[1,"                "],[8,[39,23],null,[["@badge","@user"],[[30,3,["badge"]],[30,0,["user"]]]],null],[1,"\\n"]],[3]],null],[41,[30,0,["showMoreBadges"]],[[[1,"                "],[10,1],[14,0,"more-user-badges"],[12],[1,"\\n                  "],[8,[39,16],null,[["@route","@model"],["user.badges",[30,0,["user"]]]],[["default"],[[[[1,"\\n                    "],[1,[28,[35,9],["badges.more_badges"],[["count"],[[30,0,["moreBadgesCount"]]]]]],[1,"\\n                  "]],[]]]]],[1,"\\n                "],[13],[1,"\\n"]],[]],null],[1,"            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]]],[1,"  "],[13],[1,"\\n"]],[]],null]],["uf","v","ub"],false,["if","plugin-outlet","hash","bound-avatar","on","fn","user-avatar-flair","format-username","user-status","i18n","html-safe","format-date","d-button","action","d-icon","html-with-links","link-to","array","replace-emoji","unless","format-duration","each","-track-array","user-badge"]]',moduleName:"discourse/components/user-card-contents.hbs",isStrictMode:!1});var T,S,C,P,O,E,D,I,j,Z,A,M,N,z,L,F,U,R,B,$,q,H,W,K,V;const G=(0,i.setComponentTemplate)(x,s().extend(b.default,f.default,_.default,(T=(0,v.default)("user"),S=(0,v.default)("user"),C=(0,v.default)("user.status"),P=(0,v.default)("user.status.emoji"),O=(0,v.default)("user.staff"),E=(0,v.default)("user.trust_level"),D=(0,v.default)("user.name"),I=(0,v.default)("user"),j=(0,v.default)("userTimezone"),Z=(0,v.default)("username"),A=(0,v.default)("username","topicPostCount"),M=(0,v.default)("user.user_fields.@each.value"),N=(0,v.default)("user.trust_level"),z=(0,v.default)("user.badge_count","user.featured_user_badges.length"),L=(0,v.default)("user.time_read","user.recent_time_read"),F=(0,v.default)("user.recent_time_read"),U=(0,v.default)("showRecentTimeRead","user.time_read","recentTimeRead"),R=(0,v.observes)("user.card_background_upload_url"),B=(0,v.default)("user.primary_group_name"),$=(0,v.default)("user.profile_hidden","user.inactive"),q={elementId:"user-card",classNames:"user-card",avatarSelector:"[data-user-card]",avatarDataAttrKey:"userCard",mentionSelector:"a.mention",classNameBindings:["visible:show","showBadges","user.card_background_upload_url::no-bg","isFixed:fixed","usernameClass","primaryGroup"],attributeBindings:["labelledBy:aria-labelledby"],allowBackgrounds:(0,d.setting)("allow_profile_backgrounds"),showBadges:(0,d.setting)("enable_badges"),postStream:(0,l.alias)("topic.postStream"),enoughPostsForFiltering:(0,l.gte)("topicPostCount",2),showFilter:(0,l.and)("viewingTopic","postStream.hasNoFilters","enoughPostsForFiltering"),showName:(0,d.propertyNotEqual)("user.name","user.username"),hasUserFilters:(0,l.gt)("postStream.userFilters.length",0),showMoreBadges:(0,l.gt)("moreBadgesCount",0),showDelete:(0,l.and)("viewingAdmin","showName","user.canBeDeleted"),linkWebsite:(0,l.not)("user.isBasic"),labelledBy:e=>e?"discourse-user-card-title":null,hasLocaleOrWebsite(e){return e.location||e.website_name||this.userTimezone},hasStatus(){return this.siteSettings.enable_user_status&&this.user.status},userStatusEmoji:e=>(0,m.emojiUnescape)((0,g.escapeExpression)(`:${e}:`)),isSuspendedOrHasBio:(0,l.or)("user.suspend_reason","user.bio_excerpt"),showCheckEmail:(0,l.and)("user.staged","canCheckEmails"),user:null,topicPostCount:null,showFeaturedTopic:(0,l.and)("user.featured_topic","siteSettings.allow_featured_topic_on_user_profiles"),showUserLocalTime:(0,d.setting)("display_local_time_in_user_card"),staff:e=>e?"staff":"",newUser:e=>0===e?"new-user":"",nameFirst:e=>(0,h.prioritizeNameInUx)(e),userTimezone(e){if(this.showUserLocalTime)return e.get("user_option.timezone")},formattedUserLocalTime:e=>moment.tz(e).format(k.default.t("dates.time")),usernameClass:e=>e?`user-card-${e}`:"",filterPostsLabel:(e,t)=>k.default.t("topic.filter_to",{username:e,count:t}),publicUserFields(){const e=this.site.get("user_fields");if(!(0,u.isEmpty)(e)){const t=this.get("user.user_fields");return e.filterBy("show_on_user_card",!0).sortBy("position").map((e=>{(0,o.set)(e,"dasherized_name",(0,c.dasherize)(e.get("name")));const n=t?t[e.get("id")]:null;return(0,u.isEmpty)(n)?null:a().create({value:n,field:e})})).compact()}},removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow},moreBadgesCount:(e,t)=>e-t,showRecentTimeRead:(e,t)=>e!==t&&0!==t,recentTimeRead:e=>(0,p.durationTiny)(e),timeReadTooltip:(e,t,n)=>e?k.default.t("time_read_recently_tooltip",{time_read:(0,p.durationTiny)(t),recent_time_read:n}):k.default.t("time_read_tooltip",{time_read:(0,p.durationTiny)(t)}),addBackground(){if(!this.allowBackgrounds)return;const e=this.element;if(!e)return;const t=this.get("user.card_background_upload_url"),n=(0,u.isEmpty)(t)?"":`url(${(0,w.getURLWithCDN)(t)})`;e.style.backgroundImage=n},primaryGroup:e=>`group-${e}`,contentHidden:(e,t)=>e||t,_showCallback(e,t){this._positionCard(t),this.setProperties({visible:!0,loading:!0});const n={forCard:!0,include_post_count_for:this.get("topic.id")};return y.default.findByUsername(e,n).then((e=>(e.topic_post_count&&this.set("topicPostCount",e.topic_post_count[n.include_post_count_for]),this.setProperties({user:e}),this.user.trackStatus(),e))).catch((()=>this._close())).finally((()=>this.set("loading",null)))},_close(){this.user&&this.user.stopTrackingStatus(),this.setProperties({user:null,topicPostCount:null}),this._super(...arguments)},cleanUp(){this._close()},handleShowUser(e,t){if(t&&(0,g.modKeysPressed)(t).length>0)return!1;t?.preventDefault(),this.showUser(e),this._close()},actions:{close(){this._close()},composePM(e,t){this._close(),this.composePrivateMessage(e,t)},cancelFilter(){const e=this.postStream;e.cancelFilter(),e.refresh(),this._close()},filterPosts(){this.filterPosts(this.user),this._close()},deleteUser(){this.user.delete(),this._close()},showUser(e){this.handleShowUser(e)},checkEmail(e){e.checkEmail()}}},(0,r.Z)(q,"labelledBy",[T],Object.getOwnPropertyDescriptor(q,"labelledBy"),q),(0,r.Z)(q,"hasLocaleOrWebsite",[S],Object.getOwnPropertyDescriptor(q,"hasLocaleOrWebsite"),q),(0,r.Z)(q,"hasStatus",[C],Object.getOwnPropertyDescriptor(q,"hasStatus"),q),(0,r.Z)(q,"userStatusEmoji",[P],Object.getOwnPropertyDescriptor(q,"userStatusEmoji"),q),(0,r.Z)(q,"staff",[O],(H=(H=Object.getOwnPropertyDescriptor(q,"staff"))?H.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return H}}),q),(0,r.Z)(q,"newUser",[E],(W=(W=Object.getOwnPropertyDescriptor(q,"newUser"))?W.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return W}}),q),(0,r.Z)(q,"nameFirst",[D],Object.getOwnPropertyDescriptor(q,"nameFirst"),q),(0,r.Z)(q,"userTimezone",[I],Object.getOwnPropertyDescriptor(q,"userTimezone"),q),(0,r.Z)(q,"formattedUserLocalTime",[j],Object.getOwnPropertyDescriptor(q,"formattedUserLocalTime"),q),(0,r.Z)(q,"usernameClass",[Z],(K=(K=Object.getOwnPropertyDescriptor(q,"usernameClass"))?K.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return K}}),q),(0,r.Z)(q,"filterPostsLabel",[A],Object.getOwnPropertyDescriptor(q,"filterPostsLabel"),q),(0,r.Z)(q,"publicUserFields",[M],Object.getOwnPropertyDescriptor(q,"publicUserFields"),q),(0,r.Z)(q,"removeNoFollow",[N],Object.getOwnPropertyDescriptor(q,"removeNoFollow"),q),(0,r.Z)(q,"moreBadgesCount",[z],(V=(V=Object.getOwnPropertyDescriptor(q,"moreBadgesCount"))?V.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return V}}),q),(0,r.Z)(q,"showRecentTimeRead",[L],Object.getOwnPropertyDescriptor(q,"showRecentTimeRead"),q),(0,r.Z)(q,"recentTimeRead",[F],Object.getOwnPropertyDescriptor(q,"recentTimeRead"),q),(0,r.Z)(q,"timeReadTooltip",[U],Object.getOwnPropertyDescriptor(q,"timeReadTooltip"),q),(0,r.Z)(q,"addBackground",[R],Object.getOwnPropertyDescriptor(q,"addBackground"),q),(0,r.Z)(q,"primaryGroup",[B],Object.getOwnPropertyDescriptor(q,"primaryGroup"),q),(0,r.Z)(q,"contentHidden",[$],Object.getOwnPropertyDescriptor(q,"contentHidden"),q),(0,r.Z)(q,"handleShowUser",[o.action],Object.getOwnPropertyDescriptor(q,"handleShowUser"),q),q)))},66674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(55071),i=n(60561),s=n(9465),o=n(41315),a=n(65915),l=n(8620),c=n(31691),u=n(91138),d=n.n(u);const p={confirm:i.default,dropdown:s.default,multiselect:o.default,text:a.default},h=(0,c.setComponentTemplate)((0,l.createTemplateFactory)({id:"mOo9OY65",block:'[[[1,"\\n"],[44,[[28,[32,0],[[32,1],[30,1,["field_type"]]],null]],[[[1,"    "],[8,[30,2],[[17,3]],[["@field","@value","@validation"],[[30,1],[30,4],[30,5]]],null],[1,"\\n"]],[2]]]],["@field","Component","&attrs","@value","@validation"],false,["let"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-field.js",scope:()=>[r.get,p],isStrictMode:!0}),d()())},13589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(31691),a=n.n(o),l=n(57555);const c=a().extend((r=(0,l.default)("field.name"),i={classNameBindings:[":user-field","field.field_type","customFieldClass"],didInsertElement(){this._super(...arguments);let e=this.element.querySelector(".user-field.dropdown .select-kit-header");e=e||this.element.querySelector("input"),this.field.element=e},noneLabel:()=>"user_fields.none",customFieldClass(e){if(e)return(e=e.replace(/\s+/g,"-").replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}~]/g,"").toLowerCase())&&`user-field-${e}`}},(0,s.Z)(i,"noneLabel",[l.default],Object.getOwnPropertyDescriptor(i,"noneLabel"),i),(0,s.Z)(i,"customFieldClass",[r],Object.getOwnPropertyDescriptor(i,"customFieldClass"),i),i))},60561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(13589);const i=(0,n(8620).createTemplateFactory)({id:"4KJxS+za",block:'[[[41,[30,0,["field","name"]],[[[1,"  "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n    "],[1,[30,0,["field","name"]]],[1,"\\n    "],[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label checkbox-label"],[12],[1,"\\n    "],[8,[39,1],[[16,1,[28,[37,2],["user-",[30,0,["elementId"]]],null]]],[["@checked","@type"],[[30,0,["value"]],"checkbox"]],null],[1,"\\n    "],[10,1],[12],[1,"\\n      "],[1,[28,[35,3],[[30,0,["field","description"]]],null]],[1,"\\n      "],[41,[51,[30,0,["field","name"]]],[[[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null]],[]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["if","input","concat","html-safe","unless"]]',moduleName:"discourse/components/user-fields/confirm.hbs",isStrictMode:!1});var s=n(31691);class o extends r.default{}(0,s.setComponentTemplate)(i,o)},9465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(13589);const i=(0,n(8620).createTemplateFactory)({id:"86/FMNvn",block:'[[[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,0],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n  "],[1,[30,0,["field","name"]]],[1,"\\n"],[41,[30,0,["field","required"]],[[[1,"    "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n  "],[8,[39,2],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,0],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["value"]]],null]],null],[28,[37,5],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,6],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["concat","if","combo-box","action","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/dropdown.hbs",isStrictMode:!1});var s=n(31691);class o extends r.default{}(0,s.setComponentTemplate)(i,o)},41315:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(13589);const i=(0,n(8620).createTemplateFactory)({id:"VNV+Xuui",block:'[[[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,0],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n  "],[1,[30,0,["field","name"]]],[1,"\\n"],[41,[30,0,["field","required"]],[[[1,"    "],[10,1],[14,0,"required"],[12],[1,"*"],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[10,0],[14,0,"controls"],[12],[1,"\\n  "],[8,[39,2],null,[["@id","@content","@valueProperty","@nameProperty","@value","@onChange","@options"],[[28,[37,0],["user-",[30,0,["elementId"]]],null],[30,0,["field","options"]],null,null,[30,0,["value"]],[28,[37,3],[[30,0],[28,[37,4],[[30,0,["value"]]],null]],null],[28,[37,5],null,[["none"],[[30,0,["noneLabel"]]]]]]],null],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,6],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["concat","if","multi-select","action","mut","hash","html-safe"]]',moduleName:"discourse/components/user-fields/multiselect.hbs",isStrictMode:!1});var s=n(31691);class o extends r.default{}(0,s.setComponentTemplate)(i,o)},65915:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(13589);const i=(0,n(8620).createTemplateFactory)({id:"MThaKbAK",block:'[[[10,0],[14,0,"controls"],[12],[1,"\\n  "],[8,[39,0],[[16,1,[28,[37,1],["user-",[30,0,["elementId"]]],null]],[16,"maxlength",[30,0,["site","user_field_max_length"]]]],[["@value"],[[30,0,["value"]]]],null],[1,"\\n  "],[10,"label"],[14,0,"control-label alt-placeholder"],[15,"for",[28,[37,1],["user-",[30,0,["elementId"]]],null]],[12],[1,"\\n    "],[1,[30,0,["field","name"]]],[1,"\\n    "],[41,[30,0,["field","required"]],[[[10,1],[14,0,"required"],[12],[1,"*"],[13]],[]],null],[1,"\\n  "],[13],[1,"\\n  "],[8,[39,3],[[16,0,[52,[51,[30,0,["validation"]]],"hidden"]]],[["@validation"],[[30,0,["validation"]]]],null],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,5],[[30,0,["field","description"]]],null]],[13],[1,"\\n"],[13]],[],false,["input","concat","if","input-tip","unless","html-safe"]]',moduleName:"discourse/components/user-fields/text.hbs",isStrictMode:!1});var s=n(31691);class o extends r.default{}(0,s.setComponentTemplate)(i,o)},20364:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555),a=n(82099);const l=(0,n(8620).createTemplateFactory)({id:"PzzJcGil",block:'[[[41,[30,0,["showPercentage"]],[[[1,"  "],[10,0],[15,"title",[30,0,["percentage","title"]]],[14,0,"user-flag-percentage"],[12],[1,"\\n    "],[10,1],[15,0,[29,["percentage-label ",[30,0,["percentage","className"]]]]],[12],[1,[30,0,["percentage","label"]]],[13],[1,"\\n    "],[1,[28,[35,1],[[30,0,["percentage","icon"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon"]]',moduleName:"discourse/components/user-flag-percentage.hbs",isStrictMode:!1});var c,u,d;const p=(0,i.setComponentTemplate)(l,s().extend((c=(0,o.default)("percentage"),u=(0,o.default)("agreed","disagreed","ignored"),d={tagName:"",showPercentage:e=>e.total>=3,percentage(e,t,n){let r=e+t+n,i={total:r};r>0&&(i.agreed=Math.round(e/r*100),i.disagreed=Math.round(t/r*100),i.ignored=Math.round(n/r*100));let s=Math.max(e,t,n);return s===e?(i.icon="thumbs-up",i.className="agreed",i.label=`${i.agreed}%`):s===t?(i.icon="thumbs-down",i.className="disagreed",i.label=`${i.disagreed}%`):(i.icon="external-link-alt",i.className="ignored",i.label=`${i.ignored}%`),i.title=a.default.t("review.user_percentage.summary",{agreed:a.default.t("review.user_percentage.agreed",{count:i.agreed}),disagreed:a.default.t("review.user_percentage.disagreed",{count:i.disagreed}),ignored:a.default.t("review.user_percentage.ignored",{count:i.ignored}),count:r}),i}},(0,r.Z)(d,"showPercentage",[c],Object.getOwnPropertyDescriptor(d,"showPercentage"),d),(0,r.Z)(d,"percentage",[u],Object.getOwnPropertyDescriptor(d,"percentage"),d),d)))},9559:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(6264),a=n(9387),l=n(20229),c=n(57555);const u=(0,n(8620).createTemplateFactory)({id:"LJwLG5Qn",block:'[[[41,[30,0,["includeAvatar"]],[[[1,"  "],[10,0],[14,0,"user-image"],[12],[1,"\\n    "],[10,0],[14,0,"user-image-inner"],[12],[1,"\\n      "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[14,"aria-hidden","true"],[12],[1,[28,[35,1],[[30,1]],[["imageSize"],["large"]]]],[13],[1,"\\n      "],[8,[39,2],null,[["@user"],[[30,1]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"user-detail"],[12],[1,"\\n  "],[10,0],[14,0,"name-line"],[12],[1,"\\n"],[41,[30,0,["includeLink"]],[[[1,"      "],[10,3],[15,6,[30,0,["userPath"]]],[15,"data-user-card",[30,1,["username"]]],[12],[1,"\\n        "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name","username"]],[12],[1,"\\n          "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,3],[[30,1,["username"]]],null]]],[1,"\\n        "],[13],[1,"\\n        "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username","name"]],[12],[1,"\\n          "],[1,[52,[30,0,["nameFirst"]],[28,[37,3],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],[[[1,"      "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"name","username"]],[12],[1,"\\n        "],[1,[52,[30,0,["nameFirst"]],[30,1,["name"]],[28,[37,3],[[30,1,["username"]]],null]]],[1,"\\n      "],[13],[1,"\\n      "],[10,1],[15,0,[52,[30,0,["nameFirst"]],"username","name"]],[12],[1,"\\n        "],[1,[52,[30,0,["nameFirst"]],[28,[37,3],[[30,1,["username"]]],null],[30,1,["name"]]]],[1,"\\n      "],[13],[1,"\\n"]],[]]],[41,[28,[37,4],[[30,2],[30,1,["status"]]],null],[[[1,"      "],[8,[39,5],null,[["@status","@showDescription"],[[30,1,["status"]],[30,3]]],null],[1,"\\n"]],[]],null],[1,"    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["after-user-name","span",[28,[37,7],null,[["user"],[[30,0,["user"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"title"],[12],[1,[30,1,["title"]]],[13],[1,"\\n"],[41,[48,[30,4]],[[[1,"    "],[10,0],[14,0,"details"],[12],[1,"\\n      "],[18,4,null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13],[1,"\\n\\n"],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["after-user-info","div",[28,[37,7],null,[["user"],[[30,0,["user"]]]]]]],null]],["@user","@showStatus","@showStatusDescription","&default"],false,["if","avatar","user-avatar-flair","format-username","and","user-status-message","plugin-outlet","hash","has-block","yield"]]',moduleName:"discourse/components/user-info.hbs",isStrictMode:!1});var d,p,h;const m=(0,i.setComponentTemplate)(u,s().extend((d=(0,c.default)("user.username"),p=(0,c.default)("user.name"),h={classNameBindings:[":user-info","size"],attributeBindings:["data-username"],size:"small","data-username":(0,o.alias)("user.username"),includeLink:!0,includeAvatar:!0,didInsertElement(){this._super(...arguments),this.user?.trackStatus?.()},willDestroyElement(){this._super(...arguments),this.user?.stopTrackingStatus?.()},userPath:e=>(0,l.userPath)(e),nameFirst:e=>(0,a.prioritizeNameInUx)(e)},(0,r.Z)(h,"userPath",[d],Object.getOwnPropertyDescriptor(h,"userPath"),h),(0,r.Z)(h,"nameFirst",[p],Object.getOwnPropertyDescriptor(h,"nameFirst"),h),h)))},17209:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r),s=n(6264);const o=i().extend({tagName:"a",attributeBindings:["href","data-user-card"],href:(0,s.alias)("user.path"),"data-user-card":(0,s.alias)("user.username")})},77742:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"LffF/PoP",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_bookmarks_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_bookmarks_body"],[["icon"],[[28,[37,2],["bookmark"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","d-icon"]]',moduleName:"discourse/components/user-menu/bookmarks-list-empty-state.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},63865:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(32758),i=n(65016),s=n(3055),o=n(28063),a=n(3366),l=n(87521),c=n(83649),u=n(82099);var d=new WeakMap;class p extends i.default{constructor(){var e,t,n;super(...arguments),n={get:h,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=d),t.set(e,n)}get dismissTypes(){return["bookmark_reminder"]}get showAllHref(){return`${this.currentUser.path}/activity/bookmarks`}get showAllTitle(){return u.default.t("user_menu.view_all_bookmarks")}get showDismiss(){return(0,r.Z)(this,d)>0}get dismissTitle(){return u.default.t("user.dismiss_bookmarks_tooltip")}get itemsCacheKey(){return"user-menu-bookmarks-tab"}get emptyStateComponent(){return"user-menu/bookmarks-list-empty-state"}get dismissConfirmationText(){return u.default.t("notifications.dismiss_confirmation.body.bookmarks",{count:(0,r.Z)(this,d)})}async fetchItems(){const e=await(0,s.ajax)(`/u/${this.currentUser.username}/user-menu-bookmarks`),t=[],n=e.notifications.map((e=>c.default.create(e)));await c.default.applyTransformations(n),n.forEach((e=>{t.push(new a.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}));const r=e.bookmarks.map((e=>l.default.create(e)));return await l.default.applyTransformations(r),t.push(...r.map((e=>new o.default({bookmark:e,siteSettings:this.siteSettings,site:this.site})))),t}}function h(){const e=`grouped_unread_notifications.${this.site.notification_types.bookmark_reminder}`;return this.currentUser.get(e)||0}},36630:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(16917),i=n(40098),s=n(8620),o=n(31691),a=n(91138),l=n.n(a);const c=(0,o.setComponentTemplate)((0,s.createTemplateFactory)({id:"/X5msUis",block:'[[[1,"\\n  "],[10,0],[14,0,"icon-avatar"],[12],[1,"\\n    "],[1,[28,[32,0],[[30,1,["avatarTemplate"]],"small"],null]],[1,"\\n    "],[10,0],[14,0,"icon-avatar__icon-wrapper"],[12],[1,"\\n      "],[1,[28,[32,1],[[30,1,["icon"]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],["@data"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-menu/icon-avatar.js",scope:()=>[r.default,i.default],isStrictMode:!0}),l()())},78045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"QAj6pCPl",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user_menu.generic_no_items"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n"]]',moduleName:"discourse/components/user-menu/items-list-empty-state.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},46191:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(17579);const c=(0,n(8620).createTemplateFactory)({id:"6uAT6DzE",block:'[[[41,[30,0,["loading"]],[[[1,"  "],[10,0],[14,0,"spinner-container"],[12],[1,"\\n    "],[10,0],[14,0,"spinner"],[12],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["items","length"]],[[[1,"  "],[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["items"]]],null]],null],null,[[[1,"      "],[8,[39,3],null,[["@item","@closeUserMenu"],[[30,2],[30,3]]],null],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n  "],[10,0],[14,0,"panel-body-bottom"],[12],[1,"\\n"],[41,[30,0,["showAllHref"]],[[[1,"      "],[10,3],[14,0,"btn btn-default btn-icon no-text show-all"],[15,6,[30,0,["showAllHref"]]],[15,"title",[30,0,["showAllTitle"]]],[12],[1,"\\n        "],[1,[28,[35,4],["chevron-down"],[["aria-label"],[[30,0,["showAllTitle"]]]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showDismiss"]],[[[1,"      "],[11,"button"],[24,0,"btn btn-default notifications-dismiss btn-icon-text"],[16,"title",[30,0,["dismissTitle"]]],[24,4,"button"],[4,[38,5],["click",[30,0,["dismissButtonClick"]]],null],[12],[1,"\\n        "],[1,[28,[35,4],["check"],null]],[1,"\\n        "],[1,[28,[35,6],["user.dismiss"],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,7],null,[["@name","@outletArgs"],["panel-body-bottom",[28,[37,8],null,[["itemsCacheKey","closeUserMenu","showDismiss","dismissButtonClick"],[[30,0,["itemsCacheKey"]],[30,3],[30,0,["showDismiss"]],[30,0,["dismissButtonClick"]]]]]]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,7],null,[["@name","@outletArgs"],["user-menu-items-list-empty-state",[28,[37,8],null,[["model"],[[30,0]]]]]],[["default"],[[[[1,"\\n    "],[46,[30,0,["emptyStateComponent"]],null,null,null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]]]],[]]],[8,[39,7],null,[["@name","@outletArgs"],["after-panel-body",[28,[37,8],null,[["closeUserMenu"],[[30,3]]]]]],null]],["@ariaLabelledby","item","@closeUserMenu"],false,["if","each","-track-array","user-menu/menu-item","d-icon","on","i18n","plugin-outlet","hash","component"]]',moduleName:"discourse/components/user-menu/items-list.hbs",isStrictMode:!1});var u,d,p,h,m,g,f,b=n(31691);function _(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function y(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let w=(m=new WeakSet,g=new WeakSet,f=new WeakSet,u=class extends s.default{constructor(){super(...arguments),_(this,f),_(this,g),_(this,m),(0,r.Z)(this,"session",d,this),(0,r.Z)(this,"loading",p,this),(0,r.Z)(this,"items",h,this),y(this,m,v).call(this)}get itemsCacheKey(){}get showAllHref(){}get showAllTitle(){}get showDismiss(){return!1}get dismissTitle(){}get emptyStateComponent(){return"user-menu/items-list-empty-state"}get renderDismissConfirmation(){return!1}async fetchItems(){throw new Error(`the fetchItems method must be implemented in ${this.constructor.name}`)}async refreshList(){await y(this,m,v).call(this)}dismissButtonClick(){throw new Error(`dismissButtonClick must be implemented in ${this.constructor.name}.`)}},d=(0,i.Z)(u.prototype,"session",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,i.Z)(u.prototype,"loading",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=(0,i.Z)(u.prototype,"items",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),(0,i.Z)(u.prototype,"dismissButtonClick",[a.action],Object.getOwnPropertyDescriptor(u.prototype,"dismissButtonClick"),u.prototype),u);async function v(){const e=y(this,g,k).call(this);e?.length?this.items=e:this.loading=!0;try{const e=await this.fetchItems();y(this,f,x).call(this,e),this.items=e}catch(e){console.error(`an error occurred when loading items for ${this.constructor.name}`,e)}finally{this.loading=!1}}function k(){const e=this.itemsCacheKey;if(e)return this.session[`user-menu-items:${e}`]}function x(e){const t=this.itemsCacheKey;t&&this.session.set(`user-menu-items:${t}`,e)}(0,b.setComponentTemplate)(c,w)},57328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"zFQKO7gA",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_likes_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_likes_body"],[["preferencesUrl"],[[28,[37,2],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","get-url"]]',moduleName:"discourse/components/user-menu/likes-list-empty-state.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},12399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(65016);class i extends r.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/likes-list-empty-state"}}},38586:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(32758),i=n(54001),s=n(82006),o=n(48163),a=n(24434),l=n(35193),c=n(62617);const u=(0,n(8620).createTemplateFactory)({id:"VDgUsLnh",block:'[[[10,"li"],[15,0,[30,0,["className"]]],[12],[1,"\\n  "],[11,3],[16,6,[30,0,["linkHref"]]],[16,"title",[30,0,["linkTitle"]]],[4,[38,0],["click",[30,0,["onClick"]]],null],[12],[1,"\\n"],[41,[30,0,["iconComponent"]],[[[1,"      "],[8,[30,0,["iconComponent"]],null,[["@data"],[[30,0,["iconComponentArgs"]]]],null],[1,"\\n"]],[]],[[[1,"      "],[1,[28,[35,2],[[30,0,["icon"]]],null]],[1,"\\n"]],[]]],[1,"    "],[10,0],[12],[1,"\\n"],[41,[30,0,["label"]],[[[1,"        "],[10,1],[15,0,[28,[37,3],["item-label ",[30,0,["labelClass"]]],null]],[12],[1,"\\n          "],[1,[30,0,["label"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[41,[30,0,["description"]],[[[1,"        "],[10,1],[15,0,[28,[37,3],["item-description ",[30,0,["descriptionClass"]]],null]],[15,"data-topic-id",[30,0,["topicId"]]],[12],[1,"\\n          "],[1,[30,0,["description"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n\\n"],[41,[30,0,["endComponent"]],[[[1,"      "],[8,[30,0,["endComponent"]],null,null,null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n  "],[8,[39,4],null,[["@name","@outletArgs"],["menu-item-end",[30,0,["endOutletArgs"]]]],null],[1,"\\n"],[13]],[],false,["on","if","d-icon","concat","plugin-outlet"]]',moduleName:"discourse/components/user-menu/menu-item.hbs",isStrictMode:!1});var d,p,h=n(31691);let m=(p=new WeakMap,d=class extends s.default{constructor(){var e,t,n;super(...arguments),n={get:g,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=p),t.set(e,n)}get className(){return(0,r.Z)(this,p).className}get linkHref(){return(0,r.Z)(this,p).linkHref}get linkTitle(){return(0,r.Z)(this,p).linkTitle}get icon(){return(0,r.Z)(this,p).icon}get label(){return(0,r.Z)(this,p).label}get labelClass(){return(0,r.Z)(this,p).labelClass}get description(){const e=(0,r.Z)(this,p).description;if(e)return"string"==typeof e?(0,a.htmlSafe)((0,l.emojiUnescape)((0,c.escapeExpression)(e))):e}get descriptionClass(){return(0,r.Z)(this,p).descriptionClass}get topicId(){return(0,r.Z)(this,p).topicId}get iconComponent(){return(0,r.Z)(this,p).iconComponent}get iconComponentArgs(){return(0,r.Z)(this,p).iconComponentArgs}get endComponent(){return(0,r.Z)(this,p).endComponent}get endOutletArgs(){return(0,r.Z)(this,p).endOutletArgs}onClick(e){return(0,r.Z)(this,p).onClick({event:e,closeUserMenu:this.args.closeUserMenu})}},(0,i.Z)(d.prototype,"onClick",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"onClick"),d.prototype),d);function g(){return this.args.item}(0,h.setComponentTemplate)(u,m)},78845:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(82006);const i=(0,n(8620).createTemplateFactory)({id:"MNxA/ZHg",block:'[[[11,3],[24,"role","tab"],[16,0,[30,0,["classNames"]]],[16,1,[30,0,["id"]]],[16,"tabindex",[30,0,["tabIndex"]]],[16,"title",[30,1,["title"]]],[16,"aria-selected",[52,[30,0,["isActive"]],"true","false"]],[16,"aria-controls",[30,0,["ariaControls"]]],[16,"data-tab-number",[30,1,["position"]]],[16,6,[30,1,["linkWhenActive"]]],[4,[38,1],["click",[30,2]],null],[4,[38,1],["keydown",[30,2]],null],[12],[1,"\\n  "],[1,[28,[35,2],[[30,1,["icon"]]],null]],[1,"\\n"],[41,[30,1,["count"]],[[[1,"    "],[10,1],[14,"aria-hidden","true"],[14,0,"badge-notification"],[12],[1,[30,1,["count"]]],[13],[1,"\\n"]],[]],null],[1,"  "],[18,3,null],[1,"\\n"],[13]],["@tab","@onTabClick","&default"],false,["if","on","d-icon","yield"]]',moduleName:"discourse/components/user-menu/menu-tab.hbs",isStrictMode:!1});var s=n(31691);class o extends r.default{get isActive(){return this.args.tab.id===this.args.currentTabId}get classNames(){const e=["btn","btn-flat","btn-icon","no-text","user-menu-tab"];return this.isActive&&e.push("active"),e.join(" ")}get id(){return`user-menu-button-${this.args.tab.id}`}get tabIndex(){return this.isActive?"0":"-1"}get ariaControls(){return`quick-access-${this.args.tab.id}`}}(0,s.setComponentTemplate)(i,o)},8616:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>$});var r=n(94664),i=n(54001),s=n(49246),o=n(82006),a=n(23183),l=n(72326),c=n(48163),u=n(17579),d=n(77559),p=n(82658),h=n(87521),m=n(54736),g=n(47582),f=n(63865),b=n(12399),_=n(43084),y=n(65016),w=n(62166),v=n(84798),k=n(60639),x=n(14398),T=n(91649);const S=(0,n(8620).createTemplateFactory)({id:"JKyGdQoF",block:'[[[11,0],[16,0,[30,0,["classNames"]]],[16,"data-tab-id",[30,0,["currentTabId"]]],[24,"data-max-width","320"],[4,[38,0],[[30,0,["triggerRenderedAppEvent"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"panel-body"],[12],[1,"\\n    "],[10,0],[14,0,"panel-body-contents"],[12],[1,"\\n      "],[10,0],[14,0,"menu-tabs-container"],[14,"role","tablist"],[14,"aria-orientation","vertical"],[15,"aria-label",[28,[37,1],["user_menu.sr_menu_tabs"],null]],[12],[1,"\\n        "],[11,0],[24,0,"top-tabs tabs-list"],[4,[38,0],[[30,0,["focusFirstTab"]]],null],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["topTabs"]]],null]],null],null,[[[1,"            "],[8,[39,4],null,[["@tab","@currentTabId","@onTabClick"],[[30,1],[30,0,["currentTabId"]],[28,[37,5],[[30,0,["handleTabClick"]],[30,1]],null]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n        "],[10,0],[14,0,"bottom-tabs tabs-list"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,0,["bottomTabs"]]],null]],null],null,[[[1,"            "],[8,[39,4],null,[["@tab","@currentTabId","@onTabClick"],[[30,2],[30,0,["currentTabId"]],[28,[37,5],[[30,0,["handleTabClick"]],[30,2]],null]]],null],[1,"\\n"]],[2]],null],[1,"        "],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[15,1,[28,[37,6],["quick-access-",[30,0,["currentTabId"]]],null]],[14,0,"quick-access-panel"],[14,"tabindex","-1"],[12],[1,"\\n        "],[8,[30,0,["currentPanelComponent"]],null,[["@closeUserMenu","@filterByTypes","@ariaLabelledby"],[[30,3],[30,0,["currentNotificationTypes"]],[28,[37,6],["user-menu-button-",[30,0,["currentTabId"]]],null]]],null],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],["tab","tab","@closeUserMenu"],false,["did-insert","i18n","each","-track-array","user-menu/menu-tab","fn","concat"]]',moduleName:"discourse/components/user-menu/menu.hbs",isStrictMode:!1});var C,P,O,E,D,I,j,Z,A,M=n(31691);let N=(0,T.Z)(n(23183)).cached;const z="all-notifications",L=y.default,F="review-queue",U=[class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id",z),(0,s.Z)(this,"icon","bell"),(0,s.Z)(this,"panelComponent",L)}get linkWhenActive(){return`${this.currentUser.path}/notifications`}},class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id","replies"),(0,s.Z)(this,"icon","reply"),(0,s.Z)(this,"panelComponent",k.default),(0,s.Z)(this,"notificationTypes",["mentioned","group_mentioned","posted","quoted","replied"])}get count(){return this.getUnreadCountForType("mentioned")+this.getUnreadCountForType("group_mentioned")+this.getUnreadCountForType("posted")+this.getUnreadCountForType("quoted")+this.getUnreadCountForType("replied")}get linkWhenActive(){return`${this.currentUser.path}/notifications/responses`}},class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id","likes"),(0,s.Z)(this,"icon","heart"),(0,s.Z)(this,"panelComponent",b.default)}get shouldDisplay(){return!this.currentUser.user_option.likes_notifications_disabled}get count(){return this.getUnreadCountForType("liked")+this.getUnreadCountForType("liked_consolidated")+this.getUnreadCountForType("reaction")}get notificationTypes(){return["liked","liked_consolidated","reaction"]}get linkWhenActive(){return`${this.currentUser.path}/notifications/likes-received`}},class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id","messages"),(0,s.Z)(this,"icon","notification.private_message"),(0,s.Z)(this,"panelComponent",_.default),(0,s.Z)(this,"notificationTypes",["private_message","group_message_summary"])}get count(){return this.getUnreadCountForType("private_message")}get shouldDisplay(){return this.currentUser?.can_send_private_messages}get linkWhenActive(){return`${this.currentUser.path}/messages`}},class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id","bookmarks"),(0,s.Z)(this,"icon",h.NO_REMINDER_ICON),(0,s.Z)(this,"panelComponent",f.default),(0,s.Z)(this,"notificationTypes",["bookmark_reminder"])}get count(){return this.getUnreadCountForType("bookmark_reminder")}get linkWhenActive(){return`${this.currentUser.path}/activity/bookmarks`}},class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id",F),(0,s.Z)(this,"icon","flag"),(0,s.Z)(this,"panelComponent",x.default),(0,s.Z)(this,"linkWhenActive",(0,g.default)("/review"))}get shouldDisplay(){return this.currentUser.can_review&&this.currentUser.get("reviewable_count")}get count(){return this.currentUser.get("reviewable_count")}}],R=[class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"id","profile"),(0,s.Z)(this,"icon","user"),(0,s.Z)(this,"panelComponent",v.default)}get linkWhenActive(){return`${this.currentUser.path}/summary`}}],B=class extends p.default{constructor(e,t,n,r){super(...arguments),(0,s.Z)(this,"id","other-notifications"),(0,s.Z)(this,"icon","discourse-other-tab"),(0,s.Z)(this,"panelComponent",w.default),this.otherNotificationTypes=r}get count(){return this.otherNotificationTypes.reduce(((e,t)=>e+this.getUnreadCountForType(t)),0)}get notificationTypes(){return this.otherNotificationTypes}};let $=(A=new WeakSet,C=class extends o.default{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=A),t.add(e),(0,r.Z)(this,"currentUser",P,this),(0,r.Z)(this,"siteSettings",O,this),(0,r.Z)(this,"site",E,this),(0,r.Z)(this,"appEvents",D,this),(0,r.Z)(this,"currentTabId",I,this),(0,r.Z)(this,"currentPanelComponent",j,this),(0,r.Z)(this,"currentNotificationTypes",Z,this)}get classNames(){let e=["user-menu","revamped","menu-panel","drop-down"];return this.siteSettings.show_user_menu_avatars&&e.push("show-avatars"),e.join(" ")}get topTabs(){const e=[];U.forEach((t=>{const n=new t(this.currentUser,this.siteSettings,this.site);n.shouldDisplay&&e.push(n)}));let t=e.findIndex((e=>e.id===F));return p.CUSTOM_TABS_CLASSES.forEach((n=>{const r=new n(this.currentUser,this.siteSettings,this.site);r.shouldDisplay&&(-1===t?e.push(r):(e.insertAt(t,r),t++))})),e.push(new B(this.currentUser,this.siteSettings,this.site,function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,A,q).call(this,e))),e.map(((e,t)=>(e.position=t,e)))}get bottomTabs(){const e=[];R.forEach((t=>{const n=new t(this.currentUser,this.siteSettings,this.site);n.shouldDisplay&&e.push(n)}));const t=this.topTabs.length;return e.map(((e,n)=>(e.position=n+t,e)))}handleTabClick(e,t){(0,d.wantsNewWindow)(t)||this.currentTabId===e.id||"keydown"===t.type&&13!==t.keyCode||(t.preventDefault(),this.currentTabId=e.id,this.currentPanelComponent=function(e,t){if("string"==typeof t){const n=JSON.stringify(t);return(0,m.default)(`user-menu tab panelComponent must be passed as a component class (passed ${n})`,{id:"discourse.user-menu.panel-component-class"}),e.resolveRegistration(`component:${t}`)}return t}((0,l.getOwner)(this),e.panelComponent),this.appEvents.trigger("user-menu:tab-click",e.id),this.currentNotificationTypes=e.notificationTypes)}triggerRenderedAppEvent(){this.appEvents.trigger("user-menu:rendered")}focusFirstTab(e){e.querySelector(".btn.active")?.focus()}},P=(0,i.Z)(C.prototype,"currentUser",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,i.Z)(C.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,i.Z)(C.prototype,"site",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.Z)(C.prototype,"appEvents",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.Z)(C.prototype,"currentTabId",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return z}}),j=(0,i.Z)(C.prototype,"currentPanelComponent",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return L}}),Z=(0,i.Z)(C.prototype,"currentNotificationTypes",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(C.prototype,"topTabs",[N],Object.getOwnPropertyDescriptor(C.prototype,"topTabs"),C.prototype),(0,i.Z)(C.prototype,"bottomTabs",[N],Object.getOwnPropertyDescriptor(C.prototype,"bottomTabs"),C.prototype),(0,i.Z)(C.prototype,"handleTabClick",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"handleTabClick"),C.prototype),(0,i.Z)(C.prototype,"triggerRenderedAppEvent",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"triggerRenderedAppEvent"),C.prototype),(0,i.Z)(C.prototype,"focusFirstTab",[c.action],Object.getOwnPropertyDescriptor(C.prototype,"focusFirstTab"),C.prototype),C);function q(e){const t=e.filter((e=>e.notificationTypes)).map((e=>e.notificationTypes)).flat();return Object.keys(this.site.notification_types).filter((e=>!t.includes(e)))}(0,M.setComponentTemplate)(S,$)},77035:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"K90GclbD",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_messages_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_messages_body"],[["icon","aboutUrl"],[[28,[37,2],["envelope"],null],[28,[37,3],["/about"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/messages-list-empty-state.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},43084:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o=n(94664),a=n(32758),l=n(54001),c=n(17579),u=n(65016),d=n(3055),p=n(98242),h=n(3366),m=n(62617),g=n(83649),f=n(92635),b=n(82099);let _=(s=new WeakMap,r=class extends u.default{constructor(){var e,t,n;super(...arguments),n={get:y,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=s),t.set(e,n),(0,o.Z)(this,"store",i,this)}get dismissTypes(){return this.filterByTypes}get showAllHref(){return`${this.currentUser.path}/messages`}get showAllTitle(){return b.default.t("user_menu.view_all_messages")}get showDismiss(){return(0,a.Z)(this,s)>0}get dismissTitle(){return b.default.t("user.dismiss_messages_tooltip")}get itemsCacheKey(){return"user-menu-messages-tab"}get emptyStateComponent(){return"user-menu/messages-list-empty-state"}get dismissConfirmationText(){return b.default.t("notifications.dismiss_confirmation.body.messages",{count:(0,a.Z)(this,s)})}async fetchItems(){const e=await(0,d.ajax)(`/u/${this.currentUser.username}/user-menu-private-messages`),t=[];(await g.default.initializeNotifications(e.unread_notifications)).forEach((e=>{t.push(new h.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))}));const n=e.topics.map((e=>this.store.createRecord("topic",e)));if(await f.default.applyTransformations(n),this.siteSettings.show_user_menu_avatars){const t=new Map(e.users.map((e=>[e.id,e])));n.forEach((e=>{e.last_poster_avatar_template=t.get(e.lastPoster.user_id)?.avatar_template}))}const r=await g.default.initializeNotifications(e.read_notifications);return(0,m.mergeSortedLists)(r,n,((e,t)=>{const n=new Date(e.created_at);return new Date(t.bumped_at)>n})).forEach((e=>{e instanceof g.default?t.push(new h.default({notification:e,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site})):t.push(new p.default({message:e,siteSettings:this.siteSettings,site:this.site}))})),t}},i=(0,l.Z)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);function y(){const e=`grouped_unread_notifications.${this.site.notification_types.private_message}`;return this.currentUser.get(e)||0}},57288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"YlEzCYrB",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_notifications_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_notifications_body"],[["icon","preferencesUrl"],[[28,[37,2],["bell"],null],[28,[37,3],["/my/preferences/notifications"],null]]]]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe","d-icon","get-url"]]',moduleName:"discourse/components/user-menu/notifications-list-empty-state.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},65016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P,setNotificationsLimit:()=>C});var r,i,s,o,a,l,c,u=n(94664),d=n(54001),p=n(48163),h=n(17579),m=n(58186),g=n(46191),f=n(3055),b=n(24307),_=n(3366),y=n(90065),w=n(62617),v=n(83649),k=n(91990),x=n(82099);const T=b.MAX_NOTIFICATIONS_LIMIT_PARAMS;let S=30;function C(e){e<=0||e>T?console.error(`Error: Invalid limit of ${e} passed to setNotificationsLimit. Must be greater than 0 and less than ${T}`):S=e}let P=(r=class e extends g.default{constructor(){super(...arguments),(0,u.Z)(this,"appEvents",i,this),(0,u.Z)(this,"currentUser",s,this),(0,u.Z)(this,"siteSettings",o,this),(0,u.Z)(this,"site",a,this),(0,u.Z)(this,"store",l,this),(0,u.Z)(this,"modal",c,this)}get filterByTypes(){return this.args.filterByTypes}get dismissTypes(){return null}get showAllHref(){return`${this.currentUser.path}/notifications`}get showAllTitle(){return x.default.t("user_menu.view_all_notifications")}get showDismiss(){return Object.keys(this.currentUser.get("grouped_unread_notifications")||{}).any((e=>this.currentUser.get(`grouped_unread_notifications.${e}`)>0))}get dismissTitle(){return x.default.t("user.dismiss_notifications_tooltip")}get itemsCacheKey(){let e="recent-notifications";const t=this.filterByTypes;return t?.length>0&&(e+=`-type-${t.join(",")}`),e}get emptyStateComponent(){return this.constructor===e?"user-menu/notifications-list-empty-state":super.emptyStateComponent}get renderDismissConfirmation(){return!0}get dismissConfirmationText(){return x.default.t("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications})}get alwaysRenderDismissConfirmation(){return!1}async fetchItems(){const e={limit:S,recent:!0,bump_last_seen_reviewable:!0};this.currentUser.enforcedSecondFactor&&(e.silent=!0);const t=this.filterByTypes;t?.length>0&&(e.filter_by_types=t.join(","),e.silent=!0);const n=[],r=await(0,f.ajax)("/notifications",{data:e}),i=await v.default.initializeNotifications(r.notifications),s=r.pending_reviewables?.map((e=>k.default.create(e)));if(s?.length){const e=i.findIndex((e=>e.read)),t=i.splice(0,e);(0,w.mergeSortedLists)(t,s,((e,t)=>{const n=new Date(e.created_at);return new Date(t.created_at)>n})).forEach((e=>{const t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site};e instanceof v.default?(t.notification=e,n.push(new _.default(t))):(t.reviewable=e,n.push(new y.default(t)))}))}return i.forEach((e=>{n.push(new _.default({notification:e,appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))})),n}async performDismiss(){const e={type:"PUT"},t=this.dismissTypes;if(t?.length>0&&(e.data={dismiss_types:t.join(",")}),await(0,f.ajax)("/notifications/mark-read",e),t){const e={...this.currentUser.grouped_unread_notifications};t.forEach((t=>{const n=this.site.notification_types[t];n&&delete e[n]})),this.currentUser.set("grouped_unread_notifications",e)}else this.currentUser.set("all_unread_notifications_count",0),this.currentUser.set("unread_high_priority_notifications",0),this.currentUser.set("grouped_unread_notifications",{});this.refreshList(),(0,w.postRNWebviewMessage)("markRead","1")}dismissWarningModal(){this.modal.show(m.default,{model:{confirmationMessage:this.dismissConfirmationText,dismissNotifications:()=>this.performDismiss()}})}dismissButtonClick(){(this.renderDismissConfirmation||this.alwaysRenderDismissConfirmation)&&(this.currentUser.unread_high_priority_notifications>0||this.alwaysRenderDismissConfirmation)?this.dismissWarningModal():this.performDismiss()}},i=(0,d.Z)(r.prototype,"appEvents",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.Z)(r.prototype,"currentUser",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(r.prototype,"siteSettings",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(r.prototype,"site",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.Z)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,d.Z)(r.prototype,"modal",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(r.prototype,"dismissButtonClick",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"dismissButtonClick"),r.prototype),r)},95873:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"VZrzZ2FW",block:'[[[10,0],[14,0,"empty-state"],[12],[1,"\\n  "],[10,1],[14,0,"empty-state-title"],[12],[1,"\\n    "],[1,[28,[35,0],["user.no_other_notifications_title"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"empty-state-body"],[12],[1,"\\n    "],[10,2],[12],[1,"\\n      "],[1,[28,[35,1],[[28,[37,0],["user.no_other_notifications_body"],null]],null]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["i18n","html-safe"]]',moduleName:"discourse/components/user-menu/other-notifications-list-empty-state.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},62166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(65016);class i extends r.default{get dismissTypes(){return this.filterByTypes}get emptyStateComponent(){return"user-menu/other-notifications-list-empty-state"}get renderDismissConfirmation(){return!1}}},84798:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addUserMenuProfileTabItem:()=>T,default:()=>C,resetUserMenuProfileTabItems:()=>S});var r=n(94664),i=n(49246),s=n(32758),o=n(54001),a=n(82006),l=n(48163),c=n(17579),u=n(53504),d=n(13639),p=n(3055),h=n(71605),m=n(20229);const g=(0,n(8620).createTemplateFactory)({id:"TSJN0I7t",block:'[[[10,"ul"],[15,"aria-labelledby",[30,1]],[12],[1,"\\n"],[41,[30,0,["siteSettings","enable_user_status"]],[[[1,"    "],[10,"li"],[14,0,"set-user-status"],[12],[1,"\\n      "],[8,[39,1],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["setUserStatusClick"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","status"]],[[[1,"          "],[1,[28,[35,2],[[30,0,["currentUser","status","emoji"]]],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[30,0,["currentUser","status","description"]]],[1,"\\n"],[41,[30,0,["currentUser","status","ends_at"]],[[[1,"              "],[1,[28,[35,3],[[30,0,["currentUser","status","ends_at"]]],null]],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],["plus-circle"],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[28,[35,5],["user_status.set_custom_status"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"li"],[14,0,"summary"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["user.summary",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["user"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.summary.title"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"li"],[14,0,"activity"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["userActivity",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["stream"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.activity_stream"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["currentUser","can_invite_to_forum"]],[[[1,"    "],[10,"li"],[14,0,"invites"],[12],[1,"\\n      "],[8,[39,6],null,[["@route","@model"],["userInvited",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,4],["user-plus"],null]],[1,"\\n        "],[10,1],[14,0,"item-label"],[12],[1,"\\n          "],[1,[28,[35,5],["user.invited.title"],null]],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[10,"li"],[14,0,"drafts"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["userActivity.drafts",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["pencil-alt"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["currentUser","draft_count"]],[[[1,"          "],[1,[28,[35,5],["drafts.label_with_count"],[["count"],[[30,0,["currentUser","draft_count"]]]]]],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,5],["drafts.label"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"li"],[14,0,"preferences"],[12],[1,"\\n    "],[8,[39,6],null,[["@route","@model"],["preferences",[30,0,["currentUser"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["cog"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.preferences"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,"li"],[14,0,"do-not-disturb"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["doNotDisturbClick"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],[[52,[30,0,["isInDoNotDisturb"]],"toggle-on","toggle-off"]],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n"],[41,[30,0,["isInDoNotDisturb"]],[[[1,"          "],[10,1],[12],[1,[28,[35,5],["pause_notifications.label"],null]],[13],[1,"\\n"],[41,[30,0,["showDoNotDisturbEndDate"]],[[[1,"            "],[1,[28,[35,3],[[30,0,["doNotDisturbDateTime"]]],null]],[1,"\\n"]],[]],null]],[]],[[[1,"          "],[1,[28,[35,5],["pause_notifications.label"],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["showToggleAnonymousButton"]],[[[1,"    "],[10,"li"],[15,0,[52,[30,0,["currentUser","is_anonymous"]],"disable-anonymous","enable-anonymous"]],[12],[1,"\\n      "],[8,[39,1],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[30,0,["toggleAnonymous"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["currentUser","is_anonymous"]],[[[1,"          "],[1,[28,[35,4],["ban"],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[28,[35,5],["switch_from_anon"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],["user-secret"],null]],[1,"\\n          "],[10,1],[14,0,"item-label"],[12],[1,"\\n            "],[1,[28,[35,5],["switch_to_anon"],null]],[1,"\\n          "],[13],[1,"\\n"]],[]]],[1,"      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["extraItems"]]],null]],null],null,[[[1,"    "],[10,"li"],[15,0,[30,2,["className"]]],[12],[1,"\\n      "],[10,3],[15,6,[30,2,["href"]]],[12],[1,"\\n"],[41,[30,2,["icon"]],[[[1,"          "],[1,[28,[35,4],[[30,2,["icon"]]],null]],[1,"\\n"]],[]],null],[1,"        "],[10,1],[14,0,"item-label"],[12],[1,"\\n          "],[1,[30,2,["content"]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[2]],null],[1,"\\n  "],[10,"li"],[14,0,"logout"],[12],[1,"\\n    "],[8,[39,1],[[24,0,"btn-flat profile-tab-btn"]],[["@action"],[[28,[37,9],["logout"],null]]],[["default"],[[[[1,"\\n      "],[1,[28,[35,4],["sign-out-alt"],null]],[1,"\\n      "],[10,1],[14,0,"item-label"],[12],[1,"\\n        "],[1,[28,[35,5],["user.log_out"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "],[13],[1,"\\n"],[13]],["@ariaLabelledby","item"],false,["if","d-button","emoji","format-age","d-icon","i18n","link-to","each","-track-array","route-action"]]',moduleName:"discourse/components/user-menu/profile-tab-content.hbs",isStrictMode:!1});var f,b,_,y,w,v,k=n(31691);const x=[];function T(e){x.push(e)}function S(){x.clear()}let C=(v=new WeakMap,f=class extends a.default{constructor(){var e,t,n;super(...arguments),n={get:P,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=v),t.set(e,n),(0,r.Z)(this,"currentUser",b,this),(0,r.Z)(this,"siteSettings",_,this),(0,r.Z)(this,"userStatus",y,this),(0,r.Z)(this,"modal",w,this),(0,i.Z)(this,"saving",!1)}get showToggleAnonymousButton(){return this.siteSettings.allow_anonymous_posting&&this.siteSettings.userInAnyGroups("anonymous_posting_allowed_groups",this.currentUser)||this.currentUser.is_anonymous}get isInDoNotDisturb(){return!!(0,s.Z)(this,v)}get doNotDisturbDateTime(){return(0,s.Z)(this,v).getTime()}get showDoNotDisturbEndDate(){return!h.default.isEternal(this.currentUser.get("do_not_disturb_until"))}get extraItems(){return x}doNotDisturbClick(){if(!this.saving){if(this.saving=!0,this.currentUser.do_not_disturb_until)return this.currentUser.leaveDoNotDisturb().finally((()=>{this.saving=!1}));this.saving=!1,this.args.closeUserMenu(),this.modal.show(u.default)}}setUserStatusClick(){this.args.closeUserMenu(),this.modal.show(d.default,{model:{status:this.currentUser.status,pauseNotifications:this.currentUser.isInDoNotDisturb(),saveAction:(e,t)=>this.userStatus.set(e,t),deleteAction:()=>this.userStatus.clear()}})}async toggleAnonymous(){await(0,p.ajax)((0,m.userPath)("toggle-anon"),{type:"POST"}),window.location.reload()}},b=(0,o.Z)(f.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,o.Z)(f.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,o.Z)(f.prototype,"userStatus",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,o.Z)(f.prototype,"modal",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.Z)(f.prototype,"doNotDisturbClick",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"doNotDisturbClick"),f.prototype),(0,o.Z)(f.prototype,"setUserStatusClick",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"setUserStatusClick"),f.prototype),(0,o.Z)(f.prototype,"toggleAnonymous",[l.action],Object.getOwnPropertyDescriptor(f.prototype,"toggleAnonymous"),f.prototype),f);function P(){if(!this.currentUser.get("do_not_disturb_until"))return;const e=new Date(this.currentUser.get("do_not_disturb_until"));return e<new Date?void 0:e}(0,k.setComponentTemplate)(g,C)},60639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(65016);class i extends r.default{get dismissTypes(){return this.filterByTypes}get renderDismissConfirmation(){return!1}get emptyStateComponent(){return"user-menu/notifications-list-empty-state"}}},14398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a=n(94664),l=n(54001),c=n(17579),u=n(46191),d=n(3055),p=n(90065),h=n(91990),m=n(47582),g=n(82099);let f=(r=class extends u.default{constructor(){super(...arguments),(0,a.Z)(this,"currentUser",i,this),(0,a.Z)(this,"siteSettings",s,this),(0,a.Z)(this,"site",o,this)}get showAllHref(){return(0,m.default)("/review")}get showAllTitle(){return g.default.t("user_menu.reviewable.view_all")}get itemsCacheKey(){return"pending-reviewables"}fetchItems(){return(0,d.ajax)("/review/user-menu-list").then((e=>(this.currentUser.updateReviewableCount(e.reviewable_count),e.reviewables.map((e=>new p.default({reviewable:h.default.create(e),currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site}))))))}},i=(0,l.Z)(r.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,l.Z)(r.prototype,"site",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},87213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"EFoGacRT",block:'[[[10,"section"],[14,0,"user-navigation user-navigation-primary"],[12],[1,"\\n  "],[8,[39,0],[[24,0,"main-nav nav user-nav"]],[["@ariaLabel"],["User primary"]],[["default"],[[[[1,"\\n"],[41,[51,[30,1,["profile_hidden"]]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__summary"]],[["@route"],["user.summary"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["user"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.summary.title"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[39,2],[[24,0,"user-nav__activity"]],[["@route","@ariaCurrentContext"],["userActivity","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["stream"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.activity_stream"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n"]],[]],null],[1,"\\n"],[41,[30,2],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__notifications"]],[["@route","@ariaCurrentContext"],["userNotifications","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["bell"],[["class"],["glyph"]]]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.notifications"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,3],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__personal-messages"]],[["@route","@ariaCurrentContext"],["userPrivateMessages","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["envelope"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.private_messages"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,4],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__invites"]],[["@route","@ariaCurrentContext"],["userInvited","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["user-plus"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.invited.title"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,5],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__badges"]],[["@route"],["user.badges"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["certificate"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["badges.title"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[1,"\\n    "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-main-nav","li",[28,[37,7],null,[["model"],[[30,1]]]]]],null],[1,"\\n\\n"],[41,[30,1,["can_edit"]],[[[1,"      "],[8,[39,2],[[24,0,"user-nav__preferences"]],[["@route","@ariaCurrentContext"],["preferences","parentNav"]],[["default"],[[[[1,"\\n        "],[1,[28,[35,3],["cog"],null]],[1,"\\n        "],[10,1],[12],[1,[28,[35,4],["user.preferences"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n"]],[]],null],[41,[28,[37,8],[[30,6],[30,7]],null],[[[1,"      "],[10,"li"],[14,0,"user-nav__admin"],[12],[1,"\\n        "],[10,3],[15,6,[30,1,["adminPath"]]],[12],[1,"\\n          "],[1,[28,[35,3],["wrench"],null]],[1,"\\n          "],[10,1],[12],[1,[28,[35,4],["admin.user.manage_user"],null]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "]],[]]]]],[1,"\\n"],[13]],["@user","@showNotificationsTab","@showPrivateMessages","@canInviteToForum","@showBadges","@isMobileView","@isStaff"],false,["horizontal-overflow-nav","unless","d-navigation-item","d-icon","i18n","if","plugin-outlet","hash","and"]]',moduleName:"discourse/components/user-nav.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},37516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(84762).default.extend({pluginApiIdentifiers:["user-nav-messages-dropdown"],classNames:["user-nav-messages-dropdown"],selectKitOptions:{caretDownIcon:"caret-right",caretUpIcon:"caret-down"}})},58892:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(94664),i=n(54001),s=n(82006),o=n(17579);const a=(0,n(8620).createTemplateFactory)({id:"hbA4rTWI",block:'[[[40,[[[1,"  "],[18,1,null],[1,"\\n"]],[]],"%cursor:0%",[28,[37,1],[[30,0,["messagesNav"]]],null]]],["&default"],false,["in-element","-in-el-null","yield"]]',moduleName:"discourse/components/user-nav/messages-secondary-nav.hbs",isStrictMode:!1});var l,c,u=n(31691);let d=(l=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",c,this)}get messagesNav(){return document.getElementById("user-navigation-secondary__horizontal-nav")}},c=(0,i.Z)(l.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);(0,u.setComponentTemplate)(a,d)},14713:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(63319);const o=(0,n(8620).createTemplateFactory)({id:"ka00K4Tj",block:'[[[10,"tr"],[15,0,[29,["day ",[30,0,["dayLabel"]]]]],[12],[1,"\\n  "],[10,"td"],[14,0,"day-label"],[12],[1,[30,0,["dayLabel"]]],[13],[1,"\\n  "],[10,"td"],[14,0,"starts-at"],[12],[1,"\\n    "],[8,[39,0],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["startTimeOptions"]],[30,0,["startTimeValue"]],[30,0,["onChangeStartTime"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[41,[30,0,["endTimeOptions"]],[[[1,"    "],[10,"td"],[14,0,"to"],[12],[1,[28,[35,2],["user.notification_schedule.to"],null]],[13],[1,"\\n    "],[10,"td"],[14,0,"ends-at"],[12],[1,"\\n      "],[8,[39,0],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,0,["endTimeOptions"]],[30,0,["endTimeValue"]],[30,0,["onChangeEndTime"]]]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],[],false,["combo-box","if","i18n"]]',moduleName:"discourse/components/user-notification-schedule-day.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({tagName:"",dayLabel:(0,s.i18n)("day","user.notification_schedule.%@")}))},5196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n.n(o),l=n(57555),c=n(82099);const u=(0,n(8620).createTemplateFactory)({id:"J5Uvtjsm",block:'[[[10,0],[14,0,"control-group notification-schedule"],[14,"data-setting-name","user-notification-schedule"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.notification_schedule.title"],null]],[13],[1,"\\n  "],[8,[39,1],null,[["@labelKey","@checked"],["user.notification_schedule.label",[30,0,["model","user_notification_schedule","enabled"]]]],null],[1,"\\n\\n"],[41,[30,0,["model","user_notification_schedule","enabled"]],[[[1,"    "],[10,0],[14,0,"instruction"],[12],[1,[28,[35,0],["user.notification_schedule.tip"],null]],[13],[1,"\\n\\n    "],[10,"table"],[14,0,"notification-schedule-table"],[12],[1,"\\n      "],[10,"tbody"],[14,0,"notification-schedule-tbody"],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["days"]]],null]],null],null,[[[1,"          "],[8,[39,5],null,[["@day","@startTimeOptions","@startTimeValue","@onChangeStartTime","@endTimeOptions","@endTimeValue","@onChangeEndTime"],[[30,1,["day"]],[30,1,["startTimeOptions"]],[30,1,["startTimeValue"]],[30,1,["onChangeStartTime"]],[30,1,["endTimeOptions"]],[30,1,["endTimeValue"]],[30,1,["onChangeEndTime"]]]],null],[1,"\\n"]],[1]],null],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[13]],["day"],false,["i18n","preference-checkbox","if","each","-track-array","user-notification-schedule-day"]]',moduleName:"discourse/components/user-notification-schedule.hbs",isStrictMode:!1});var d,p,h,m;const g=["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],f=a().extend((d=(0,l.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time"),p=(0,l.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_start_time"),h=(0,l.default)("model.user_notification_schedule.day_{0,1,2,3,4,5,6}_end_time"),m={id:null,startTimeOptions:null,model:null,onChangeStartTime(e){this.startingTimeChangedForDay(e)},onChangeEndTime(e){this.set(`model.user_notification_schedule.day_${this.id}_end_time`,e)},startTimeValue(e){return e[`day_${this.id}_start_time`]},endTimeOptions(e){return this.buildEndTimeOptionsFor(e[`day_${this.id}_start_time`])},endTimeValue(e){return e[`day_${this.id}_end_time`]},startingTimeChangedForDay(e){e=parseInt(e,10),this.model.set(`user_notification_schedule.day_${this.id}_start_time`,e),"-1"!==e&&this.model.user_notification_schedule[`day_${this.id}_end_time`]<=e&&this.model.set(`user_notification_schedule.day_${this.id}_end_time`,e+30)},buildEndTimeOptionsFor(e){return-1===(e=parseInt(e,10))?null:this.buildTimeOptions(e+30,{includeNone:!1,showMidnight:!0})}},(0,r.Z)(m,"onChangeStartTime",[o.action],Object.getOwnPropertyDescriptor(m,"onChangeStartTime"),m),(0,r.Z)(m,"onChangeEndTime",[o.action],Object.getOwnPropertyDescriptor(m,"onChangeEndTime"),m),(0,r.Z)(m,"startTimeValue",[d],Object.getOwnPropertyDescriptor(m,"startTimeValue"),m),(0,r.Z)(m,"endTimeOptions",[p],Object.getOwnPropertyDescriptor(m,"endTimeOptions"),m),(0,r.Z)(m,"endTimeValue",[h],Object.getOwnPropertyDescriptor(m,"endTimeValue"),m),m)),b=(0,i.setComponentTemplate)(u,s().extend({days:null,didInsertElement(){this._super(...arguments),this.set("startTimeOptions",this.buildTimeOptions(0,{includeNone:!0,showMidnight:!1})),this.set("days",[]),g.forEach(((e,t)=>{this.days.pushObject(f.create({id:t,day:e,model:this.model,buildTimeOptions:this.buildTimeOptions,startTimeOptions:this.startTimeOptions}))}))},buildTimeOptions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeNone:!1,showMidnight:!0},n=[];t.includeNone&&n.push({name:c.default.t("user.notification_schedule.none"),value:-1});for(let r=e;r<=1440;r+=30){let e=Math.floor(r/60),i=r%60;if(0===i&&(i="00"),24===e){t.showMidnight&&n.push({name:c.default.t("user.notification_schedule.midnight"),value:1440});break}n.push({name:moment().set("hour",e).set("minute",i).format("LT"),value:r})}return n}}))},28788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"xICLqqig",block:'[[[10,0],[14,0,"control-group category-notifications"],[12],[1,"\\n  "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,0],["user.categories_settings"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-categories"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching"],null]],[1," "],[1,[28,[35,0],["user.watched_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1,"      "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["watchingTopicsPath"]]],[12],[1,[28,[35,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["watchedCategories"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.watched_categories_instructions"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-categories"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-tracking"],null]],[1," "],[1,[28,[35,0],["user.tracked_categories"],null]],[13],[1,"\\n"],[41,[30,1],[[[1,"      "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["trackingTopicsPath"]]],[12],[1,[28,[35,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"    "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["trackedCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["trackedCategories"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.tracked_categories_instructions"],null]],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-categories"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,1],["d-watching-first"],null]],[1,"\\n      "],[1,[28,[35,0],["user.watched_first_post_categories"],null]],[13],[1,"\\n    "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["watchedFirstPostCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["watchedFirstPostCategories"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n  "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.watched_first_post_categories_instructions"],null]],[13],[1,"\\n\\n"],[41,[30,4,["mute_all_categories_by_default"]],[[[1,"    "],[10,0],[14,0,"controls tracking-controls tracking-controls__regular-categories"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["d-regular"],null]],[1," "],[1,[28,[35,0],["user.regular_categories"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["regularCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["regularCategories"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],["user.regular_categories_instructions"],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-categories"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,1],["d-muted"],null]],[1," "],[1,[28,[35,0],["user.muted_categories"],null]],[13],[1,"\\n\\n"],[41,[30,1],[[[1,"        "],[10,3],[14,0,"show-tracking"],[15,6,[30,2,["mutedTopicsPath"]]],[12],[1,[28,[35,0],["user.tracked_topics_link"],null]],[13],[1,"\\n"]],[]],null],[1,"\\n      "],[8,[39,3],null,[["@categories","@blockedCategories","@onChange"],[[30,2,["mutedCategories"]],[30,3],[28,[37,4],[[30,0],[28,[37,5],[[30,2,["mutedCategories"]]],null]],null]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,0],[[52,[30,5],"user.muted_categories_instructions","user.muted_categories_instructions_dont_hide"]],null]],[13],[1,"\\n"]],[]]],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-categories","div",[28,[37,7],null,[["model","save"],[[30,2],[30,6]]]]]],null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"br"],[12],[13],[1,"\\n\\n"],[10,1],[12],[1,"\\n  "],[8,[39,6],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,7],null,[["model"],[[30,2]]]]]],null],[1,"\\n"],[13]],["@canSee","@model","@selectedCategories","@siteSettings","@hideMutedTags","@save"],false,["i18n","d-icon","if","category-selector","action","mut","plugin-outlet","hash"]]',moduleName:"discourse/components/user-preferences/categories.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},98498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r,i=n(54001),s=n(48163),o=n(82099);const a=n(50073).default.extend((r={classNames:["passkey-options-dropdown"],selectKitOptions:{icon:"wrench",showFullTitle:!1},content:(0,s.computed)((function(){return[{id:"edit",icon:"pencil-alt",name:o.default.t("user.second_factor.edit")},{id:"delete",icon:"trash-alt",name:o.default.t("user.second_factor.delete")}]})),onChange(e){switch(e){case"edit":this.renamePasskey();break;case"delete":this.deletePasskey()}}},(0,i.Z)(r,"onChange",[s.action],Object.getOwnPropertyDescriptor(r,"onChange"),r),r))},13093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o,a,l,c=n(94664),u=n(49246),d=n(54001),p=n(82006),h=n(23183),m=n(31691),g=n(48163),f=n(17579),b=n(69338),_=n(3055),y=n(38864),w=n(82099),v=n(8620);let k=(l=class extends p.default{constructor(){super(...arguments),(0,c.Z)(this,"router",i,this),(0,c.Z)(this,"dialog",s,this),(0,c.Z)(this,"passkeyName",o,this),(0,c.Z)(this,"errorMessage",a,this),(0,u.Z)(this,"instructions",w.default.t("user.passkeys.rename_passkey_instructions")),this.passkeyName=this.args.model.name}async saveRename(){try{await(0,_.ajax)(`/u/rename_passkey/${this.args.model.id}`,{type:"PUT",data:{name:this.passkeyName}}),this.errorMessage=null,this.router.refresh(),this.dialog.didConfirmWrapped()}catch(e){this.errorMessage=(0,y.extractError)(e)}}},(0,m.setComponentTemplate)((0,v.createTemplateFactory)({id:"hWc6oCnG",block:'[[[1,"\\n"],[41,[30,0,["errorMessage"]],[[[1,"      "],[10,0],[14,0,"alert alert-error"],[12],[1,"\\n        "],[1,[30,0,["errorMessage"]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"\\n    "],[10,0],[14,0,"rename-passkey__form"],[12],[1,"\\n      "],[10,0],[14,0,"rename-passkey__message"],[12],[1,"\\n        "],[10,2],[12],[1,[30,0,["instructions"]]],[13],[1,"\\n      "],[13],[1,"\\n      "],[10,"form"],[12],[1,"\\n        "],[10,0],[14,0,"rename-passkey__form inline-form"],[12],[1,"\\n          "],[8,[32,0],[[16,"autofocus",true]],[["@value","@type"],[[30,0,["passkeyName"]],"text"]],null],[1,"\\n          "],[8,[32,1],[[24,0,"btn-primary"]],[["@type","@action","@label"],["submit",[30,0,["saveRename"]],"user.passkeys.save"]],null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/rename-passkey.js",scope:()=>[m.Input,b.default],isStrictMode:!0}),l),r=l,i=(0,d.Z)(r.prototype,"router",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.Z)(r.prototype,"dialog",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(r.prototype,"passkeyName",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(r.prototype,"errorMessage",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(r.prototype,"saveRename",[g.action],Object.getOwnPropertyDescriptor(r.prototype,"saveRename"),r.prototype),r)},87717:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"T6yxHswG",block:'[[[41,[30,1,["tagging_enabled"]],[[[1,"  "],[10,0],[14,0,"control-group tag-notifications"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label"],[12],[1,[28,[35,1],["user.tag_settings"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-watching"],[["class"],["icon watching"]]]],[1,"\\n        "],[1,[28,[35,1],["user.watched_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watched_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.watched_tags_instructions"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__tracked-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-tracking"],[["class"],["icon tracking"]]]],[1,"\\n        "],[1,[28,[35,1],["user.tracked_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["tracked_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.tracked_tags_instructions"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__watched-first-post-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-watching-first"],[["class"],["icon watching-first-post"]]]],[1,"\\n        "],[1,[28,[35,1],["user.watched_first_post_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["watching_first_post_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,1],["user.watched_first_post_tags_instructions"],null]],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls tracking-controls tracking-controls__muted-tags"],[12],[1,"\\n      "],[10,"label"],[12],[1,[28,[35,2],["d-muted"],[["class"],["icon muted"]]]],[1,"\\n        "],[1,[28,[35,1],["user.muted_tags"],null]],[13],[1,"\\n      "],[8,[39,3],null,[["@tags","@blockedTags","@everyTag","@unlimitedTagCount","@options"],[[30,2,["muted_tags"]],[30,3],true,true,[28,[37,4],null,[["allowAny"],[false]]]]],null],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"instructions"],[12],[1,[28,[35,1],["user.muted_tags_instructions"],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["user-preferences-tags","div",[28,[37,4],null,[["model","save"],[[30,2],[30,4]]]]]],null],[1,"\\n  "],[8,[39,5],null,[["@name","@connectorTagName","@outletArgs"],["user-custom-controls","div",[28,[37,4],null,[["model"],[[30,2]]]]]],null],[1,"\\n"]],[]],null]],["@siteSettings","@model","@selectedTags","@save"],false,["if","i18n","d-icon","tag-chooser","hash","plugin-outlet"]]',moduleName:"discourse/components/user-preferences/tags.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},27352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"EuqTHuGM",block:'[[[10,0],[14,0,"user-preferences_tracking-topics-controls"],[12],[1,"\\n  "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.new_topic_duration.label"],null]],[13],[1,"\\n    "],[8,[39,1],[[24,0,"duration"]],[["@valueProperty","@content","@value","@onChange"],["value",[30,1],[30,2,["user_option","new_topic_duration_minutes"]],[28,[37,2],[[30,0],[28,[37,3],[[30,2,["user_option","new_topic_duration_minutes"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.auto_track_topics"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,3],[30,2,["user_option","auto_track_topics_after_msecs"]],[28,[37,2],[[30,0],[28,[37,3],[[30,2,["user_option","auto_track_topics_after_msecs"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"controls controls-dropdown"],[12],[1,"\\n    "],[10,"label"],[12],[1,[28,[35,0],["user.notification_level_when_replying"],null]],[13],[1,"\\n    "],[8,[39,1],null,[["@valueProperty","@content","@value","@onChange"],["value",[30,4],[30,2,["user_option","notification_level_when_replying"]],[28,[37,2],[[30,0],[28,[37,3],[[30,2,["user_option","notification_level_when_replying"]]],null]],null]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@considerNewTopicOptions","@model","@autoTrackDurations","@notificationLevelsForReplying"],false,["i18n","combo-box","action","mut"]]',moduleName:"discourse/components/user-preferences/topic-tracking.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},51812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(91138),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"lDBu1Ohp",block:'[[[41,[30,1,["userApiKeys"]],[[[1,"  "],[10,0],[14,0,"control-group pref-user-api-keys"],[12],[1,"\\n    "],[10,"label"],[14,0,"control-label pref-user-api-keys__label"],[12],[1,[28,[35,1],["user.apps"],null]],[13],[1,"\\n\\n    "],[10,0],[14,0,"controls"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,1,["userApiKeys"]]],null]],null],null,[[[1,"        "],[10,0],[12],[1,"\\n          "],[10,1],[14,0,"pref-user-api-keys__application-name"],[12],[1,[30,2,["application_name"]]],[13],[1,"\\n\\n"],[41,[30,2,["revoked"]],[[[1,"            "],[8,[39,4],null,[["@action","@label"],[[28,[37,5],[[28,[37,6],["undoRevokeApiKey"],null],[30,2]],null],"user.undo_revoke_access"]],null],[1,"\\n"]],[]],[[[1,"            "],[8,[39,4],null,[["@action","@label"],[[28,[37,5],[[28,[37,6],["revokeApiKey"],null],[30,2]],null],"user.revoke_access"]],null],[1,"\\n"]],[]]],[1,"\\n          "],[10,2],[12],[1,"\\n            "],[10,"ul"],[14,0,"pref-user-api-keys__scopes-list"],[12],[1,"\\n"],[42,[28,[37,3],[[28,[37,3],[[30,2,["scopes"]]],null]],null],null,[[[1,"                "],[10,"li"],[14,0,"pref-user-api-keys__scopes-list-item"],[12],[1,[30,3]],[13],[1,"\\n"]],[3]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,2],[14,0,"pref-user-api-keys__created-at"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,1],["user.api_approved"],null]],[13],[1,"\\n            "],[1,[28,[35,7],[[30,2,["created_at"]]],null]],[1,"\\n          "],[13],[1,"\\n\\n          "],[10,2],[14,0,"pref-user-api-keys__last-used-at"],[12],[1,"\\n            "],[10,1],[12],[1,[28,[35,1],["user.api_last_used_at"],null]],[13],[1,"\\n            "],[1,[28,[35,7],[[30,2,["last_used_at"]]],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[2]],null],[1,"    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],["@model","key","scope"],false,["if","i18n","each","-track-array","d-button","fn","route-action","bound-date"]]',moduleName:"discourse/components/user-preferences/user-api-keys.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i()())},82081:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r,i,s,o,a,l,c=n(94664),u=n(49246),d=n(54001),p=n(82006),h=n(55071),m=n(48163),g=n(51372),f=n(17579),b=n(69338),_=n(94549),y=n(98498),w=n(13093),v=n(35391),k=n(38864),x=n(78580),T=n(82099),S=n(8620),C=n(31691);let P=(l=class extends p.default{constructor(){super(...arguments),(0,c.Z)(this,"dialog",i,this),(0,c.Z)(this,"currentUser",s,this),(0,c.Z)(this,"capabilities",o,this),(0,c.Z)(this,"router",a,this),(0,u.Z)(this,"instructions",T.default.t("user.passkeys.short_description")),(0,u.Z)(this,"title",T.default.t("user.passkeys.title")),(0,u.Z)(this,"addedPrefix",T.default.t("user.passkeys.added_prefix")),(0,u.Z)(this,"lastUsedPrefix",T.default.t("user.passkeys.last_used_prefix")),(0,u.Z)(this,"neverUsed",T.default.t("user.passkeys.never_used"))}get showActions(){return this.currentUser.id===this.args.model.id&&!this.capabilities.isAppWebview}async createPasskey(){try{const e=await this.args.model.createPasskey(),t={challenge:Uint8Array.from(e.challenge,(e=>e.charCodeAt(0))),rp:{name:e.rp_name,id:e.rp_id},user:{id:Uint8Array.from(e.user_secure_id,(e=>e.charCodeAt(0))),name:this.currentUser.username,displayName:this.currentUser.username},pubKeyCredParams:e.supported_algorithms.map((e=>({type:"public-key",alg:e}))),excludeCredentials:e.existing_passkey_credential_ids.map((e=>({type:"public-key",id:(0,x.stringToBuffer)(atob(e))}))),authenticatorSelection:{userVerification:"required",requireResidentKey:!0}},n=await navigator.credentials.create({publicKey:t,signal:x.WebauthnAbortHandler.signal()});let r={id:n.id,rawId:(0,x.bufferToBase64)(n.rawId),type:n.type,attestation:(0,x.bufferToBase64)(n.response.attestationObject),clientData:(0,x.bufferToBase64)(n.response.clientDataJSON),name:T.default.t("user.passkeys.name.default")};const i=await this.args.model.registerPasskey(r);if(i.error)return void this.dialog.alert(i.error);this.router.refresh(),this.dialog.dialog({title:T.default.t("user.passkeys.passkey_successfully_created"),type:"notice",bodyComponent:w.default,bodyComponentModel:i})}catch(e){console.error(e),this.errorMessage="InvalidStateError"===e.name?T.default.t("user.passkeys.already_added_error"):T.default.t("user.passkeys.not_allowed_error"),this.dialog.alert(this.errorMessage)}}confirmDelete(e){(0,g.schedule)("afterRender",(()=>{this.dialog.deleteConfirm({title:T.default.t("user.passkeys.confirm_delete_passkey"),didConfirm:()=>{this.args.model.deletePasskey(e).then((()=>{this.router.refresh()}))}})}))}async addPasskey(){try{(await this.args.model.trustedSession()).success?await this.createPasskey():this.dialog.dialog({title:T.default.t("user.confirm_access.title"),type:"notice",bodyComponent:_.default,didConfirm:()=>this.createPasskey()})}catch(e){(0,k.popupAjaxError)(e)}}async deletePasskey(e){try{(await this.args.model.trustedSession()).success?this.confirmDelete(e):this.dialog.dialog({title:T.default.t("user.confirm_access.title"),type:"notice",bodyComponent:_.default,didConfirm:()=>this.confirmDelete(e)})}catch(e){(0,k.popupAjaxError)(e)}}renamePasskey(e,t){this.dialog.dialog({title:T.default.t("user.passkeys.rename_passkey"),type:"notice",bodyComponent:w.default,bodyComponentModel:{id:e,name:t}})}},(0,C.setComponentTemplate)((0,S.createTemplateFactory)({id:"a6N7GX+6",block:'[[[1,"\\n    "],[10,0],[14,0,"control-group pref-passkeys"],[12],[1,"\\n      "],[10,"label"],[14,0,"control-label"],[12],[1,"\\n        "],[1,[30,0,["title"]]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[1,[30,0,["instructions"]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[10,0],[14,0,"pref-passkeys__rows"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,1,["user_passkeys"]]],null]],null],null,[[[1,"          "],[10,0],[14,0,"row"],[12],[1,"\\n            "],[10,0],[14,0,"passkey-left"],[12],[1,"\\n              "],[10,0],[14,0,"row-passkey__name"],[12],[1,[30,2,["name"]]],[13],[1,"\\n              "],[10,0],[14,0,"row-passkey__created-date"],[12],[1,"\\n                "],[10,1],[14,0,"prefix"],[12],[1,"\\n                  "],[1,[30,0,["addedPrefix"]]],[1,"\\n                "],[13],[1,"\\n                "],[1,[28,[32,0],[[30,2,["created_at"]]],[["format","leaveAgo"],["medium","true"]]]],[1,"\\n              "],[13],[1,"\\n              "],[10,0],[14,0,"row-passkey__used-date"],[12],[1,"\\n"],[41,[30,2,["last_used"]],[[[1,"                  "],[10,1],[14,0,"prefix"],[12],[1,"\\n                    "],[1,[30,0,["lastUsedPrefix"]]],[1,"\\n                  "],[13],[1,"\\n                  "],[1,[28,[32,0],[[30,2,["last_used"]]],[["format","leaveAgo"],["medium","true"]]]],[1,"\\n"]],[]],[[[1,"                  "],[1,[30,0,["neverUsed"]]],[1,"\\n"]],[]]],[1,"              "],[13],[1,"\\n            "],[13],[1,"\\n"],[41,[30,0,["showActions"]],[[[1,"              "],[10,0],[14,0,"passkey-right"],[12],[1,"\\n                "],[10,0],[14,0,"actions"],[12],[1,"\\n                  "],[8,[32,1],null,[["@deletePasskey","@renamePasskey"],[[28,[32,2],[[30,0,["deletePasskey"]],[30,2,["id"]]],null],[28,[32,2],[[30,0,["renamePasskey"]],[30,2,["id"]],[30,2,["name"]]],null]]],null],[1,"\\n                "],[13],[1,"\\n              "],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n"]],[2]],null],[1,"      "],[13],[1,"\\n\\n"],[41,[30,0,["showActions"]],[[[1,"        "],[10,0],[14,0,"controls pref-passkeys__add"],[12],[1,"\\n          "],[8,[32,3],null,[["@action","@icon","@label"],[[30,0,["addPasskey"]],"plus","user.passkeys.add_passkey"]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],["@model","passkey"],false,["each","-track-array","if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-preferences/user-passkeys.js",scope:()=>[v.default,y.default,h.fn,b.default],isStrictMode:!0}),l),r=l,i=(0,d.Z)(r.prototype,"dialog",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.Z)(r.prototype,"currentUser",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(r.prototype,"capabilities",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(r.prototype,"router",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(r.prototype,"addPasskey",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"addPasskey"),r.prototype),(0,d.Z)(r.prototype,"deletePasskey",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"deletePasskey"),r.prototype),(0,d.Z)(r.prototype,"renamePasskey",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"renamePasskey"),r.prototype),r)},89734:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"o2UuYpq6",block:'[[[10,0],[14,0,"user-profile-avatar"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,1],"huge"],null]],[1,"\\n  "],[8,[39,1],null,[["@user"],[[30,1]]],null],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[8,[39,2],null,[["@name","@connectorTagName","@outletArgs"],["user-profile-avatar-flair","div",[28,[37,3],null,[["model"],[[30,1]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13]],["@user"],false,["bound-avatar","user-avatar-flair","plugin-outlet","hash"]]',moduleName:"discourse/components/user-profile-avatar.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},34410:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31691),i=n.n(r),s=n(6264);const o=(0,n(8620).createTemplateFactory)({id:"9skZDTx3",block:'[[[10,1],[14,0,"value"],[15,"title",[30,0,["rawTitle"]]],[12],[1,"\\n"],[41,[30,0,["isNumber"]],[[[1,"    "],[1,[28,[35,1],[[30,1]],null]],[1,"\\n"]],[]],[[[41,[30,0,["isDuration"]],[[[1,"    "],[1,[28,[35,2],[[30,1]],null]],[1,"\\n"]],[]],[[[1,"    "],[1,[30,1]],[1,"\\n  "]],[]]]],[]]],[13],[1,"\\n"],[10,1],[14,0,"label"],[12],[1,"\\n  "],[41,[30,2],[[[1,[28,[35,3],[[30,2]],null]]],[]],null],[1,"\\n  "],[1,[28,[35,4],[[28,[37,5],[[30,3]],[["count"],[[30,1]]]]],null]],[1,"\\n"],[13]],["@value","@icon","@label"],false,["if","number","format-duration","d-icon","html-safe","i18n"]]',moduleName:"discourse/components/user-stat.hbs",isStrictMode:!1}),a=(0,r.setComponentTemplate)(o,i().extend({classNames:["user-stat"],type:"number",isNumber:(0,s.equal)("type","number"),isDuration:(0,s.equal)("type","duration")}))},87027:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(94664),i=n(54001),s=n(82006),o=n(17579),a=n(70352);const l=(0,n(8620).createTemplateFactory)({id:"VQGQb9hC",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],[[24,0,"user-status-message"],[17,2]],[["@identifier"],["user-status-message-tooltip"]],[["trigger","content"],[[[[1,"\\n      "],[1,[28,[35,2],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n"],[41,[30,3],[[[1,"        "],[10,1],[14,0,"user-status-message-description"],[12],[1,"\\n          "],[1,[30,1,["description"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "]],[]],[[[1,"\\n      "],[1,[28,[35,2],[[30,1,["emoji"]]],[["skipTitle"],[true]]]],[1,"\\n      "],[10,1],[14,0,"user-status-tooltip-description"],[12],[1,"\\n        "],[1,[30,1,["description"]]],[1,"\\n      "],[13],[1,"\\n"],[41,[30,0,["until"]],[[[1,"        "],[10,0],[14,0,"user-status-tooltip-until"],[12],[1,"\\n          "],[1,[30,0,["until"]]],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n"]],[]],null]],["@status","&attrs","@showDescription"],false,["if","d-tooltip","emoji"]]',moduleName:"discourse/components/user-status-message.hbs",isStrictMode:!1});var c,u,d=n(31691);let p=(c=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"currentUser",u,this)}get until(){if(!this.args.status.ends_at)return;const e=this.currentUser?this.currentUser.user_option?.timezone:moment.tz.guess();return(0,a.until)(this.args.status.ends_at,e,this.currentUser?.locale)}},u=(0,i.Z)(c.prototype,"currentUser",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c);(0,d.setComponentTemplate)(l,p)},20858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(49246),i=n(54001),s=n(31691),o=n.n(s),a=n(48163),l=n(51372),c=n(35193),u=n(62617);const d=(0,n(8620).createTemplateFactory)({id:"IWRMWxTn",block:'[[[10,0],[14,0,"user-status-picker-wrap"],[12],[1,"\\n  "],[10,0],[15,0,[29,["emoji-picker-anchor user-status-picker\\n      ",[52,[30,0,["isFocused"]],"focused"]]]],[12],[1,"\\n    "],[11,"button"],[24,0,"btn-emoji btn-flat"],[16,"onclick",[30,0,["toggleEmojiPicker"]]],[24,4,"button"],[4,[38,1],["focus",[30,0,["focus"]]],null],[4,[38,1],["blur",[30,0,["blur"]]],null],[12],[1,"\\n"],[41,[30,1,["emoji"]],[[[1,"        "],[1,[28,[35,2],[[30,0,["emojiHtml"]]],null]],[1,"\\n"]],[]],[[[1,"        "],[1,[28,[35,3],["discourse-emojis"],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n    "],[8,[39,4],[[24,0,"user-status-description"],[24,"maxlength","100"],[16,"placeholder",[28,[37,5],["user_status.what_are_you_doing"],null]],[4,[38,1],["input",[30,0,["setDefaultEmoji"]]],null],[4,[38,1],["focus",[30,0,["focus"]]],null],[4,[38,1],["blur",[30,0,["blur"]]],null]],[["@value"],[[30,1,["description"]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,6],null,[["@isActive","@emojiSelected","@onEmojiPickerClose","@placement"],[[30,0,["emojiPickerIsActive"]],[30,0,["emojiSelected"]],[30,0,["onEmojiPickerOutsideClick"]],"bottom"]],null]],["@status"],false,["if","on","html-safe","d-icon","input","i18n","emoji-picker"]]',moduleName:"discourse/components/user-status-picker.hbs",isStrictMode:!1});var p,h;let m=(p=(0,a.computed)("status.emoji"),h=class extends(o()){constructor(){super(...arguments),(0,r.Z)(this,"tagName",""),(0,r.Z)(this,"isFocused",!1),(0,r.Z)(this,"emojiPickerIsActive",!1)}didInsertElement(){super.didInsertElement(...arguments),this.status||this.set("status",{}),document.querySelector(".user-status-description")?.focus()}get emojiHtml(){const e=(0,u.escapeExpression)(`:${this.status.emoji}:`);return(0,c.emojiUnescape)(e)}focusEmojiButton(){document.querySelector(".btn-emoji")?.focus()}blur(){this.set("isFocused",!1)}emojiSelected(e){this.set("status.emoji",e),this.set("emojiPickerIsActive",!1),(0,l.scheduleOnce)("afterRender",this,this.focusEmojiButton)}focus(){this.set("isFocused",!0)}onEmojiPickerOutsideClick(){this.set("emojiPickerIsActive",!1)}setDefaultEmoji(){this.status.emoji||this.set("status.emoji","speech_balloon")}toggleEmojiPicker(e){e.stopPropagation(),this.set("emojiPickerIsActive",!this.emojiPickerIsActive)}},(0,i.Z)(h.prototype,"emojiHtml",[p],Object.getOwnPropertyDescriptor(h.prototype,"emojiHtml"),h.prototype),(0,i.Z)(h.prototype,"blur",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"blur"),h.prototype),(0,i.Z)(h.prototype,"emojiSelected",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"emojiSelected"),h.prototype),(0,i.Z)(h.prototype,"focus",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"focus"),h.prototype),(0,i.Z)(h.prototype,"onEmojiPickerOutsideClick",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"onEmojiPickerOutsideClick"),h.prototype),(0,i.Z)(h.prototype,"setDefaultEmoji",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"setDefaultEmoji"),h.prototype),(0,i.Z)(h.prototype,"toggleEmojiPicker",[a.action],Object.getOwnPropertyDescriptor(h.prototype,"toggleEmojiPicker"),h.prototype),h);(0,s.setComponentTemplate)(d,m)},64748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(54001),i=n(31691),s=n.n(i),o=n(48163),a=n(63319),l=n(20229),c=n(67927),u=n(57555);const d=(0,n(8620).createTemplateFactory)({id:"OZiqlsTX",block:'[[[10,0],[14,0,"user-stream-item__header info"],[12],[1,"\\n  "],[10,3],[15,6,[30,0,["userUrl"]]],[15,"data-user-card",[28,[37,0],[[30,1,["draft_username"]],[30,1,["username"]]],null]],[14,0,"avatar-link"],[12],[1,"\\n    "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,1]],[["imageSize","extraClasses","ignoreTitle"],["large","actor","true"]]]],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n\\n  "],[10,0],[14,0,"user-stream-item__details"],[12],[1,"\\n    "],[10,0],[14,0,"stream-topic-title"],[12],[1,"\\n      "],[8,[39,2],null,[["@topic","@disableActions"],[[30,1],true]],null],[1,"\\n      "],[10,1],[14,0,"title"],[12],[1,"\\n"],[41,[30,1,["postUrl"]],[[[1,"          "],[10,3],[15,6,[30,1,["postUrl"]]],[12],[1,[28,[35,4],[[30,1,["title"]]],null]],[13],[1,"\\n"]],[]],[[[1,"          "],[1,[28,[35,4],[[30,1,["title"]]],null]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n    "],[10,0],[14,0,"category"],[12],[1,[28,[35,5],[[30,1,["category"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,1,["draftType"]],[[[1,"    "],[10,1],[14,0,"draft-type"],[12],[1,[28,[35,4],[[30,1,["draftType"]]],null]],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,6],null,[["@item"],[[30,1]]],null],[1,"\\n"]],[]]],[1,"\\n  "],[10,0],[14,0,"user-stream-item__metadata"],[12],[1,"\\n    "],[10,1],[14,0,"time"],[12],[1,[28,[35,7],[[30,1,["created_at"]]],null]],[13],[1,"\\n\\n"],[41,[30,1,["deleted_by"]],[[[1,"      "],[10,1],[14,0,"delete-info"],[12],[1,"\\n        "],[1,[28,[35,8],["far-trash-alt"],null]],[1,"\\n        "],[1,[28,[35,1],[[30,1,["deleted_by"]]],[["imageSize","extraClasses","ignoreTitle"],["tiny","actor","true"]]]],[1,"\\n        "],[1,[28,[35,7],[[30,1,["deleted_at"]]],[["leaveAgo"],["true"]]]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n  "],[10,1],[12],[1,"\\n    "],[8,[39,9],null,[["@name","@connectorTagName","@outletArgs"],["user-stream-item-header","div",[28,[37,10],null,[["item"],[[30,1]]]]]],null],[1,"\\n  "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["actionDescription"]],[[[1,"  "],[10,2],[14,0,"excerpt"],[12],[1,[30,0,["actionDescription"]]],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,2],[15,"data-topic-id",[30,1,["topic_id"]]],[15,"data-post-id",[30,1,["post_id"]]],[15,"data-user-id",[30,1,["user_id"]]],[14,0,"excerpt"],[12],[41,[30,1,["expandedExcerpt"]],[[[1,[28,[35,4],[[30,1,["expandedExcerpt"]]],null]]],[]],[[[1,[28,[35,4],[[30,1,["excerpt"]]],null]]],[]]],[13],[1,"\\n\\n"],[42,[28,[37,12],[[28,[37,12],[[30,1,["children"]]],null]],null],null,[[[1,"  "],[10,0],[14,0,"user-stream-item-actions child-actions"],[12],[1,"\\n    "],[1,[28,[35,8],[[30,2,["icon"]]],[["class"],["icon"]]]],[1,"\\n"],[42,[28,[37,12],[[28,[37,12],[[30,2,["items"]]],null]],null],null,[[[1,"      "],[10,3],[15,6,[30,3,["userUrl"]]],[15,"data-user-card",[30,3,["username"]]],[14,0,"avatar-link"],[12],[1,"\\n        "],[10,0],[14,0,"avatar-wrapper"],[12],[1,"\\n          "],[1,[28,[35,1],[[30,3]],[["imageSize","extraClasses","ignoreTitle","avatarTemplatePath"],["tiny","actor","true","acting_avatar_template"]]]],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n"],[41,[30,3,["edit_reason"]],[[[1,"        —\\n        "],[10,1],[14,0,"edit-reason"],[12],[1,[30,3,["edit_reason"]]],[13]],[]],null],[1,"\\n"]],[3]],null],[1,"  "],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,1,["editableDraft"]],[[[1,"  "],[10,0],[14,0,"user-stream-item-draft-actions"],[12],[1,"\\n    "],[8,[39,13],[[24,0,"btn-default resume-draft"]],[["@action","@icon","@label"],[[28,[37,14],[[30,4],[30,1]],null],"pencil-alt","drafts.resume"]],null],[1,"\\n    "],[8,[39,13],[[24,0,"btn-danger remove-draft"]],[["@action","@icon","@title"],[[28,[37,14],[[30,5],[30,1]],null],"far-trash-alt","drafts.remove"]],null],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[18,6,null]],["@item","child","grandChild","@resumeDraft","@removeDraft","&bottom"],false,["or","avatar","topic-status","if","html-safe","category-link","expand-post","format-date","d-icon","plugin-outlet","hash","each","-track-array","d-button","fn","yield"]]',moduleName:"discourse/components/user-stream-item.hbs",isStrictMode:!1});var p,h;const m=(0,i.setComponentTemplate)(d,s().extend((p=(0,u.default)("item.draft_username","item.username"),h={tagName:"li",classNameBindings:[":user-stream-item",":item","hidden","item.deleted:deleted","moderatorAction"],hidden:(0,o.computed)("item.hidden",(function(){return this.get("item.hidden")&&!(this.currentUser&&this.currentUser.staff)})),moderatorAction:(0,a.propertyEqual)("item.post_type","site.post_types.moderator_action"),actionDescription:(0,c.actionDescription)("item.action_code","item.created_at","item.action_code_who","item.action_code_path"),userUrl:(e,t)=>(0,l.userPath)((e||t).toLowerCase())},(0,r.Z)(h,"userUrl",[p],Object.getOwnPropertyDescriptor(h,"userUrl"),h),h)))},97521:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(72326),i=n(31691),s=n.n(i),o=n(40375),a=n(51372),l=n(17579),c=n(71466),u=n.n(c),d=n(38864),p=n(78480),h=n(20229),m=n(81533),g=n(21859),f=n(37135),b=n(97245),_=n(82099);const y=(0,n(8620).createTemplateFactory)({id:"3ZQh1mmf",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1,["content"]]],null]],null],null,[[[1,"  "],[8,[39,2],null,[["@item","@removeBookmark","@resumeDraft","@removeDraft"],[[30,2],[28,[37,3],[[30,0],"removeBookmark"],null],[28,[37,3],[[30,0],"resumeDraft"],null],[28,[37,3],[[30,0],"removeDraft"],null]]],null],[1,"\\n"]],[2]],null]],["@stream","item"],false,["each","-track-array","user-stream-item","action"]]',moduleName:"discourse/components/user-stream.hbs",isStrictMode:!1}),w=(0,i.setComponentTemplate)(y,s().extend(m.default,{tagName:"ul",dialog:(0,l.inject)(),composer:(0,l.inject)(),_lastDecoratedElement:null,_initialize:(0,o.on)("init",(function(){const e=this.get("stream.filter");e&&this.set("classNames",["user-stream","filter-"+e.toString().replace(",","-")])})),loading:!1,eyelineSelector:".user-stream .item",classNames:["user-stream"],_inserted:(0,o.on)("didInsertElement",(function(){u()(this.element).on("click.details-disabled","details.disabled",(()=>!1)),u()(this.element).on("click.discourse-redirect",".excerpt a",(e=>p.default.trackClick(e,(0,r.getOwner)(this)))),this._updateLastDecoratedElement(),this.appEvents.trigger("decorate-non-stream-cooked-element",this.element)})),_destroyed:(0,o.on)("willDestroyElement",(function(){u()(this.element).off("click.details-disabled","details.disabled"),u()(this.element).off("click.discourse-redirect",".excerpt a")})),_updateLastDecoratedElement(){const e=this.element.querySelectorAll(".user-stream-item");if(0===e.length)return;const t=e[e.length-1];t!==this._lastDecoratedElement&&(this._lastDecoratedElement=t)},actions:{removeBookmark(e){const t=this.stream;b.default.updateBookmark(e.get("post_id"),!1).then((()=>{t.remove(e)})).catch(d.popupAjaxError)},resumeDraft(e){this.composer.get("model.viewOpen")&&this.composer.close(),e.get("postUrl")?h.default.routeTo(e.get("postUrl")):f.default.get(e.draft_key).then((t=>{const n=t.draft||e.data;n&&this.composer.open({draft:n,draftKey:e.draft_key,draftSequence:t.draft_sequence})})).catch((e=>{(0,d.popupAjaxError)(e)}))},removeDraft(e){const t=this.stream;this.dialog.yesNoConfirm({message:_.default.t("drafts.remove_confirmation"),didConfirm:()=>{f.default.clear(e.draft_key,e.sequence).then((()=>{t.remove(e),e.draft_key===g.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1)})).catch((e=>{(0,d.popupAjaxError)(e)}))}})},loadMore(){this.loading||(this.set("loading",!0),this.stream.findItems().then((()=>{this.set("loading",!1),(0,a.later)((()=>{let e=this._lastDecoratedElement?.nextElementSibling;for(;e;)this.trigger("user-stream:new-item-inserted",e),this.appEvents.trigger("decorate-non-stream-cooked-element",e),e=e.nextElementSibling;this._updateLastDecoratedElement()}))})))}}}))},87395:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"flfRzyWe",block:'[[[41,[30,1],[[[1,"  "],[8,[39,1],null,[["@route","@query"],["full-page-search",[28,[37,2],null,[["q"],[[30,0,["searchParams"]]]]]]],[["default"],[[[[1,"\\n    "],[1,[30,1]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[1,"  –\\n"]],[]]]],["@count"],false,["if","link-to","hash"]]',moduleName:"discourse/components/user-summary-category-search.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("user","category"),c={tagName:"",searchParams(){return`@${this.get("user.username")} #${this.get("category.slug")}`}},(0,r.Z)(c,"searchParams",[l],Object.getOwnPropertyDescriptor(c,"searchParams"),c),c)))},88686:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"jWdvCjy7",block:'[[[10,"h3"],[14,0,"stats-title"],[12],[1,[28,[35,0],[[28,[37,1],["user.summary.",[30,1]],null]],null]],[13],[1,"\\n"],[18,2,null]],["@title","&default"],false,["i18n","concat","yield"]]',moduleName:"discourse/components/user-summary-section.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({classNames:["top-sub-section"]}))},50275:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"Wog9xaP7",block:'[[[10,1],[14,0,"topic-info"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,1]],[["format","noTitle"],["tiny","true"]]]],[1,"\\n"],[41,[30,2],[[[1,"    ·\\n    "],[1,[28,[35,2],["heart"],null]],[1," "],[10,1],[14,0,"like-count"],[12],[1,[28,[35,3],[[30,2]],null]],[13],[1,"\\n"]],[]],null],[13],[1,"\\n"],[10,"br"],[12],[13],[1,"\\n"],[10,3],[15,6,[30,3]],[12],[1,[28,[35,4],[[30,4,["fancyTitle"]]],null]],[13]],["@createdAt","@likes","@url","@topic"],false,["format-date","if","d-icon","number","html-safe"]]',moduleName:"discourse/components/user-summary-topic.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"li"}))},7631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(54001),i=n(31691),s=n.n(i),o=n(57555);const a=(0,n(8620).createTemplateFactory)({id:"0A+RIA2U",block:'[[[41,[30,1],[[[1,"  "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1]],null]],null],null,[[[1,"      "],[18,5,[[30,2]]],[1,"\\n"]],[2]],null],[1,"  "],[13],[1,"\\n"],[41,[30,0,["hasMore"]],[[[1,"    "],[10,2],[12],[1,"\\n      "],[8,[39,4],[[24,0,"more"]],[["@route","@model"],[[28,[37,5],["userActivity.",[30,3]],null],[30,4]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,6],[[28,[37,5],["user.summary.more_",[30,3]],null]],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[10,2],[12],[1,[28,[35,6],[[28,[37,5],["user.summary.no_",[30,3]],null]],null]],[13],[1,"\\n"]],[]]]],["@items","item","@type","@user","&default"],false,["if","each","-track-array","yield","link-to","concat","i18n"]]',moduleName:"discourse/components/user-summary-topics-list.hbs",isStrictMode:!1});var l,c;const u=(0,i.setComponentTemplate)(a,s().extend((l=(0,o.default)("items.length"),c={tagName:"",hasMore:e=>e>=6},(0,r.Z)(c,"hasMore",[l],Object.getOwnPropertyDescriptor(c,"hasMore"),c),c)))},58400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"YVbucpIN",block:'[[[8,[39,0],null,[["@user"],[[30,1]]],[["default"],[[[[1,"\\n  "],[1,[28,[35,1],[[30,2]],null]],[1,"\\n  "],[10,1],[15,0,[30,3]],[12],[1,[28,[35,2],[[30,1,["count"]]],null]],[13],[1,"\\n"]],[]]]]]],["@user","@icon","@countClass"],false,["user-info","d-icon","number"]]',moduleName:"discourse/components/user-summary-user.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:"li"}))},64474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"ICXGsUVY",block:'[[[41,[30,0,["users"]],[[[1,"  "],[10,"ul"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["users"]]],null]],null],null,[[[1,"      "],[18,2,[[30,1]]],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,2],[12],[1,[28,[35,4],[[28,[37,5],["user.summary.",[30,0,["none"]]],null]],null]],[13],[1,"\\n"]],[]]]],["user","&default"],false,["if","each","-track-array","yield","i18n","concat"]]',moduleName:"discourse/components/user-summary-users-list.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},79364:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o=n(94664),a=n(54001),l=n(82006),c=n(48163),u=n(17579),d=n(24434),p=n(69338),h=n(8620),m=n(31691);let g=(s=class extends l.default{constructor(){super(...arguments),(0,o.Z)(this,"userTips",i,this)}get safeHtmlContent(){return(0,d.htmlSafe)(this.args.data.contentHtml)}handleDismiss(e,t){t.preventDefault(),this.args.close(),this.userTips.hideUserTipForever(this.args.data.id)}},(0,m.setComponentTemplate)((0,h.createTemplateFactory)({id:"JYxRB/1f",block:'[[[1,"\\n    "],[10,0],[14,0,"user-tip__container"],[12],[1,"\\n      "],[10,0],[14,0,"user-tip__title"],[12],[1,[30,1,["titleText"]]],[13],[1,"\\n      "],[10,0],[14,0,"user-tip__content"],[12],[1,"\\n"],[41,[30,1,["contentHtml"]],[[[1,"          "],[1,[30,0,["safeHtmlContent"]]],[1,"\\n"]],[]],[[[1,"          "],[1,[30,1,["contentText"]]],[1,"\\n"]],[]]],[1,"      "],[13],[1,"\\n"],[41,[30,1,["onDismiss"]],[[[1,"        "],[10,0],[14,0,"user-tip__buttons"],[12],[1,"\\n          "],[8,[32,0],[[24,0,"btn-primary"]],[["@translatedLabel","@action","@forwardEvent"],[[30,1,["buttonText"]],[30,0,["handleDismiss"]],true]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],["@data"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip-container.js",scope:()=>[p.default],isStrictMode:!0}),s),r=s,i=(0,a.Z)(r.prototype,"userTips",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(r.prototype,"handleDismiss",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"handleDismiss"),r.prototype),r)},23335:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r,i,s,o,a,l=n(94664),c=n(49246),u=n(54001),d=n(82006),p=n(72326),h=n(51372),m=n(17579),g=n(42465),f=n(79364),b=n(53134),_=n(3961),y=n(82099),w=n(47445),v=n(8620),k=n(31691);let x=(a=class extends d.default{constructor(){super(...arguments),(0,l.Z)(this,"currentUser",i,this),(0,l.Z)(this,"userTips",s,this),(0,l.Z)(this,"tooltip",o,this),(0,c.Z)(this,"registerTip",(0,g.modifier)((()=>{const e={id:this.args.id,priority:this.args.priority??0};return this.userTips.addAvailableTip(e),()=>{this.userTips.removeAvailableTip(e)}}))),(0,c.Z)(this,"tip",(0,g.modifier)((e=>{let t;return(0,h.schedule)("afterRender",(()=>{const n=this.args.triggerSelector&&document.querySelector(this.args.triggerSelector);let r=(0,b.default)(y.default.t(this.args.buttonLabel||"user_tips.button"));this.args.buttonIcon&&(r=`${(0,_.iconHTML)(this.args.buttonIcon)} ${r}`),t=new w.default((0,p.getOwner)(this),n||e,{identifier:"user-tip",interactive:!0,closeOnScroll:!1,closeOnClickOutside:!0,placement:this.args.placement,component:f.default,data:{id:this.args.id,titleText:(0,b.default)(this.args.titleText),contentHtml:this.args.contentHtml||null,contentText:this.args.contentText?(0,b.default)(this.args.contentText):null,onDismiss:()=>{this.userTips.hideUserTipForever(this.args.id)},buttonText:r}}),this.tooltip.show(t)})),()=>{t?.destroy()}})))}get shouldRenderTip(){return this.userTips.shouldRender(this.args.id)}},(0,k.setComponentTemplate)((0,v.createTemplateFactory)({id:"MwrWcuqS",block:'[[[1,"\\n    "],[11,0],[4,[30,0,["registerTip"]],null,null],[12],[1,"\\n"],[41,[30,0,["shouldRenderTip"]],[[[1,"        "],[11,1],[4,[30,0,["tip"]],null,null],[12],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip.js",isStrictMode:!0}),a),r=a,i=(0,u.Z)(r.prototype,"currentUser",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.Z)(r.prototype,"userTips",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,u.Z)(r.prototype,"tooltip",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},92525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(94664),i=n(54001),s=n(82006),o=n(23183),a=n(48163),l=n(6264),c=n(17579),u=n(33217),d=n(38864),p=n(63319),h=n(20229),m=n(7223),g=n(82099);const f=(0,n(8620).createTemplateFactory)({id:"lR5ixAaf",block:'[[[41,[30,0,["editing"]],[[[1,"  "],[10,"form"],[14,0,"form-horizontal"],[12],[1,"\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,1],[[16,"maxlength",[30,0,["maxLength"]]],[24,0,"input-xxlarge username-preference__input"],[4,[38,2],["input",[30,0,["onInput"]]],null]],[["@value"],[[30,0,["newUsername"]]]],null],[1,"\\n\\n      "],[10,0],[14,0,"instructions"],[12],[1,"\\n        "],[10,2],[12],[1,"\\n"],[41,[30,0,["taken"]],[[[1,"            "],[1,[28,[35,3],["user.change_username.taken"],null]],[1,"\\n"]],[]],null],[1,"          "],[10,1],[12],[1,[30,0,["errorMessage"]]],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n\\n    "],[10,0],[14,0,"control-group"],[12],[1,"\\n      "],[8,[39,4],[[24,0,"btn-primary username-preference__submit"],[24,4,"submit"]],[["@action","@disabled","@translatedLabel"],[[30,0,["changeUsername"]],[30,0,["saveDisabled"]],[30,0,["saveButtonText"]]]],null],[1,"\\n\\n      "],[8,[39,5],null,[["@close"],[[30,0,["toggleEditing"]]]],null],[1,"\\n\\n      "],[41,[30,0,["saved"]],[[[1,[28,[35,3],["saved"],null]]],[]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"controls"],[12],[1,"\\n    "],[10,1],[14,0,"static username-preference__current-username"],[12],[1,[30,1,["username"]]],[13],[1,"\\n\\n"],[41,[30,1,["can_edit_username"]],[[[1,"      "],[8,[39,4],[[24,0,"btn-small username-preference__edit-username"]],[["@action","@icon","@title"],[[28,[37,6],[[30,0,["toggleEditing"]],[30,1]],null],"pencil-alt","user.username.edit"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n\\n"],[41,[30,0,["siteSettings","enable_mentions"]],[[[1,"    "],[10,0],[14,0,"instructions"],[12],[1,"\\n      "],[1,[28,[35,7],[[28,[37,3],["user.username.short_instructions"],[["username"],[[30,1,["username"]]]]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]],["@user"],false,["if","input","on","i18n","d-button","d-modal-cancel","fn","html-safe"]]',moduleName:"discourse/components/username-preference.hbs",isStrictMode:!1});var b,_,y,w,v,k,x,T,S,C,P,O,E,D,I,j,Z=n(31691);let A=(b=(0,p.setting)("max_username_length"),_=(0,p.setting)("min_username_length"),y=(0,l.empty)("newUsername"),w=(0,l.or)("saving","newUsernameEmpty","taken","unchanged","errorMessage"),v=class extends s.default{constructor(){super(...arguments),(0,r.Z)(this,"siteSettings",k,this),(0,r.Z)(this,"dialog",x,this),(0,r.Z)(this,"editing",T,this),(0,r.Z)(this,"newUsername",S,this),(0,r.Z)(this,"errorMessage",C,this),(0,r.Z)(this,"saving",P,this),(0,r.Z)(this,"taken",O,this),(0,r.Z)(this,"maxLength",E,this),(0,r.Z)(this,"minLength",D,this),(0,r.Z)(this,"newUsernameEmpty",I,this),(0,r.Z)(this,"saveDisabled",j,this)}get unchanged(){return this.newUsername===this.args.user.username}get saveButtonText(){return this.saving?g.default.t("saving"):g.default.t("user.change")}toggleEditing(){this.editing=!this.editing,this.newUsername=this.args.user.username,this.errorMessage=null,this.saving=!1,this.taken=!1}async onInput(e){if(this.newUsername=e.target.value,this.taken=!1,this.errorMessage=null,(0,u.isEmpty)(this.newUsername))return;if(this.newUsername===this.args.user.username)return;if(this.newUsername.length<this.minLength)return void(this.errorMessage=g.default.t("user.name.too_short"));const t=await m.default.checkUsername(this.newUsername,void 0,this.args.user.id);t.errors?this.errorMessage=t.errors.join(" "):!1===t.available&&(this.taken=!0)}changeUsername(){return this.dialog.yesNoConfirm({title:g.default.t("user.change_username.confirm"),didConfirm:async()=>{this.saving=!0;try{await this.args.user.changeUsername(this.newUsername),h.default.redirectTo((0,h.userPath)(this.newUsername.toLowerCase()+"/preferences"))}catch(e){(0,d.popupAjaxError)(e)}finally{this.saving=!1}}})}},k=(0,i.Z)(v.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,i.Z)(v.prototype,"dialog",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,i.Z)(v.prototype,"editing",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),S=(0,i.Z)(v.prototype,"newUsername",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.user.username}}),C=(0,i.Z)(v.prototype,"errorMessage",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=(0,i.Z)(v.prototype,"saving",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),O=(0,i.Z)(v.prototype,"taken",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),E=(0,i.Z)(v.prototype,"maxLength",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,i.Z)(v.prototype,"minLength",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,i.Z)(v.prototype,"newUsernameEmpty",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,i.Z)(v.prototype,"saveDisabled",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.Z)(v.prototype,"toggleEditing",[a.action],Object.getOwnPropertyDescriptor(v.prototype,"toggleEditing"),v.prototype),(0,i.Z)(v.prototype,"onInput",[a.action],Object.getOwnPropertyDescriptor(v.prototype,"onInput"),v.prototype),(0,i.Z)(v.prototype,"changeUsername",[a.action],Object.getOwnPropertyDescriptor(v.prototype,"changeUsername"),v.prototype),v);(0,Z.setComponentTemplate)(f,A)},12966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(94664),o=n(54001),a=n(31691),l=n.n(a),c=n(17579),u=n(3055),d=n(6549),p=n(20229),h=n(57555);let m=(r=class extends(l()){constructor(){super(...arguments),(0,s.Z)(this,"currentUser",i,this)}didInsertElement(){super.didInsertElement(...arguments),this.currentUser&&!this.currentUser.read_faq&&(this._checkIfRead(),window.addEventListener("resize",this._checkIfRead,!1),window.addEventListener("scroll",this._checkIfRead,!1))}willDestroyElement(){super.willDestroyElement(...arguments),window.removeEventListener("resize",this._checkIfRead),window.removeEventListener("scroll",this._checkIfRead)}async _checkIfRead(){const e=document.querySelector("[itemprop='mainContentOfPage'] > *:last-child");(0,d.default)(e)&&(await(0,u.ajax)((0,p.userPath)("read-faq"),{type:"POST"}),this.currentUser.set("read_faq",!0))}},i=(0,o.Z)(r.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.Z)(r.prototype,"_checkIfRead",[h.bind],Object.getOwnPropertyDescriptor(r.prototype,"_checkIfRead"),r.prototype),r)},49860:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(){try{var e="discourse/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))};return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}().default},8249:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(6264),c=n(57555),u=n(82099);const d=a().extend((r=(0,c.default)("model.contact_url","model.contact_email"),i={faqOverridden:(0,l.gt)("siteSettings.faq_url.length",0),contactInfo:(e,t)=>e?u.default.t("about.contact_info",{contact_info:`<a href='${e}' target='_blank'>${e}</a>`}):t?u.default.t("about.contact_info",{contact_info:t}):null},(0,s.Z)(i,"contactInfo",[r],Object.getOwnPropertyDescriptor(i,"contactInfo"),i),i))},90422:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(48163),c=n(17579),u=n(38864),d=n(63421),p=n(57555);const h=a().extend((r=(0,p.default)("newEmail","accountCreated.email"),i={router:(0,c.inject)(),accountCreated:null,newEmail:null,submitDisabled:(e,t)=>e===t,updateNewEmail(e){this.set("newEmail",e)},async changeEmail(){try{await(0,d.changeEmail)({email:this.newEmail}),this.set("accountCreated.email",this.newEmail),this.router.transitionTo("account-created.resent")}catch(e){(0,u.popupAjaxError)(e)}},cancel(){this.router.transitionTo("account-created.index")}},(0,s.Z)(i,"submitDisabled",[r],Object.getOwnPropertyDescriptor(i,"submitDisabled"),i),(0,s.Z)(i,"updateNewEmail",[l.action],Object.getOwnPropertyDescriptor(i,"updateNewEmail"),i),(0,s.Z)(i,"changeEmail",[l.action],Object.getOwnPropertyDescriptor(i,"changeEmail"),i),(0,s.Z)(i,"cancel",[l.action],Object.getOwnPropertyDescriptor(i,"cancel"),i),i))},61583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(17579),c=n(63421),u=n(19086),d=n(47582),p=n(57555),h=n(82099);const m=a().extend((r={router:(0,l.inject)(),envelopeImageUrl:(0,d.default)("/images/envelope.svg"),welcomeTitle(){return h.default.t("invites.welcome_to",{site_name:this.siteSettings.title})},wavingHandURL:()=>(0,u.wavingHandURL)(),actions:{sendActivationEmail(){(0,c.resendActivationEmail)(this.get("accountCreated.username")).then((()=>{this.router.transitionTo("account-created.resent")}))},editActivationEmail(){this.router.transitionTo("account-created.edit-email")}}},(0,s.Z)(r,"welcomeTitle",[p.default],Object.getOwnPropertyDescriptor(r,"welcomeTitle"),r),(0,s.Z)(r,"wavingHandURL",[p.default],(i=(i=Object.getOwnPropertyDescriptor(r,"wavingHandURL"))?i.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return i}}),r),r))},44427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(48163),c=n(17579),u=n(56111),d=n(54736),p=n(57555);const h="sidebar-hidden",m=a().extend((r=(0,p.default)("navigationMenuQueryParamOverride","siteSettings.navigation_menu","canDisplaySidebar","sidebarDisabledRouteOverride"),i={queryParams:[{navigationMenuQueryParamOverride:"navigation_menu"}],showTop:!0,router:(0,c.inject)(),footer:(0,c.inject)(),showSidebar:!1,navigationMenuQueryParamOverride:null,sidebarDisabledRouteOverride:!1,showSiteHeader:!0,init(){this._super(...arguments),this.showSidebar=this.calculateShowSidebar()},get showFooter(){return this.footer.showFooter},set showFooter(e){(0,d.default)("showFooter state is now stored in the `footer` service, and should be controlled by adding the {{hide-application-footer}} helper to an Ember template.",{id:"discourse.application-show-footer"}),this.footer.showFooter=e},canSignUp(){return!this.siteSettings.invite_only&&this.siteSettings.allow_new_registrations&&!this.siteSettings.enable_discourse_connect},canDisplaySidebar(){return this.currentUser||!this.siteSettings.login_required},loginRequired(){return this.siteSettings.login_required&&!this.currentUser},showFooterNav(){return this.capabilities.isAppWebview||this.capabilities.isiOSPWA},_mainOutletAnimate(){document.body.classList.remove("sidebar-animate")},sidebarEnabled(e,t,n,r){return!!n&&!r&&("sidebar"===e||"header_dropdown"!==e&&!this.site.mobileView&&"sidebar"===t)},calculateShowSidebar(){return this.canDisplaySidebar&&!this.keyValueStore.getItem(h)&&!this.site.narrowDesktopView},toggleSidebar(){document.body.classList.add("sidebar-animate"),(0,u.default)(this,this._mainOutletAnimate,250),this.toggleProperty("showSidebar"),this.site.desktopView&&(this.showSidebar?this.keyValueStore.removeItem(h):this.keyValueStore.setItem(h,"true"))}},(0,s.Z)(i,"canSignUp",[p.default],Object.getOwnPropertyDescriptor(i,"canSignUp"),i),(0,s.Z)(i,"canDisplaySidebar",[p.default],Object.getOwnPropertyDescriptor(i,"canDisplaySidebar"),i),(0,s.Z)(i,"loginRequired",[p.default],Object.getOwnPropertyDescriptor(i,"loginRequired"),i),(0,s.Z)(i,"showFooterNav",[p.default],Object.getOwnPropertyDescriptor(i,"showFooterNav"),i),(0,s.Z)(i,"sidebarEnabled",[r],Object.getOwnPropertyDescriptor(i,"sidebarEnabled"),i),(0,s.Z)(i,"toggleSidebar",[l.action],Object.getOwnPropertyDescriptor(i,"toggleSidebar"),i),i))},39525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(57555);function c(e){let t=e.get("badge_grouping.position"),n=e.get("badge_type_id"),r=e.get("name");return("000"+t).slice(-4)+(10-n)+r}const u=a().extend((r=(0,l.default)("model"),i={badgeGroups(e){let t,n=e.sort(((e,t)=>c(e).localeCompare(c(t)))),r=[],i=[];return n.forEach((function(e){t!==e.badge_grouping_id&&(i&&i.length>0&&r.push({badges:i,badgeGrouping:i[0].badge_grouping}),i=[],t=e.badge_grouping_id),i.push(e)})),i&&i.length>0&&r.push({badges:i,badgeGrouping:i[0].badge_grouping}),r}},(0,s.Z)(i,"badgeGroups",[r],Object.getOwnPropertyDescriptor(i,"badgeGroups"),i),i))},94092:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o,a,l,c,u,d,p=n(54001),h=n(97423),m=n.n(h),g=n(48163),f=n.n(g),b=n(47774),_=n(6566),y=n(57555),w=n(82099);const v=m().extend((r=(0,y.default)("userBadgesAll"),i=(0,y.default)("filteredList"),s=(0,y.default)("username"),o=(0,y.default)("username","model.grant_count","userBadges.grant_count"),a=(0,y.default)("model.grant_count","userBadges.grant_count"),l=(0,y.default)("model.allow_title","model.has_badge","model"),c=(0,y.default)("noMoreBadges","grantCount","userBadges.length"),u=(0,y.default)("user","model.grant_count"),d={application:(0,h.inject)(),queryParams:["username"],noMoreBadges:!1,userBadges:null,hiddenSetTitle:!0,filteredList:e=>e.filterBy("badge.allow_title",!0),selectableUserBadges:e=>[f().create({id:0,badge:b.default.create({name:w.default.t("badges.none")})}),...e.uniqBy("badge.name")],user(e){if(e)return this.userBadges[0].get("user")},grantCount:(e,t,n)=>e?n:t,othersCount:(e,t)=>e-t,canSelectTitle(e,t){return this.siteSettings.enable_badges&&e&&t},canLoadMore:(e,t,n)=>!e&&t>(n||0),canShowOthers:(e,t)=>!!e&&t>1,loadMore(){if(!this.canLoadMore)return;if(this.loadingMore)return;this.set("loadingMore",!0);const e=this.userBadges;_.default.findByBadgeId(this.get("model.id"),{offset:e.length,username:this.username}).then((t=>{e.pushObjects(t),0===e.length&&this.set("noMoreBadges",!0)})).finally((()=>{this.set("loadingMore",!1)}))},toggleSetUserTitle(){return this.toggleProperty("hiddenSetTitle")}},(0,p.Z)(d,"filteredList",[r],Object.getOwnPropertyDescriptor(d,"filteredList"),d),(0,p.Z)(d,"selectableUserBadges",[i],Object.getOwnPropertyDescriptor(d,"selectableUserBadges"),d),(0,p.Z)(d,"user",[s],Object.getOwnPropertyDescriptor(d,"user"),d),(0,p.Z)(d,"grantCount",[o],Object.getOwnPropertyDescriptor(d,"grantCount"),d),(0,p.Z)(d,"othersCount",[a],Object.getOwnPropertyDescriptor(d,"othersCount"),d),(0,p.Z)(d,"canSelectTitle",[l],Object.getOwnPropertyDescriptor(d,"canSelectTitle"),d),(0,p.Z)(d,"canLoadMore",[c],Object.getOwnPropertyDescriptor(d,"canLoadMore"),d),(0,p.Z)(d,"canShowOthers",[u],Object.getOwnPropertyDescriptor(d,"canShowOthers"),d),(0,p.Z)(d,"loadMore",[g.action],Object.getOwnPropertyDescriptor(d,"loadMore"),d),(0,p.Z)(d,"toggleSetUserTitle",[g.action],Object.getOwnPropertyDescriptor(d,"toggleSetUserTitle"),d),d))},69673:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97423),i=n.n(r),s=n(77946);const o=i().extend(s.default,{modal:null})},65481:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addComposerSaveErrorCallback:()=>i.addComposerSaveErrorCallback,addPopupMenuOption:()=>r.addPopupMenuOption,clearComposerSaveErrorCallback:()=>i.clearComposerSaveErrorCallback,clearPopupMenuOptions:()=>r.clearPopupMenuOptions,clearPopupMenuOptionsCallback:()=>a,default:()=>o,toggleCheckDraftPopup:()=>i.toggleCheckDraftPopup});var r=n(88743),i=n(86066),s=n(54736);const o=i.default;function a(){(0,s.default)("`clearPopupMenuOptionsCallback` is deprecated without replacement as the cleanup is handled automatically.",{id:"discourse.composer-controller.clear-popup-menu-options-callback",since:"3.2",dropFrom:"3.3"}),(0,r.clearPopupMenuOptions)()}},24586:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i,s,o,a=n(94664),l=n(54001),c=n(23183),u=n(97423),d=n.n(u),p=n(48163),h=n(17579),m=n(3055),g=n(38864),f=n(82099);let b=(r=class extends(d()){constructor(){super(...arguments),(0,a.Z)(this,"dialog",i,this),(0,a.Z)(this,"router",s,this),(0,a.Z)(this,"loading",o,this)}async confirm(){this.loading=!0;try{await(0,m.ajax)(`/u/confirm-new-email/${this.model.token}.json`,{type:"PUT"})}catch(e){const t=e.jqXHR?.responseJSON?.second_factor_challenge_nonce;return void(t?this.router.transitionTo("second-factor-auth",{queryParams:{nonce:t}}):(0,g.popupAjaxError)(e))}finally{this.loading=!1}await new Promise((e=>this.dialog.dialog({message:f.default.t("user.change_email.confirm_success"),type:"alert",didConfirm:e}))),this.router.transitionTo("/my/preferences/account")}},i=(0,l.Z)(r.prototype,"dialog",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,l.Z)(r.prototype,"loading",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(r.prototype,"confirm",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"confirm"),r.prototype),r)},11146:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i,s,o,a=n(94664),l=n(54001),c=n(23183),u=n(97423),d=n.n(u),p=n(48163),h=n(17579),m=n(3055),g=n(38864),f=n(82099);let b=(r=class extends(d()){constructor(){super(...arguments),(0,a.Z)(this,"dialog",i,this),(0,a.Z)(this,"router",s,this),(0,a.Z)(this,"loading",o,this)}async confirm(){this.loading=!0;try{await(0,m.ajax)(`/u/confirm-old-email/${this.model.token}.json`,{type:"PUT"})}catch(e){return void(0,g.popupAjaxError)(e)}finally{this.loading=!1}await new Promise((e=>this.dialog.dialog({message:f.default.t("user.change_email.authorizing_old.confirm_success"),type:"alert",didConfirm:e}))),this.router.transitionTo("/my/preferences/account")}},i=(0,l.Z)(r.prototype,"dialog",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,l.Z)(r.prototype,"loading",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(r.prototype,"confirm",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"confirm"),r.prototype),r)},60066:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a,l=n(94664),c=n(54001),u=n(97423),d=n.n(u),p=n(48163),h=n(6264),m=n(17579),g=n(57555);let f=(r=(0,h.reads)("currentUser.staff"),i=class extends(d()){constructor(){super(...arguments),(0,l.Z)(this,"router",s,this),(0,l.Z)(this,"composer",o,this),(0,l.Z)(this,"canEdit",a,this)}isCategoriesRoute(){return"discovery.categories"===this.router.currentRouteName}showInserted(e){e?.preventDefault();const t=this.topicTrackingState;this.model.loadBefore(t.get("newIncoming"),!0),t.resetTracking()}createTopic(){this.composer.openNewTopic({preferDraft:!0})}refresh(){this.send("triggerRefresh")}},s=(0,c.Z)(i.prototype,"router",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,c.Z)(i.prototype,"composer",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.Z)(i.prototype,"canEdit",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.Z)(i.prototype,"isCategoriesRoute",[g.default],Object.getOwnPropertyDescriptor(i.prototype,"isCategoriesRoute"),i.prototype),(0,c.Z)(i.prototype,"showInserted",[p.action],Object.getOwnPropertyDescriptor(i.prototype,"showInserted"),i.prototype),(0,c.Z)(i.prototype,"createTopic",[p.action],Object.getOwnPropertyDescriptor(i.prototype,"createTopic"),i.prototype),(0,c.Z)(i.prototype,"refresh",[p.action],Object.getOwnPropertyDescriptor(i.prototype,"refresh"),i.prototype),i)},70171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(94664),o=n(49246),a=n(54001),l=n(23183),c=n(97423),u=n.n(c),d=n(48163);let p=(r=class extends(u()){constructor(){super(...arguments),(0,s.Z)(this,"q",i,this),(0,o.Z)(this,"queryParams",["q"])}updateTopicsListQueryParams(e){this.q=e}},i=(0,a.Z)(r.prototype,"q",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),(0,a.Z)(r.prototype,"updateTopicsListQueryParams",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"updateTopicsListQueryParams"),r.prototype),r)},48541:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addDiscoveryQueryParam:()=>T,default:()=>S,queryParams:()=>k,resetParams:()=>x});var r,i,s,o,a,l,c,u=n(94664),d=n(49246),p=n(54001),h=n(23183),m=n(97423),g=n.n(m),f=n(48163),b=n(17579),_=n(83924),y=n(79593),w=n(46646),v=n(88981);const k={order:{replace:!0,refreshModel:!0},ascending:{replace:!0,refreshModel:!0,default:!1},status:{replace:!0,refreshModel:!0},state:{replace:!0,refreshModel:!0},search:{replace:!0,refreshModel:!0},max_posts:{replace:!0,refreshModel:!0},min_posts:{replace:!0,refreshModel:!0},q:{replace:!0,refreshModel:!0},before:{replace:!0,refreshModel:!0},bumped_before:{replace:!0,refreshModel:!0},f:{replace:!0,refreshModel:!0},subset:{replace:!0,refreshModel:!0},period:{replace:!0,refreshModel:!0},topic_ids:{replace:!0,refreshModel:!0},group_name:{replace:!0,refreshModel:!0},tags:{replace:!0,refreshModel:!0},match_all_tags:{replace:!0,refreshModel:!0},no_subcategories:{replace:!0,refreshModel:!0},no_tags:{replace:!0,refreshModel:!0},exclude_tag:{replace:!0,refreshModel:!0}};function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(const[t,n]of Object.entries(k))e.includes(t)||this.controller.set(t,n.default)}function T(e,t){k[e]=t}let S=(0,w.disableImplicitInjections)((i=class extends(g()){constructor(){super(...arguments),(0,u.Z)(this,"composer",s,this),(0,u.Z)(this,"siteSettings",o,this),(0,u.Z)(this,"site",a,this),(0,u.Z)(this,"currentUser",l,this),(0,u.Z)(this,"model",c,this),(0,d.Z)(this,"queryParams",Object.keys(k)),(0,d.Z)(this,"bulkSelectHelper",new _.default(this));for(const[e,t]of Object.entries(k))(0,v.defineTrackedProperty)(this,e,t.default)}get canBulkSelect(){return this.currentUser?.canManageTopic||this.showDismissRead||this.showResetNew}get showDismissRead(){return"unread"===(0,y.filterTypeForMode)(this.model.list?.filter)&&this.model.list.get("topics.length")>0}get showResetNew(){return"new"===(0,y.filterTypeForMode)(this.model.list?.filter)&&this.model.list?.get("topics.length")>0}get createTopicTargetCategory(){const{category:e}=this.model;return e?.canCreateTopic?e:this.siteSettings.default_subcategory_on_read_only_category?e?.subcategoryWithCreateTopicPermission:void 0}get createTopicDisabled(){return this.model.category&&!this.createTopicTargetCategory}get resolvedAscending(){return"true"===(this.ascending??this.model.list.get("params.ascending"))}get resolvedOrder(){return this.order??this.model.list.get("params.order")??"activity"}createTopic(){this.composer.openNewTopic({category:this.createTopicTargetCategory,tags:[this.model.tag?.id,...this.model.additionalTags??[]].filter(Boolean).reject((e=>["none","all"].includes(e))).join(","),preferDraft:!0})}changePeriod(e){this.period=e}changeSort(e){e===this.resolvedOrder?this.ascending=!this.resolvedAscending:this.ascending=!1,this.order=e}changeNewListSubset(e){this.subset=e,this.model.list.updateNewListSubsetParam(e)}toggleTagInfo(){this.toggleProperty("showTagInfo")}},s=(0,p.Z)(i.prototype,"composer",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,p.Z)(i.prototype,"siteSettings",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,p.Z)(i.prototype,"site",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.Z)(i.prototype,"currentUser",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,p.Z)(i.prototype,"model",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.Z)(i.prototype,"createTopic",[f.action],Object.getOwnPropertyDescriptor(i.prototype,"createTopic"),i.prototype),(0,p.Z)(i.prototype,"changePeriod",[f.action],Object.getOwnPropertyDescriptor(i.prototype,"changePeriod"),i.prototype),(0,p.Z)(i.prototype,"changeSort",[f.action],Object.getOwnPropertyDescriptor(i.prototype,"changeSort"),i.prototype),(0,p.Z)(i.prototype,"changeNewListSubset",[f.action],Object.getOwnPropertyDescriptor(i.prototype,"changeNewListSubset"),i.prototype),(0,p.Z)(i.prototype,"toggleTagInfo",[f.action],Object.getOwnPropertyDescriptor(i.prototype,"toggleTagInfo"),i.prototype),r=i))||r},26940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,i,s,o,a,l,c,u,d=n(54001),p=n(97423),h=n.n(p),m=n(6264),g=n(17579),f=n(16572),b=n(38864),_=n(35814),y=n(20229),w=n(56746),v=n(12506),k=n(57555),x=n(82099);const T=h().extend((r=(0,k.on)("init"),i=(0,k.default)("saving","model.name","model.color","deleting"),s=(0,k.default)("saving","deleting"),o=(0,k.default)("name"),a=(0,k.default)("saving","model.id"),l=(0,k.default)("model.id","model.name"),c=(0,k.default)("selectedTab"),u={dialog:(0,g.inject)(),site:(0,g.inject)(),router:(0,g.inject)(),selectedTab:"general",saving:!1,deleting:!1,panels:null,showTooltip:!1,createdCategory:!1,expandedMenu:!1,mobileView:(0,m.readOnly)("site.mobileView"),parentParams:null,showDeleteReason:(0,m.and)("showTooltip","model.cannot_delete_reason"),_initPanels(){this.setProperties({panels:[],validators:[]})},disabled:(e,t,n,r)=>!(!e&&!r&&t&&n),deleteDisabled:(e,t)=>t||e||!1,categoryName:e=>(e=e||"").trim().length>0?e:x.default.t("preview"),saveLabel:(e,t)=>e?"saving":t?"category.save":"category.create",title:(e,t)=>e?x.default.t("category.edit_dialog_title",{categoryName:t}):x.default.t("category.create"),selectedTabTitle:e=>x.default.t(`category.${(0,f.underscore)(e)}`),actions:{registerValidator(e){this.validators.push(e)},saveCategory(){if(this.validators.some((e=>e())))return;const e=this.model,t=this.site.categories.findBy("id",parseInt(e.parent_category_id,10));this.set("saving",!0);const n=e.get("parentCategory");e.set("parentCategory",t),e.save().then((t=>{this.set("saving",!1),e.id||(e.setProperties({slug:t.category.slug,id:t.category.id,can_edit:t.category.can_edit,permission:v.default.FULL,notification_level:_.NotificationLevels.REGULAR}),this.site.updateCategory(e),this.router.transitionTo("editCategory",w.default.slugFor(e)))})).catch((t=>{(0,b.popupAjaxError)(t),this.set("saving",!1),e.set("parent_category_id",void 0),e.set("parentCategory",n)}))},deleteCategory(){this.set("deleting",!0),this.dialog.yesNoConfirm({message:x.default.t("category.delete_confirm"),didConfirm:()=>{this.model.destroy().then((()=>{this.router.transitionTo("discovery.categories")})).catch((()=>{this.displayErrors([x.default.t("category.delete_error")])})).finally((()=>{this.set("deleting",!1)}))},didCancel:()=>this.set("deleting",!1)})},toggleDeleteTooltip(){this.toggleProperty("showTooltip")},goBack(){y.default.routeTo(this.model.url)}}},(0,d.Z)(u,"_initPanels",[r],Object.getOwnPropertyDescriptor(u,"_initPanels"),u),(0,d.Z)(u,"disabled",[i],Object.getOwnPropertyDescriptor(u,"disabled"),u),(0,d.Z)(u,"deleteDisabled",[s],Object.getOwnPropertyDescriptor(u,"deleteDisabled"),u),(0,d.Z)(u,"categoryName",[o],Object.getOwnPropertyDescriptor(u,"categoryName"),u),(0,d.Z)(u,"saveLabel",[a],Object.getOwnPropertyDescriptor(u,"saveLabel"),u),(0,d.Z)(u,"title",[l],Object.getOwnPropertyDescriptor(u,"title"),u),(0,d.Z)(u,"selectedTabTitle",[c],Object.getOwnPropertyDescriptor(u,"selectedTabTitle"),u),u))},35100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(17579),u=n(3055),d=n(38864),p=n(20229),h=n(78580),m=n(7223),g=n(47582),f=n(57555);const b=l().extend((r=(0,f.default)("model"),i=(0,f.default)("model"),s={router:(0,c.inject)(),lockImageUrl:(0,g.default)("/images/lock.svg"),secondFactorRequired:e=>e.security_key_required||e.second_factor_required,secondFactorMethod:e=>e.security_key_required?m.SECOND_FACTOR_METHODS.SECURITY_KEY:m.SECOND_FACTOR_METHODS.TOTP,actions:{finishLogin(){let e={second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()};this.securityKeyCredential?e.second_factor_token=this.securityKeyCredential:e.second_factor_token=this.secondFactorToken,(0,u.ajax)({url:`/session/email-login/${this.model.token}`,type:"POST",data:e}).then((e=>{if(e.success){let e="/";const t=new URL(this.router.currentURL,window.location.origin).searchParams.get("safe_mode");if(t){const n=new URLSearchParams;n.set("safe_mode",t),e+=`?${n.toString()}`}p.default.redirectTo(e)}else this.set("model.error",e.error)})).catch(d.popupAjaxError)},authenticateSecurityKey(){(0,h.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,(e=>{this.set("securityKeyCredential",e),this.send("finishLogin")}),(e=>{this.set("model.error",e)}))}}},(0,o.Z)(s,"secondFactorRequired",[r],Object.getOwnPropertyDescriptor(s,"secondFactorRequired"),s),(0,o.Z)(s,"secondFactorMethod",[i],Object.getOwnPropertyDescriptor(s,"secondFactorMethod"),s),s))},20194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o,a,l,c=n(54001),u=(n(23183),n(97423)),d=n.n(u),p=n(48163),h=n(6264),m=n(51372),g=n(20229),f=n(57555),b=n(82099);let _=(0,n(91649).Z)(n(23183)).cached;const y=d().extend((r=(0,f.default)("thrown"),i=(0,f.on)("init"),s=(0,f.default)("isNetwork","thrown.status","thrown"),o=(0,f.default)("networkFixed","isNetwork","thrown.status","thrown.statusText","thrown"),a=(0,f.default)("networkFixed","isNetwork","lastTransition"),l={thrown:null,lastTransition:null,isNetwork:e=>!(!e||0!==e.readyState)||!(!e||"timeout"!==e.jqTextStatus),isNotFound:(0,h.equal)("thrown.status",404),isForbidden:(0,h.equal)("thrown.status",403),isServer:(0,h.gte)("thrown.status",500),isUnknown:(0,h.none)("isNetwork","isServer"),errorHtml:(0,h.alias)("thrown.responseJSON.extras.html"),networkFixed:!1,loading:!1,_init(){this.set("loading",!1)},reason:(e,t,n)=>e?b.default.t("errors.reasons.network"):t>=500?b.default.t("errors.reasons.server"):404===t?b.default.t("errors.reasons.not_found"):403===t?b.default.t("errors.reasons.forbidden"):b.default.t("errors.reasons.unknown"),requestUrl:(0,h.alias)("thrown.requestedUrl"),desc:(e,t,n,r,i)=>e?b.default.t("errors.desc.network_fixed"):t?b.default.t("errors.desc.network"):404===n?b.default.t("errors.desc.not_found"):403===n?b.default.t("errors.desc.forbidden"):n>=500?b.default.t("errors.desc.server",{status:n+" "+r}):b.default.t("errors.desc.unknown"),get buttons(){return{ButtonBackBright:{classes:"btn-primary",action:this.back,key:"errors.buttons.back"},ButtonBackDim:{classes:"",action:this.back,key:"errors.buttons.back"},ButtonTryAgain:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.again",icon:"sync"},ButtonLoadPage:{classes:"btn-primary",action:this.tryLoading,key:"errors.buttons.fixed"}}},enabledButtons(e,t,n){return e?[this.buttons.ButtonLoadPage]:t?[this.buttons.ButtonBackDim,this.buttons.ButtonTryAgain]:n?[this.buttons.ButtonBackBright,this.buttons.ButtonTryAgain]:[this.buttons.ButtonBackBright]},back(){const e=g.default.router.location.getURL();this.lastTransition&&"/exception"!==e?(this.lastTransition.abort(),this.setProperties({lastTransition:null,thrown:null}),g.default.handleURL(e)):window.history.back()},tryLoading(){this.set("loading",!0),(0,m.schedule)("afterRender",(()=>{const e=this.lastTransition;this.setProperties({lastTransition:null,thrown:null}),e.retry(),this.set("loading",!1)}))}},(0,c.Z)(l,"isNetwork",[r],Object.getOwnPropertyDescriptor(l,"isNetwork"),l),(0,c.Z)(l,"_init",[i],Object.getOwnPropertyDescriptor(l,"_init"),l),(0,c.Z)(l,"reason",[s],Object.getOwnPropertyDescriptor(l,"reason"),l),(0,c.Z)(l,"desc",[o],Object.getOwnPropertyDescriptor(l,"desc"),l),(0,c.Z)(l,"buttons",[_],Object.getOwnPropertyDescriptor(l,"buttons"),l),(0,c.Z)(l,"enabledButtons",[a],Object.getOwnPropertyDescriptor(l,"enabledButtons"),l),(0,c.Z)(l,"back",[p.action],Object.getOwnPropertyDescriptor(l,"back"),l),(0,c.Z)(l,"tryLoading",[p.action],Object.getOwnPropertyDescriptor(l,"tryLoading"),l),l))},74424:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SEARCH_TYPE_CATS_TAGS:()=>J,SEARCH_TYPE_DEFAULT:()=>Q,SEARCH_TYPE_USERS:()=>X,default:()=>ne,registerFullPageSearchType:()=>te});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T,S,C,P,O,E,D=n(54001),I=n(97423),j=n.n(I),Z=n(48163),A=n(6264),M=n(17579),N=n(33217),z=n(10425),L=n(40371),F=n(3055),U=n(71631),R=n(49216),B=n(64519),$=n(47301),q=n(62617),H=n(23683),W=n(56746),K=n(21859),V=n(57555),G=n(82099);const Y=[{name:G.default.t("search.relevance"),id:0},{name:G.default.t("search.latest_post"),id:1,term:"order:latest"},{name:G.default.t("search.most_liked"),id:2,term:"order:likes"},{name:G.default.t("search.most_viewed"),id:3,term:"order:views"},{name:G.default.t("search.latest_topic"),id:4,term:"order:latest_topic"}],Q="topics_posts",J="categories_tags",X="users",ee=[];function te(e,t,n){ee.push({translationKey:e,searchTypeId:t,searchFunc:n})}const ne=j().extend((r=(0,V.default)("resultCount"),i=(0,V.default)("expanded"),s=(0,V.default)("q"),o=(0,V.default)("q"),a=(0,V.default)("skip_context","context"),l=(0,V.default)("context","context_id"),c=(0,V.default)("q"),u=(0,V.default)("q"),d=(0,V.default)("canCreateTopic","siteSettings.login_required"),p=(0,V.observes)("sortOrder"),h=(0,V.observes)("search_type"),m=(0,V.observes)("model"),g=(0,V.default)("q"),f=(0,V.observes)("q"),b=(0,V.default)("q"),_=(0,V.default)("resultCount","noSortQ"),y=(0,V.observes)("model.{posts,categories,tags,users}.length","searchResultPosts"),w=(0,V.default)("hasResults"),v=(0,V.default)("selected.length","searchResultPosts.length"),k=(0,V.default)("model.grouped_search_result.can_create_topic"),x=(0,V.default)("page"),T=(0,V.default)("search_type"),S=(0,V.default)("search_type"),C=(0,V.default)("bulkSelectEnabled"),P=(0,V.default)("model.posts","additionalSearchResults"),O={application:(0,I.inject)(),composer:(0,M.inject)(),modal:(0,M.inject)(),appEvents:(0,M.inject)(),siteSettings:(0,M.inject)(),searchPreferencesManager:(0,M.inject)(),bulkSelectEnabled:null,loading:!1,queryParams:["q","expanded","context_id","context","skip_context","search_type"],q:void 0,context_id:null,search_type:Q,context:null,searching:!1,sortOrder:0,sortOrders:Y,invalidSearch:!1,page:1,resultCount:null,searchTypes:null,additionalSearchResults:[],selected:[],error:null,init(){this._super(...arguments),this.set("sortOrder",this.searchPreferencesManager.sortOrder||this.siteSettings.search_default_sort_order);const e=[{name:G.default.t("search.type.default"),id:Q},{name:this.siteSettings.tagging_enabled?G.default.t("search.type.categories_and_tags"):G.default.t("search.type.categories"),id:J},{name:G.default.t("search.type.users"),id:X}];ee.forEach((t=>{e.push({name:G.default.t(t.translationKey),id:t.searchTypeId})})),this.set("searchTypes",e)},hasResults:e=>(e||0)>0,expandFilters:e=>"true"===e,hasAutofocus:e=>(0,N.isEmpty)(e),highlightQuery(e){if(e)return e.split(/\s+/).filter((e=>"l"!==e)).join(" ")},searchContextEnabled:{get:(e,t)=>!e&&t||"false"===e,set(e){this.set("skip_context",!e)}},searchContextDescription(e,t){let n=t;if("category"===e){let e=W.default.findById(t);if(!e)return;n=e.get("name")}return(0,B.searchContextDescription)(e,n)},searchActive(e){return(0,B.isValidSearchTerm)(e,this.siteSettings)},noSortQ(e){return e=this.cleanTerm(e),(0,q.escapeExpression)(e)},showSuggestion:(e,t)=>e||!t,_searchOnSortChange:!0,setSearchTerm(e){this._searchOnSortChange=!1,e=this.cleanTerm(e),this._searchOnSortChange=!0,this.set("searchTerm",e)},cleanTerm(e){return e&&Y.forEach((t=>{t.term&&e.match(new RegExp(`${t.term}\\b`))&&(this.set("sortOrder",t.id),e=(e=e.replace(new RegExp(`${t.term}\\b`,"g"),"")).trim())})),e},triggerSearch(){this._searchOnSortChange&&(this.set("page",1),this._search())},triggerSearchOnTypeChange(){this.searchActive&&(this.set("page",1),this._search())},modelChanged(){this.searchTerm!==this.q&&this.setSearchTerm(this.q)},showLikeCount:e=>e?.includes("order:likes"),qChanged(){this.model&&this.get("model.q")!==this.q&&(this.setSearchTerm(this.q),this.send("search"))},isPrivateMessage(e){return e&&this.currentUser&&(e.includes("in:messages")||e.includes("in:personal")||e.includes(`personal_messages:${this.currentUser.get("username_lower")}`))},resultCountLabel(e,t){const n=e%50==0?"+":"";return G.default.t("search.result_count",{count:e,plus:n,term:t})},resultCountChanged(){if(!this.model.posts)return 0;this.set("resultCount",this.searchResultPosts.length+this.model.categories.length+this.model.tags.length+this.model.users.length)},canBulkSelect(e){return this.currentUser&&this.currentUser.staff&&e},hasSelection:(0,A.gt)("selected.length",0),hasUnselectedResults:(e,t)=>e<t,canCreateTopic(e){return this.currentUser&&e},isLastPage:e=>10===e,usingDefaultSearchType:e=>e===Q,customSearchType:e=>ee.find((t=>e===t.searchTypeId)),searchInfoClassNames:e=>e?"search-info bulk-select-visible":"search-info",searchResultPosts:(e,t)=>t?.list?.length>0?(0,B.reciprocallyRankedList)([e,t.list],["topic_id",t.identifier]):e,searchButtonDisabled:(0,A.or)("searching","loading"),_search(){if(this.searching)return;this.set("invalidSearch",!1);const e=this.searchTerm;if(!(0,B.isValidSearchTerm)(e,this.siteSettings))return void this.set("invalidSearch",!0);let t={q:e,page:this.page};1===t.page?(this.set("bulkSelectEnabled",!1),this.selected.clear(),this.set("searching",!0),(0,H.scrollTop)()):this.set("loading",!0);const n=this.sortOrder;n&&Y[n].term&&(t.q+=" "+Y[n].term),this.set("q",t.q);const r=this.skip_context;(!r&&this.context||"false"===r)&&(t.search_context={type:this.context,id:this.context_id});const i=(0,B.getSearchKey)(t);if(this.customSearchType)(0,this.customSearchType.searchFunc)(this,t,i);else switch(this.search_type){case J:const n=(0,U.search)(e,this.siteSettings);z.Promise.resolve(n).then((async e=>{const t=e.filter((e=>Boolean(e.model))),n=e.filter((e=>!e.model)),r=await(0,B.translateResults)({categories:t,tags:n})||{};this.set("model",r)})).finally((()=>{this.setProperties({searching:!1,loading:!1})}));break;case X:(0,$.default)({term:e,limit:20}).then((async e=>{const t=await(0,B.translateResults)({users:e})||{};this.set("model",t)})).finally((()=>{this.setProperties({searching:!1,loading:!1})}));break;default:this.currentUser&&(0,B.updateRecentSearches)(this.currentUser,e),(0,F.ajax)("/search",{data:t}).then((async e=>{const n=await(0,B.translateResults)(e)||{};e.grouped_search_result&&this.set("q",e.grouped_search_result.term),t.page>1?n&&(this.model.posts.pushObjects(n.posts),this.model.topics.pushObjects(n.topics),this.model.set("grouped_search_result",e.grouped_search_result)):((0,R.setTransient)("lastSearch",{searchKey:i,model:n},5),n.grouped_search_result=e.grouped_search_result,this.set("model",n)),this.set("error",null)})).catch((e=>{this.set("error",e.jqXHR.responseJSON?.message)})).finally((()=>{this.setProperties({searching:!1,loading:!1})}))}},_afterTransition(){0===Object.keys(this.model).length&&this.reset()},reset(){this.setProperties({searching:!1,page:1,resultCount:null,selected:[]})},createTopic(e,t){let n;if(t?.preventDefault(),e.includes("category:")){const t=e.match(/category:(\S*)/);t&&t[1]&&(n=t[1])}this.composer.open({action:K.default.CREATE_TOPIC,draftKey:K.default.NEW_TOPIC_KEY,topicCategory:n})},addSearchResults(e,t){this.set("additionalSearchResults",{list:e,identifier:t})},setSortOrder(e){this.set("sortOrder",e),this.searchPreferencesManager.sortOrder=e},actions:{selectAll(){this.selected.addObjects(this.get("searchResultPosts").mapBy("topic")),document.querySelectorAll(".fps-result input[type=checkbox]").forEach((e=>{e.checked=!0}))},clearAll(){this.selected.clear(),document.querySelectorAll(".fps-result input[type=checkbox]").forEach((e=>{e.checked=!1}))},toggleBulkSelect(){this.toggleProperty("bulkSelectEnabled"),this.selected.clear()},showBulkActions(){this.modal.show(L.default,{model:{topics:this.selected,refreshClosure:this._search}})},search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.searching||(e.collapseFilters&&document.querySelector("details.advanced-filters")?.removeAttribute("open"),this.set("page",1),this.appEvents.trigger("full-page-search:trigger-search"),this._search())},loadMore(){let e=this.page;this.get("model.grouped_search_result.more_full_page_results")&&!this.loading&&e<10&&(this.incrementProperty("page"),this._search())},logClick(e){this.get("model.grouped_search_result.search_log_id")&&e&&(0,B.logSearchLinkClick)({searchLogId:this.get("model.grouped_search_result.search_log_id"),searchResultId:e,searchResultType:"topic"})}}},(0,D.Z)(O,"hasResults",[r],Object.getOwnPropertyDescriptor(O,"hasResults"),O),(0,D.Z)(O,"expandFilters",[i],Object.getOwnPropertyDescriptor(O,"expandFilters"),O),(0,D.Z)(O,"hasAutofocus",[s],Object.getOwnPropertyDescriptor(O,"hasAutofocus"),O),(0,D.Z)(O,"highlightQuery",[o],Object.getOwnPropertyDescriptor(O,"highlightQuery"),O),(0,D.Z)(O,"searchContextEnabled",[a],(E=(E=Object.getOwnPropertyDescriptor(O,"searchContextEnabled"))?E.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return E}}),O),(0,D.Z)(O,"searchContextDescription",[l],Object.getOwnPropertyDescriptor(O,"searchContextDescription"),O),(0,D.Z)(O,"searchActive",[c],Object.getOwnPropertyDescriptor(O,"searchActive"),O),(0,D.Z)(O,"noSortQ",[u],Object.getOwnPropertyDescriptor(O,"noSortQ"),O),(0,D.Z)(O,"showSuggestion",[d],Object.getOwnPropertyDescriptor(O,"showSuggestion"),O),(0,D.Z)(O,"triggerSearch",[p],Object.getOwnPropertyDescriptor(O,"triggerSearch"),O),(0,D.Z)(O,"triggerSearchOnTypeChange",[h],Object.getOwnPropertyDescriptor(O,"triggerSearchOnTypeChange"),O),(0,D.Z)(O,"modelChanged",[m],Object.getOwnPropertyDescriptor(O,"modelChanged"),O),(0,D.Z)(O,"showLikeCount",[g],Object.getOwnPropertyDescriptor(O,"showLikeCount"),O),(0,D.Z)(O,"qChanged",[f],Object.getOwnPropertyDescriptor(O,"qChanged"),O),(0,D.Z)(O,"isPrivateMessage",[b],Object.getOwnPropertyDescriptor(O,"isPrivateMessage"),O),(0,D.Z)(O,"resultCountLabel",[_],Object.getOwnPropertyDescriptor(O,"resultCountLabel"),O),(0,D.Z)(O,"resultCountChanged",[y],Object.getOwnPropertyDescriptor(O,"resultCountChanged"),O),(0,D.Z)(O,"canBulkSelect",[w],Object.getOwnPropertyDescriptor(O,"canBulkSelect"),O),(0,D.Z)(O,"hasUnselectedResults",[v],Object.getOwnPropertyDescriptor(O,"hasUnselectedResults"),O),(0,D.Z)(O,"canCreateTopic",[k],Object.getOwnPropertyDescriptor(O,"canCreateTopic"),O),(0,D.Z)(O,"isLastPage",[x],Object.getOwnPropertyDescriptor(O,"isLastPage"),O),(0,D.Z)(O,"usingDefaultSearchType",[T],Object.getOwnPropertyDescriptor(O,"usingDefaultSearchType"),O),(0,D.Z)(O,"customSearchType",[S],Object.getOwnPropertyDescriptor(O,"customSearchType"),O),(0,D.Z)(O,"searchInfoClassNames",[C],Object.getOwnPropertyDescriptor(O,"searchInfoClassNames"),O),(0,D.Z)(O,"searchResultPosts",[P],Object.getOwnPropertyDescriptor(O,"searchResultPosts"),O),(0,D.Z)(O,"_search",[V.bind],Object.getOwnPropertyDescriptor(O,"_search"),O),(0,D.Z)(O,"createTopic",[Z.action],Object.getOwnPropertyDescriptor(O,"createTopic"),O),(0,D.Z)(O,"addSearchResults",[Z.action],Object.getOwnPropertyDescriptor(O,"addSearchResults"),O),(0,D.Z)(O,"setSortOrder",[Z.action],Object.getOwnPropertyDescriptor(O,"setSortOrder"),O),O))},85262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97423),i=n.n(r),s=n(63319);const o=i().extend({group:(0,r.inject)(),groupActivity:(0,r.inject)(),application:(0,r.inject)(),canLoadMore:!0,loading:!1,emptyText:(0,s.fmt)("type","groups.empty.%@"),actions:{loadMore(){if(!this.canLoadMore)return;if(this.loading)return;this.set("loading",!0);const e=this.model;if(e&&e.length){const t=e[e.length-1].get("created_at"),n=this.get("group.model");let r=this.get("groupActivity.category_id");const i={before:t,type:this.type,categoryId:r};n.findPosts(i).then((t=>{e.addObjects(t),0===t.length&&this.set("canLoadMore",!1)})).finally((()=>{this.set("loading",!1)}))}}}})},2976:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(97423);const i=n.n(r)().extend({actions:{loadMore(){this.model.loadMore()}}})},18708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97423),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),queryParams:["category_id"]})},56648:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a,l,c,u=n(54001),d=n(97423),p=n.n(d),h=n(48163),m=n(6264),g=n(3055),f=n(38864),b=n(57555);const _=p().extend((r=(0,b.observes)("filterInput"),i=(0,b.debounce)(500),s=(0,b.observes)("order","asc","filter"),o=(0,b.default)("order","asc","filter"),a=(0,b.default)("model"),l=(0,b.default)("filter","members","model.can_see_members"),c={queryParams:["order","asc","filter"],order:null,asc:!0,filter:null,filterInput:null,loading:!1,isBulk:!1,showActions:!1,bulkSelection:null,get canLoadMore(){return this.get("model.members")?.length<this.get("model.user_count")},filterInputChanged(){this._setFilter()},_setFilter(){this.set("filter",this.filterInput)},_filtersChanged(){this.reloadMembers(!0)},reloadMembers(e){!this.loading&&this.model&&(e||this.canLoadMore)&&(this.set("loading",!0),this.model.reloadMembers(this.memberParams,e).finally((()=>{this.set("loading",!1),this.refresh&&this.set("bulkSelection",[])})))},memberParams:(e,t,n)=>({order:e,asc:t,filter:n}),hasMembers:(0,m.gt)("model.members.length",0),canManageGroup(e){return this.currentUser&&this.currentUser.canManageGroup(e)},filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"},emptyMessageKey:(e,t,n)=>n?e?"groups.members.no_filter_matches":"groups.empty.members":"groups.members.forbidden",loadMore(){this.reloadMembers()},toggleActions(){this.toggleProperty("showActions")},actOnGroup(e,t){switch(t){case"removeMember":this.removeMember(e);break;case"makeOwner":this.makeOwner(e.username);break;case"removeOwner":this.removeOwner(e);break;case"makePrimary":e.setPrimaryGroup(this.model.id).then((()=>e.set("primary",!0)));break;case"removePrimary":e.setPrimaryGroup(null).then((()=>e.set("primary",!1)))}},actOnSelection(e,t){if(e&&0!==e.length)switch(t){case"removeMembers":return(0,g.ajax)(`/groups/${this.model.id}/members.json`,{type:"DELETE",data:{user_ids:e.mapBy("id").join(",")}}).then((()=>{this.model.reloadMembers(this.memberParams,!0),this.set("isBulk",!1)}));case"makeOwners":return(0,g.ajax)(`/groups/${this.model.id}/owners.json`,{type:"PUT",data:{usernames:e.mapBy("username").join(",")}}).then((()=>{e.forEach((e=>e.set("owner",!0))),this.set("isBulk",!1)}));case"removeOwners":return(0,g.ajax)(`/admin/groups/${this.model.id}/owners.json`,{type:"DELETE",data:{group:{usernames:e.map((e=>e.username)).join(",")}}}).then((()=>{e.forEach((e=>e.set("owner",!1))),this.set("isBulk",!1)}));case"setPrimary":case"unsetPrimary":const n="setPrimary"===t;return(0,g.ajax)(`/admin/groups/${this.model.id}/primary.json`,{type:"PUT",data:{group:{usernames:e.map((e=>e.username)).join(",")},primary:n}}).then((()=>{e.forEach((e=>e.set("primary",n))),this.set("isBulk",!1)}))}},removeMember(e){this.model.removeMember(e,this.memberParams)},makeOwner(e){this.model.addOwners(e)},removeOwner(e){this.model.removeOwner(e)},addMembers(){this.usernames&&this.usernames.length>0&&this.model.addMembers(this.usernames).then((()=>this.set("usernames",[]))).catch(f.popupAjaxError)},toggleBulkSelect(){this.setProperties({isBulk:!this.isBulk,bulkSelection:[]})},bulkSelectAll(){document.querySelectorAll("input.bulk-select:not(:checked)").forEach((e=>{e.checked||e.click()}))},bulkClearAll(){document.querySelectorAll("input.bulk-select:checked").forEach((e=>{e.checked&&e.click()}))},selectMember(e,t){this.set("bulkSelection",this.bulkSelection||[]),t.target.checked?this.bulkSelection.pushObject(e):this.bulkSelection.removeObject(e)}},(0,u.Z)(c,"filterInputChanged",[r],Object.getOwnPropertyDescriptor(c,"filterInputChanged"),c),(0,u.Z)(c,"_setFilter",[i],Object.getOwnPropertyDescriptor(c,"_setFilter"),c),(0,u.Z)(c,"_filtersChanged",[s],Object.getOwnPropertyDescriptor(c,"_filtersChanged"),c),(0,u.Z)(c,"memberParams",[o],Object.getOwnPropertyDescriptor(c,"memberParams"),c),(0,u.Z)(c,"canManageGroup",[a],Object.getOwnPropertyDescriptor(c,"canManageGroup"),c),(0,u.Z)(c,"filterPlaceholder",[b.default],Object.getOwnPropertyDescriptor(c,"filterPlaceholder"),c),(0,u.Z)(c,"emptyMessageKey",[l],Object.getOwnPropertyDescriptor(c,"emptyMessageKey"),c),(0,u.Z)(c,"loadMore",[h.action],Object.getOwnPropertyDescriptor(c,"loadMore"),c),(0,u.Z)(c,"toggleActions",[h.action],Object.getOwnPropertyDescriptor(c,"toggleActions"),c),(0,u.Z)(c,"actOnGroup",[h.action],Object.getOwnPropertyDescriptor(c,"actOnGroup"),c),(0,u.Z)(c,"actOnSelection",[h.action],Object.getOwnPropertyDescriptor(c,"actOnSelection"),c),(0,u.Z)(c,"removeMember",[h.action],Object.getOwnPropertyDescriptor(c,"removeMember"),c),(0,u.Z)(c,"makeOwner",[h.action],Object.getOwnPropertyDescriptor(c,"makeOwner"),c),(0,u.Z)(c,"removeOwner",[h.action],Object.getOwnPropertyDescriptor(c,"removeOwner"),c),(0,u.Z)(c,"addMembers",[h.action],Object.getOwnPropertyDescriptor(c,"addMembers"),c),(0,u.Z)(c,"toggleBulkSelect",[h.action],Object.getOwnPropertyDescriptor(c,"toggleBulkSelect"),c),(0,u.Z)(c,"bulkSelectAll",[h.action],Object.getOwnPropertyDescriptor(c,"bulkSelectAll"),c),(0,u.Z)(c,"bulkClearAll",[h.action],Object.getOwnPropertyDescriptor(c,"bulkClearAll"),c),(0,u.Z)(c,"selectMember",[h.action],Object.getOwnPropertyDescriptor(c,"selectMember"),c),c))},26504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(57555);const c=a().extend((r=(0,l.default)("model.watchingCategories.[]","model.watchingFirstPostCategories.[]","model.trackingCategories.[]","model.regularCategories.[]","model.mutedCategories.[]"),i={selectedCategories:(e,t,n,r,i)=>[].concat(e,t,n,r,i).filter(Boolean)},(0,s.Z)(i,"selectedCategories",[r],Object.getOwnPropertyDescriptor(i,"selectedCategories"),i),i))},81481:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(48163),u=n.n(c),d=n(57555);const p=l().extend((r=(0,d.default)("filters.action","filters.acting_user","filters.target_user","filters.subject"),i=(0,d.observes)("filters.action","filters.acting_user","filters.target_user","filters.subject"),s={group:(0,a.inject)(),application:(0,a.inject)(),loading:!1,offset:0,init(){this._super(...arguments),this.set("filters",u().create())},filterParams:(e,t,n,r)=>({action:e,acting_user:t,target_user:n,subject:r}),_refreshModel(){this.get("group.model").findLogs(0,this.filterParams).then((e=>{this.set("offset",0),this.model.setProperties({logs:e.logs,all_loaded:e.all_loaded})}))},reset(){this.setProperties({offset:0,filters:u().create()})},loadMore(){this.get("model.all_loaded")||(this.set("loading",!0),this.get("group.model").findLogs(this.offset+1,this.filterParams).then((e=>{e.logs.forEach((e=>this.get("model.logs").addObject(e))),this.incrementProperty("offset"),this.set("model.all_loaded",e.all_loaded)})).finally((()=>this.set("loading",!1))))},clearFilter(e){this.set(`filters.${e}`,"")}},(0,o.Z)(s,"filterParams",[r],Object.getOwnPropertyDescriptor(s,"filterParams"),s),(0,o.Z)(s,"_refreshModel",[i],Object.getOwnPropertyDescriptor(s,"_refreshModel"),s),(0,o.Z)(s,"loadMore",[c.action],Object.getOwnPropertyDescriptor(s,"loadMore"),s),(0,o.Z)(s,"clearFilter",[c.action],Object.getOwnPropertyDescriptor(s,"clearFilter"),s),s))},97645:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(97423);const i=n.n(r)().extend({saving:null})},55189:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(57555);const c=a().extend((r=(0,l.default)("model.watching_tags.[]","model.watching_first_post_tags.[]","model.tracking_tags.[]","model.regular_tags.[]","model.muted_tags.[]"),i={selectedTags:(e,t,n,r,i)=>[].concat(e,t,n,r,i).filter((e=>e))},(0,s.Z)(i,"selectedTags",[r],Object.getOwnPropertyDescriptor(i,"selectedTags"),i),i))},72899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(57555);const c=a().extend((r=(0,l.default)("model.automatic"),i={tabs(e){const t=[{route:"group.manage.profile",title:"groups.manage.profile.title"},{route:"group.manage.interaction",title:"groups.manage.interaction.title"},{route:"group.manage.categories",title:"groups.manage.categories.title"}];return this.siteSettings.tagging_enabled&&t.push({route:"group.manage.tags",title:"groups.manage.tags.title"}),t.push({route:"group.manage.logs",title:"groups.manage.logs.title"}),e||(this.siteSettings.enable_smtp&&t.splice(2,0,{route:"group.manage.email",title:"groups.manage.email.title"}),t.splice(1,0,{route:"group.manage.membership",title:"groups.manage.membership.title"})),t}},(0,s.Z)(i,"tabs",[r],Object.getOwnPropertyDescriptor(i,"tabs"),i),i))},41200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(97423);const i=n.n(r)().extend({})},85480:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(97423);const i=n.n(r)().extend()},44343:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a,l,c=n(54001),u=n(97423),d=n.n(u),p=n(3055),h=n(38864),m=n(57555);const g=d().extend((r=(0,m.observes)("filterInput"),i=(0,m.debounce)(500),s=(0,m.observes)("order","asc","filter"),o=(0,m.default)("order","asc","filter"),a=(0,m.default)("model.requesters.[]"),l={application:(0,u.inject)(),queryParams:["order","asc","filter"],order:"",asc:null,filter:null,filterInput:null,loading:!1,get canLoadMore(){return this.get("model.requesters")?.length<this.get("model.user_count")},filterInputChanged(){this._setFilter()},_setFilter(){this.set("filter",this.filterInput)},_filtersChanged(){this.findRequesters(!0)},findRequesters(e){if(this.loading)return;const t=this.model;t&&(e||this.canLoadMore)&&(this.set("loading",!0),t.findRequesters(this.memberParams,e).finally((()=>{this.set("loading",!1)})))},memberParams:(e,t,n)=>({order:e,asc:t,filter:n}),hasRequesters:e=>e&&e.length>0,filterPlaceholder(){return this.currentUser&&this.currentUser.admin?"groups.members.filter_placeholder_admin":"groups.members.filter_placeholder"},handleRequest(e){(0,p.ajax)(`/groups/${this.get("model.id")}/handle_membership_request.json`,{data:e,type:"PUT"}).catch(h.popupAjaxError)},actions:{loadMore(){this.findRequesters()},acceptRequest(e){this.handleRequest({user_id:e.get("id"),accept:!0}),e.setProperties({request_accepted:!0,request_denied:!1})},undoAcceptRequest(e){(0,p.ajax)("/groups/"+this.get("model.id")+"/members.json",{type:"DELETE",data:{user_id:e.get("id")}}).then((()=>{e.set("request_undone",!0)}))},denyRequest(e){this.handleRequest({user_id:e.get("id")}),e.setProperties({request_accepted:!1,request_denied:!0})}}},(0,c.Z)(l,"filterInputChanged",[r],Object.getOwnPropertyDescriptor(l,"filterInputChanged"),l),(0,c.Z)(l,"_setFilter",[i],Object.getOwnPropertyDescriptor(l,"_setFilter"),l),(0,c.Z)(l,"_filtersChanged",[s],Object.getOwnPropertyDescriptor(l,"_filtersChanged"),l),(0,c.Z)(l,"memberParams",[o],Object.getOwnPropertyDescriptor(l,"memberParams"),l),(0,c.Z)(l,"hasRequesters",[a],Object.getOwnPropertyDescriptor(l,"hasRequesters"),l),(0,c.Z)(l,"filterPlaceholder",[m.default],Object.getOwnPropertyDescriptor(l,"filterPlaceholder"),l),l))},32583:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a,l,c=n(54001),u=n(97423),d=n.n(u),p=n(48163),h=n.n(p),m=n(17579),g=n(16572),f=n(87683),b=n(57555),_=n(82099);const y=h().extend({init(){this._super(...arguments),this.setProperties({route:this.route||`group.${this.name}`,message:_.default.t(`groups.${this.i18nKey||this.name}`)})}}),w=d().extend((r=(0,b.default)("showMessages","model.user_count","model.request_count","canManageGroup","model.allow_membership_requests"),i=(0,b.default)("model.has_messages","model.is_group_user","currentUser.can_send_private_messages"),s=(0,b.default)("model.displayName","model.full_name"),o=(0,b.default)("model.messageable"),a=(0,b.default)("model","model.automatic"),l={application:(0,u.inject)(),dialog:(0,m.inject)(),currentUser:(0,m.inject)(),router:(0,m.inject)(),composer:(0,m.inject)(),counts:null,showing:"members",destroying:null,showTooltip:!1,tabs(e,t,n,r,i){const s=[y.create({name:"members",route:"group.index",icon:"users",i18nKey:"members.title",count:t}),y.create({name:"activity"})];return r&&i&&s.push(y.create({name:"requests",i18nKey:"requests.title",icon:"user-plus",count:n})),e&&s.push(y.create({name:"messages",i18nKey:"messages"})),r&&s.push(y.create({name:"manage",i18nKey:"manage.title",icon:"wrench"})),s.push(y.create({name:"permissions",i18nKey:"permissions.title"})),s},showMessages(e,t){return!!this.currentUser?.can_send_private_messages&&!!e&&(t||this.currentUser&&this.currentUser.admin)},groupName:(e,t)=>(0,g.capitalize)(t||e),displayGroupMessageButton(e){return this.currentUser&&e},canManageGroup(e,t){return this.currentUser&&(this.currentUser.canManageGroup(e)||e.can_admin_group&&t)},messageGroup(){this.composer.openNewMessage({recipients:this.get("model.name"),hasGroups:!0})},destroyGroup(){this.set("destroying",!0);const e=this.model;this.dialog.deleteConfirm({title:_.default.t("admin.groups.delete_confirm",{group:e.name}),bodyComponent:f.default,bodyComponentModel:e,didConfirm:()=>{e.destroy().then((()=>this.router.transitionTo("groups.index"))).catch((e=>{console.error(e),this.dialog.alert(_.default.t("admin.groups.delete_failed"))})).finally((()=>this.set("destroying",!1)))},didCancel:()=>this.set("destroying",!1)})},toggleDeleteTooltip(){this.toggleProperty("showTooltip")}},(0,c.Z)(l,"tabs",[r],Object.getOwnPropertyDescriptor(l,"tabs"),l),(0,c.Z)(l,"showMessages",[i],Object.getOwnPropertyDescriptor(l,"showMessages"),l),(0,c.Z)(l,"groupName",[s],Object.getOwnPropertyDescriptor(l,"groupName"),l),(0,c.Z)(l,"displayGroupMessageButton",[o],Object.getOwnPropertyDescriptor(l,"displayGroupMessageButton"),l),(0,c.Z)(l,"canManageGroup",[a],Object.getOwnPropertyDescriptor(l,"canManageGroup"),l),(0,c.Z)(l,"messageGroup",[p.action],Object.getOwnPropertyDescriptor(l,"messageGroup"),l),(0,c.Z)(l,"destroyGroup",[p.action],Object.getOwnPropertyDescriptor(l,"destroyGroup"),l),(0,c.Z)(l,"toggleDeleteTooltip",[p.action],Object.getOwnPropertyDescriptor(l,"toggleDeleteTooltip"),l),l))},85878:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(48163),c=n(17579),u=n(34405),d=n(56111),p=n(57555),h=n(82099);const m=a().extend((r=(0,p.default)("groups.extras.type_filters"),i={router:(0,c.inject)(),queryParams:["order","asc","filter","type"],order:null,asc:null,filter:"",type:null,groups:null,isLoading:!1,types(e){const t=[];return e&&e.forEach((e=>t.push({id:e,name:h.default.t(`groups.index.${e}_groups`)}))),t},loadGroups(e){this.set("isLoading",!0),this.store.findAll("group",e).then((e=>{this.set("groups",e)})).finally((()=>this.set("isLoading",!1)))},onFilterChanged(e){(0,d.default)(this,this._debouncedFilter,e,u.INPUT_DELAY)},loadMore(){this.groups&&this.groups.loadMore()},new(){this.router.transitionTo("groups.new")},_debouncedFilter(e){this.set("filter",e)}},(0,s.Z)(i,"types",[r],Object.getOwnPropertyDescriptor(i,"types"),i),(0,s.Z)(i,"onFilterChanged",[l.action],Object.getOwnPropertyDescriptor(i,"onFilterChanged"),i),(0,s.Z)(i,"loadMore",[l.action],Object.getOwnPropertyDescriptor(i,"loadMore"),i),(0,s.Z)(i,"new",[l.action],Object.getOwnPropertyDescriptor(i,"new"),i),i))},44635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f,popupAutomaticMembershipAlert:()=>g});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(48163),u=n(17579),d=n(3055),p=n(38864),h=n(57555),m=n(82099);function g(e,t){if(!t)return;const n={};n.automatic_membership_email_domains=t,e&&(n.id=e),(0,d.ajax)("/admin/groups/automatic_membership_count.json",{type:"PUT",data:n}).then((e=>{const t=e.user_count;t>0&&this.dialog.alert(m.default.t("admin.groups.manage.membership.automatic_membership_user_count",{count:t}))}))}const f=l().extend((r=(0,h.default)("model.ownerUsernames"),i=(0,h.default)("model.usernames"),s={dialog:(0,u.inject)(),router:(0,u.inject)(),saving:null,splitOwnerUsernames:e=>e&&e.length?e.split(","):[],splitUsernames:e=>e&&e.length?e.split(","):[],save(){this.set("saving",!0);const e=this.model;g(e.id,e.automatic_membership_email_domains),e.create().then((()=>{this.router.transitionTo("group.members",e.name)})).catch(p.popupAjaxError).finally((()=>this.set("saving",!1)))},updateOwnerUsernames(e){this.set("model.ownerUsernames",e.join(","))},updateUsernames(e){this.set("model.usernames",e.join(","))}},(0,o.Z)(s,"splitOwnerUsernames",[r],Object.getOwnPropertyDescriptor(s,"splitOwnerUsernames"),s),(0,o.Z)(s,"splitUsernames",[i],Object.getOwnPropertyDescriptor(s,"splitUsernames"),s),(0,o.Z)(s,"save",[c.action],Object.getOwnPropertyDescriptor(s,"save"),s),(0,o.Z)(s,"updateOwnerUsernames",[c.action],Object.getOwnPropertyDescriptor(s,"updateOwnerUsernames"),s),(0,o.Z)(s,"updateUsernames",[c.action],Object.getOwnPropertyDescriptor(s,"updateUsernames"),s),s))},63466:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var r,i,s,o,a,l,c,u,d,p,h=n(54001),m=n(97423),g=n.n(m),f=n(48163),b=n.n(f),_=n(6264),y=n(33217),w=n(3055),v=n(38864),k=n(20229),x=n(62617),T=n(19086),S=n(55648),C=n(56045),P=n(48992),O=n(53456),E=n(34287),D=n(47582),I=n(57555),j=n(82099);const Z=g().extend(C.default,O.default,S.default,P.default,(r=(0,I.default)("existingUserId"),i=(0,I.default)("email"),s=(0,I.default)("emailValidation.failed","usernameValidation.failed","passwordValidation.failed","nameValidation.failed","userFieldsValidation.failed","existingUserRedeeming","existingUserCanRedeem"),o=(0,I.default)("externalAuthsEnabled","externalAuthsOnly","discourseConnectEnabled"),a=(0,I.default)("externalAuthsOnly","authOptions","emailValidation.failed","existingUserRedeeming"),l=(0,I.default)("email","rejectedEmails.[]","authOptions.email","authOptions.email_valid","hiddenEmail","emailVerifiedByLink","differentExternalEmail"),c=(0,I.default)("authOptions.associate_url","authOptions.auth_provider"),u={queryParams:["t"],invitedBy:(0,_.readOnly)("model.invited_by"),email:(0,_.alias)("model.email"),accountEmail:(0,_.alias)("email"),existingUserId:(0,_.readOnly)("model.existing_user_id"),existingUserCanRedeem:(0,_.readOnly)("model.existing_user_can_redeem"),existingUserCanRedeemError:(0,_.readOnly)("model.existing_user_can_redeem_error"),existingUserRedeeming:(0,_.bool)("existingUserId"),hiddenEmail:(0,_.alias)("model.hidden_email"),emailVerifiedByLink:(0,_.alias)("model.email_verified_by_link"),differentExternalEmail:(0,_.alias)("model.different_external_email"),accountUsername:(0,_.alias)("model.username"),passwordRequired:(0,_.not)("externalAuthsOnly"),successMessage:null,errorMessage:null,userFields:null,authOptions:null,inviteImageUrl:(0,D.default)("/images/envelope.svg"),isInviteLink:(0,_.readOnly)("model.is_invite_link"),rejectedEmails:null,maskPassword:!0,init(){this._super(...arguments),this.rejectedEmails=[]},authenticationComplete(e){const t={accountUsername:e.username,accountName:e.name,authOptions:b().create(e)};this.isInviteLink&&(t.email=e.email),this.setProperties(t)},discourseConnectEnabled(){return this.siteSettings.enable_discourse_connect},welcomeTitle(){return j.default.t("invites.welcome_to",{site_name:this.siteSettings.title})},subheaderMessage:e=>e?j.default.t("invites.existing_user_can_redeem"):j.default.t("create_account.subheader_title"),yourEmailMessage:e=>j.default.t("invites.your_email",{email:e}),externalAuthsEnabled:()=>(0,E.findAll)().length>0,externalAuthsOnly(){return!this.siteSettings.enable_local_logins&&this.externalAuthsEnabled&&!this.siteSettings.enable_discourse_connect},submitDisabled:(e,t,n,r,i,s,o)=>s?!o:e||t||n||r||i,showSocialLoginAvailable:(e,t,n)=>e&&!t&&!n,shouldDisplayForm(e,t,n,r){return(this.siteSettings.enable_local_logins||e&&t&&!n)&&!this.siteSettings.enable_discourse_connect&&!r},fullnameRequired(){return this.siteSettings.full_name_required||this.siteSettings.enable_names},emailValidation(e,t,n,r,i,s,o){if(i&&!o)return b().create({ok:!0,reason:j.default.t("user.email.ok")});if((0,y.isEmpty)(e))return b().create({failed:!0});if(t.includes(e))return b().create({failed:!0,reason:j.default.t("user.email.invalid")});if(n&&r){const t=this.authProviderDisplayName(this.get("authOptions.auth_provider"));return n===e?b().create({ok:!0,reason:j.default.t("user.email.authenticated",{provider:t})}):b().create({failed:!0,reason:j.default.t("user.email.invite_auth_email_invalid",{provider:t})})}return s?b().create({ok:!0,reason:j.default.t("user.email.authenticated_by_invite")}):(0,x.emailValid)(e)?b().create({ok:!0,reason:j.default.t("user.email.ok")}):b().create({failed:!0,reason:j.default.t("user.email.invalid")})},authProviderDisplayName(e){const t=(0,E.findAll)().find((t=>t.name===e));return t?t.get("prettyName"):e},wavingHandURL:()=>(0,T.wavingHandURL)(),ssoPath:()=>(0,D.default)("/session/sso"),disclaimerHtml(){if(this.site.tos_url&&this.site.privacy_policy_url)return j.default.t("create_account.disclaimer",{tos_link:this.site.tos_url,privacy_link:this.site.privacy_policy_url})},associateHtml(e,t){if(e)return j.default.t("create_account.associate",{associate_link:e,provider:j.default.t(`login.${t}.name`)})},togglePasswordMask(){this.toggleProperty("maskPassword")},actions:{submit(){const e=this.userFields;let t={};(0,y.isEmpty)(e)||e.forEach((function(e){t[e.get("field.id")]=e.get("value")}));const n={username:this.accountUsername,name:this.accountName,password:this.accountPassword,user_custom_fields:t,timezone:moment.tz.guess()};this.isInviteLink?n.email=this.email:n.email_token=this.t,(0,w.ajax)({url:`/invites/show/${this.get("model.token")}.json`,type:"PUT",data:n}).then((e=>{e.success?(this.set("successMessage",e.message||j.default.t("invites.success")),e.redirect_to&&k.default.redirectTo(e.redirect_to)):(e.errors&&e.errors.email&&e.errors.email.length>0&&e.values&&this.rejectedEmails.pushObject(e.values.email),e.errors&&e.errors.password&&e.errors.password.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors.password[0])),e.message&&this.set("errorMessage",e.message))})).catch((e=>{this.set("errorMessage",(0,v.extractError)(e))}))},externalLogin(e){e.doLogin({signup:!0,params:{origin:window.location.href}})}}},(0,h.Z)(u,"discourseConnectEnabled",[I.default],Object.getOwnPropertyDescriptor(u,"discourseConnectEnabled"),u),(0,h.Z)(u,"welcomeTitle",[I.default],Object.getOwnPropertyDescriptor(u,"welcomeTitle"),u),(0,h.Z)(u,"subheaderMessage",[r],Object.getOwnPropertyDescriptor(u,"subheaderMessage"),u),(0,h.Z)(u,"yourEmailMessage",[i],Object.getOwnPropertyDescriptor(u,"yourEmailMessage"),u),(0,h.Z)(u,"externalAuthsEnabled",[I.default],Object.getOwnPropertyDescriptor(u,"externalAuthsEnabled"),u),(0,h.Z)(u,"externalAuthsOnly",[I.default],Object.getOwnPropertyDescriptor(u,"externalAuthsOnly"),u),(0,h.Z)(u,"submitDisabled",[s],Object.getOwnPropertyDescriptor(u,"submitDisabled"),u),(0,h.Z)(u,"showSocialLoginAvailable",[o],Object.getOwnPropertyDescriptor(u,"showSocialLoginAvailable"),u),(0,h.Z)(u,"shouldDisplayForm",[a],Object.getOwnPropertyDescriptor(u,"shouldDisplayForm"),u),(0,h.Z)(u,"fullnameRequired",[I.default],Object.getOwnPropertyDescriptor(u,"fullnameRequired"),u),(0,h.Z)(u,"emailValidation",[l],Object.getOwnPropertyDescriptor(u,"emailValidation"),u),(0,h.Z)(u,"wavingHandURL",[I.default],(d=(d=Object.getOwnPropertyDescriptor(u,"wavingHandURL"))?d.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return d}}),u),(0,h.Z)(u,"ssoPath",[I.default],(p=(p=Object.getOwnPropertyDescriptor(u,"ssoPath"))?p.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return p}}),u),(0,h.Z)(u,"disclaimerHtml",[I.default],Object.getOwnPropertyDescriptor(u,"disclaimerHtml"),u),(0,h.Z)(u,"associateHtml",[c],Object.getOwnPropertyDescriptor(u,"associateHtml"),u),(0,h.Z)(u,"togglePasswordMask",[f.action],Object.getOwnPropertyDescriptor(u,"togglePasswordMask"),u),u))},47930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(94664),o=n(54001),a=n(97423),l=n.n(a);let c=(r=class extends(l()){constructor(){super(...arguments),(0,s.Z)(this,"application",i,this)}},i=(0,o.Z)(r.prototype,"application",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},27869:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o,a=n(54001),l=n(97423),c=n.n(l),u=n(48163),d=n(6264),p=n(3055),h=n(20229),m=n(62617),g=n(78580),f=n(56045),b=n(7223),_=n(47582),y=n(57555),w=n(82099);const v=c().extend(f.default,(r=(0,y.default)("model.security_key_required"),i=(0,y.default)(),s=(0,y.default)("redirectTo"),o={isDeveloper:(0,d.alias)("model.is_developer"),admin:(0,d.alias)("model.admin"),secondFactorRequired:(0,d.alias)("model.second_factor_required"),securityKeyRequired:(0,d.alias)("model.security_key_required"),backupEnabled:(0,d.alias)("model.backup_enabled"),securityKeyOrSecondFactorRequired:(0,d.or)("model.second_factor_required","model.security_key_required"),otherMethodAllowed:(0,d.readOnly)("model.multiple_second_factor_methods"),secondFactorMethod:e=>e?b.SECOND_FACTOR_METHODS.SECURITY_KEY:b.SECOND_FACTOR_METHODS.TOTP,passwordRequired:!0,errorMessage:null,successMessage:null,requiresApproval:!1,redirected:!1,maskPassword:!0,continueButtonText(){return w.default.t("password_reset.continue",{site_name:this.siteSettings.title})},redirectHref:e=>(0,_.default)(e||"/"),lockImageUrl:(0,_.default)("/images/lock.svg"),done(e){if(e&&(0,m.modKeysPressed)(e).length>0)return!1;e?.preventDefault(),this.set("redirected",!0),h.default.redirectTo(this.redirectTo||"/")},togglePasswordMask(){this.toggleProperty("maskPassword")},actions:{submit(){(0,p.ajax)({url:(0,h.userPath)(`password-reset/${this.get("model.token")}.json`),type:"PUT",data:{password:this.accountPassword,second_factor_token:this.securityKeyCredential||this.secondFactorToken,second_factor_method:this.secondFactorMethod,timezone:moment.tz.guess()}}).then((e=>{e.success?(this.set("successMessage",e.message),this.set("redirectTo",e.redirect_to),e.requires_approval?this.set("requiresApproval",!0):(this.set("redirected",!0),h.default.redirectTo(e.redirect_to||"/"))):(e.errors&&!e.errors.password?this.setProperties({secondFactorRequired:this.secondFactorRequired,securityKeyRequired:this.securityKeyRequired,password:null,errorMessage:e.message}):this.secondFactorRequired||this.securityKeyRequired?this.setProperties({secondFactorRequired:!1,securityKeyRequired:!1,errorMessage:null}):e.errors&&e.errors.password&&e.errors.password.length>0&&(this.rejectedPasswords.pushObject(this.accountPassword),this.rejectedPasswordsMessages.set(this.accountPassword,e.errors.password[0])),e.message&&this.set("errorMessage",e.message))})).catch((e=>{if(!e.jqXHR||429!==e.jqXHR.status)throw new Error(e);this.set("errorMessage",w.default.t("user.second_factor.rate_limit"))}))},authenticateSecurityKey(){(0,g.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,(e=>{this.set("securityKeyCredential",e),this.send("submit")}),(e=>{this.setProperties({securityKeyRequired:!0,password:null,errorMessage:e})}))}}},(0,a.Z)(o,"secondFactorMethod",[r],Object.getOwnPropertyDescriptor(o,"secondFactorMethod"),o),(0,a.Z)(o,"continueButtonText",[i],Object.getOwnPropertyDescriptor(o,"continueButtonText"),o),(0,a.Z)(o,"redirectHref",[s],Object.getOwnPropertyDescriptor(o,"redirectHref"),o),(0,a.Z)(o,"done",[u.action],Object.getOwnPropertyDescriptor(o,"done"),o),(0,a.Z)(o,"togglePasswordMask",[u.action],Object.getOwnPropertyDescriptor(o,"togglePasswordMask"),o),o))},3865:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(97423);const i=n.n(r)().extend({})},28210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r,i,s,o,a,l,c,u,d=n(54001),p=n(97423),h=n.n(p),m=n(48163),g=n.n(m),f=n(6264),b=n(51372),_=n(17579),y=n(13639),w=n(38864),v=n(63319),k=n(34811),x=n(20229),T=n(83470),S=n(34287),C=n(47582),P=n(57555),O=n(82099);const E=h().extend(T.default,(r=(0,P.default)(),i=(0,P.default)("model.filteredGroups"),s=(0,P.default)("model.associated_accounts"),o=(0,P.default)("model.associated_accounts.[]"),a=(0,P.default)("model.email","model.secondary_emails.[]","model.unconfirmed_emails.[]"),l=(0,P.default)("model.second_factor_enabled","canCheckEmails","model.is_anonymous"),c=(0,P.default)("siteSettings.max_allowed_secondary_emails","model.can_edit_email"),u={dialog:(0,_.inject)(),modal:(0,_.inject)(),user:(0,p.inject)(),canDownloadPosts:(0,f.alias)("user.viewingSelf"),init(){this._super(...arguments),this.saveAttrNames=["name","title","primary_group_id","flair_group_id","status"],this.set("revoking",{})},canEditName:(0,v.setting)("enable_names"),canSelectUserStatus:(0,v.setting)("enable_user_status"),canSaveUser:!0,newNameInput:null,newTitleInput:null,newPrimaryGroupInput:null,newStatus:null,revoking:null,cannotDeleteAccount:(0,f.not)("currentUser.can_delete_account"),deleteDisabled:(0,f.or)("model.isSaving","deleting","cannotDeleteAccount"),reset(){this.set("passwordProgress",null)},nameInstructions(){return O.default.t(this.siteSettings.full_name_required?"user.name.instructions_required":"user.name.instructions")},canSelectTitle:(0,f.gt)("model.availableTitles.length",0),canSelectFlair:(0,f.gt)("model.availableFlairs.length",0),canSelectPrimaryGroup(e){return e.length>0&&this.siteSettings.user_selected_primary_groups},associatedAccountsLoaded:e=>void 0!==e,authProviders:e=>(0,S.findAll)().map((t=>({method:t,account:e.find((e=>e.name===t.name))}))).filter((e=>e.account||e.method.can_connect)),disableConnectButtons:(0,v.propertyNotEqual)("model.id","currentUser.id"),emails(e,t,n){const r=[];return e&&r.push(g().create({email:e,primary:!0,confirmed:!0})),t&&t.forEach((e=>{r.push(g().create({email:e,confirmed:!0}))})),n&&n.forEach((e=>{r.push(g().create({email:e}))})),r.sort(((e,t)=>e.email.localeCompare(t.email)))},canUpdateAssociatedAccounts:(e,t,n)=>!(e||!t||n)&&(0,S.findAll)().length>0,canAddEmail:(e,t)=>e>0&&t,resendConfirmationEmail(e,t){t?.preventDefault(),e.set("resending",!0),this.model.addEmail(e.email).then((()=>{e.set("resent",!0)})).finally((()=>{e.set("resending",!1)}))},showUserStatusModal(e){this.modal.show(y.default,{model:{status:e,hidePauseNotifications:!0,saveAction:e=>this.set("newStatus",e),deleteAction:()=>this.set("newStatus",null)}})},actions:{save(){return this.set("saved",!1),this.model.setProperties({name:this.newNameInput,title:this.newTitleInput,primary_group_id:this.newPrimaryGroupInput,flair_group_id:this.newFlairGroupId,status:this.newStatus}),this.model.save(this.saveAttrNames).then((()=>this.set("saved",!0))).catch(w.popupAjaxError)},setPrimaryEmail(e){this.model.setPrimaryEmail(e).catch(w.popupAjaxError)},destroyEmail(e){this.model.destroyEmail(e)},delete(){this.dialog.alert({message:O.default.t("user.delete_account_confirm"),buttons:[{icon:"exclamation-triangle",label:O.default.t("user.delete_account"),class:"btn-danger",action:()=>this.model.delete().then((()=>{(0,b.next)((()=>{this.dialog.alert({message:O.default.t("user.deleted_yourself"),didConfirm:()=>x.default.redirectAbsolute((0,C.default)("/")),didCancel:()=>x.default.redirectAbsolute((0,C.default)("/"))})}))}),(()=>{(0,b.next)((()=>this.dialog.alert(O.default.t("user.delete_yourself_not_allowed")))),this.set("deleting",!1)}))},{label:O.default.t("composer.cancel")}]})},revokeAccount(e){this.set(`revoking.${e.name}`,!0),this.model.revokeAssociatedAccount(e.name).then((t=>{t.success?this.model.associated_accounts.removeObject(e):this.dialog.alert(t.message)})).catch(w.popupAjaxError).finally((()=>this.set(`revoking.${e.name}`,!1)))},connectAccount(e){e.doLogin({reconnect:!0})},exportUserArchive(){this.dialog.yesNoConfirm({message:O.default.t("user.download_archive.confirm"),didConfirm:()=>(0,k.exportUserArchive)()})}}},(0,d.Z)(u,"nameInstructions",[r],Object.getOwnPropertyDescriptor(u,"nameInstructions"),u),(0,d.Z)(u,"canSelectPrimaryGroup",[i],Object.getOwnPropertyDescriptor(u,"canSelectPrimaryGroup"),u),(0,d.Z)(u,"associatedAccountsLoaded",[s],Object.getOwnPropertyDescriptor(u,"associatedAccountsLoaded"),u),(0,d.Z)(u,"authProviders",[o],Object.getOwnPropertyDescriptor(u,"authProviders"),u),(0,d.Z)(u,"emails",[a],Object.getOwnPropertyDescriptor(u,"emails"),u),(0,d.Z)(u,"canUpdateAssociatedAccounts",[l],Object.getOwnPropertyDescriptor(u,"canUpdateAssociatedAccounts"),u),(0,d.Z)(u,"canAddEmail",[c],Object.getOwnPropertyDescriptor(u,"canAddEmail"),u),(0,d.Z)(u,"resendConfirmationEmail",[m.action],Object.getOwnPropertyDescriptor(u,"resendConfirmationEmail"),u),(0,d.Z)(u,"showUserStatusModal",[m.action],Object.getOwnPropertyDescriptor(u,"showUserStatusModal"),u),u))},16609:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o,a=n(54001),l=n(97423),c=n.n(l),u=n(6264),d=n(38864),p=n(57555);const h=c().extend((r=(0,p.default)("siteSettings.mute_all_categories_by_default"),i=(0,p.default)("model.watchedCategories","model.watchedFirstPostCategories","model.trackedCategories","model.mutedCategories","model.regularCategories","siteSettings.mute_all_categories_by_default"),s=(0,p.default)("siteSettings.remove_muted_tags_from_latest"),o={saveAttrNames:e=>["watched_category_ids","tracked_category_ids","watched_first_post_category_ids",e?"regular_category_ids":"muted_category_ids"],selectedCategories:(e,t,n,r,i,s)=>[].concat(e,t,n,s?i:r).filter(Boolean),canSee(){return this.get("currentUser.id")===this.get("model.id")},hideMutedTags(){return"never"!==this.siteSettings.remove_muted_tags_from_latest},canSave:(0,u.or)("canSee","currentUser.admin"),actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(d.popupAjaxError)}}},(0,a.Z)(o,"saveAttrNames",[r],Object.getOwnPropertyDescriptor(o,"saveAttrNames"),o),(0,a.Z)(o,"selectedCategories",[i],Object.getOwnPropertyDescriptor(o,"selectedCategories"),o),(0,a.Z)(o,"canSee",[p.default],Object.getOwnPropertyDescriptor(o,"canSee"),o),(0,a.Z)(o,"hideMutedTags",[s],Object.getOwnPropertyDescriptor(o,"hideMutedTags"),o),o))},61320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a,l=n(54001),c=n(97423),u=n.n(c),d=n(48163),p=n.n(d),h=n(6264),m=n(63319),g=n(62617),f=n(57555),b=n(82099);const _=u().extend((r=(0,f.default)("newEmail"),i=(0,f.default)("saving","new"),s=(0,f.default)("newEmail"),o=(0,f.default)("invalidEmail","oldEmail","newEmail"),a={queryParams:["new"],taken:!1,saving:!1,error:!1,success:!1,oldEmail:null,newEmail:null,successMessage:null,newEmailEmpty:(0,h.empty)("newEmail"),saveDisabled:(0,h.or)("saving","newEmailEmpty","taken","unchanged","invalidEmail"),unchanged:(0,m.propertyEqual)("newEmailLower","oldEmail"),newEmailLower:e=>e.toLowerCase().trim(),saveButtonText:(e,t)=>e?b.default.t("saving"):t?b.default.t("user.add_email.add"):b.default.t("user.change"),invalidEmail:e=>!(0,g.emailValid)(e),emailValidation(e,t,n){if(e&&(t||n))return p().create({failed:!0,reason:b.default.t("user.email.invalid")})},reset(){this.setProperties({taken:!1,saving:!1,error:!1,success:!1,newEmail:null})},actions:{saveEmail(){return this.set("saving",!0),(this.new?this.model.addEmail(this.newEmail):this.model.changeEmail(this.newEmail)).then((()=>{this.set("success",!0),this.model.staff?this.set("successMessage",b.default.t("user.change_email.success_staff")):this.currentUser.admin?this.set("successMessage",b.default.t("user.change_email.success_via_admin")):this.set("successMessage",b.default.t("user.change_email.success"))}),(e=>{this.setProperties({error:!0,saving:!1}),e.jqXHR.responseJSON&&e.jqXHR.responseJSON.errors&&e.jqXHR.responseJSON.errors[0]?this.set("errorMessage",e.jqXHR.responseJSON.errors[0]):this.set("errorMessage",b.default.t("user.change_email.error"))}))}}},(0,l.Z)(a,"newEmailLower",[r],Object.getOwnPropertyDescriptor(a,"newEmailLower"),a),(0,l.Z)(a,"saveButtonText",[i],Object.getOwnPropertyDescriptor(a,"saveButtonText"),a),(0,l.Z)(a,"invalidEmail",[s],Object.getOwnPropertyDescriptor(a,"invalidEmail"),a),(0,l.Z)(a,"emailValidation",[o],Object.getOwnPropertyDescriptor(a,"emailValidation"),a),a))},61395:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o,a=n(54001),l=n(97423),c=n.n(l),u=n(6264),d=n(38864),p=n(57555),h=n(82099);const m=c().extend((r=(0,p.default)(),i=(0,p.default)(),s=(0,p.default)(),o={subpageTitle:h.default.t("user.preferences_nav.emails"),emailMessagesLevelAway:(0,u.equal)("model.user_option.email_messages_level",1),emailLevelAway:(0,u.equal)("model.user_option.email_level",1),init(){this._super(...arguments),this.saveAttrNames=["email_level","email_messages_level","mailing_list_mode","mailing_list_mode_frequency","email_digests","email_in_reply_to","email_previous_replies","digest_after_minutes","include_tl0_in_digests"],this.previousRepliesOptions=[{name:h.default.t("user.email_previous_replies.always"),value:0},{name:h.default.t("user.email_previous_replies.unless_emailed"),value:1},{name:h.default.t("user.email_previous_replies.never"),value:2}],this.emailLevelOptions=[{name:h.default.t("user.email_level.always"),value:0},{name:h.default.t("user.email_level.only_when_away"),value:1},{name:h.default.t("user.email_level.never"),value:2}],this.digestFrequencies=[{name:h.default.t("user.email_digests.every_30_minutes"),value:30},{name:h.default.t("user.email_digests.every_hour"),value:60},{name:h.default.t("user.email_digests.daily"),value:1440},{name:h.default.t("user.email_digests.weekly"),value:10080},{name:h.default.t("user.email_digests.every_month"),value:43200},{name:h.default.t("user.email_digests.every_six_months"),value:259200}]},frequencyEstimate(){let e=this.get("model.mailing_list_posts_per_day");return!e||e<2?h.default.t("user.mailing_list_mode.few_per_day"):h.default.t("user.mailing_list_mode.many_per_day",{dailyEmailEstimate:e})},mailingListModeOptions(){return[{name:this.frequencyEstimate,value:1},{name:h.default.t("user.mailing_list_mode.individual_no_echo"),value:2}]},emailFrequencyInstructions(){return this.siteSettings.email_time_window_mins?h.default.t("user.email.frequency",{count:this.siteSettings.email_time_window_mins}):null},actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(d.popupAjaxError)}}},(0,a.Z)(o,"frequencyEstimate",[r],Object.getOwnPropertyDescriptor(o,"frequencyEstimate"),o),(0,a.Z)(o,"mailingListModeOptions",[i],Object.getOwnPropertyDescriptor(o,"mailingListModeOptions"),o),(0,a.Z)(o,"emailFrequencyInstructions",[s],Object.getOwnPropertyDescriptor(o,"emailFrequencyInstructions"),o),o))},57049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r,i,s,o,a,l,c,u,d,p,h=n(54001),m=n(97423),g=n.n(m),f=n(48163),b=n(6264),_=n(17579),y=n(49508),w=n(38864),v=n(28507),k=n(63319),x=n(87591),T=n(62617),S=n(87521),C=n(57555),P=n(82099);const O={1:"latest",2:"categories",3:"unread",4:"new",5:"top",6:"bookmarks",7:"unseen"},E=["smallest","smaller","normal","larger","largest"],D=["notifications","contextual"],I=g().extend((r=(0,C.default)("makeThemeDefault"),i=(0,C.default)(),s=(0,C.default)("userSelectableThemes"),o=(0,C.default)("themeId"),a=(0,C.default)("userSelectableThemes","userSelectableColorSchemes","themeId"),l=(0,C.default)("model.user_option.theme_ids","themeId"),c=(0,C.default)("model.user_option.text_size","textSize"),u=(0,C.default)(),d=(0,C.default)("userSelectableDarkColorSchemes"),p={session:(0,_.inject)(),currentThemeId:-1,previewingColorScheme:!1,selectedDarkColorSchemeId:null,preferencesController:(0,m.inject)("preferences"),makeColorSchemeDefault:!0,canPreviewColorScheme:(0,k.propertyEqual)("model.id","currentUser.id"),subpageTitle:P.default.t("user.preferences_nav.interface"),init(){this._super(...arguments),this.set("selectedDarkColorSchemeId",this.session.userDarkSchemeId),this.siteSettings.experimental_hot_topics&&(O[8]="hot")},saveAttrNames(e){let t=["locale","external_links_in_new_tab","dynamic_favicon","enable_quoting","enable_defer","automatically_unpin_topics","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_profile_and_presence","text_size","title_count_mode","skip_new_user_tips","seen_popups","color_scheme_id","dark_scheme_id","bookmark_auto_delete_preference"];return e&&t.push("theme_ids"),t},availableLocales(){return JSON.parse(this.siteSettings.available_locales)},defaultDarkSchemeId(){return this.siteSettings.default_dark_mode_color_scheme_id},textSizes:()=>E.map((e=>({name:P.default.t(`user.text_size.${e}`),value:e}))),homepageId:(0,f.computed)("model.user_option.homepage_id","userSelectableHome.[]",(function(){return this.model.user_option.homepage_id||this.userSelectableHome.firstObject.value})),titleCountModes:()=>D.map((e=>({name:P.default.t(`user.title_count_mode.${e}`),value:e}))),bookmarkAfterNotificationModes:()=>Object.keys(S.AUTO_DELETE_PREFERENCES).map((e=>({value:S.AUTO_DELETE_PREFERENCES[e],name:P.default.t(`bookmarks.auto_delete_preference.${e.toLowerCase()}`)}))),userSelectableThemes(){return(0,x.listThemes)(this.site)},showThemeSelector:e=>e&&e.length>1,themeIdChanged(e){return-1===this.currentThemeId?(this.set("currentThemeId",e),!1):this.currentThemeId!==e},userSelectableColorSchemes(){return(0,v.listColorSchemes)(this.site)},showColorSchemeSelector:(0,b.reads)("userSelectableColorSchemes.length"),selectedColorSchemeNoneLabel:P.default.t("user.color_schemes.default_description"),currentSchemeCanBeSelected(e,t,n){if(!e||!n)return!1;const r=e.findBy("id",n);return!!r&&t.findBy("id",r.color_scheme_id)},showColorSchemeNoneItem:(0,b.not)("currentSchemeCanBeSelected"),showThemeSetDefault:(e,t)=>!e||e[0]!==t,showTextSetDefault:(e,t)=>e!==t,homeChanged(){const e=this.siteSettings.top_menu.split("|")[0].split(",")[0],t=O[this.get("model.user_option.homepage_id")];(0,T.setDefaultHomepage)(t||e)},userSelectableHome(){let e={};Object.keys(O).forEach((t=>{const n=O[t];e[n]=t}));let t=[];return this.siteSettings.top_menu.split("|").forEach((n=>{let r=e[n];r&&t.push({name:P.default.t(`filters.${n}.title`),value:Number(r)})})),t},showDarkModeToggle(){return this.defaultDarkSchemeId>0&&!this.showDarkColorSchemeSelector},userSelectableDarkColorSchemes(){return(0,v.listColorSchemes)(this.site,{darkOnly:!0})},showDarkColorSchemeSelector(e){const t=this.defaultDarkSchemeId>0?2:1;return e&&e.length>t},enableDarkMode:(0,f.computed)({set:(e,t)=>t,get(){return-1!==this.get("model.user_option.dark_scheme_id")}}),selectedColorSchemeId:(0,f.computed)({set:(e,t)=>t,get(){if(!this.session.userColorSchemeId)return;const e=this.userSelectableThemes?.findBy("id",this.themeId);return e?.color_scheme_id!==this.session.userColorSchemeId||this.userSelectableColorSchemes.findBy("id",this.session.userColorSchemeId)?this.session.userColorSchemeId:void 0}}),actions:{save(){this.set("saved",!1);const e=this.makeThemeDefault;e&&this.set("model.user_option.theme_ids",[this.themeId]);const t=this.makeTextSizeDefault;return t&&this.set("model.user_option.text_size",this.textSize),this.showColorSchemeSelector?this.makeColorSchemeDefault&&this.set("model.user_option.color_scheme_id",this.selectedColorSchemeId):this.set("model.user_option.color_scheme_id",null),this.showDarkModeToggle?this.set("model.user_option.dark_scheme_id",this.enableDarkMode?null:-1):this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?this.set("model.user_option.dark_scheme_id",null):this.set("model.user_option.dark_scheme_id",this.selectedDarkColorSchemeId),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0),e?(0,x.setLocalTheme)([]):(0,x.setLocalTheme)([this.themeId],this.get("model.user_option.theme_key_seq")),t?this.model.updateTextSizeCookie(null):this.model.updateTextSizeCookie(this.textSize),this.makeColorSchemeDefault?((0,v.updateColorSchemeCookie)(null),(0,v.updateColorSchemeCookie)(null,{dark:!0})):((0,v.updateColorSchemeCookie)(this.selectedColorSchemeId),this.defaultDarkSchemeId>0&&this.selectedDarkColorSchemeId===this.defaultDarkSchemeId?(0,v.updateColorSchemeCookie)(null,{dark:!0}):(0,v.updateColorSchemeCookie)(this.selectedDarkColorSchemeId,{dark:!0})),this.homeChanged(),this.themeId&&this.themeId!==this.currentThemeId&&(0,y.reload)()})).catch(w.popupAjaxError)},selectTextSize(e){const t=document.documentElement.classList;E.forEach((n=>{const r=`text-size-${n}`;e===n?t.add(r):t.remove(r)})),this.session.requiresRefresh=!0,this.set("textSize",e)},loadColorScheme(e){if(this.setProperties({selectedColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme){if(e<0){const t=this.userSelectableThemes.findBy("id",this.themeId);t&&t.color_scheme_id&&(e=t.color_scheme_id)}(0,v.loadColorSchemeStylesheet)(e,this.themeId),-1===this.selectedDarkColorSchemeId&&(0,v.loadColorSchemeStylesheet)(e,this.themeId,!0)}},loadDarkColorScheme(e){this.setProperties({selectedDarkColorSchemeId:e,previewingColorScheme:this.canPreviewColorScheme}),this.canPreviewColorScheme&&(-1===e?((0,v.loadColorSchemeStylesheet)(this.selectedColorSchemeId,this.themeId,!0),this.session.set("darkModeAvailable",!1)):((0,v.loadColorSchemeStylesheet)(e,this.themeId,!0),this.session.set("darkModeAvailable",!0)))},undoColorSchemePreview(){this.setProperties({selectedColorSchemeId:this.session.userColorSchemeId,selectedDarkColorSchemeId:this.session.userDarkSchemeId,previewingColorScheme:!1});const e=document.querySelector("link#cs-preview-dark"),t=document.querySelector("link#cs-preview-light");e&&e.remove(),t&&t.remove()},resetSeenUserTips(){return this.model.set("user_option.skip_new_user_tips",!1),this.model.set("user_option.seen_popups",null),this.model.save(["skip_new_user_tips","seen_popups"])}}},(0,h.Z)(p,"saveAttrNames",[r],Object.getOwnPropertyDescriptor(p,"saveAttrNames"),p),(0,h.Z)(p,"availableLocales",[i],Object.getOwnPropertyDescriptor(p,"availableLocales"),p),(0,h.Z)(p,"defaultDarkSchemeId",[C.default],Object.getOwnPropertyDescriptor(p,"defaultDarkSchemeId"),p),(0,h.Z)(p,"textSizes",[C.default],Object.getOwnPropertyDescriptor(p,"textSizes"),p),(0,h.Z)(p,"titleCountModes",[C.default],Object.getOwnPropertyDescriptor(p,"titleCountModes"),p),(0,h.Z)(p,"bookmarkAfterNotificationModes",[C.default],Object.getOwnPropertyDescriptor(p,"bookmarkAfterNotificationModes"),p),(0,h.Z)(p,"userSelectableThemes",[C.default],Object.getOwnPropertyDescriptor(p,"userSelectableThemes"),p),(0,h.Z)(p,"showThemeSelector",[s],Object.getOwnPropertyDescriptor(p,"showThemeSelector"),p),(0,h.Z)(p,"themeIdChanged",[o],Object.getOwnPropertyDescriptor(p,"themeIdChanged"),p),(0,h.Z)(p,"userSelectableColorSchemes",[C.default],Object.getOwnPropertyDescriptor(p,"userSelectableColorSchemes"),p),(0,h.Z)(p,"currentSchemeCanBeSelected",[a],Object.getOwnPropertyDescriptor(p,"currentSchemeCanBeSelected"),p),(0,h.Z)(p,"showThemeSetDefault",[l],Object.getOwnPropertyDescriptor(p,"showThemeSetDefault"),p),(0,h.Z)(p,"showTextSetDefault",[c],Object.getOwnPropertyDescriptor(p,"showTextSetDefault"),p),(0,h.Z)(p,"userSelectableHome",[u],Object.getOwnPropertyDescriptor(p,"userSelectableHome"),p),(0,h.Z)(p,"showDarkModeToggle",[C.default],Object.getOwnPropertyDescriptor(p,"showDarkModeToggle"),p),(0,h.Z)(p,"userSelectableDarkColorSchemes",[C.default],Object.getOwnPropertyDescriptor(p,"userSelectableDarkColorSchemes"),p),(0,h.Z)(p,"showDarkColorSchemeSelector",[d],Object.getOwnPropertyDescriptor(p,"showDarkColorSchemeSelector"),p),p))},93963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(94664),o=n(49246),a=n(54001),l=n(23183),c=n(97423),u=n.n(c),d=n(48163),p=n(38864),h=n(82099);let m=(r=class extends(u()){constructor(){super(...arguments),(0,s.Z)(this,"saved",i,this),(0,o.Z)(this,"subpageTitle",h.default.t("user.preferences_nav.navigation_menu")),(0,o.Z)(this,"saveAttrNames",["sidebar_link_to_filtered_list","sidebar_show_count_of_new_items"])}save(){const e=this.model.sidebarLinkToFilteredList,t=this.model.sidebarShowCountOfNewItems;this.model.set("user_option.sidebar_link_to_filtered_list",this.newSidebarLinkToFilteredList),this.model.set("user_option.sidebar_show_count_of_new_items",this.newSidebarShowCountOfNewItems),this.model.save(this.saveAttrNames).then((()=>{this.saved=!0})).catch((n=>{this.model.set("user_option.sidebar_link_to_filtered_list",e),this.model.set("user_option.sidebar_show_count_of_new_items",t),(0,p.popupAjaxError)(n)}))}},i=(0,a.Z)(r.prototype,"saved",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,a.Z)(r.prototype,"save",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"save"),r.prototype),r)},46735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(97423),i=n.n(r),s=n(38864),o=n(82099);const a=i().extend({subpageTitle:o.default.t("user.preferences_nav.notifications"),init(){this._super(...arguments),this.saveAttrNames=["muted_usernames","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","allow_private_messages","enable_allowed_pm_users","user_notification_schedule"],this.likeNotificationFrequencies=[{name:o.default.t("user.like_notification_frequency.always"),value:0},{name:o.default.t("user.like_notification_frequency.first_time_and_daily"),value:1},{name:o.default.t("user.like_notification_frequency.first_time"),value:2},{name:o.default.t("user.like_notification_frequency.never"),value:3}]},actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(s.popupAjaxError)}}})},95590:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(48163),u=n.n(c),d=n(6264),p=n(17579),h=n(33217),m=n(47639),g=n(3055),f=n(38864),b=n(35193),_=n(57555),y=n(82099);const w=l().extend((r=(0,_.default)("model.user_fields.@each.value"),i=(0,_.default)("model.user_option.default_calendar"),s={dialog:(0,p.inject)(),modal:(0,p.inject)(),subpageTitle:y.default.t("user.preferences_nav.profile"),init(){this._super(...arguments),this.saveAttrNames=["bio_raw","website","location","custom_fields","user_fields","profile_background_upload_url","card_background_upload_url","date_of_birth","timezone","default_calendar"],this.calendarOptions=[{name:y.default.t("download_calendar.google"),value:"google"},{name:y.default.t("download_calendar.ics"),value:"ics"}]},userFields(){let e=this.site.user_fields;if(!(0,h.isEmpty)(e))return this.currentUser.staff||(e=e.filterBy("editable",!0)),e.sortBy("position").map((e=>{const t=this.model.user_fields?.[e.id.toString()];return u().create({field:e,value:t})}))},canChangeDefaultCalendar:e=>"none_selected"!==e,canChangeBio:(0,d.readOnly)("model.can_change_bio"),canChangeLocation:(0,d.readOnly)("model.can_change_location"),canChangeWebsite:(0,d.readOnly)("model.can_change_website"),canUploadProfileHeader:(0,d.readOnly)("model.can_upload_profile_header"),canUploadUserCardBackground:(0,d.readOnly)("model.can_upload_user_card_background"),async showFeaturedTopicModal(){await this.modal.show(m.default,{model:{user:this.model,setFeaturedTopic:e=>this.set("model.featured_topic",e)}}),document.querySelector(".feature-topic-on-profile-btn")?.focus()},actions:{clearFeaturedTopicFromProfile(){this.dialog.yesNoConfirm({message:y.default.t("user.feature_topic_on_profile.clear.warning"),didConfirm:()=>(0,g.ajax)(`/u/${this.model.username}/clear-featured-topic`,{type:"PUT"}).then((()=>{this.model.set("featured_topic",null)})).catch(f.popupAjaxError)})},useCurrentTimezone(){this.model.set("user_option.timezone",moment.tz.guess())},_updateUserFields(){const e=this.model,t=this.userFields;if(!(0,h.isEmpty)(t)){const n=e.get("user_fields");(0,h.isEmpty)(n)||t.forEach((function(e){const t=e.get("value");n[e.get("field.id").toString()]=(0,h.isEmpty)(t)?null:t}))}},save(){this.set("saved",!1);const e=this.model;return this.send("_updateUserFields"),e.save(this.saveAttrNames).then((()=>{(0,b.cook)(e.get("bio_raw")).then((()=>{e.set("bio_cooked"),this.set("saved",!0)})).catch(f.popupAjaxError)})).catch(f.popupAjaxError)}}},(0,o.Z)(s,"userFields",[r],Object.getOwnPropertyDescriptor(s,"userFields"),s),(0,o.Z)(s,"canChangeDefaultCalendar",[i],Object.getOwnPropertyDescriptor(s,"canChangeDefaultCalendar"),s),(0,o.Z)(s,"showFeaturedTopicModal",[c.action],Object.getOwnPropertyDescriptor(s,"showFeaturedTopicModal"),s),s))},27222:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(48163),u=n(6264),d=n(17579),p=n(94549),h=n(82100),m=n(3764),g=n(55215),f=n(80147),b=n(73012),_=n(54106),y=n(38864),w=n(20229),v=n(83470),k=n(34287),x=n(7223),T=n(57555),S=n(82099);const C=l().extend(v.default,(r=(0,T.default)("currentUser"),i=(0,T.default)("totps","security_keys"),s={dialog:(0,d.inject)(),modal:(0,d.inject)(),loading:!1,dirty:!1,errorMessage:null,newUsername:null,backupEnabled:(0,u.alias)("model.second_factor_backup_enabled"),secondFactorMethod:x.SECOND_FACTOR_METHODS.TOTP,totps:[],security_keys:[],init(){this._super(...arguments)},displayOAuthWarning:()=>(0,k.findAll)().length>0,showEnforcedNotice:e=>e&&e.enforcedSecondFactor,hasSecondFactors:(e,t)=>e.length>0||t.length>0,async createToTpModal(){try{await this.modal.show(g.default,{model:{secondFactor:this.model,enforcedSecondFactor:this.currentUser.enforcedSecondFactor,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()}catch(e){(0,y.popupAjaxError)(e)}},async createSecurityKeyModal(){try{await this.modal.show(m.default,{model:{secondFactor:this.model,enforcedSecondFactor:this.currentUser.enforcedSecondFactor,markDirty:this.markDirty,onError:this.handleError}}),this.loadSecondFactors()}catch(e){(0,y.popupAjaxError)(e)}},handleError(e){if(e.jqXHR&&(e=e.jqXHR),"invalid_access"===e.responseJSON.error_type){const e=this.model.username.toLowerCase();w.default.redirectTo((0,w.userPath)(`${e}/preferences/second-factor`))}else(0,y.popupAjaxError)(e)},setBackupEnabled(e){this.set("backupEnabled",e)},setCodesRemaining(e){this.model.set("second_factor_remaining_backup_codes",e)},loadSecondFactors(){!1!==this.dirty&&(this.set("loading",!0),this.model.loadSecondFactorCodes().then((e=>{e.error?this.set("errorMessage",e.error):this.setProperties({errorMessage:null,totps:e.totps,security_keys:e.security_keys,dirty:!1})})).catch((e=>this.handleError(e))).finally((()=>this.set("loading",!1))))},markDirty(){this.set("dirty",!0)},async createTotp(){try{(await this.model.trustedSession()).success?await this.createToTpModal():this.dialog.dialog({title:S.default.t("user.confirm_access.title"),type:"notice",bodyComponent:p.default,didConfirm:()=>this.createToTpModal()})}catch(e){(0,y.popupAjaxError)(e)}},async createSecurityKey(){try{(await this.model.trustedSession()).success?await this.createSecurityKeyModal():this.dialog.dialog({title:S.default.t("user.confirm_access.title"),type:"notice",bodyComponent:p.default,didConfirm:()=>this.createSecurityKeyModal()})}catch(e){(0,y.popupAjaxError)(e)}},actions:{disableAllSecondFactors(){this.loading||this.dialog.deleteConfirm({title:S.default.t("user.second_factor.disable_confirm"),bodyComponent:h.default,bodyComponentModel:{totps:this.totps,security_keys:this.security_keys},confirmButtonLabel:"user.second_factor.disable",confirmButtonDisabled:!0,confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.model.disableAllSecondFactors().then((()=>{const e=this.model.username.toLowerCase();w.default.redirectTo((0,w.userPath)(`${e}/preferences`))})).catch((e=>this.handleError(e))).finally((()=>this.set("loading",!1)))}})},disableSingleSecondFactor(e){1!==this.totps.concat(this.security_keys).length?this.dialog.deleteConfirm({title:S.default.t("user.second_factor.delete_single_confirm_title"),message:S.default.t("user.second_factor.delete_single_confirm_message",{name:e.name}),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.totps.includes(e)&&this.currentUser.updateSecondFactor(e.id,e.name,!0,e.method).then((t=>{t.error||(this.markDirty(),this.set("totps",this.totps.filter((t=>t.id!==e.id||t.method!==e.method))))})).catch((e=>this.handleError(e))).finally((()=>{this.set("loading",!1)})),this.security_keys.includes(e)&&this.currentUser.updateSecurityKey(e.id,e.name,!0).then((t=>{t.error||(this.markDirty(),this.set("security_keys",this.security_keys.filter((t=>t.id!==e.id))))})).catch((e=>this.handleError(e))).finally((()=>{this.set("loading",!1)}))}}):this.send("disableAllSecondFactors")},disableSecondFactorBackup(){this.dialog.deleteConfirm({title:S.default.t("user.second_factor.delete_backup_codes_confirm_title"),message:S.default.t("user.second_factor.delete_backup_codes_confirm_message"),confirmButtonLabel:"user.second_factor.delete",confirmButtonIcon:"ban",cancelButtonClass:"btn-flat",didConfirm:()=>{this.set("backupCodes",[]),this.set("loading",!0),this.model.updateSecondFactor(0,"",!0,x.SECOND_FACTOR_METHODS.BACKUP_CODE).then((e=>{e.error?this.set("errorMessage",e.error):(this.set("errorMessage",null),this.model.set("second_factor_backup_enabled",!1),this.markDirty(),this.send("closeModal"))})).catch((e=>{this.send("closeModal"),this.onError(e)})).finally((()=>this.set("loading",!1)))}})},async editSecurityKey(e){await this.modal.show(_.default,{model:{securityKey:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()},async editSecondFactor(e){await this.modal.show(b.default,{model:{secondFactor:e,user:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e)}}),this.loadSecondFactors()},async editSecondFactorBackup(){await this.modal.show(f.default,{model:{secondFactor:this.model,markDirty:()=>this.markDirty(),onError:e=>this.handleError(e),setBackupEnabled:e=>this.setBackupEnabled(e),setCodesRemaining:e=>this.setCodesRemaining(e)}})}}},(0,o.Z)(s,"displayOAuthWarning",[T.default],Object.getOwnPropertyDescriptor(s,"displayOAuthWarning"),s),(0,o.Z)(s,"showEnforcedNotice",[r],Object.getOwnPropertyDescriptor(s,"showEnforcedNotice"),s),(0,o.Z)(s,"hasSecondFactors",[i],Object.getOwnPropertyDescriptor(s,"hasSecondFactors"),s),(0,o.Z)(s,"handleError",[c.action],Object.getOwnPropertyDescriptor(s,"handleError"),s),(0,o.Z)(s,"setBackupEnabled",[c.action],Object.getOwnPropertyDescriptor(s,"setBackupEnabled"),s),(0,o.Z)(s,"setCodesRemaining",[c.action],Object.getOwnPropertyDescriptor(s,"setCodesRemaining"),s),(0,o.Z)(s,"loadSecondFactors",[c.action],Object.getOwnPropertyDescriptor(s,"loadSecondFactors"),s),(0,o.Z)(s,"markDirty",[c.action],Object.getOwnPropertyDescriptor(s,"markDirty"),s),(0,o.Z)(s,"createTotp",[c.action],Object.getOwnPropertyDescriptor(s,"createTotp"),s),(0,o.Z)(s,"createSecurityKey",[c.action],Object.getOwnPropertyDescriptor(s,"createSecurityKey"),s),s))},61142:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(48163),u=n(6264),d=n(17579),p=n(94549),h=n(86457),m=n(3055),g=n(38864),f=n(28560),b=n(20229),_=n(78580),y=n(83470),w=n(57555),v=n(82099);const k=l().extend(y.default,(r=(0,w.default)("model.is_anonymous"),i=(0,w.default)("showAllAuthTokens","model.user_auth_tokens"),s={modal:(0,d.inject)(),dialog:(0,d.inject)(),router:(0,d.inject)(),passwordProgress:null,subpageTitle:v.default.t("user.preferences_nav.security"),showAllAuthTokens:!1,get canUsePasskeys(){return!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins&&this.siteSettings.enable_passkeys&&(0,_.isWebauthnSupported)()},canChangePassword(e){return!e&&!this.siteSettings.enable_discourse_connect&&this.siteSettings.enable_local_logins},authTokens:(e,t)=>(t.sort(((e,t)=>e.is_active?-1:t.is_active?1:t.seen_at.localeCompare(e.seen_at))),e?t:t.slice(0,2)),canShowAllAuthTokens:(0,u.gt)("model.user_auth_tokens.length",2),changePassword(e){if(e?.preventDefault(),!this.passwordProgress)return this.set("passwordProgress",v.default.t("user.change_password.in_progress")),this.model.changePassword().then((()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:v.default.t("user.change_password.success")})})).catch((()=>{this.setProperties({changePasswordProgress:!1,passwordProgress:v.default.t("user.change_password.error")})}))},toggleShowAllAuthTokens(e){e?.preventDefault(),this.toggleProperty("showAllAuthTokens")},revokeAuthToken(e,t){t?.preventDefault(),(0,m.ajax)((0,b.userPath)(`${this.get("model.username_lower")}/preferences/revoke-auth-token`),{type:"POST",data:e?{token_id:e.id}:{}}).then((()=>{e||(0,f.default)()})).catch(g.popupAjaxError)},async manage2FA(){try{(await this.model.trustedSession()).success?await this.router.transitionTo("preferences.second-factor"):this.dialog.dialog({title:v.default.t("user.confirm_access.title"),type:"notice",bodyComponent:p.default,didConfirm:()=>this.router.transitionTo("preferences.second-factor")})}catch(e){(0,g.popupAjaxError)(e)}},actions:{save(){return this.set("saved",!1),this.model.then((()=>this.set("saved",!0))).catch(g.popupAjaxError)},showToken(e){this.modal.show(h.default,{model:e})}}},(0,o.Z)(s,"canChangePassword",[r],Object.getOwnPropertyDescriptor(s,"canChangePassword"),s),(0,o.Z)(s,"authTokens",[i],Object.getOwnPropertyDescriptor(s,"authTokens"),s),(0,o.Z)(s,"changePassword",[c.action],Object.getOwnPropertyDescriptor(s,"changePassword"),s),(0,o.Z)(s,"toggleShowAllAuthTokens",[c.action],Object.getOwnPropertyDescriptor(s,"toggleShowAllAuthTokens"),s),(0,o.Z)(s,"revokeAuthToken",[c.action],Object.getOwnPropertyDescriptor(s,"revokeAuthToken"),s),(0,o.Z)(s,"manage2FA",[c.action],Object.getOwnPropertyDescriptor(s,"manage2FA"),s),s))},28256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(38864),c=n(57555);const u=a().extend((r=(0,c.default)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]"),i={init(){this._super(...arguments),this.saveAttrNames=["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"]},selectedTags:(e,t,n,r)=>[].concat(e,t,n,r).filter((e=>e)),actions:{save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>{this.set("saved",!0)})).catch(l.popupAjaxError)}}},(0,s.Z)(i,"selectedTags",[r],Object.getOwnPropertyDescriptor(i,"selectedTags"),i),i))},79953:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(49246),m=n(54001),g=n(23183),f=n(97423),b=n.n(f),_=n(48163),y=n(17579),w=n(38864),v=n(35814),k=n(82099);let x=(r=(0,_.computed)("model.watched_tags.[]","model.watching_first_post_tags.[]","model.tracked_tags.[]","model.muted_tags.[]"),i=(0,_.computed)("model.watchedCategories","model.mutedCategories","model.watched_tags.[]","model.muted_tags.[]"),s=(0,_.computed)("model.watchedCategories","model.watchedFirstPostCategories","model.trackedCategories","model.mutedCategories","model.regularCategories","siteSettings.mute_all_categories_by_default"),o=(0,_.computed)("siteSettings.remove_muted_tags_from_latest"),a=(0,_.computed)("siteSettings.tagging_enabled","siteSettings.mute_all_categories_by_default"),l=class extends(b()){constructor(){super(...arguments),(0,p.Z)(this,"currentUser",c,this),(0,p.Z)(this,"siteSettings",u,this),(0,p.Z)(this,"saved",d,this),(0,h.Z)(this,"likeNotificationFrequencies",[{name:k.default.t("user.like_notification_frequency.always"),value:0},{name:k.default.t("user.like_notification_frequency.first_time_and_daily"),value:1},{name:k.default.t("user.like_notification_frequency.first_time"),value:2},{name:k.default.t("user.like_notification_frequency.never"),value:3}]),(0,h.Z)(this,"autoTrackDurations",[{name:k.default.t("user.auto_track_options.never"),value:-1},{name:k.default.t("user.auto_track_options.immediately"),value:0},{name:k.default.t("user.auto_track_options.after_30_seconds"),value:3e4},{name:k.default.t("user.auto_track_options.after_1_minute"),value:6e4},{name:k.default.t("user.auto_track_options.after_2_minutes"),value:12e4},{name:k.default.t("user.auto_track_options.after_3_minutes"),value:18e4},{name:k.default.t("user.auto_track_options.after_4_minutes"),value:24e4},{name:k.default.t("user.auto_track_options.after_5_minutes"),value:3e5},{name:k.default.t("user.auto_track_options.after_10_minutes"),value:6e5}]),(0,h.Z)(this,"notificationLevelsForReplying",[{name:k.default.t("topic.notifications.watching.title"),value:v.NotificationLevels.WATCHING},{name:k.default.t("topic.notifications.tracking.title"),value:v.NotificationLevels.TRACKING},{name:k.default.t("topic.notifications.regular.title"),value:v.NotificationLevels.REGULAR}]),(0,h.Z)(this,"considerNewTopicOptions",[{name:k.default.t("user.new_topic_duration.not_viewed"),value:-1},{name:k.default.t("user.new_topic_duration.after_1_day"),value:1440},{name:k.default.t("user.new_topic_duration.after_2_days"),value:2880},{name:k.default.t("user.new_topic_duration.after_1_week"),value:10080},{name:k.default.t("user.new_topic_duration.after_2_weeks"),value:20160},{name:k.default.t("user.new_topic_duration.last_here"),value:-2}])}get canSee(){return this.currentUser.id===this.model.id}get selectedTags(){return[].concat(this.model.watched_tags,this.model.watching_first_post_tags,this.model.tracked_tags,this.model.muted_tags).filter((e=>e))}get showMutePrecedenceSetting(){const e=this.model.watchedCategories?.length>0&&this.model.muted_tags?.length>0||this.model.watched_tags?.length>0&&this.model.mutedCategories?.length>0;return e&&null===this.model.user_option.watched_precedence_over_muted&&(this.model.user_option.watched_precedence_over_muted=this.siteSettings.watched_precedence_over_muted),e}get selectedCategories(){return[].concat(this.model.watchedCategories,this.model.watchedFirstPostCategories,this.model.trackedCategories,this.siteSettings.mute_all_categories_by_default?this.model.regularCategories:this.model.mutedCategories).filter(Boolean)}get hideMutedTags(){return"never"!==this.siteSettings.remove_muted_tags_from_latest}get canSave(){return this.canSee||this.currentUser.admin}get saveAttrNames(){const e=["new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying",this.siteSettings.mute_all_categories_by_default?"regular_category_ids":"muted_category_ids","watched_category_ids","tracked_category_ids","watched_first_post_category_ids","watched_precedence_over_muted"];return this.siteSettings.tagging_enabled&&e.push("muted_tags","tracked_tags","watched_tags","watching_first_post_tags"),e}save(){return this.saved=!1,this.model.save(this.saveAttrNames).then((()=>{this.saved=!0})).catch(w.popupAjaxError)}},c=(0,m.Z)(l.prototype,"currentUser",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.Z)(l.prototype,"siteSettings",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,m.Z)(l.prototype,"saved",[g.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,m.Z)(l.prototype,"selectedTags",[r],Object.getOwnPropertyDescriptor(l.prototype,"selectedTags"),l.prototype),(0,m.Z)(l.prototype,"showMutePrecedenceSetting",[i],Object.getOwnPropertyDescriptor(l.prototype,"showMutePrecedenceSetting"),l.prototype),(0,m.Z)(l.prototype,"selectedCategories",[s],Object.getOwnPropertyDescriptor(l.prototype,"selectedCategories"),l.prototype),(0,m.Z)(l.prototype,"hideMutedTags",[o],Object.getOwnPropertyDescriptor(l.prototype,"hideMutedTags"),l.prototype),(0,m.Z)(l.prototype,"saveAttrNames",[a],Object.getOwnPropertyDescriptor(l.prototype,"saveAttrNames"),l.prototype),(0,m.Z)(l.prototype,"save",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"save"),l.prototype),l)},64873:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a=n(54001),l=n(97423),c=n.n(l),u=n(48163),d=n(6264),p=n(38864),h=n(61369),m=n(57555);const g=c().extend((r=(0,m.default)("model.trust_level","model.groups"),i=(0,m.default)("userCanIgnore","model.staff"),s=(0,m.default)("model.user_option.allow_private_messages"),o={ignoredUsernames:(0,d.alias)("model.ignored_usernames"),userCanIgnore(e){return e>=this.siteSettings.min_trust_level_to_allow_ignore||this.currentUser.isInAnyGroups(this.siteSettings.ignore_allowed_groups)},ignoredEnabled(e,t){return this.currentUser.staff||e||t},allowPmUsersEnabled:(0,d.and)("model.user_option.enable_allowed_pm_users","model.user_option.allow_private_messages"),mutedUsernames:(0,u.computed)("model.muted_usernames",{get(){let e=this.model.muted_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,h.makeArray)(e).uniq()}}),allowedPmUsernames:(0,u.computed)("model.allowed_pm_usernames",{get(){let e=this.model.allowed_pm_usernames;return"string"==typeof e&&(e=e.split(",").filter(Boolean)),(0,h.makeArray)(e).uniq()}}),init(){this._super(...arguments),this.saveAttrNames=["allow_private_messages","muted_usernames","allowed_pm_usernames","enable_allowed_pm_users"]},onChangeMutedUsernames(e){this.model.set("muted_usernames",e.uniq().join(","))},onChangeAllowedPmUsernames(e){this.model.set("allowed_pm_usernames",e.uniq().join(","))},disableAllowPmUsersSetting:e=>!e,save(){return this.set("saved",!1),this.model.save(this.saveAttrNames).then((()=>this.set("saved",!0))).catch(p.popupAjaxError)}},(0,a.Z)(o,"userCanIgnore",[r],Object.getOwnPropertyDescriptor(o,"userCanIgnore"),o),(0,a.Z)(o,"ignoredEnabled",[i],Object.getOwnPropertyDescriptor(o,"ignoredEnabled"),o),(0,a.Z)(o,"onChangeMutedUsernames",[u.action],Object.getOwnPropertyDescriptor(o,"onChangeMutedUsernames"),o),(0,a.Z)(o,"onChangeAllowedPmUsernames",[u.action],Object.getOwnPropertyDescriptor(o,"onChangeAllowedPmUsernames"),o),(0,a.Z)(o,"disableAllowPmUsersSetting",[s],Object.getOwnPropertyDescriptor(o,"disableAllowPmUsersSetting"),o),(0,a.Z)(o,"save",[u.action],Object.getOwnPropertyDescriptor(o,"save"),o),o))},84784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(51372),u=n(16572),d=n(33217),p=n(57555),h=n(82099);const m=l().extend((r=(0,p.default)("reviewableTypes"),i=(0,p.default)("filtersExpanded"),s={queryParams:["priority","type","status","category_id","topic_id","username","reviewed_by","from_date","to_date","sort_order","additional_filters"],type:null,status:"pending",priority:"low",category_id:null,reviewables:null,topic_id:null,filtersExpanded:!1,username:"",reviewed_by:"",from_date:null,to_date:null,sort_order:null,additional_filters:null,init(){this._super(...arguments),this.set("priority",this.siteSettings.reviewable_default_visibility),this.set("filtersExpanded",!this.site.mobileView)},allTypes(){return(this.reviewableTypes||[]).map((e=>{const t=(0,u.underscore)(e).replace(/[^\w]+/g,"_");return{id:e,name:h.default.t(`review.types.${t}.title`)}}))},priorities:()=>["any","low","medium","high"].map((e=>({id:e,name:h.default.t(`review.filters.priority.${e}`)}))),sortOrders:()=>["score","score_asc","created_at","created_at_asc"].map((e=>({id:e,name:h.default.t(`review.filters.orders.${e}`)}))),statuses:()=>["pending","approved","rejected","deleted","ignored","reviewed","all"].map((e=>({id:e,name:h.default.t(`review.statuses.${e}.title`)}))),toggleFiltersIcon:e=>e?"chevron-up":"chevron-down",setRange(e){this.setProperties(e)},refreshModel(){(0,c.next)((()=>this.send("refreshRoute")))},actions:{remove(e){if(!e)return;let t=this.reviewables.reject((t=>e.includes(t.id)));0===t.length?this.refreshModel():this.reviewables.setObjects(t)},resetTopic(){this.set("topic_id",null),this.refreshModel()},refresh(){const e=this.status,t=this.filterStatus,n=this.sort_order;let r=this.filterSortOrder;const i=["reviewed","all"],s=["approved","rejected","deleted","ignored","pending"];i.includes(e)&&"created_at"===n&&s.includes(t)&&"created_at"===r&&(r="score"),s.includes(e)&&"score"===n&&i.includes(t)&&"score"===r&&(r="created_at"),this.setProperties({type:this.filterType,priority:this.filterPriority,status:this.filterStatus,category_id:this.filterCategoryId,username:this.filterUsername,reviewed_by:this.filterReviewedBy,from_date:(0,d.isPresent)(this.filterFromDate)?this.filterFromDate.toISOString(!0).split("T")[0]:null,to_date:(0,d.isPresent)(this.filterToDate)?this.filterToDate.toISOString(!0).split("T")[0]:null,sort_order:r,additional_filters:JSON.stringify(this.additionalFilters)}),this.refreshModel()},loadMore(){return this.reviewables.loadMore()},toggleFilters(){this.toggleProperty("filtersExpanded")},updateFilterReviewedBy(e){this.set("filterReviewedBy",e.firstObject)},updateFilterUsername(e){this.set("filterUsername",e.firstObject)}}},(0,o.Z)(s,"allTypes",[r],Object.getOwnPropertyDescriptor(s,"allTypes"),s),(0,o.Z)(s,"priorities",[p.default],Object.getOwnPropertyDescriptor(s,"priorities"),s),(0,o.Z)(s,"sortOrders",[p.default],Object.getOwnPropertyDescriptor(s,"sortOrders"),s),(0,o.Z)(s,"statuses",[p.default],Object.getOwnPropertyDescriptor(s,"statuses"),s),(0,o.Z)(s,"toggleFiltersIcon",[i],Object.getOwnPropertyDescriptor(s,"toggleFiltersIcon"),s),s))},43435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(3055),c=n(38864),u=n(57555),d=n(82099);const p=a().extend((r=(0,u.default)("settings.reviewable_score_types"),i={saving:!1,saved:!1,actions:{save(){let e={};this.scoreTypes.forEach((t=>{e[t.id]=parseFloat(t.reviewable_priority)})),this.set("saving",!0),(0,l.ajax)("/review/settings",{type:"PUT",data:{reviewable_priorities:e}}).then((()=>{this.set("saved",!0)})).catch(c.popupAjaxError).finally((()=>this.set("saving",!1)))}},scoreTypes(e){const t=d.default.t("review.example_username");return e.map((e=>({...e,title:e.title.replace("%{username}",t)})))}},(0,s.Z)(i,"scoreTypes",[r],Object.getOwnPropertyDescriptor(i,"scoreTypes"),i),i))},92596:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r,i,s,o,a,l,c,u,d,p,h=n(54001),m=n(97423),g=n.n(m),f=n(48163),b=n(6264),_=n(3055),y=n(38864),w=n(20229),v=n(78580),k=n(7223),x=n(57555),T=n(82099);const{TOTP:S,BACKUP_CODE:C,SECURITY_KEY:P}=k.SECOND_FACTOR_METHODS,O=g().extend((r=(0,x.default)("allowedMethods.[]","totpEnabled"),i=(0,x.default)("allowedMethods.[]","backupCodesEnabled"),s=(0,x.default)("allowedMethods.[]","securityKeysEnabled"),o=(0,x.default)("userSelectedMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable"),a=(0,x.default)("shownSecondFactorMethod","securityKeysAvailable","totpAvailable","backupCodesAvailable"),l=(0,x.default)("shownSecondFactorMethod"),c=(0,x.default)("shownSecondFactorMethod"),u=(0,x.default)("messageIsError"),d=(0,x.default)("showTotpForm","showBackupCodesForm"),p={TOTP:S,BACKUP_CODE:C,SECURITY_KEY:P,queryParams:["nonce"],message:null,loadError:!1,messageIsError:!1,secondFactorToken:null,userSelectedMethod:null,totpEnabled:(0,b.readOnly)("model.totp_enabled"),backupCodesEnabled:(0,b.readOnly)("model.backup_enabled"),securityKeysEnabled:(0,b.readOnly)("model.security_keys_enabled"),allowedMethods:(0,b.readOnly)("model.allowed_methods"),customDescription:(0,b.readOnly)("model.description"),showTotpForm:(0,b.equal)("shownSecondFactorMethod",S),showSecurityKeyForm:(0,b.equal)("shownSecondFactorMethod",P),showBackupCodesForm:(0,b.equal)("shownSecondFactorMethod",C),totpAvailable(){return this.totpEnabled&&this.allowedMethods.includes(S)},backupCodesAvailable(){return this.backupCodesEnabled&&this.allowedMethods.includes(C)},securityKeysAvailable(){return this.securityKeysEnabled&&this.allowedMethods.includes(P)},shownSecondFactorMethod(e,t,n,r){if(null!==e)return e;if(t)return P;if(n)return S;if(r)return C;throw new Error("unexpected state of user 2fa settings!")},alternativeMethods(e,t,n,r){const i=[];return t&&e!==P&&i.push({id:P,translationKey:"login.second_factor_toggle.security_key",class:"security-key"}),n&&e!==S&&i.push({id:S,translationKey:"login.second_factor_toggle.totp",class:"totp"}),r&&e!==C&&i.push({id:C,translationKey:"login.second_factor_toggle.backup_code",class:"backup-code"}),i},secondFactorTitle(e){switch(e){case S:case P:return T.default.t("login.second_factor_title");case C:return T.default.t("login.second_factor_backup_title")}},secondFactorDescription(e){switch(e){case S:return T.default.t("login.second_factor_description");case P:return T.default.t("login.security_key_description");case C:return T.default.t("login.second_factor_backup_description")}},alertClass:e=>e?"alert-error":"alert-success",inputFormClass:(e,t)=>e?"totp-token":t?"backup-code-token":void 0,resetState(){this.set("message",null),this.set("messageIsError",!1),this.set("secondFactorToken",null),this.set("userSelectedMethod",null),this.set("loadError",!1)},displayError(e){this.set("message",e),this.set("messageIsError",!0)},displaySuccess(e){this.set("message",e),this.set("messageIsError",!1)},verifySecondFactor(e){return(0,_.ajax)("/session/2fa",{type:"POST",data:{...e,second_factor_method:this.shownSecondFactorMethod,nonce:this.nonce}}).then((e=>{this.displaySuccess(T.default.t("second_factor_auth.redirect_after_success")),(0,_.ajax)(e.callback_path,{type:e.callback_method,data:{second_factor_nonce:this.nonce,...e.callback_params}}).then((t=>{const n=t.redirect_url||e.redirect_url;w.default.routeTo(n)})).catch((e=>this.displayError((0,y.extractError)(e))))})).catch((e=>{this.displayError((0,y.extractError)(e))}))},onTokenInput(e){this.set("secondFactorToken",e.target.value)},useAnotherMethod(e,t){t?.preventDefault(),this.set("userSelectedMethod",e)},authenticateSecurityKey(){(0,v.getWebauthnCredential)(this.model.challenge,this.model.allowed_credential_ids,(e=>{this.verifySecondFactor({second_factor_token:e})}),(e=>{this.displayError(e)}))},authenticateToken(){this.verifySecondFactor({second_factor_token:this.secondFactorToken})}},(0,h.Z)(p,"totpAvailable",[r],Object.getOwnPropertyDescriptor(p,"totpAvailable"),p),(0,h.Z)(p,"backupCodesAvailable",[i],Object.getOwnPropertyDescriptor(p,"backupCodesAvailable"),p),(0,h.Z)(p,"securityKeysAvailable",[s],Object.getOwnPropertyDescriptor(p,"securityKeysAvailable"),p),(0,h.Z)(p,"shownSecondFactorMethod",[o],Object.getOwnPropertyDescriptor(p,"shownSecondFactorMethod"),p),(0,h.Z)(p,"alternativeMethods",[a],Object.getOwnPropertyDescriptor(p,"alternativeMethods"),p),(0,h.Z)(p,"secondFactorTitle",[l],Object.getOwnPropertyDescriptor(p,"secondFactorTitle"),p),(0,h.Z)(p,"secondFactorDescription",[c],Object.getOwnPropertyDescriptor(p,"secondFactorDescription"),p),(0,h.Z)(p,"alertClass",[u],Object.getOwnPropertyDescriptor(p,"alertClass"),p),(0,h.Z)(p,"inputFormClass",[d],Object.getOwnPropertyDescriptor(p,"inputFormClass"),p),(0,h.Z)(p,"onTokenInput",[f.action],Object.getOwnPropertyDescriptor(p,"onTokenInput"),p),(0,h.Z)(p,"useAnotherMethod",[f.action],Object.getOwnPropertyDescriptor(p,"useAnotherMethod"),p),(0,h.Z)(p,"authenticateSecurityKey",[f.action],Object.getOwnPropertyDescriptor(p,"authenticateSecurityKey"),p),(0,h.Z)(p,"authenticateToken",[f.action],Object.getOwnPropertyDescriptor(p,"authenticateToken"),p),p))},86570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97423),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),tagGroups:(0,r.inject)(),actions:{onDestroy(){this.tagGroups.model.removeObject(this.model),this.router.transitionTo("tagGroups.index")}}})},90830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97423),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),tagGroups:(0,r.inject)(),actions:{onSave(){this.tagGroups.model.pushObject(this.model),this.router.transitionTo("tagGroups.index")}}})},65720:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97423),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),actions:{newTagGroup(){this.router.transitionTo("tagGroups.new")}}})},23:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(48163),c=n(6264),u=n(17579),d=n(18339),p=n(3055),h=n(38864),m=n(57555),g=n(82099);const f=a().extend((r=(0,m.default)("groupedByCategory","groupedByTagGroup"),i={dialog:(0,u.inject)(),modal:(0,u.inject)(),sortedByCount:!0,sortedByName:!1,sortAlphabetically:(0,c.alias)("siteSettings.tags_sort_alphabetically"),canAdminTags:(0,c.alias)("currentUser.staff"),groupedByCategory:(0,c.notEmpty)("model.extras.categories"),groupedByTagGroup:(0,c.notEmpty)("model.extras.tag_groups"),init(){this._super(...arguments);const e=this.sortAlphabetically;this.setProperties({sortedByCount:!e,sortedByName:!!e,sortProperties:e?["id"]:["totalCount:desc","id"]})},otherTagsTitleKey:(e,t)=>e||t?"tagging.other_tags":"tagging.all_tags",actionsMapping(){return{manageGroups:()=>this.send("showTagGroups"),uploadTags:()=>this.send("showUploader"),deleteUnusedTags:()=>this.send("deleteUnused")}},sortByCount(e){e?.preventDefault(),this.setProperties({sortProperties:["totalCount:desc","id"],sortedByCount:!0,sortedByName:!1})},sortById(e){e?.preventDefault(),this.setProperties({sortProperties:["id"],sortedByCount:!1,sortedByName:!0})},actions:{showUploader(){this.modal.show(d.default)},deleteUnused(){(0,p.ajax)("/tags/unused",{type:"GET"}).then((e=>{const t=e.tags;if(0===t.length)return void this.dialog.alert(g.default.t("tagging.delete_no_unused_tags"));const n=t.slice(0,20).join(g.default.t("tagging.tag_list_joiner")),r=Math.max(0,t.length-20),i=0===r?n:g.default.t("tagging.delete_unused_confirmation_more_tags",{count:r,tags:n}),s=g.default.t("tagging.delete_unused_confirmation",{count:t.length,tags:i});this.dialog.deleteConfirm({message:s,confirmButtonLabel:"tagging.delete_unused",didConfirm:()=>(0,p.ajax)("/tags/unused",{type:"DELETE"}).then((()=>this.send("triggerRefresh"))).catch(h.popupAjaxError)})})).catch(h.popupAjaxError)}}},(0,s.Z)(i,"otherTagsTitleKey",[r],Object.getOwnPropertyDescriptor(i,"otherTagsTitleKey"),i),(0,s.Z)(i,"actionsMapping",[m.default],Object.getOwnPropertyDescriptor(i,"actionsMapping"),i),(0,s.Z)(i,"sortByCount",[l.action],Object.getOwnPropertyDescriptor(i,"sortByCount"),i),(0,s.Z)(i,"sortById",[l.action],Object.getOwnPropertyDescriptor(i,"sortById"),i),i))},4683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(48541);class s extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"queryParams",[...Object.keys(i.queryParams),{categoryParam:"category"}])}}},95563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ue,registerCustomPostMessageCallback:()=>ce,resetCustomPostMessageCallbacks:()=>le});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T=n(54001),S=n(97423),C=n.n(S),P=n(48163),O=n.n(P),E=n(6264),D=n(51372),I=n(17579),j=n(33217),Z=n(10425),A=n(83116),M=n(18987),N=n(1029),z=n(35617),L=n(64935),F=n(6187),U=n(94312),R=n(3055),B=n(38864),$=n(64390),q=n(72247),H=n(18272),W=n(45273),K=n(3948),V=n(20229),G=n(62617),Y=n(20003),Q=n(87521),J=n(56746),X=n(21859),ee=n(97245),te=n(92635),ne=n(35284),re=n(12933),ie=n(12757),se=n(57555),oe=n(82099);let ae={};function le(){ae={}}function ce(e,t){if(ae[e])throw new Error(`Error ${e} is an already registered post message!`);ae[e]=t}const ue=C().extend((0,Y.bufferedProperty)("model"),(r=(0,se.observes)("model.title","category"),i=(0,se.default)("model.postStream.loaded","model.is_shared_draft"),s=(0,se.default)("site.mobileView","model.posts_count"),o=(0,se.default)("model.postStream.posts","model.postStream.postsWithPlaceholders"),a=(0,se.default)("model.postStream.loadingFilter"),l=(0,se.default)("model"),c=(0,se.default)("model.isPrivateMessage","model.category.id"),u=(0,se.default)("model"),d=(0,se.default)("model.isPrivateMessage"),p=(0,se.default)("currentUser.can_send_private_messages"),h=(0,se.default)("buffered.category_id"),m=(0,se.default)("selectedPostIds","model.postStream.posts","selectedPostIds.[]","model.postStream.posts.[]"),g=(0,se.default)("selectedPostsCount","selectedPosts","selectedPosts.[]"),f=(0,se.default)("selectedPostsCount","model.postStream.isMegaTopic","model.postStream.stream.length","model.posts_count"),b=(0,se.default)("selectedAllPosts","model.postStream.isMegaTopic"),_=(0,se.default)("currentUser.staff","selectedPostsCount","selectedAllPosts","selectedPosts","selectedPosts.[]"),y=(0,se.default)("model.details.can_move_posts","selectedPostsCount"),w=(0,se.default)("currentUser.admin","currentUser.staff","siteSettings.moderators_change_post_ownership","selectedPostsCount","selectedPostsUsername"),v=(0,se.default)("selectedPostsCount","selectedPostsUsername","selectedPosts","selectedPosts.[]"),k=(0,se.observes)("multiSelect"),x={composer:(0,I.inject)(),dialog:(0,I.inject)(),documentTitle:(0,I.inject)(),screenTrack:(0,I.inject)(),modal:(0,I.inject)(),currentUser:(0,I.inject)(),router:(0,I.inject)(),siteSettings:(0,I.inject)(),site:(0,I.inject)(),appEvents:(0,I.inject)(),multiSelect:!1,selectedPostIds:null,editingTopic:!1,queryParams:["filter","username_filters","replies_to_post_number"],loadedAllPosts:(0,E.or)("model.postStream.loadedAllPosts","model.postStream.loadingLastPost"),enteredAt:null,enteredIndex:null,retrying:!1,userTriggeredProgress:null,_progressIndex:null,hasScrolled:null,username_filters:null,replies_to_post_number:null,filter:null,quoteState:null,currentPostId:null,userLastReadPostNumber:null,highestPostNumber:null,init(){this._super(...arguments),this._retryInProgress=!1,this._retryRateLimited=!1,this._newPostsInStream=[],this.appEvents.on("post:show-revision",this,"_showRevision"),this.appEvents.on("post:created",this,(()=>{this._removeDeleteOnOwnerReplyBookmarks(),this.appEvents.trigger("post-stream:refresh",{force:!0})})),this.setProperties({selectedPostIds:[],quoteState:new W.default})},willDestroy(){this._super(...arguments),this.appEvents.off("post:show-revision",this,"_showRevision")},canRemoveTopicFeaturedLink:(0,E.and)("canEditTopicFeaturedLink","buffered.featured_link"),updateQueryParams(){const e=this.get("model.postStream.streamFilters");Object.keys(e).length>0?this.setProperties(e):this.setProperties({username_filters:null,filter:null,replies_to_post_number:null})},_titleChanged(){const e=this.get("model.title");(0,j.isEmpty)(e)||this.send("refreshTitle")},showSharedDraftControls:(e,t)=>e&&t,showSelectedPostsAtBottom:(e,t)=>e&&t>3,postsToRender(e,t){return this.capabilities.isAndroid?e:t},androidLoading(e){return this.capabilities.isAndroid&&e},pmPath(e){return this.currentUser&&this.currentUser.pmPath(e)},_showRevision(e,t){const n=this.model.get("postStream").postForPostNumber(e);n&&(0,D.schedule)("afterRender",(()=>this.send("showHistory",n,t)))},showCategoryChooser:(0,E.not)("model.isPrivateMessage"),gotoInbox(e){let t=(0,V.userPath)(`${this.get("currentUser.username_lower")}/messages`);e&&(t=`${t}/group/${e}`),V.default.routeTo(t)},selectedQuery(){return e=>this.postSelected(e)},canEditTopicFeaturedLink(e,t){if(this.currentUser&&0===this.currentUser.trust_level)return!1;if(!this.siteSettings.topic_featured_link_enabled||e)return!1;const n=this.site.get("topic_featured_link_allowed_category_ids");return void 0===n||!n.length||n.includes(t)},featuredLinkDomain:e=>(0,K.extractLinkMeta)(e).domain,canEditTags(e){return this.site.get("can_tag_topics")&&(!e||this.site.get("can_tag_pms"))},canSendPms(){return this.currentUser?.can_send_private_messages},minimumRequiredTags:e=>J.default.findById(e)?.minimumRequiredTags||0,_removeDeleteOnOwnerReplyBookmarks(){if(!this.model)return;const e=this.get("model.postStream.posts");e&&e.filter((e=>e.bookmarked&&e.bookmark_auto_delete_preference===Q.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY)).forEach((e=>{e.clearBookmark(),this.model.removeBookmark(e.bookmark_id)}));const t=this.model.bookmarks.findBy("bookmarkable_type","Topic");t?.auto_delete_preference===Q.AUTO_DELETE_PREFERENCES.ON_OWNER_REPLY&&this.model.removeBookmark(t.id)},_forceRefreshPostStream(){this.appEvents.trigger("post-stream:refresh",{force:!0})},_updateSelectedPostIds(e){const t=this._smallActionPostIds();this.selectedPostIds.pushObjects(e.filter((e=>!t.has(e)))),this.set("selectedPostIds",[...new Set(this.selectedPostIds)]),this._forceRefreshPostStream()},_smallActionPostIds(){const e=new Set,t=this.get("model.postStream.posts");if(t&&this.site){const n=this.site.get("post_types.small_action"),r=this.site.get("post_types.whisper");t.forEach((t=>{(t.post_type===n||!t.cooked&&t.post_type===r)&&e.add(t.id)}))}return e},_loadPostIds(e){if(this.loadingPostIds)return;const t=this.get("model.postStream"),n=`/t/${this.get("model.id")}/post_ids.json`;return this.set("loadingPostIds",!0),(0,R.ajax)(n,{data:(0,ie.deepMerge)({post_number:e.get("post_number")},t.get("streamFilters"))}).then((t=>{t.post_ids.pushObject(e.get("id")),this._updateSelectedPostIds(t.post_ids)})).finally((()=>{this.set("loadingPostIds",!1)}))},editTopic(e){e?.preventDefault(),this.get("model.details.can_edit")&&this.set("editingTopic",!0)},jumpTop(e){if(e&&(0,G.modKeysPressed)(e).length>0)return!1;e?.preventDefault(),V.default.routeTo(this.get("model.firstPostUrl"),{skipIfOnScreen:!1,keepFilter:!0})},removeFeaturedLink(e){e?.preventDefault(),this.set("buffered.featured_link",null)},selectAll(e){e?.preventDefault();const t=this._smallActionPostIds();this.set("selectedPostIds",[...this.get("model.postStream.stream").filter((e=>!t.has(e)))]),this._forceRefreshPostStream()},deselectAll(e){e?.preventDefault(),this.set("selectedPostIds",[]),this._forceRefreshPostStream()},toggleMultiSelect(e){e?.preventDefault(),this.toggleProperty("multiSelect"),this._forceRefreshPostStream()},actions:{topicCategoryChanged(e){this.set("buffered.category_id",e)},topicTagsChanged(e){this.set("buffered.tags",e)},deletePending(e){return(0,R.ajax)(`/review/${e.id}`,{type:"DELETE"}).then((()=>{this.get("model.pending_posts").removeObject(e)})).catch(B.popupAjaxError)},showPostFlags(e){return this.send("showFlags",e)},openFeatureTopic(){this.send("showFeatureTopic")},selectText(){const{postId:e,buffer:t,opts:n}=this.quoteState,r=this.get("model.postStream").findLoadedPost(e);return(r?Z.Promise.resolve(r):this.get("model.postStream").loadPost(e)).then((e=>{const r=this.composer;if(!r.get("model.viewOpen")&&!this.get("model.details.can_create_post"))return void this.send("replyAsNewTopic",e);const i={action:X.default.REPLY,draftSequence:e.get("topic.draft_sequence"),draftKey:e.get("topic.draft_key")};1===e.get("post_number")?i.topic=e.get("topic"):i.post=e;const s=r.get("model.post");s&&s.get("id")!==this.get("post.id")&&(i.post=s);const o=(0,H.buildQuote)(e,t,n);if(i.quote=o,r.get("model.viewOpen"))this.appEvents.trigger("composer:insert-block",o);else if(r.get("model.viewDraft")){const e=r.get("model");e.set("reply",e.get("reply")+"\n"+o),r.openIfDraft()}else r.open(i)}))},fillGapBefore(e){return this.get("model.postStream").fillGapBefore(e.post,e.gap)},fillGapAfter(e){return this.get("model.postStream").fillGapAfter(e.post,e.gap)},currentPostChanged(e){const{post:t}=e;if(!t)return;this.set("currentPostId",t.id);const n=t.get("post_number"),r=this.model;r.set("currentPost",n),n>(r.get("last_read_post_number")||0)&&(r.set("last_read_post_id",t.get("id")),r.set("last_read_post_number",n)),this.send("postChangedRoute",n),this._progressIndex=r.get("postStream").progressIndexOfPost(t),this.appEvents.trigger("topic:current-post-changed",{post:t})},currentPostScrolled(e){const t=this.get("model.postStream.filteredPostsCount"),n=parseFloat(this._progressIndex+e.percent-1)/t;this.appEvents.trigger("topic:current-post-scrolled",{postIndex:this._progressIndex,percent:Math.max(Math.min(n,1),0)})},topVisibleChanged(e){const{post:t,refresh:n}=e;if(!t)return;const r=this.get("model.postStream"),i=r.get("posts.firstObject");t.get&&1===t.get("post_number")||i&&i===t&&r.prependMore().then((()=>n()))},bottomVisibleChanged(e){const{post:t,refresh:n}=e,r=this.get("model.postStream"),i=r.get("posts.lastObject");i&&i===t&&r.get("canAppendMore")&&(r.appendMore().then((()=>n())),n())},showTopReplies(){return this.get("model.postStream").showTopReplies().then((()=>{this.updateQueryParams()}))},cancelFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.get("model.postStream");if(!e){const n=t.findLoadedPost(this.currentPostId);n?e=n.post_number:t.findPostsByIds([this.currentPostId]).then((t=>{e=t[0].post_number}))}t.cancelFilter(),t.refresh({nearPost:e,forceLoad:!0}).then((()=>{V.default.routeTo(this.model.urlForPostNumber(e)),this.updateQueryParams()}))},collapseSummary(){this.get("model.postStream").collapseSummary()},showSummary(){this.get("model.postStream").showSummary(this.currentUser)},removeAllowedUser(e){return this.get("model.details").removeAllowedUser(e).then((()=>{this.currentUser.id===e.id&&this.router.transitionTo("userPrivateMessages",e)}))},removeAllowedGroup(e){return this.get("model.details").removeAllowedGroup(e)},deleteTopic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.deleteTopic(e)},toggleArchiveMessage(){const e=this.model;if(!e||e.get("archiving")||!e.isPrivateMessage)return;const t=()=>{(0,q.resetCachedTopicList)(this.session),this.gotoInbox(e.get("inboxGroupName"))};e.get("message_archived")?e.moveToInbox().then(t):e.archiveMessage().then(t)},deferTopic(){const{screenTrack:e,currentUser:t}=this,n=this.model;e.reset(),e.stop();const r=n.get("isPrivateMessage")?t.pmPath(n):"/";(0,R.ajax)("/t/"+n.get("id")+"/timings.json?last=1",{type:"DELETE"}).then((()=>{this.session.get("highestSeenByTopic")[n.get("id")]=null,V.default.routeTo(r)})).catch(B.popupAjaxError)},editFirstPost(){this.model.firstPost().then((e=>this.send("editPost",e)))},replyToPost(e){const t=this.composer,n=e?e.get("topic"):this.model,r=this.quoteState,i=this.get("model.postStream");if(this.appEvents.trigger("page:compose-reply",n),!i||!n||!n.get("details.can_create_post"))return;const s=i.findLoadedPost(r.postId),o=(0,H.buildQuote)(s,r.buffer,r.opts);if(r.clear(),t.get("model.topic.id")===n.get("id")&&t.get("model.action")===X.default.REPLY&&1!==e?.get("post_number"))t.set("model.post",e),t.set("model.composeState",X.default.OPEN),this.appEvents.trigger("composer:insert-block",o.trim());else{const r={action:X.default.REPLY,draftKey:n.get("draft_key"),draftSequence:n.get("draft_sequence")};o&&(r.quote=o),e&&1!==e.get("post_number")?r.post=e:r.topic=n,t.open(r)}return!1},recoverPost(e){1===e.get("post_number")?this.recoverTopic():e.recover()},deletePost(e,t){if(1===e.get("post_number"))return this.deleteTopic(t);if(!t?.force_destroy&&!e.can_delete||t?.force_destroy&&!e.can_permanently_delete)return!1;const n=this.currentUser,r=()=>this.appEvents.trigger("post-stream:refresh"),i=e.get("reply_count")>0,s=this.get("model.postStream.posts");if(!n.get("staff")||!i)return e.destroy(n,t).then(r).catch((t=>{(0,B.popupAjaxError)(t),e.undoDeleteState()}));(0,R.ajax)(`/posts/${e.id}/reply-ids.json`).then((i=>{if(0===i.length)return e.destroy(n,t).then(r).catch((t=>{(0,B.popupAjaxError)(t),e.undoDeleteState()}));const o=[],a=i.filter((e=>1===e.level)).map((e=>e.id));o.push({label:oe.default.t("post.controls.delete_replies.direct_replies",{count:a.length}),class:"btn-primary",action:()=>{s.forEach((t=>(t===e||a.includes(t.id))&&t.setDeletedState(n))),ee.default.deleteMany([e.id,...a]).then(r).catch(B.popupAjaxError)}}),i.some((e=>e.level>1))&&o.push({label:oe.default.t("post.controls.delete_replies.all_replies",{count:i.length}),action:()=>{s.forEach((t=>(t===e||i.some((e=>e.id===t.id)))&&t.setDeletedState(n))),ee.default.deleteMany([e.id,...i.map((e=>e.id))]).then(r).catch(B.popupAjaxError)}}),o.push({label:oe.default.t("post.controls.delete_replies.just_the_post"),action:()=>{e.destroy(n,t).then(r).catch((t=>{(0,B.popupAjaxError)(t),e.undoDeleteState()}))}}),o.push({label:oe.default.t("cancel"),class:"btn-flat"}),this.dialog.alert({title:oe.default.t("post.controls.delete_replies.confirm"),buttons:o})}))},deletePostWithConfirmation(e,t){this.dialog.yesNoConfirm({message:oe.default.t("post.confirm_delete"),didConfirm:()=>this.send("deletePost",e,t)})},permanentlyDeletePost(e){return this.dialog.yesNoConfirm({message:oe.default.t("post.controls.permanently_delete_confirmation"),didConfirm:()=>{this.send("deletePost",e,{force_destroy:!0})}})},editPost(e){if(!this.currentUser)return this.dialog.alert(oe.default.t("post.controls.edit_anonymous"));if(!e.can_edit)return!1;const t=this.composer;let n=this.model;const r=t.get("model");let i=r&&(e.get("firstPost")||r.get("editingFirstPost")),s=!1,o=this.get("site.shared_drafts_category_id");o&&o===n.get("category.id")&&(s=e.get("firstPost"));const a={post:e,action:s?X.default.EDIT_SHARED_DRAFT:X.default.EDIT,draftKey:e.get("topic.draft_key"),draftSequence:e.get("topic.draft_sequence")};s&&(a.destinationCategoryId=n.get("destination_category_id")),i?t.cancelComposer(a).then((()=>t.open(a))):t.open(a)},toggleBookmark(e){if(this.currentUser){if(e){const t=this.model.bookmarks.find((t=>t.bookmarkable_id===e.id&&"Post"===t.bookmarkable_type));return this._modifyPostBookmark(t||Q.default.createFor(this.currentUser,"Post",e.id),e)}return this._toggleTopicLevelBookmark().then((e=>{e&&e.forEach((e=>this.appEvents.trigger("post-stream:refresh",{id:e})))}))}return this.dialog.alert(oe.default.t("bookmarks.not_bookmarked"))},jumpToIndex(e){this._jumpToIndex(e)},jumpToDate(e){this._jumpToDate(e)},jumpToPostPrompt(){this.modal.show(F.default,{model:{topic:this.model,jumpToIndex:e=>this.send("jumpToIndex",e),jumpToDate:e=>this.send("jumpToDate",e)}})},jumpToPost(e){this._jumpToPostNumber(e)},jumpBottom(){const e=1===this.model.highest_post_number;V.default.routeTo(this.get("model.lastPostUrl"),{skipIfOnScreen:!1,jumpEnd:e,keepFilter:!0})},jumpEnd(){this.appEvents.trigger("topic:jump-to-post",this.get("model.highest_post_number")),V.default.routeTo(this.get("model.lastPostUrl"),{jumpEnd:!0,keepFilter:!0})},jumpUnread(){this._jumpToPostId(this.get("model.last_read_post_id"))},jumpToPostId(e){this._jumpToPostId(e)},togglePostSelection(e){const t=this.selectedPostIds;t.includes(e.id)?t.removeObject(e.id):t.addObject(e.id)},selectReplies(e){(0,R.ajax)(`/posts/${e.id}/reply-ids.json`).then((t=>{const n=t.map((e=>e.id)),r=[...this.selectedPostIds,e.id,...n];this.set("selectedPostIds",[...new Set(r)]),this._forceRefreshPostStream()}))},selectBelow(e){if(this.get("model.postStream.isMegaTopic"))this._loadPostIds(e);else{const t=[...this.get("model.postStream.stream")],n=t.slice(t.indexOf(e.id));this._updateSelectedPostIds(n)}},deleteSelected(){const e=this.currentUser;this.dialog.yesNoConfirm({message:oe.default.t("post.delete.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{if(this.selectedAllPosts)return this.deleteTopic();ee.default.deleteMany(this.selectedPostIds),this.get("model.postStream.posts").forEach((t=>this.postSelected(t)&&t.setDeletedState(e))),this.send("toggleMultiSelect")}})},mergePosts(){this.dialog.yesNoConfirm({message:oe.default.t("post.merge.confirm",{count:this.selectedPostsCount}),didConfirm:()=>{ee.default.mergePosts(this.selectedPostIds),this.send("toggleMultiSelect")}})},changePostOwner(e){this.set("selectedPostIds",[e.id]),this.send("changeOwner")},lockPost:e=>e.updatePostField("locked",!0),unlockPost:e=>e.updatePostField("locked",!1),grantBadge(e){this.set("selectedPostIds",[e.id]),this.send("showGrantBadgeModal")},async changeNotice(e){await this.modal.show(N.default,{model:{post:e}})},filterParticipant(e){this.get("model.postStream").filterParticipant(e.username).then((()=>this.updateQueryParams))},cancelEditingTopic(){this.set("editingTopic",!1),this.rollbackBuffer()},finishedEditingTopic(){if(!this.editingTopic)return;const e=this.get("buffered.buffer");te.default.update(this.model,e,{fastEdit:!0}).then((()=>{this.rollbackBuffer(),this.set("editingTopic",!1)})).catch(B.popupAjaxError)},expandHidden:e=>e.expandHidden(),toggleVisibility(){this.model.toggleStatus("visible")},toggleClosed(){const e=this.model;this.model.toggleStatus("closed").then((t=>{e.set("topic_status_update",t.topic_status_update)}))},makeBanner(){this.model.makeBanner()},removeBanner(){this.model.removeBanner()},togglePinned(){const e=!this.get("model.pinned_at"),t=this.model,n=this.get("model.pinnedInCategoryUntil");return t.setProperties({pinned_at:e?moment():null,pinned_globally:!1,pinned_until:e?n:null}),t.saveStatus("pinned",e,n)},pinGlobally(){const e=this.model,t=this.get("model.pinnedGloballyUntil");return e.setProperties({pinned_at:moment(),pinned_globally:!0,pinned_until:t}),e.saveStatus("pinned_globally",!0,t)},toggleArchived(){this.model.toggleStatus("archived")},clearPin(){this.model.clearPin()},togglePinnedForUser(){if(this.get("model.pinned_at")){const e=this.model;e.get("pinned")?e.clearPin():e.rePin()}},replyAsNewTopic(e){const t=this.composer,{quoteState:n}=this,r=(0,H.buildQuote)(e,n.buffer,n.opts);let i;if(n.clear(),this.get("model.isPrivateMessage")){let t=this.get("model.details.allowed_users"),n=this.get("model.details.allowed_groups"),r=[];t.forEach((e=>r.push(e.username))),n.forEach((e=>r.push(e.name))),r=r.join(),i={action:X.default.PRIVATE_MESSAGE,archetypeId:"private_message",draftKey:e.topic.draft_key,recipients:r}}else i={action:X.default.CREATE_TOPIC,draftKey:e.topic.draft_key,topicCategoryId:this.get("model.category.id"),prioritizedCategoryId:this.get("model.category.id")};t.open(i).then((()=>{const n=`[${(0,G.escapeExpression)(this.model.title)}](${location.protocol}//${location.host}${e.url})`,i=`${oe.default.t("post.continue_discussion",{postLink:n})}\n\n${r}`;t.model.prependText(i,{new_line:!0})}))},retryLoading(){this.set("retrying",!0);const e=()=>this.set("retrying",!1);this.get("model.postStream").refresh().then(e,e)},toggleWiki:e=>e.updatePostField("wiki",!e.get("wiki")),togglePostType(e){const t=this.site.get("post_types.regular"),n=this.site.get("post_types.moderator_action");return e.updatePostField("post_type",e.get("post_type")===n?t:n)},rebakePost:e=>e.rebake(),unhidePost:e=>e.unhide(),convertToPublicTopic(){this.modal.show(z.default,{model:{topic:this.model}})},convertToPrivateMessage(){this.model.convertTopic("private").then((()=>window.location.reload())).catch(B.popupAjaxError)},resetBumpDate(){this.model.resetBumpDate()},removeTopicTimer(e,t){ne.default.update(this.get("model.id"),null,null,e,null).then((()=>this.set(`model.${t}`,O().create({})))).catch((e=>(0,B.popupAjaxError)(e)))}},_jumpToIndex(e){const t=this.get("model.postStream");if(t.get("isMegaTopic"))this._jumpToPostNumber(e);else{const n=t.get("stream"),r=Math.max(1,Math.min(n.length,e));this._jumpToPostId(n[r-1])}},_jumpToDate(e){const t=this.get("model.postStream");t.loadNearestPostToDate(e).then((e=>{V.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))})).catch((()=>{this._jumpToIndex(t.get("topic.highest_post_number"))}))},_jumpToPostNumber(e){const t=this.get("model.postStream"),n=t.get("posts").findBy("post_number",e);n?V.default.routeTo(this.model.urlForPostNumber(n.get("post_number"))):t.loadPostByPostNumber(e).then((e=>{V.default.routeTo(this.model.urlForPostNumber(e.get("post_number")))}))},_jumpToPostId(e){if(!e)return void console.warn("jump-post code broken - requested an index outside the stream array");this.appEvents.trigger("topic:jump-to-post",e);const t=this.model,n=t.get("postStream"),r=n.findLoadedPost(e);r?V.default.routeTo(t.urlForPostNumber(r.get("post_number")),{keepFilter:!0}):n.findPostsByIds([e]).then((e=>{V.default.routeTo(t.urlForPostNumber(e[0].get("post_number")),{keepFilter:!0})}))},_modifyTopicBookmark(e){this.modal.show(M.default,{model:{bookmark:new $.BookmarkFormData(e),afterSave:t=>{this._syncBookmarks(t),this.model.set("bookmarking",!1),this.model.set("bookmarked",!0),this.model.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",t,e.attachedTo())},afterDelete:(e,t)=>{this.model.removeBookmark(t)}}})},_modifyPostBookmark(e,t){this.modal.show(M.default,{model:{bookmark:new $.BookmarkFormData(e),afterSave:e=>(this._syncBookmarks(e),this.model.set("bookmarking",!1),t.createBookmark(e),this.model.afterPostBookmarked(t,e),[t.id]),afterDelete:(e,n)=>{this.model.removeBookmark(n),t.deleteBookmark(e)}}}).then((n=>{n&&(n.closeWithoutSaving||n.initiatedBy===A.CLOSE_INITIATED_BY_ESC||n.initiatedBy===A.CLOSE_INITIATED_BY_BUTTON)&&t.appEvents.trigger("post-stream:refresh",{id:e.bookmarkable_id})}))},_syncBookmarks(e){this.model.bookmarks||this.model.set("bookmarks",[]);const t=this.model.bookmarks.findBy("id",e.id);t?(t.reminder_at=e.reminder_at,t.name=e.name,t.auto_delete_preference=e.auto_delete_preference):this.model.bookmarks.pushObject(Q.default.create(e))},async _toggleTopicLevelBookmark(){if(this.model.bookmarking)return Z.Promise.resolve();if(this.model.bookmarkCount>1)return this._maybeClearAllBookmarks();if(1===this.model.bookmarkCount){const e=this.model.bookmarks.findBy("bookmarkable_type","Topic");if(e)return this._modifyTopicBookmark(e);{const e=this.model.bookmarks[0],t=await this.model.postById(e.bookmarkable_id);return this._modifyPostBookmark(e,t)}}return 0===this.model.bookmarkCount?this._modifyTopicBookmark(Q.default.createFor(this.currentUser,"Topic",this.model.id)):void 0},_maybeClearAllBookmarks(){return new Z.Promise((e=>{this.dialog.yesNoConfirm({message:oe.default.t("bookmarks.confirm_clear"),didConfirm:()=>this.model.deleteBookmarks().then((()=>e(this.model.clearBookmarks()))).catch(B.popupAjaxError).finally((()=>{this.model.set("bookmarking",!1)})),didCancel:()=>{this.model.set("bookmarking",!1),e()}})}))},togglePinnedState(){this.send("togglePinnedForUser")},print(){this.siteSettings.max_prints_per_hour_per_user>0&&window.open(this.get("model.printUrl"),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=600,height=315")},hasError:(0,E.or)("model.errorHtml","model.errorMessage"),noErrorYet:(0,E.not)("hasError"),categories:(0,E.alias)("site.categoriesList"),selectedPostsCount:(0,E.alias)("selectedPostIds.length"),selectedPosts:(e,t)=>e.map((e=>t.find((t=>t.id===e)))).filter((e=>void 0!==e)),selectedPostsUsername(e,t){if(t.length<1||e>t.length)return;const n=t[0].username;return t.every((e=>e.username===n))?n:void 0},selectedAllPosts:(e,t,n,r)=>t?e>=r:e>=n,canSelectAll:(e,t)=>!t&&!e,canDeselectAll:(0,E.alias)("selectedAllPosts"),canDeleteSelected:(e,t,n,r)=>t>0&&(n&&e||r.every((e=>e.can_delete))),canMergeTopic:(e,t)=>e&&t>0,canChangeOwner:(e,t,n,r,i)=>(e||n&&t)&&r>0&&void 0!==i,canMergePosts:(e,t,n)=>e>1&&void 0!==t&&n.every((e=>e.can_delete)),_multiSelectChanged(){this.set("selectedPostIds",[])},postSelected(e){return this.selectedAllPost||this.selectedPostIds.includes(e.id)},loadingHTML:()=>U.spinnerHTML,recoverTopic(){this.model.recover()},buildQuoteMarkdown(){const{postId:e,buffer:t,opts:n}=this.quoteState,r=this.get("model.postStream").findLoadedPost(e);return(r?Z.Promise.resolve(r):this.get("model.postStream").loadPost(e)).then((e=>(0,H.buildQuote)(e,t,n)))},deleteTopic(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.force_destroy)return this.model.destroy(this.currentUser,e);this.model.views>this.siteSettings.min_topic_views_for_delete_confirm?this.deleteTopicModal():this.model.destroy(this.currentUser,e)},deleteTopicModal(){this.modal.show(L.default,{model:{topic:this.model}})},retryOnRateLimit(e,t,n){const r=this.get("model.id");(n=n||r)===r&&(this._retryRateLimited||e<=0||(this._retryInProgress?(0,re.default)((()=>{this.retryOnRateLimit(e,t,n)}),100):(this._retryInProgress=!0,t().catch((r=>{const i=r.jqXHR;if(i&&429===i.status&&i.responseJSON&&i.responseJSON.extras&&i.responseJSON.extras.wait_seconds){let r=i.responseJSON.extras.wait_seconds;r<5&&(r=5),this._retryRateLimited=!0,(0,re.default)((()=>{this._retryRateLimited=!1,this.retryOnRateLimit(e-1,t,n)}),1e3*r)}})).finally((()=>{this._retryInProgress=!1})))))},subscribe(){this.unsubscribe(),this.messageBus.subscribe(`/topic/${this.get("model.id")}`,this.onMessage,this.get("model.message_bus_last_id"));const e=`/summaries/topic/${this.get("model.id")}`;this.messageBus.subscribe(e,this._updateSummary)},unsubscribe(){this.get("model.id")&&(this.messageBus.unsubscribe("/topic/*",this.onMessage),this.messageBus.unsubscribe("/summaries/topic/*",this._updateSummary))},_updateSummary(e){this.get("model.postStream").processSummaryUpdate(e)},onMessage(e){const t=this.model,n=e=>this.appEvents.trigger("post-stream:refresh",e);if((0,j.isPresent)(e.notification_level_change))return t.set("details.notification_level",e.notification_level_change),void t.set("details.notifications_reason_id",e.notifications_reason_id);const r=this.get("model.postStream");if(e.reload_topic)t.reload().then((()=>{this.send("postChangedRoute",t.get("post_number")||1),this.appEvents.trigger("header:update-topic",t),e.refresh_stream&&r.refresh()}));else switch(e.type){case"acted":r.triggerChangedPost(e.id,e.updated_at,{preserveCooked:!0}).then((()=>n({id:e.id,refreshLikes:!0})));break;case"read":r.triggerReadPost(e.id,e.readers_count).then((()=>n({id:e.id,refreshLikes:!0})));break;case"liked":case"unliked":r.triggerLikedPost(e.id,e.likes_count,e.user_id,e.type).then((()=>n({id:e.id,refreshLikes:!0})));break;case"revised":case"rebaked":r.triggerChangedPost(e.id,e.updated_at).then((()=>n({id:e.id})));break;case"deleted":r.triggerDeletedPost(e.id).then((()=>n({id:e.id})));break;case"destroyed":r.triggerDestroyedPost(e.id).then((()=>n({id:e.id})));break;case"recovered":r.triggerRecoveredPost(e.id).then((()=>n({id:e.id})));break;case"created":this._newPostsInStream.push(e.id),this.retryOnRateLimit(4,(()=>{const e=this._newPostsInStream;return this._newPostsInStream=[],r.triggerNewPostsInStream(e,{background:!0}).then((()=>n())).catch((t=>{throw this._newPostsInStream=e.concat(this._newPostsInStream),t}))})),this.get("currentUser.id")!==e.user_id&&this.documentTitle.incrementBackgroundContextCount();break;case"move_to_inbox":t.set("message_archived",!1);break;case"archived":t.set("message_archived",!0);break;case"stats":{let i=!1;["last_posted_at","like_count","posts_count"].forEach((n=>{const r=e[n];void 0!==r&&(t.set(n,r),i=!0)})),e.last_poster&&(t.details.set("last_poster",e.last_poster),i=!0),i&&r.triggerChangedTopicStats().then((e=>n({id:e})));break}default:{let t=ae[e.type];t?t(this,e):console.warn("unknown topic bus message type",e)}}},reply(){this.replyToPost()},readPosts(e,t){const n=this.model,r=n.get("postStream");if(n.get("id")===e&&(r.get("posts").forEach((e=>{!e.read&&t.includes(e.post_number)&&(e.set("read",!0),this.appEvents.trigger("post-stream:refresh",{id:e.get("id")}))})),this.siteSettings.automatically_unpin_topics&&this.currentUser&&this.currentUser.user_option.automatically_unpin_topics)){const e=Math.max(...t);n.get("pinned")&&e>=n.get("highest_post_number")&&(0,D.next)((()=>n.clearPin()))}}},(0,T.Z)(x,"_titleChanged",[r],Object.getOwnPropertyDescriptor(x,"_titleChanged"),x),(0,T.Z)(x,"showSharedDraftControls",[i],Object.getOwnPropertyDescriptor(x,"showSharedDraftControls"),x),(0,T.Z)(x,"showSelectedPostsAtBottom",[s],Object.getOwnPropertyDescriptor(x,"showSelectedPostsAtBottom"),x),(0,T.Z)(x,"postsToRender",[o],Object.getOwnPropertyDescriptor(x,"postsToRender"),x),(0,T.Z)(x,"androidLoading",[a],Object.getOwnPropertyDescriptor(x,"androidLoading"),x),(0,T.Z)(x,"pmPath",[l],Object.getOwnPropertyDescriptor(x,"pmPath"),x),(0,T.Z)(x,"selectedQuery",[se.default],Object.getOwnPropertyDescriptor(x,"selectedQuery"),x),(0,T.Z)(x,"canEditTopicFeaturedLink",[c],Object.getOwnPropertyDescriptor(x,"canEditTopicFeaturedLink"),x),(0,T.Z)(x,"featuredLinkDomain",[u],Object.getOwnPropertyDescriptor(x,"featuredLinkDomain"),x),(0,T.Z)(x,"canEditTags",[d],Object.getOwnPropertyDescriptor(x,"canEditTags"),x),(0,T.Z)(x,"canSendPms",[p],Object.getOwnPropertyDescriptor(x,"canSendPms"),x),(0,T.Z)(x,"minimumRequiredTags",[h],Object.getOwnPropertyDescriptor(x,"minimumRequiredTags"),x),(0,T.Z)(x,"editTopic",[P.action],Object.getOwnPropertyDescriptor(x,"editTopic"),x),(0,T.Z)(x,"jumpTop",[P.action],Object.getOwnPropertyDescriptor(x,"jumpTop"),x),(0,T.Z)(x,"removeFeaturedLink",[P.action],Object.getOwnPropertyDescriptor(x,"removeFeaturedLink"),x),(0,T.Z)(x,"selectAll",[P.action],Object.getOwnPropertyDescriptor(x,"selectAll"),x),(0,T.Z)(x,"deselectAll",[P.action],Object.getOwnPropertyDescriptor(x,"deselectAll"),x),(0,T.Z)(x,"toggleMultiSelect",[P.action],Object.getOwnPropertyDescriptor(x,"toggleMultiSelect"),x),(0,T.Z)(x,"selectedPosts",[m],Object.getOwnPropertyDescriptor(x,"selectedPosts"),x),(0,T.Z)(x,"selectedPostsUsername",[g],Object.getOwnPropertyDescriptor(x,"selectedPostsUsername"),x),(0,T.Z)(x,"selectedAllPosts",[f],Object.getOwnPropertyDescriptor(x,"selectedAllPosts"),x),(0,T.Z)(x,"canSelectAll",[b],Object.getOwnPropertyDescriptor(x,"canSelectAll"),x),(0,T.Z)(x,"canDeleteSelected",[_],Object.getOwnPropertyDescriptor(x,"canDeleteSelected"),x),(0,T.Z)(x,"canMergeTopic",[y],Object.getOwnPropertyDescriptor(x,"canMergeTopic"),x),(0,T.Z)(x,"canChangeOwner",[w],Object.getOwnPropertyDescriptor(x,"canChangeOwner"),x),(0,T.Z)(x,"canMergePosts",[v],Object.getOwnPropertyDescriptor(x,"canMergePosts"),x),(0,T.Z)(x,"_multiSelectChanged",[k],Object.getOwnPropertyDescriptor(x,"_multiSelectChanged"),x),(0,T.Z)(x,"loadingHTML",[se.default],Object.getOwnPropertyDescriptor(x,"loadingHTML"),x),(0,T.Z)(x,"recoverTopic",[P.action],Object.getOwnPropertyDescriptor(x,"recoverTopic"),x),(0,T.Z)(x,"buildQuoteMarkdown",[P.action],Object.getOwnPropertyDescriptor(x,"buildQuoteMarkdown"),x),(0,T.Z)(x,"_updateSummary",[se.bind],Object.getOwnPropertyDescriptor(x,"_updateSummary"),x),(0,T.Z)(x,"onMessage",[se.bind],Object.getOwnPropertyDescriptor(x,"onMessage"),x),x))},51503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o,a=n(54001),l=n(97423),c=n.n(l),u=n(48163),d=n.n(u),p=n(6264),h=n(17579),m=n(24434),g=n(10425),f=n(3055),b=n(87521),_=n(3961),y=n(57555),w=n(82099);const v=c().extend((r=(0,y.default)(),i=(0,y.default)("inSearchMode","noContent"),s=(0,y.default)("inSearchMode","noContent"),o={queryParams:["q"],q:null,router:(0,h.inject)(),application:(0,l.inject)(),user:(0,l.inject)(),loading:!1,loadingMore:!1,permissionDenied:!1,inSearchMode:(0,p.notEmpty)("q"),noContent:(0,p.equal)("model.bookmarks.length",0),searchTerm:(0,u.computed)("q",{get(){return this.q},set:(e,t)=>t}),emptyStateBody:()=>(0,m.htmlSafe)(w.default.t("user.no_bookmarks_body",{icon:(0,_.iconHTML)("bookmark")})),userDoesNotHaveBookmarks:(e,t)=>!e&&t,nothingFound:(e,t)=>e&&t,search(){this.router.transitionTo({queryParams:{q:this.searchTerm}})},reload(){this.send("triggerRefresh")},loadMore(){return this.loadingMore?g.Promise.resolve():(this.set("loadingMore",!0),this._loadMoreBookmarks(this.q).then((e=>this._processLoadResponse(this.q,e))).catch((()=>this._bookmarksListDenied())).finally((()=>this.set("loadingMore",!1))))},_loadMoreBookmarks(e){if(!this.model.loadMoreUrl)return g.Promise.resolve();let t=this.model.loadMoreUrl;if(e){const n=t.includes("?")?"&":"?";t+=`${n}q=${encodeURIComponent(e)}`}return(0,f.ajax)({url:t})},_bookmarksListDenied(){this.set("permissionDenied",!0)},_processLoadResponse(e,t){if(t&&t.user_bookmark_list){if(t=t.user_bookmark_list,this.model.searchTerm=e,this.model.loadMoreUrl=t.more_bookmarks_url,t.bookmarks){const e=t.bookmarks.map(this.transform);this.model.bookmarks.pushObjects(e),this.session.set("bookmarksModel",this.model)}}else this.model.loadMoreUrl=null},transform(e){const t=b.default.create(e);return t.topicStatus=d().create({closed:e.closed,archived:e.archived,is_warning:e.is_warning,pinned:!1,unpinned:!1,invisible:e.invisible}),t}},(0,a.Z)(o,"emptyStateBody",[r],Object.getOwnPropertyDescriptor(o,"emptyStateBody"),o),(0,a.Z)(o,"userDoesNotHaveBookmarks",[i],Object.getOwnPropertyDescriptor(o,"userDoesNotHaveBookmarks"),o),(0,a.Z)(o,"nothingFound",[s],Object.getOwnPropertyDescriptor(o,"nothingFound"),o),(0,a.Z)(o,"search",[u.action],Object.getOwnPropertyDescriptor(o,"search"),o),(0,a.Z)(o,"reload",[u.action],Object.getOwnPropertyDescriptor(o,"reload"),o),(0,a.Z)(o,"loadMore",[u.action],Object.getOwnPropertyDescriptor(o,"loadMore"),o),o))},76990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(54001),a=n(97423),l=n.n(a),c=n(6264),u=n(17579),d=n(34811),p=n(57555),h=n(82099);const m=l().extend((r=(0,p.default)("currentUser.draft_count"),i=(0,p.default)("model.pending_posts_count"),s={dialog:(0,u.inject)(),user:(0,a.inject)(),userActionType:null,canDownloadPosts:(0,c.alias)("user.viewingSelf"),draftLabel:e=>e>0?h.default.t("drafts.label_with_count",{count:e}):h.default.t("drafts.label"),pendingLabel:e=>e>0?h.default.t("pending_posts.label_with_count",{count:e}):h.default.t("pending_posts.label"),actions:{exportUserArchive(){this.dialog.yesNoConfirm({message:h.default.t("user.download_archive.confirm"),didConfirm:()=>(0,d.exportUserArchive)()})}}},(0,o.Z)(s,"draftLabel",[r],Object.getOwnPropertyDescriptor(s,"draftLabel"),s),(0,o.Z)(s,"pendingLabel",[i],Object.getOwnPropertyDescriptor(s,"pendingLabel"),s),s))},38933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(54001),o=n(97423),a=n.n(o),l=n(48163),c=n(6264),u=n(57555);const d=a().extend((r=(0,u.default)("favoriteBadges.length"),i={user:(0,o.inject)(),username:(0,c.alias)("user.model.username_lower"),sortedBadges:(0,c.sort)("model","badgeSortOrder"),favoriteBadges:(0,c.filterBy)("model","is_favorite",!0),canFavoriteMoreBadges(e){return e<this.siteSettings.max_favorite_badges},init(){this._super(...arguments),this.badgeSortOrder=["badge.badge_type.sort_order:desc","badge.name"]},favorite:e=>e.favorite()},(0,s.Z)(i,"canFavoriteMoreBadges",[r],Object.getOwnPropertyDescriptor(i,"canFavoriteMoreBadges"),i),(0,s.Z)(i,"favorite",[l.action],Object.getOwnPropertyDescriptor(i,"favorite"),i),i))},8897:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o,a,l,c=n(54001),u=n(97423),d=n.n(u),p=n(48163),h=n(6264),m=n(17579),g=n(95573),f=n(37344),b=n(38864),_=n(88802),y=n(34405),w=n(57555),v=n(82099);const k=d().extend((r=(0,w.observes)("searchTerm"),i=(0,w.debounce)(y.INPUT_DELAY),s=(0,w.default)("model"),o=(0,w.default)("filter"),a=(0,w.default)("invitesCount","filter"),l={dialog:(0,m.inject)(),modal:(0,m.inject)(),user:null,model:null,filter:null,invitesCount:null,canLoadMore:!0,invitesLoading:!1,reinvitedAll:!1,removedAll:!1,searchTerm:null,init(){this._super(...arguments),this.set("searchTerm","")},searchTermChanged(){this._searchTermChanged()},_searchTermChanged(){_.default.findInvitedBy(this.user,this.filter,this.searchTerm).then((e=>this.set("model",e)))},inviteRedeemed:(0,h.equal)("filter","redeemed"),inviteExpired:(0,h.equal)("filter","expired"),invitePending:(0,h.equal)("filter","pending"),hasEmailInvites:e=>e.invites.some((e=>e.email)),showBulkActionButtons(e){return"pending"===e&&this.model.invites.length>0&&this.currentUser.staff},canInviteToForum:(0,h.reads)("currentUser.can_invite_to_forum"),canBulkInvite:(0,h.reads)("currentUser.admin"),showSearch:(e,t)=>e[t]>5,createInvite(){this.modal.show(g.default,{model:{invites:this.model.invites}})},createInviteCsv(){this.modal.show(f.default)},editInvite(e){this.modal.show(g.default,{model:{editing:!0,invite:e}})},destroyInvite(e){e.destroy(),this.model.invites.removeObject(e)},destroyAllExpired(){this.dialog.deleteConfirm({message:v.default.t("user.invited.remove_all_confirm"),didConfirm:()=>_.default.destroyAllExpired().then((()=>{this.set("removedAll",!0),this.send("triggerRefresh")})).catch(b.popupAjaxError)})},reinvite:e=>(e.reinvite(),!1),reinviteAll(){this.dialog.yesNoConfirm({message:v.default.t("user.invited.reinvite_all_confirm"),didConfirm:()=>_.default.reinviteAll().then((()=>this.set("reinvitedAll",!0))).catch(b.popupAjaxError)})},loadMore(){const e=this.model;this.canLoadMore&&!this.invitesLoading&&(this.set("invitesLoading",!0),_.default.findInvitedBy(this.user,this.filter,this.searchTerm,e.invites.length).then((t=>{this.set("invitesLoading",!1),e.invites.pushObjects(t.invites),(0===t.invites.length||t.invites.length<this.siteSettings.invites_per_page)&&this.set("canLoadMore",!1)})))}},(0,c.Z)(l,"searchTermChanged",[r],Object.getOwnPropertyDescriptor(l,"searchTermChanged"),l),(0,c.Z)(l,"_searchTermChanged",[i],Object.getOwnPropertyDescriptor(l,"_searchTermChanged"),l),(0,c.Z)(l,"hasEmailInvites",[s],Object.getOwnPropertyDescriptor(l,"hasEmailInvites"),l),(0,c.Z)(l,"showBulkActionButtons",[o],Object.getOwnPropertyDescriptor(l,"showBulkActionButtons"),l),(0,c.Z)(l,"showSearch",[a],Object.getOwnPropertyDescriptor(l,"showSearch"),l),(0,c.Z)(l,"createInvite",[p.action],Object.getOwnPropertyDescriptor(l,"createInvite"),l),(0,c.Z)(l,"createInviteCsv",[p.action],Object.getOwnPropertyDescriptor(l,"createInviteCsv"),l),(0,c.Z)(l,"editInvite",[p.action],Object.getOwnPropertyDescriptor(l,"editInvite"),l),(0,c.Z)(l,"destroyInvite",[p.action],Object.getOwnPropertyDescriptor(l,"destroyInvite"),l),(0,c.Z)(l,"destroyAllExpired",[p.action],Object.getOwnPropertyDescriptor(l,"destroyAllExpired"),l),(0,c.Z)(l,"reinvite",[p.action],Object.getOwnPropertyDescriptor(l,"reinvite"),l),(0,c.Z)(l,"reinviteAll",[p.action],Object.getOwnPropertyDescriptor(l,"reinviteAll"),l),(0,c.Z)(l,"loadMore",[p.action],Object.getOwnPropertyDescriptor(l,"loadMore"),l),l))},45504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o,a=n(54001),l=n(97423),c=n.n(l),u=n(57555),d=n(82099);const p=c().extend((r=(0,u.default)("invitesCount.total","invitesCount.pending"),i=(0,u.default)("invitesCount.total","invitesCount.expired"),s=(0,u.default)("invitesCount.total","invitesCount.redeemed"),o={pendingLabel:(e,t)=>e>0?d.default.t("user.invited.pending_tab_with_count",{count:t}):d.default.t("user.invited.pending_tab"),expiredLabel:(e,t)=>e>0?d.default.t("user.invited.expired_tab_with_count",{count:t}):d.default.t("user.invited.expired_tab"),redeemedLabel:(e,t)=>e>0?d.default.t("user.invited.redeemed_tab_with_count",{count:t}):d.default.t("user.invited.redeemed_tab")},(0,a.Z)(o,"pendingLabel",[r],Object.getOwnPropertyDescriptor(o,"pendingLabel"),o),(0,a.Z)(o,"expiredLabel",[i],Object.getOwnPropertyDescriptor(o,"expiredLabel"),o),(0,a.Z)(o,"redeemedLabel",[s],Object.getOwnPropertyDescriptor(o,"redeemedLabel"),o),o))},45105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBeforeLoadMoreCallback:()=>N,default:()=>z});var r,i,s,o,a,l,c,u,d,p,h,m,g=n(94664),f=n(49246),b=n(54001),_=n(97423),y=n.n(_),w=n(48163),v=n(17579),k=n(24434),x=n(58186),T=n(45386),S=n(3055),C=n(3366),P=n(47582),O=n(3961),E=n(57555),D=n(82099),I=n(8620),j=n(31691),Z=n(91138),A=n.n(Z);const M=[];function N(e){M.push(e)}let z=(r=(0,E.default)("filter"),i=(0,E.default)("model.content.@each"),s=(0,E.default)("model.content.@each.read"),o=(0,E.default)("isFiltered","model.content.length"),a=(0,E.default)("isFiltered","model.content.length"),l=(0,E.default)(),c=class extends(y()){constructor(){super(...arguments),(0,g.Z)(this,"modal",u,this),(0,g.Z)(this,"appEvents",d,this),(0,g.Z)(this,"currentUser",p,this),(0,g.Z)(this,"site",h,this),(0,g.Z)(this,"siteSettings",m,this),(0,f.Z)(this,"queryParams",["filter"]),(0,f.Z)(this,"filter","all")}get listContainerClassNames(){return"user-notifications-list "+(this.siteSettings.show_user_menu_avatars?"show-avatars":"")}isFiltered(){return this.filter&&"all"!==this.filter}items(){return this.model.map((e=>{const t={appEvents:this.appEvents,currentUser:this.currentUser,siteSettings:this.siteSettings,site:this.site,notification:e,endComponent:(0,j.setComponentTemplate)((0,I.createTemplateFactory)({id:"KMAmxEk5",block:'[[[1,"\\n          "],[8,[32,0],null,[["@date"],[[32,1,["created_at"]]]],null],[1,"\\n        "]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/controllers/user-notifications.js",scope:()=>[T.default,e],isStrictMode:!0}),A()())};return new C.default(t)}))}allNotificationsRead(){return!this.get("model.content").some((e=>!e.get("read")))}doesNotHaveNotifications(e,t){return!e&&0===t}nothingFound(e,t){return e&&0===t}emptyStateBody(){return(0,k.htmlSafe)(D.default.t("user.no_notifications_page_body",{preferencesUrl:(0,P.default)("/my/preferences/notifications"),icon:(0,O.iconHTML)("bell")}))}async markRead(){await(0,S.ajax)("/notifications/mark-read",{type:"PUT"}),this.model.forEach((e=>e.set("read",!0)))}async resetNew(){this.currentUser.unread_high_priority_notifications>0?this.modal.show(x.default,{model:{confirmationMessage:D.default.t("notifications.dismiss_confirmation.body.default",{count:this.currentUser.unread_high_priority_notifications}),dismissNotifications:()=>this.markRead()}}):this.markRead()}loadMore(){M.length&&!M.some((e=>e(this)))||this.model.loadMore()}},u=(0,b.Z)(c.prototype,"modal",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,b.Z)(c.prototype,"appEvents",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,b.Z)(c.prototype,"currentUser",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,b.Z)(c.prototype,"site",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,b.Z)(c.prototype,"siteSettings",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(c.prototype,"isFiltered",[r],Object.getOwnPropertyDescriptor(c.prototype,"isFiltered"),c.prototype),(0,b.Z)(c.prototype,"items",[i],Object.getOwnPropertyDescriptor(c.prototype,"items"),c.prototype),(0,b.Z)(c.prototype,"allNotificationsRead",[s],Object.getOwnPropertyDescriptor(c.prototype,"allNotificationsRead"),c.prototype),(0,b.Z)(c.prototype,"doesNotHaveNotifications",[o],Object.getOwnPropertyDescriptor(c.prototype,"doesNotHaveNotifications"),c.prototype),(0,b.Z)(c.prototype,"nothingFound",[a],Object.getOwnPropertyDescriptor(c.prototype,"nothingFound"),c.prototype),(0,b.Z)(c.prototype,"emptyStateBody",[l],Object.getOwnPropertyDescriptor(c.prototype,"emptyStateBody"),c.prototype),(0,b.Z)(c.prototype,"resetNew",[w.action],Object.getOwnPropertyDescriptor(c.prototype,"resetNew"),c.prototype),(0,b.Z)(c.prototype,"loadMore",[w.action],Object.getOwnPropertyDescriptor(c.prototype,"loadMore"),c.prototype),c)},53986:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(97423),i=n.n(r);class s extends(i()){}},39029:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a,l=n(94664),c=n(54001),u=n(97423),d=n.n(u),p=n(48163),h=n(82099);function m(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let g=(r=(0,p.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),i=(0,p.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),a=new WeakSet,s=class extends(d()){constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=a),t.add(e),(0,l.Z)(this,"user",o,this)}get viewingSelf(){return this.user.viewingSelf}get newLinkText(){return m(this,a,f).call(this,"new")}get unreadLinkText(){return m(this,a,f).call(this,"unread")}get navigationControlsButton(){return document.getElementById("navigation-controls__button")}changeGroupNotificationLevel(e){this.group.setNotification(e,this.get("user.model.id"))}},o=(0,c.Z)(s.prototype,"user",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.Z)(s.prototype,"newLinkText",[r],Object.getOwnPropertyDescriptor(s.prototype,"newLinkText"),s.prototype),(0,c.Z)(s.prototype,"unreadLinkText",[i],Object.getOwnPropertyDescriptor(s.prototype,"unreadLinkText"),s.prototype),(0,c.Z)(s.prototype,"changeGroupNotificationLevel",[p.action],Object.getOwnPropertyDescriptor(s.prototype,"changeGroupNotificationLevel"),s.prototype),s);function f(e){const t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"group",groupName:this.group.name});return 0===t?h.default.t(`user.messages.${e}`):h.default.t(`user.messages.${e}_with_count`,{count:t})}},75672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o,a,l=n(94664),c=n(54001),u=n(23183),d=n(97423),p=n.n(d),h=n(48163);let m=(r=class extends(p()){constructor(){super(...arguments),(0,l.Z)(this,"tagsForUser",i,this),(0,l.Z)(this,"sortedByCount",s,this),(0,l.Z)(this,"sortedByName",o,this),(0,l.Z)(this,"sortProperties",a,this)}sortByCount(e){e?.preventDefault(),this.sortProperties=["count:desc","id"],this.sortedByCount=!0,this.sortedByName=!1}sortById(e){e?.preventDefault(),this.sortProperties=["id"],this.sortedByCount=!1,this.sortedByName=!0}},i=(0,c.Z)(r.prototype,"tagsForUser",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=(0,c.Z)(r.prototype,"sortedByCount",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),o=(0,c.Z)(r.prototype,"sortedByName",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a=(0,c.Z)(r.prototype,"sortProperties",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return["count:desc","id"]}}),(0,c.Z)(r.prototype,"sortByCount",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"sortByCount"),r.prototype),(0,c.Z)(r.prototype,"sortById",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"sortById"),r.prototype),r)},56163:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(97423),c=n.n(l);let u=(r=class extends(c()){constructor(){super(...arguments),(0,s.Z)(this,"tagName",i,this)}},i=(0,o.Z)(r.prototype,"tagName",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),r)},34722:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a,l,c,u=n(94664),d=n(54001),p=n(97423),h=n.n(p),m=n(48163),g=n(17579),f=n(82099);function b(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let _=(r=(0,m.computed)("viewingSelf","router.currentRoute.name","currentUser.admin"),i=(0,m.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),s=(0,m.computed)("pmTopicTrackingState.newIncoming.[]","pmTopicTrackingState.statesModificationCounter","pmTopicTrackingState.isTracking"),c=new WeakSet,o=class extends(h()){constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=c),t.add(e),(0,u.Z)(this,"router",a,this),(0,u.Z)(this,"user",l,this)}get viewingSelf(){return this.user.viewingSelf}get showWarningsWarning(){return"userPrivateMessages.user.warnings"===this.router.currentRoute.name&&!this.viewingSelf&&!this.currentUser.isAdmin}get newLinkText(){return b(this,c,y).call(this,"new")}get unreadLinkText(){return b(this,c,y).call(this,"unread")}},a=(0,d.Z)(o.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.Z)(o.prototype,"user",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(o.prototype,"showWarningsWarning",[r],Object.getOwnPropertyDescriptor(o.prototype,"showWarningsWarning"),o.prototype),(0,d.Z)(o.prototype,"newLinkText",[i],Object.getOwnPropertyDescriptor(o.prototype,"newLinkText"),o.prototype),(0,d.Z)(o.prototype,"unreadLinkText",[s],Object.getOwnPropertyDescriptor(o.prototype,"unreadLinkText"),o.prototype),o);function y(e){const t=this.pmTopicTrackingState?.lookupCount(e,{inboxFilter:"user"});return 0===t?f.default.t(`user.messages.${e}`):f.default.t(`user.messages.${e}_with_count`,{count:t})}},96426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M,registerCustomUserNavMessagesDropdownRow:()=>Z,resetCustomUserNavMessagesDropdownRows:()=>A});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v=n(94664),k=n(54001),x=n(23183),T=n(97423),S=n.n(T),C=n(48163),P=n(6264),O=n(17579),E=n(20229),D=n(82099);let I=(0,n(91649).Z)(n(23183)).cached;const j=[];function Z(e,t,n){j.push({routeName:e,name:t,icon:n})}function A(){j.length=0}let M=(r=(0,P.alias)("group.name"),i=(0,P.and)("user.viewingSelf","currentUser.can_send_private_messages"),s=(0,P.equal)("currentParentRouteName","userPrivateMessages.group"),o=(0,P.readOnly)("user.viewingSelf"),a=(0,P.readOnly)("router.currentRoute.parent.name"),l=(0,P.readOnly)("site.can_tag_pms"),c=class extends(S()){constructor(){super(...arguments),(0,v.Z)(this,"router",u,this),(0,v.Z)(this,"user",d,this),(0,v.Z)(this,"userTopicsList",p,this),(0,v.Z)(this,"group",h,this),(0,v.Z)(this,"tagId",m,this),(0,v.Z)(this,"groupFilter",g,this),(0,v.Z)(this,"showNewPM",f,this),(0,v.Z)(this,"isGroup",b,this),(0,v.Z)(this,"viewingSelf",_,this),(0,v.Z)(this,"currentParentRouteName",y,this),(0,v.Z)(this,"pmTaggingEnabled",w,this)}get bulkSelectHelper(){this.userTopicsList.bulkSelectHelper}get messagesDropdownValue(){let e;const t=this.router.currentURL.toLowerCase();for(let n=this.messagesDropdownContent.length-1;n>=0;n--){const r=this.messagesDropdownContent[n];if(t.includes(r.id.toLowerCase().replace(this.router.rootURL,"/"))){e=r.id;break}}return e}get messagesDropdownContent(){const e=this.model.username_lower,t=[{id:this.router.urlFor("userPrivateMessages.user",e),name:D.default.t("user.messages.inbox")}];return this.model.groupsWithMessages.forEach((n=>{t.push({id:this.router.urlFor("userPrivateMessages.group",e,n.name),name:n.name,icon:"inbox"})})),this.pmTaggingEnabled&&t.push({id:this.router.urlFor("userPrivateMessages.tags",e),name:D.default.t("user.messages.tags"),icon:"tags"}),j.forEach((n=>{t.push({id:this.router.urlFor(n.routeName,e),name:n.name,icon:n.icon})})),t}onMessagesDropdownChange(e){return E.default.routeTo(e)}},u=(0,k.Z)(c.prototype,"router",[O.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,k.Z)(c.prototype,"user",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,k.Z)(c.prototype,"userTopicsList",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,k.Z)(c.prototype,"group",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,k.Z)(c.prototype,"tagId",[x.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,k.Z)(c.prototype,"groupFilter",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,k.Z)(c.prototype,"showNewPM",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,k.Z)(c.prototype,"isGroup",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,k.Z)(c.prototype,"viewingSelf",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,k.Z)(c.prototype,"currentParentRouteName",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,k.Z)(c.prototype,"pmTaggingEnabled",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,k.Z)(c.prototype,"messagesDropdownContent",[I],Object.getOwnPropertyDescriptor(c.prototype,"messagesDropdownContent"),c.prototype),(0,k.Z)(c.prototype,"onMessagesDropdownChange",[C.action],Object.getOwnPropertyDescriptor(c.prototype,"onMessagesDropdownChange"),c.prototype),c)},84949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a,l,c,u=n(54001),d=n(97423),p=n.n(d),h=n(6264),m=n(70352),g=n(57555);const f=p().extend((r=(0,g.default)("model.badges.length"),i=(0,g.default)("model.time_read"),s=(0,g.default)("model.time_read"),o=(0,g.default)("model.time_read","model.recent_time_read"),a=(0,g.default)("model.recent_time_read"),l=(0,g.default)("model.recent_time_read"),c={userController:(0,d.inject)("user"),user:(0,h.alias)("userController.model"),moreBadges:e=>e>=6,timeRead:e=>(0,m.duration)(e,{format:"tiny"}),timeReadMedium:e=>(0,m.duration)(e,{format:"medium"}),showRecentTimeRead:(e,t)=>e!==t&&0!==t,recentTimeRead:e=>e>0?(0,m.duration)(e,{format:"tiny"}):null,recentTimeReadMedium:e=>e>0?(0,m.duration)(e,{format:"medium"}):null},(0,u.Z)(c,"moreBadges",[r],Object.getOwnPropertyDescriptor(c,"moreBadges"),c),(0,u.Z)(c,"timeRead",[i],Object.getOwnPropertyDescriptor(c,"timeRead"),c),(0,u.Z)(c,"timeReadMedium",[s],Object.getOwnPropertyDescriptor(c,"timeReadMedium"),c),(0,u.Z)(c,"showRecentTimeRead",[o],Object.getOwnPropertyDescriptor(c,"showRecentTimeRead"),c),(0,u.Z)(c,"recentTimeRead",[a],Object.getOwnPropertyDescriptor(c,"recentTimeRead"),c),(0,u.Z)(c,"recentTimeReadMedium",[l],Object.getOwnPropertyDescriptor(c,"recentTimeReadMedium"),c),c))},33195:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(49246),m=n(54001),g=n(23183),f=n(97423),b=n.n(f),_=n(48163),y=n(6264),w=n(33217),v=n(83924),k=n(88981),x=n(92635),T=n(27397),S=n(80846),C=n(57555);let P=(r=(0,y.reads)("pmTopicTrackingState.newIncoming.length"),i=(0,y.or)("currentUser.canManageTopic","showDismissRead","showResetNew"),s=(0,C.default)("model.topics.length","incomingCount"),o=(0,C.default)("filter","model.topics.length"),a=(0,C.default)("filter","model.topics.length"),l=class extends(b()){constructor(){super(...arguments),(0,p.Z)(this,"model",c,this),(0,h.Z)(this,"hideCategory",!1),(0,h.Z)(this,"showPosters",!1),(0,h.Z)(this,"channel",null),(0,h.Z)(this,"tagsForUser",null),(0,h.Z)(this,"queryParams",Object.keys(S.QUERY_PARAMS)),(0,h.Z)(this,"bulkSelectHelper",new v.default(this)),(0,p.Z)(this,"incomingCount",u,this),(0,p.Z)(this,"canBulkSelect",d,this);for(const[e,t]of Object.entries(S.QUERY_PARAMS))(0,k.defineTrackedProperty)(this,e,t.default)}get bulkSelectEnabled(){return this.bulkSelectHelper.bulkSelectEnabled}get selected(){return this.bulkSelectHelper.selected}noContent(e,t){return 0===e&&0===t}showResetNew(e,t){return e===T.NEW_FILTER&&t}showDismissRead(e,t){return e===T.UNREAD_FILTER&&t}subscribe(){this.pmTopicTrackingState.trackIncoming(this.inbox,this.filter)}unsubscribe(){this.pmTopicTrackingState.stopIncomingTracking()}changeSort(e){e===this.resolvedOrder?this.ascending=!this.resolvedAscending:this.ascending=!1,this.order=e}get resolvedAscending(){return(0,w.isNone)(this.ascending)?"true"===this.model.get("params.ascending"):"true"===this.ascending.toString()}get resolvedOrder(){return this.order??this.model.get("params.order")??"activity"}resetNew(){const e=this.selected?this.selected.map((e=>e.id)):null,t={inbox:this.inbox,topicIds:e};this.group&&(t.groupName=this.group.name),x.default.pmResetNew(t).then((e=>{e&&e.topic_ids.length>0&&(this.pmTopicTrackingState.removeTopics(e.topic_ids),this.send("refresh"))}))}loadMore(){this.model.loadMore()}showInserted(e){e?.preventDefault(),this.model.loadBefore(this.pmTopicTrackingState.newIncoming),this.pmTopicTrackingState.resetIncomingTracking()}refresh(){this.send("triggerRefresh")}toggleBulkSelect(){this.bulkSelectHelper.toggleBulkSelect()}dismissRead(e,t){this.bulkSelectHelper.dismissRead(e,t)}updateAutoAddTopicsToBulkSelect(e){this.bulkSelectHelper.autoAddTopicsToBulkSelect=e}addTopicsToBulkSelect(e){this.bulkSelectHelper.addTopics(e)}},c=(0,m.Z)(l.prototype,"model",[g.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.Z)(l.prototype,"incomingCount",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,m.Z)(l.prototype,"canBulkSelect",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,m.Z)(l.prototype,"noContent",[s],Object.getOwnPropertyDescriptor(l.prototype,"noContent"),l.prototype),(0,m.Z)(l.prototype,"showResetNew",[o],Object.getOwnPropertyDescriptor(l.prototype,"showResetNew"),l.prototype),(0,m.Z)(l.prototype,"showDismissRead",[a],Object.getOwnPropertyDescriptor(l.prototype,"showDismissRead"),l.prototype),(0,m.Z)(l.prototype,"changeSort",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"changeSort"),l.prototype),(0,m.Z)(l.prototype,"resetNew",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"resetNew"),l.prototype),(0,m.Z)(l.prototype,"loadMore",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"loadMore"),l.prototype),(0,m.Z)(l.prototype,"showInserted",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"showInserted"),l.prototype),(0,m.Z)(l.prototype,"refresh",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"refresh"),l.prototype),(0,m.Z)(l.prototype,"toggleBulkSelect",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"toggleBulkSelect"),l.prototype),(0,m.Z)(l.prototype,"dismissRead",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"dismissRead"),l.prototype),(0,m.Z)(l.prototype,"updateAutoAddTopicsToBulkSelect",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"updateAutoAddTopicsToBulkSelect"),l.prototype),(0,m.Z)(l.prototype,"addTopicsToBulkSelect",[_.action],Object.getOwnPropertyDescriptor(l.prototype,"addTopicsToBulkSelect"),l.prototype),l)},70611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w=n(54001),v=n(97423),k=n.n(v),x=n(48163),T=n.n(x),S=n(6264),C=n(17579),P=n(16572),O=n(33217),E=n(29318),D=n(9387),I=n(83470),j=n(7223),Z=n(47582),A=n(57555),M=n(82099);const N=k().extend(I.default,(r=(0,A.default)("model.username"),i=(0,A.default)("viewingSelf","model.profile_hidden"),s=(0,A.default)("model.profileBackgroundUrl"),o=(0,A.default)("model.profile_hidden","isSummaryRoute","viewingSelf","forceExpand"),a=(0,A.default)("model.suspended","currentUser.staff"),l=(0,A.default)("model.trust_level"),c=(0,A.default)("viewingSelf","currentUser.admin"),u=(0,A.default)("viewingSelf"),d=(0,A.default)("viewingSelf"),p=(0,A.default)("viewingSelf","currentUser.admin","currentUser.can_send_private_messages"),h=(0,A.default)("viewingSelf","currentUser.admin"),m=(0,A.default)("model.name"),g=(0,A.default)("model.badge_count"),f=(0,A.default)(),b=(0,A.default)("model.user_fields.@each.value"),_=(0,A.default)("model.primary_group_name"),y={router:(0,C.inject)(),dialog:(0,C.inject)(),userNotifications:(0,v.inject)("user-notifications"),adminTools:(0,E.default)(),viewingSelf(e){let t=this.currentUser;return t&&e===t.get("username")},canExpandProfile:(e,t)=>!t&&e,hasProfileBackgroundUrl:e=>!(0,O.isEmpty)(e.toString()),isSummaryRoute:(0,S.equal)("router.currentRouteName","user.summary"),collapsedInfo:(e,t,n,r)=>!!e||(!t||n)&&!r,canMuteOrIgnoreUser:(0,S.or)("model.can_ignore_user","model.can_mute_user"),hasGivenFlags:(0,S.gt)("model.number_of_flags_given",0),hasFlaggedPosts:(0,S.gt)("model.number_of_flagged_posts",0),hasDeletedPosts:(0,S.gt)("model.number_of_deleted_posts",0),hasBeenSuspended:(0,S.gt)("model.number_of_suspensions",0),hasReceivedWarnings:(0,S.gt)("model.warnings_received_count",0),hasRejectedPosts:(0,S.gt)("model.number_of_rejected_posts",0),collapsedInfoState:(0,x.computed)("collapsedInfo",(function(){return{isExpanded:!this.collapsedInfo,icon:this.collapsedInfo?"angle-double-down":"angle-double-up",label:this.collapsedInfo?"expand_profile":"collapse_profile",ariaLabel:this.collapsedInfo?"user.sr_expand_profile":"user.sr_collapse_profile",action:this.collapsedInfo?"expandProfile":"collapseProfile"}})),isTrustLevelZero:(0,S.equal)("model.trust_level",0),hasTrustLevel:(0,S.or)("isTrustLevelZero","model.trust_level"),showStaffCounters:(0,S.or)("hasGivenFlags","hasFlaggedPosts","hasDeletedPosts","hasBeenSuspended","hasReceivedWarnings","hasRejectedPosts"),showFeaturedTopic:(0,S.and)("model.featured_topic","siteSettings.allow_featured_topic_on_user_profiles"),isNotSuspendedOrIsStaff:(e,t)=>!e||t,linkWebsite:(0,S.not)("model.isBasic"),removeNoFollow(e){return e>2&&!this.siteSettings.tl3_links_no_follow},showBookmarks:(e,t)=>e||t,showDrafts:e=>e,showRead:e=>e,showPrivateMessages(e,t){return this.currentUser?.can_send_private_messages&&(e||t)},showNotificationsTab:(e,t)=>e||t,nameFirst:e=>(0,D.prioritizeNameInUx)(e),showBadges(e){return this.siteSettings.enable_badges&&e>0},canInviteToForum:()=>j.default.currentProp("can_invite_to_forum"),canDeleteUser:(0,S.and)("model.can_be_deleted","model.can_delete_all_posts"),publicUserFields(){const e=this.site.get("user_fields");if(!(0,O.isEmpty)(e)){const t=this.get("model.user_fields");return e.filterBy("show_on_profile",!0).sortBy("position").map((e=>{(0,x.set)(e,"dasherized_name",(0,P.dasherize)(e.get("name")));const n=t?t[e.get("id").toString()]:null;return(0,O.isEmpty)(n)?null:T().create({value:n,field:e})})).compact()}},primaryGroup(e){if(e)return`group-${e}`},currentParentRoute:(0,S.readOnly)("router.currentRoute.parent.name"),userNotificationLevel:(0,x.computed)("currentUser.ignored_ids","model.ignored","model.muted",{get(){return this.get("model.ignored")?"changeToIgnored":this.get("model.muted")?"changeToMuted":"changeToNormal"},set:(e,t)=>t}),get displayTopLevelAdminButton(){return!!this.currentUser?.staff&&this.site.desktopView},showSuspensions(e){e?.preventDefault(),this.adminTools.showActionLogs(this,{target_user:this.get("model.username"),action_name:"suspend_user"})},actions:{collapseProfile(){this.set("forceExpand",!1)},expandProfile(){this.set("forceExpand",!0)},adminDelete(){const e=this.get("model.id"),t=document.location.pathname,n=n=>{this.dialog.notice(M.default.t("admin.user.deleting_user"));let r={context:t};return n&&(r.block_email=!0,r.block_urls=!0,r.block_ip=!0),r.delete_posts=!0,this.adminTools.deleteUser(e,r).then((e=>{e.deleted?document.location=(0,Z.default)("/admin/users/list/active"):this.dialog.alert(M.default.t("admin.user.delete_failed"))})).catch((()=>this.dialog.alert(M.default.t("admin.user.delete_failed"))))};this.dialog.alert({title:M.default.t("admin.user.delete_confirm_title"),message:M.default.t("admin.user.delete_confirm"),class:"delete-user-modal",buttons:[{label:M.default.t("admin.user.delete_dont_block"),class:"btn-primary",action:()=>n(!1)},{icon:"exclamation-triangle",label:M.default.t("admin.user.delete_and_block"),class:"btn-danger",action:()=>n(!0)},{label:M.default.t("composer.cancel")}]})},updateNotificationLevel(e){return this.model.updateNotificationLevel(e)}}},(0,w.Z)(y,"viewingSelf",[r],Object.getOwnPropertyDescriptor(y,"viewingSelf"),y),(0,w.Z)(y,"canExpandProfile",[i],Object.getOwnPropertyDescriptor(y,"canExpandProfile"),y),(0,w.Z)(y,"hasProfileBackgroundUrl",[s],Object.getOwnPropertyDescriptor(y,"hasProfileBackgroundUrl"),y),(0,w.Z)(y,"collapsedInfo",[o],Object.getOwnPropertyDescriptor(y,"collapsedInfo"),y),(0,w.Z)(y,"isNotSuspendedOrIsStaff",[a],Object.getOwnPropertyDescriptor(y,"isNotSuspendedOrIsStaff"),y),(0,w.Z)(y,"removeNoFollow",[l],Object.getOwnPropertyDescriptor(y,"removeNoFollow"),y),(0,w.Z)(y,"showBookmarks",[c],Object.getOwnPropertyDescriptor(y,"showBookmarks"),y),(0,w.Z)(y,"showDrafts",[u],Object.getOwnPropertyDescriptor(y,"showDrafts"),y),(0,w.Z)(y,"showRead",[d],Object.getOwnPropertyDescriptor(y,"showRead"),y),(0,w.Z)(y,"showPrivateMessages",[p],Object.getOwnPropertyDescriptor(y,"showPrivateMessages"),y),(0,w.Z)(y,"showNotificationsTab",[h],Object.getOwnPropertyDescriptor(y,"showNotificationsTab"),y),(0,w.Z)(y,"nameFirst",[m],Object.getOwnPropertyDescriptor(y,"nameFirst"),y),(0,w.Z)(y,"showBadges",[g],Object.getOwnPropertyDescriptor(y,"showBadges"),y),(0,w.Z)(y,"canInviteToForum",[f],Object.getOwnPropertyDescriptor(y,"canInviteToForum"),y),(0,w.Z)(y,"publicUserFields",[b],Object.getOwnPropertyDescriptor(y,"publicUserFields"),y),(0,w.Z)(y,"primaryGroup",[_],Object.getOwnPropertyDescriptor(y,"primaryGroup"),y),(0,w.Z)(y,"showSuspensions",[x.action],Object.getOwnPropertyDescriptor(y,"showSuspensions"),y),y))},13783:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i=n(54001),s=n(97423),o=n.n(s),a=n(48163),l=n(6264),c=n(17579),u=n(92098),d=n(70352),p=n(5751),h=n(56111);const m=o().extend((r={modal:(0,c.inject)(),queryParams:["period","order","asc","name","group","exclude_usernames","exclude_groups"],period:"weekly",order:"",asc:null,name:"",group:null,nameInput:null,exclude_usernames:null,exclude_groups:null,isLoading:!1,columns:null,groupOptions:null,params:null,showGroupFilter:(0,l.and)("currentUser","groupOptions"),showTimeRead:(0,l.equal)("period","all"),loadUsers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&this.set("params",e),this.setProperties({isLoading:!0,nameInput:this.params.name,order:this.params.order});const t=this.columns.filter((e=>"user_field"===e.type)).map((e=>e.user_field_id)).join("|"),n=this.columns.filter((e=>"plugin"===e.type)).map((e=>e.id)).join("|");return this.store.find("directoryItem",Object.assign(this.params,{user_field_ids:t,plugin_column_ids:n})).then((e=>{const t=e.get("resultSetMeta.last_updated_at");this.setProperties({model:e,lastUpdatedAt:t?(0,d.longDate)(t):null,period:this.params.period})})).finally((()=>{this.set("isLoading",!1)}))},loadGroups(){if(this.currentUser)return p.default.findAll({ignore_automatic:!0}).then((e=>{const t=e.filter((e=>e.can_see_members)).map((e=>({name:e.full_name||e.name,id:e.name})));this.set("groupOptions",t)}))},groupChanged(e,t){this.set("group",t?.id)},showEditColumnsModal(){this.modal.show(u.default)},onUsernameFilterChanged(e){(0,h.default)(this,this._setUsernameFilter,e,500)},_setUsernameFilter(e){this.setProperties({name:e,"params.name":e}),this.loadUsers()},loadMore(){this.model.loadMore()}},(0,i.Z)(r,"groupChanged",[a.action],Object.getOwnPropertyDescriptor(r,"groupChanged"),r),(0,i.Z)(r,"showEditColumnsModal",[a.action],Object.getOwnPropertyDescriptor(r,"showEditColumnsModal"),r),(0,i.Z)(r,"onUsernameFilterChanged",[a.action],Object.getOwnPropertyDescriptor(r,"onUsernameFilterChanged"),r),(0,i.Z)(r,"loadMore",[a.action],Object.getOwnPropertyDescriptor(r,"loadMore"),r),r))},9632:(e,t,n)=>{"use strict";n.r(t);var r=n(71466),i=n.n(r),s=n(41221),o=n.n(s),a=n(91707);window.__widget_helpers=a.default,window.virtualDom=o(),window.$||(window.$=window.jQuery=i())},19601:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.htmlSafe)((0,i.autoUpdatingRelativeAge)(new Date(e),{title:!0,addAgo:t.addAgo||!1,...t.defaultFormat&&{defaultFormat:t.defaultFormat}}))}(0,n(61369).registerRawHelper)("age-with-tooltip",s)},15080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addExtraUserClasses:()=>p,classesForUser:()=>h,default:()=>g,registerCustomAvatarHelper:()=>d,renderAvatar:()=>m});var r=n(48163),i=n(24434),s=n(9387),o=n(62617),a=n(80709),l=n(61369),c=n(82099);let u;function d(e){u=u||[],u.push(e)}function p(e,t){let n=h(e).join(" ");return n&&n.length&&(t.extraClasses=n),t}function h(e){let t=[];if(u)for(let n=0;n<u.length;n++)t=t.concat(u[n](e));return t}function m(e,t){if(t=t||{},e){const n=(0,r.get)(e,t.namePath||"name"),i=(0,r.get)(e,t.usernamePath||"username"),l=(0,r.get)(e,t.avatarTemplatePath||"avatar_template");if(!i||!l)return"";let u=(0,s.prioritizeNameInUx)(n)?n:(0,o.formatUsername)(i),d=t.title;if(!d&&!t.ignoreTitle&&(d=(0,r.get)(e,"title"),!d)){const t=(0,r.get)(e,"description");t&&t.length>0&&(d=c.default.t("user.avatar.name_and_description",{name:u,description:t}))}return(0,a.avatarImg)({size:t.imageSize,extraClasses:(0,r.get)(e,"extras")||t.extraClasses,title:d||u,avatarTemplate:l})}return""}function g(e,t){return(0,i.htmlSafe)(m.call(this,e,t))}(0,l.registerRawHelper)("avatar",g)},56244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(60859),l=n.n(a),c=n(17579);let u=(r=class extends(l()){constructor(){super(...arguments),(0,s.Z)(this,"elementClasses",i,this)}compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.body,t.flatMap((e=>e?.split(" "))).filter(Boolean))}},i=(0,o.Z)(r.prototype,"elementClasses",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},76558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434);const i=["top","right","bottom","left"];function s(e,t){const n=t&&i.includes(t)?`border-${t}-color`:"border-color";return(0,r.htmlSafe)(`${n}: #${e} `)}},16917:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(33217),s=n(80709);function o(e,t){return(0,i.isEmpty)(e)?(0,r.htmlSafe)("<div class='avatar-placeholder'></div>"):(0,r.htmlSafe)((0,s.avatarImg)({size:t,avatarTemplate:e}))}},63133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(24434),i=n(33217),s=n(32605),o=n(80709);function a(e,t){return(0,i.isEmpty)(e)?(0,r.htmlSafe)("<div class='avatar-placeholder'></div>"):(0,r.htmlSafe)((0,o.avatarImg)((0,s.addExtraUserClasses)(e,{size:t,avatarTemplate:e.avatar_template})))}},82251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.categoryLinkHTML});var r=n(6659)},98726:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){return(0,r.htmlSafe)((0,i.autoUpdatingRelativeAge)(new Date(e),{format:"medium",title:!0}))}},77819:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(54736);function i(e){return(0,r.default)("capitalize-string helper is deprecated",{id:"discourse.capitalize-string",since:"3.1.0.beta6"}),e[0].toUpperCase()+e.slice(1)}},94370:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(33217),i=n(6659);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.categoryLinkHTML)(e,{hideParent:t.hideParent,allowUncategorized:t.allowUncategorized,categoryStyle:t.categoryStyle,link:!!(0,r.isPresent)(t.link)&&t.link})}(0,n(61369).registerRawHelper)("category-badge",s)},94925:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(24434);function i(e){return(0,r.htmlSafe)(`--category-badge-color: #${e};`)}},6659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addExtraIconRenderer:()=>f,categoryBadgeHTML:()=>b,categoryLinkHTML:()=>_,default:()=>y,defaultCategoryLinkRenderer:()=>w,replaceCategoryLinkRenderer:()=>m});var r=n(48163),i=n(24434),s=n(34933),o=n(43168),a=n(62617),l=n(56746),c=n(47582),u=n(61369),d=n(3961),p=n(82099);let h=w;function m(e){h=e}let g=[];function f(e){g.push(e)}function b(e,t){const{site:n,siteSettings:i}=(0,u.helperContext)();if(t=t||{},!e||!t.allowUncategorized&&(0,r.get)(e,"id")===n.uncategorized_category_id&&i.suppress_uncategorized_badge)return"";const s=(t.depth||1)+1;if(t.recursive&&s<=i.max_category_nesting){const n=l.default.findById(e.parent_category_id),r=!t.depth;t.depth=s;const i=b(n,t);return t.lastSubcategory=r,i+h(e,t)}return h(e,t)}function _(e,t){let n={};return t&&t.hash&&(t=t.hash),t&&(t.allowUncategorized&&(n.allowUncategorized=!0),void 0!==t.link&&(n.link=t.link),t.previewColor&&(n.previewColor=!0),t.extraClasses&&(n.extraClasses=t.extraClasses),t.hideParent&&(n.hideParent=!0),t.recursive&&(n.recursive=!0)),(0,i.htmlSafe)(b(e,n))}const y=_;function w(e,t){let n=(0,a.escapeExpression)((0,r.get)(e,"description_text")),i=(0,r.get)(e,"read_restricted"),h=t.url?t.url:(0,c.default)(`/c/${l.default.slugFor(e)}/${(0,r.get)(e,"id")}`),m=!1===t.link?"":h,f=!1===t.link||"false"===t.link?"span":"a",b=t.extraClasses?" "+t.extraClasses:"",_=`${(0,s.default)(e)}`,y="",w=null,v="",k=e?`data-category-id="${(0,r.get)(e,"id")}"`:"";t.hideParent||(w=l.default.findById((0,r.get)(e,"parent_category_id")));let x=(0,u.helperContext)().siteSettings,T="badge-category";i&&(T+=" restricted"),w&&(T+=" --has-parent",k+=` data-parent-category-id="${w.id}"`),y+=`<span \n    ${k} \n    data-drop-close="true" \n    class="${T}" \n    ${t.previewColor?`style="--category-badge-color: #${e.color}"`:""}\n    ${n?'title="'+n+'" ':""}\n  >`;let S=(0,a.escapeExpression)((0,r.get)(e,"name"));var C;return x.support_mixed_text_direction&&(v=(0,o.isRTL)(S)?'dir="rtl"':'dir="ltr"'),i&&(y+=(0,d.iconHTML)("lock")),g.forEach((t=>{const n=t(e);n&&(y+=(0,d.iconHTML)(n))})),y+=`<span class="badge-category__name" ${v}>${S}</span>`,y+="</span>",t.topicCount&&(y+=(C=t.topicCount,`<span class="topic-count" aria-label="${p.default.t("category_row.topic_count",{count:C})}">&times; ${C}</span>`)),m&&(m=` href="${m}" `),`<${f} class="badge-category__wrapper ${b}" ${_.length>0?`style="${_}"`:""} ${m}>${y}</${f}>`}(0,u.registerRawHelper)("category-link",_)},34933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(24434);function i(e){let t="";return e.color&&(t+=`--category-badge-color: #${e.color};`),e.text_color&&(t+=`--category-badge-text-color: #${e.text_color};`),e.parentCategory?.color&&(t+=`--parent-category-badge-color: #${e.parentCategory.color};`),e.parentCategory?.text_color&&(t+=`--parent-category-badge-text-color: #${e.parentCategory.text_color};`),(0,r.htmlSafe)(t)}},36391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(61369);function i(e){return e.getTime()/864e5}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.class||"age";if(!e)return n;let s=i(t.startDate||new Date),o=i(new Date(e)),a=(0,r.helperContext)().siteSettings;return s-o>a.cold_age_days_high?n+" coldmap-high":s-o>a.cold_age_days_medium?n+" coldmap-med":s-o>a.cold_age_days_low?n+" coldmap-low":n}(0,r.registerRawHelper)("cold-age-class",s)},99230:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.compact().join(" ");if(r.length)return r}n.r(t),n.d(t,{default:()=>r})},9726:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearHTMLCache:()=>a,getCustomHTML:()=>o,setCustomHTML:()=>l});var r=n(24434),i=n(13369);let s={};function o(e){const t=s[e];if(t)return(0,r.htmlSafe)(t);const n=i.default.get("customHTML");return n&&n[e]&&n[e].length?(0,r.htmlSafe)(n[e]):void 0}function a(){s={}}function l(e,t){s[e]=t}},41826:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(33217);function s(e){return(0,i.isEmpty)(e)?(0,r.htmlSafe)("&mdash;"):e}},84869:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(16572);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,r.dasherize)(e.replace(".","-"))}},58831:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addUsernameSelectorDecorator:()=>o,decorateUsername:()=>l,default:()=>c,resetUsernameDecorators:()=>a});var r=n(24434),i=n(61369);let s=[];function o(e){s.push(e)}function a(){s=[]}function l(e){const t=[];return s.forEach((n=>{t.push(n(e))})),t.length?(0,r.htmlSafe)(t.join("")):""}function c(e){return l(e)}(0,i.registerRawHelper)("decorate-username-selector",c)},56259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(24434),i=n(43168),s=n(62617),o=n(61369);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;t.htmlSafe&&(n="true"===t.htmlSafe);let a=n?e:(0,s.escapeExpression)(e);return(0,r.htmlSafe)(function(e){let t=e||"",n=(0,o.helperContext)().siteSettings;return t&&n.support_mixed_text_direction?`<span dir="${(0,i.isRTL)(t)?"rtl":"ltr"}">${t}</span>`:t}(a))}(0,o.registerRawHelper)("dir-span",a)},30430:(e,t,n)=>{"use strict";function r(e){return"automatic"===e.column.type}n.r(t),n.d(t,{default:()=>r})},98115:(e,t,n)=>{"use strict";function r(e){return"user_field"===e.column.type}n.r(t),n.d(t,{default:()=>r})},52962:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(82099);function s(e){const t=e.item.get(e.column.name),n="automatic"===e.column.type?"directory.":"";return(0,r.htmlSafe)(i.default.t(`${n}${e.column.name}`,{count:t}))}},47697:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(24434);function i(e){const t=(e.item.user&&e.item.user.user_fields?e.item.user.user_fields[e.column.user_field_id]:null)||"-";return(0,r.htmlSafe)(`<span class='directory-table__value--user-field'>${t}</span>`)}},34321:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){return(0,r.htmlSafe)(`<span class='directory-table__value'>${(0,i.number)(e.item.get(e.column.name))}</span>`)}},34114:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(3961),s=n(82099);function o(e){let t="";e.icon&&(t+=(0,i.iconHTML)(e.icon));let n=e.labelKey||`directory.${e.field}`;return t+=e.translated?e.field:s.default.t(n+"_long",{defaultValue:s.default.t(n)}),(0,r.htmlSafe)(t)}},91041:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(25821);function s(e,t){return(0,r.htmlSafe)((0,i.default)(e,t))}(0,n(61369).registerRawHelper)("discourse-tag",s)},88398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(12360);function s(e,t){return(0,r.htmlSafe)((0,i.default)(e,t))}(0,n(61369).registerRawHelper)("discourse-tags",s)},19266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(48163);function i(e,t){"category_id"===t&&(t="category.id");const n=(0,r.get)(e,t);return Array.isArray(n)?n.slice(0):n}},46978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(35193),s=n(62617);function o(e,t){const n=(0,s.escapeExpression)(`:${e}:`);return(0,r.htmlSafe)((0,i.emojiUnescape)(n,t))}(0,n(61369).registerRawHelper)("emoji",o)},60991:(e,t,n)=>{"use strict";n.r(t),n.d(t,{iconNode:()=>i});var r=n(3961);function i(e,t){return(0,r.renderIcon)("node",e,t)}},4365:(e,t,n)=>{"use strict";function r(e){return parseFloat(e).toFixed(1)}n.r(t),n.d(t,{default:()=>r})},31016:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){return e=new Date(e),(0,r.htmlSafe)((0,i.autoUpdatingRelativeAge)(e))}(0,n(61369).registerRawHelper)("format-age",s)},35391:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s="medium",o=!0;if(n.leaveAgo&&(t="true"===n.leaveAgo),n.format&&(s=n.format),n.noTitle&&(o=!1),e){let a=new Date(e);return(0,r.htmlSafe)((0,i.autoUpdatingRelativeAge)(a,{format:s,title:o,leaveAgo:t,prefix:n.prefix}))}}(0,n(61369).registerRawHelper)("format-date",s)},22202:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){return(0,r.htmlSafe)((0,i.durationTiny)(e))}(0,n(61369).registerRawHelper)("format-duration",s)},17530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(62617),i=n(61369);const s=r.formatUsername;(0,i.registerRawHelper)("format-username",r.formatUsername)},74322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(60859),l=n.n(a),c=n(17579);let u=(r=class extends(l()){constructor(){super(...arguments),(0,s.Z)(this,"footer",i,this),this.footer.registerHider(this)}compute(){}},i=(0,o.Z)(r.prototype,"footer",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},72455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(60859),l=n.n(a),c=n(17579);let u=(r=class extends(l()){constructor(){super(...arguments),(0,s.Z)(this,"elementClasses",i,this)}compute(e){let[...t]=e;this.elementClasses.registerClasses(this,document.documentElement,t.flatMap((e=>e?.split(" "))).filter(Boolean))}},i=(0,o.Z)(r.prototype,"elementClasses",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},94852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(33217),s=n(3961);function o(e){let{icon:t,image:n}=e;return(0,i.isEmpty)(n)?(0,i.isEmpty)(t)?"":(0,r.htmlSafe)((0,s.iconHTML)((0,s.convertIconClass)(t))):(0,r.htmlSafe)(`<img src='${n}'>`)}},82682:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(70352),i=n(54736);function s(e){return(0,i.default)("inline-date helper is deprecated",{id:"discourse.inline-date",since:"3.1.0.beta6"}),e.value&&(e=e.value()),(0,r.relativeAge)(new Date(e))}},94312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,renderSpinner:()=>i,spinnerHTML:()=>s});var r=n(24434);function i(e){let t="<div class='spinner";return e&&(t+=" "+e),t+"'></div>"}const s=i();function o(){let{size:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.htmlSafe)(i(e))}},47090:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dateNode:()=>s,numberNode:()=>o});var r=n(41221),i=n(70352);function s(e){if("string"==typeof e&&(e=new Date(e)),e){const t={title:(0,i.longDate)(e),"data-time":e.getTime(),"data-format":"tiny"};return(0,r.h)("span.relative-date",{attributes:t},(0,i.relativeAge)(e))}}function o(e,t){t=t||{},e=parseInt(e,10),isNaN(e)&&(e=0);const n=e.toString(),s={},o=(0,i.number)(e);return o!==n&&(s.title=n),(0,r.h)("span.number",{className:t.className,attributes:s},o)}},73552:(e,t,n)=>{"use strict";function r(){return()=>{}}n.r(t),n.d(t,{default:()=>r})},20006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(70352),s=n(62617),o=n(61369),a=n(82099);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Math.round(parseFloat(e)),isNaN(e)&&(e=0);let n=a.default.toNumber(e,{precision:0});t.numberKey&&(n=a.default.t(t.numberKey,{number:n,count:parseInt(e,10)}));let o="number";t.class&&(o+=" "+t.class);let l="<span class='"+o+"'",c=!t.noTitle;const u=(0,i.number)(e);return u.toString()!==n.toString()&&c&&(l+=" title='"+(0,s.escapeExpression)(n)+"'"),t.ariaLabel&&(l+=` aria-label='${(0,s.escapeExpression)(t.ariaLabel)}'`),l+=">"+u+"</span>",(0,r.htmlSafe)(l)}(0,o.registerRawHelper)("number",l)},49508:(e,t,n)=>{"use strict";n.r(t),n.d(t,{reload:()=>i});var r=n(34405);function i(){(0,r.isTesting)()||location.reload()}},96472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(82099);const s={all:"all_time",yearly:"this_year",quarterly:"this_quarter",monthly:"this_month",daily:"today"};function o(e){let{showDateRange:t,fullDay:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=i.default.t("filters.top."+(s[e]||"this_week"));if(!t)return(0,r.htmlSafe)(o);let a,l="";switch(a=n?moment().utc().subtract(1,"days"):moment(),e){case"yearly":l=a.clone().subtract(1,"year").format(i.default.t("dates.long_with_year_no_time"))+" – "+a.format(i.default.t("dates.long_with_year_no_time"));break;case"quarterly":l=a.clone().subtract(3,"month").format(i.default.t("dates.long_no_year_no_time"))+" – "+a.format(i.default.t("dates.long_no_year_no_time"));break;case"weekly":let e;e=n?a.clone().subtract(1,"week"):a.clone().subtract(6,"days"),l=e.format(i.default.t("dates.long_no_year_no_time"))+" – "+a.format(i.default.t("dates.long_no_year_no_time"));break;case"monthly":l=a.clone().subtract(1,"month").format(i.default.t("dates.long_no_year_no_time"))+" – "+a.format(i.default.t("dates.long_no_year_no_time"));break;case"daily":l=a.clone().format(i.default.t("dates.full_no_year_no_time"))}return(0,r.htmlSafe)(`<span class="date-section">${o}</span><span class='top-date-string'>${l}</span>`)}},12332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(70352);function s(e){return(0,r.htmlSafe)((0,i.longDate)(new Date(e)))}(0,n(61369).registerRawHelper)("raw-date",s)},65943:(e,t,n)=>{"use strict";n.r(t);var r=n(24434),i=n(4173);n(11205).default.registerHelper("raw-plugin-outlet",(function(e){const t=(0,i.rawConnectorsFor)(e.hash.name);if(t.length){const e=t.map((e=>e.template({context:this})));return(0,r.htmlSafe)(e.join(""))}}))},47295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s=n(94664),o=n(54001),a=n(72326),l=n(60859),c=n.n(l),u=n(76786),d=n(51372),p=n(17579),h=n(24434),m=n(61369),g=n(24816),f=n(21896),b=n(57555);const _=function(e,t){e=e.replace(".","/");const n=(0,f.findRawTemplate)(e);if(n)return function(e,t,n,r){r={...r},r.parent||=e;let i=(0,m.helperContext)();if(!r.view){const e=i.registry.resolve(`raw-view:${n}`);e&&((0,a.setOwner)(r,(0,a.getOwner)(i)),r.view=e.create(r,i)),r.view||(r={...r,...i})}return(0,h.htmlSafe)(t(r,g.RUNTIME_OPTIONS))}(this,n,e,t);console.warn("Could not find raw template: "+e)};(0,m.registerRawHelper)("raw",_);let y=(r=class extends(c()){constructor(){super(...arguments),(0,s.Z)(this,"renderGlimmer",i,this)}compute(e,t){return(0,u.registerDestructor)(this,this.cleanup),_(...e,t)}cleanup(){(0,d.schedule)("afterRender",(()=>this.renderGlimmer.cleanup()))}},i=(0,o.Z)(r.prototype,"renderGlimmer",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,o.Z)(r.prototype,"cleanup",[b.bind],Object.getOwnPropertyDescriptor(r.prototype,"cleanup"),r.prototype),r)},76304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(35193),s=n(62617);function o(e,t){return e=(0,r.isHTMLSafe)(e)?e.toString():(0,s.escapeExpression)(e),(0,r.htmlSafe)((0,i.emojiUnescape)(e,t))}(0,n(61369).registerRawHelper)("replace-emoji",o)},29877:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(91644),s=n(11619),o=n(3961),a=n(82099);function l(e){return e.reviewable_history_type===s.EDITED?(0,r.htmlSafe)((0,o.iconHTML)("pencil-alt")+" "+a.default.t("review.history.edited")):(0,r.htmlSafe)((0,i.htmlStatus)(e.status))}},91644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,htmlStatus:()=>a});var r=n(24434),i=n(30145),s=n(3961),o=n(82099);function a(e,t){let n=function(e,t){switch(e){case i.PENDING:return{name:"pending"};case i.APPROVED:switch(t){case"ReviewableQueuedPost":return{icon:"check",name:"approved_post",cssClass:"approved"};case"ReviewableUser":return{icon:"check",name:"approved_user",cssClass:"approved"};default:return{icon:"check",name:"approved_flag",cssClass:"approved"}}case i.REJECTED:switch(t){case"ReviewableQueuedPost":return{icon:"times",name:"rejected_post",cssClass:"rejected"};case"ReviewableUser":return{icon:"times",name:"rejected_user",cssClass:"rejected"};default:return{icon:"times",name:"rejected_flag",cssClass:"rejected"}}case i.IGNORED:return{icon:"external-link-alt",name:"ignored"};case i.DELETED:return{icon:"trash-alt",name:"deleted"}}}(e,t);if(!n)return;let r=n.icon?(0,s.iconHTML)(n.icon):"";return`\n    <span class="${n.cssClass||n.name}">\n      ${r}\n      ${o.default.t("review.statuses."+n.name+".title")}\n    </span>\n  `}function l(e,t){return(0,r.htmlSafe)(a(e,t))}},82757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(72326),i=n(38307),s=n(60859),o=n.n(s),a=n(95793),l=n(48163),c=n(51372);function u(e,t){let n,r=(0,i.A)(function(e){return(0,i.A)(function(e){return(e._routerMicrolib||e.router).currentRouteInfos}(e)).mapBy("_route").reverse()}(e)).find((e=>{let r=e.actions||e._actions;return n=r[t],"function"==typeof n}));return{action:n,handler:r}}const d=o().extend({router:(0,l.computed)({get(){return(0,r.getOwner)(this).lookup("router:main")}}),compute(e){let[t,...n]=e;return function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(0,a.runInDebug)((()=>{let{handler:n}=u(t,e)})),function(){let{action:n,handler:i}=u(t,e);for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];let l=r.concat(o);return(0,c.join)(i,n,...l)}}(t,(0,l.get)(this,"router"),...n)}})},40960:(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveShareUrl:()=>i});var r=n(61369);function i(e,t){const n=(0,r.helperContext)().siteSettings,i=n.enable_badges,s=n.allow_username_in_share_links;return e+(t&&i&&s?`?u=${t.username_lower}`:"")}},69152:(e,t,n)=>{"use strict";function r(e){let t=e.match(/\//g);return t&&3===t.length&&(e=e.replace(/\/$/,"")),(e=(e=e.replace(/^https?:\/\//,"")).replace(/^www\./,"")).substring(0,80)}n.r(t),n.d(t,{default:()=>r}),(0,n(61369).registerRawHelper)("shorten-url",r)},10209:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=t.pop();return r instanceof Function&&(r=r.call()),Array.isArray(r)&&0!==r.length?r.slice(...t):[]}n.r(t),n.d(t,{default:()=>r})},85947:(e,t,n)=>{"use strict";function r(e){let t=e,n=Math.trunc(t/3600);n>=1?t-=3600*n:n=0;let r=Math.trunc(t/60);return r>=1?t-=60*r:r=0,{hours:n,minutes:r,seconds:t}}function i(e,t,n){return n+60*e*60+60*t}function s(e){return moment.duration(e,"seconds").humanize()}function o(e,t,n){let r=new Date(n);return r=new Date(r.getTime()+1e3*t),!e.staff&&new Date<r}n.r(t),n.d(t,{cannotPostAgain:()=>o,durationTextFromSeconds:()=>s,fromSeconds:()=>r,toSeconds:()=>i})},12917:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(61369),i=n(82099);function s(e,t,n){return i.default.t(`theme_translations.${e}.${t}`,n)}(0,r.registerRawHelper)("theme-i18n",s)},51919:(e,t,n)=>{"use strict";function r(e,t){return`theme_translations.${e}.${t}`}n.r(t),n.d(t,{default:()=>r}),(0,n(61369).registerRawHelper)("theme-prefix",r)},95905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(23606);function i(e,t){return(0,r.getSetting)(e,t)}(0,n(61369).registerRawHelper)("theme-setting",i)},2581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(3948);function s(e,t){return(0,r.htmlSafe)((0,i.default)(e,t))}(0,n(61369).registerRawHelper)("topic-featured-link",s)},29581:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(24434);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.get("fancyTitle"),i=e.linked_post_number?e.urlForPostNumber(e.linked_post_number):e.get("lastUnreadUrl"),s=["title"];return t.class&&t.class.split(" ").forEach((e=>s.push(e))),(0,r.htmlSafe)(`<a href='${i}'\n        role='heading'\n        aria-level='2'\n        class='${s.join(" ")}'\n        data-topic-id='${e.id}'>${n}</a>`)}(0,n(61369).registerRawHelper)("topic-link",i)},45733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(51512);const i=n.n(r)().extend({render(e,t){const n=(n,r,i)=>{e.get(n)&&t(r,i)};e.get("closed")&&e.get("archived")?t("lock","locked_and_archived"):(n("closed","lock","locked"),n("archived","lock","archived")),this.forEach((e=>n(...e)))}}).create({content:[["is_warning","envelope","warning"],["pinned","thumbtack","pinned"],["unpinned","thumbtack","unpinned"],["invisible","far-eye-slash","unlisted"]]})},18986:(e,t,n)=>{"use strict";function r(){return([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,(e=>(4*e^16*Math.random()>>(2&e)).toString(16)))}n.r(t),n.d(t,{default:()=>r})},32605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addExtraUserClasses:()=>r.addExtraUserClasses,classesForUser:()=>r.classesForUser,registerCustomAvatarHelper:()=>r.registerCustomAvatarHelper,renderAvatar:()=>r.renderAvatar});var r=n(15080)},67153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(24434),i=n(62617),s=n(3961),o=n(82099);function a(e){let{currentUser:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return;const n=(0,i.escapeExpression)(e.name);return e.admin&&t?.staff?(0,r.htmlSafe)((0,s.iconHTML)("shield-alt",{label:o.default.t("user.admin",{user:n})})):e.moderator?(0,r.htmlSafe)((0,s.iconHTML)("shield-alt",{label:o.default.t("user.moderator",{user:n})})):void 0}},19954:(e,t,n)=>{"use strict";function r(e){return e&&e.length>0?"value-entered":""}n.r(t),n.d(t,{default:()=>r}),(0,n(61369).registerRawHelper)("value-entered",r)},66328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={initialize(){const e=new URLSearchParams(window.location.search);e.get("safe_mode")?.split(",").includes("deprecation_errors")&&(window.deprecationWorkflow.throwOnUnhandled=!0)}}},82292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(95793),i=n(72393);let s=!1;const o={initialize(){s||((0,r.registerDeprecationHandler)(((e,t,n)=>{let r=(0,i.consolePrefix)();n(r?`${r} ${e}`:e,t)})),s=!0)}}},51997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h}),n(51372);var r=n(10425),i=n.n(r),s=n(13369),o=n(20229),a=n(31311),l=n(34405),c=n(37080),u=n(47582),d=n(3961),p=n(82099);const h={initialize(e){if((0,o.setURLContainer)(e.__container__),(0,c.setDefaultOwner)(e.__container__),(0,l.isTesting)())return;let t;const n=document.getElementById("data-discourse-setup");let r;n&&(t=n.dataset);const h=document.getElementById("data-preloaded");h&&(r=JSON.parse(h.dataset.preloaded));const m=Object.keys(r);if(0===m.length)throw"No preload data found in #data-preloaded. Unable to boot Discourse.";m.forEach((function(e){s.default.store(e,JSON.parse(r[e])),"true"===t.debugPreloadedAppData&&console.log(e,s.default.get(e))})),(0,u.setupURL)(t.cdn,t.baseUrl,t.baseUri),(0,l.setEnvironment)(t.environment),p.default.defaultLocale=t.defaultLocale,window.Logster=window.Logster||{},window.Logster.enabled="true"===t.enableJsErrorReporting;let g=a.default.current();g.serviceWorkerURL=t.serviceWorkerUrl,g.assetVersion=t.assetVersion,g.disableCustomCSS="true"===t.disableCustomCss,t.mbLastFileChangeId&&(g.mbLastFileChangeId=parseInt(t.mbLastFileChangeId,10)),t.safeMode&&(g.safe_mode=t.safeMode),g.darkModeAvailable=document.querySelectorAll('link[media="(prefers-color-scheme: dark)"]').length>0,g.defaultColorSchemeIsDark="true"===t.colorSchemeIsDark,g.highlightJsPath=t.highlightJsPath,g.svgSpritePath=t.svgSpritePath,g.userColorSchemeId=parseInt(t.userColorSchemeId,10)||null,g.userDarkSchemeId=parseInt(t.userDarkSchemeId,10)||-1;let f=t.svgIconList;(0,l.isDevelopment)()&&f&&(0,d.setIconList)("string"==typeof f?JSON.parse(f):f),t.s3BaseUrl&&(0,u.setupS3CDN)(t.s3BaseUrl,t.s3Cdn),i().configure("onerror",(function(e){e&&"TransitionAborted"===e.message||((0,l.isProduction)()||(e?e.message||e.stack?(console.log(e.message),console.log(e.stack)):console.log("Uncaught promise: ",e):console.log("A promise failed but was not caught.")),window.onerror(e&&e.message,null,null,null,e))}))}}},51427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(16572),i=n(19990),s=n(90041),o=n(69999),a=n(60569);const l={after:"inject-discourse-objects",initialize(e){e.register("route:discovery.category",(0,s.default)({filter:"default"})),e.register("route:discovery.category-none",(0,s.default)({filter:"default",no_subcategories:!0})),e.register("route:discovery.category-all",(0,s.default)({filter:"default",no_subcategories:!1}));const t=i.default.current();t.get("filters").forEach((t=>{const n=(0,r.dasherize)(t);e.register(`route:discovery.${n}`,(0,o.default)(t)),e.register(`route:discovery.${n}-category`,(0,s.default)({filter:t})),e.register(`route:discovery.${n}-category-none`,(0,s.default)({filter:t,no_subcategories:!0}))})),e.register("route:tags.show-category",(0,a.buildTagRoute)()),e.register("route:tags.show-category-none",(0,a.buildTagRoute)({noSubcategories:!0})),e.register("route:tags.show-category-all",(0,a.buildTagRoute)({noSubcategories:!1})),t.get("filters").forEach((function(t){const n=(0,r.dasherize)(t);e.register(`route:tag.show-${n}`,(0,a.buildTagRoute)({navMode:t})),e.register(`route:tags.show-category-${n}`,(0,a.buildTagRoute)({navMode:t})),e.register(`route:tags.show-category-none-${n}`,(0,a.buildTagRoute)({navMode:t,noSubcategories:!0})),e.register(`route:tags.show-category-all-${n}`,(0,a.buildTagRoute)({navMode:t,noSubcategories:!1}))}))}}},64867:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(31311),i=n(19990),s=n(40388),o=n(7223);const a={after:"discourse-bootstrap",initialize(e){const t=e.__container__.lookup("service:site-settings"),n=o.default.current();e.register("service:current-user",n,{instantiate:!1}),this.topicTrackingState=s.default.create({messageBus:e.__container__.lookup("service:message-bus"),siteSettings:t,currentUser:n}),e.register("service:topic-tracking-state",this.topicTrackingState,{instantiate:!1});const a=i.default.current();e.register("service:site",a,{instantiate:!1});const l=r.default.current();e.register("service:session",l,{instantiate:!1}),(0,s.startTracking)(this.topicTrackingState)},teardown(){this.topicTrackingState.willDestroy()}}},95198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(31459);const i={after:"inject-discourse-objects",initialize(e){this.routerClass=(0,r.mapRoutes)(),e.register("router:main",this.routerClass)},teardown(){this.routerClass.dslCallbacks.length=0}}},31899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(58256),i=n(62617),s=n(3961);let o={};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("canvas");n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0,e.width,e.height),n.setAttribute("aria-hidden","true"),n.setAttribute("role","presentation"),t.manualPause&&e.classList.add("manually-paused"),e.parentNode.classList.add("paused-animated-image"),e.parentNode.insertBefore(n,e)}function l(e){e.previousSibling&&"CANVAS"===e.previousSibling.nodeName&&e.previousSibling.remove(),e.parentNode.classList.remove("paused-animated-image")}function c(){return document.querySelectorAll(".topic-post img.animated:not(.manually-paused)")}const u={initialize(){(0,r.withPluginApi)("0.8.7",(e=>{function t(e){const t=e.target;t&&!t.previousSibling?a(t,{manualPause:!0}):l(t)}e.decorateCookedElement((function(e,n){n&&e.querySelectorAll("img.animated:not(.onebox-avatar)").forEach((e=>{if(e.parentNode.querySelectorAll("img").length>1)return;o[e.src]&&(o[e.src].removeEventListener("click",t),o[e.src].removeEventListener("load",t),delete o[e.src]),o[e.src]=e,e.addEventListener("click",t,!1),(0,i.prefersReducedMotion)()&&e.addEventListener("load",t,!1);const n=document.createElement("div"),r=document.createElement("div");e.parentNode.insertBefore(n,e),n.classList.add("pausable-animated-image"),n.appendChild(e),r.classList.add("animated-image-overlay"),r.setAttribute("aria-hidden","true"),r.setAttribute("role","presentation"),r.innerHTML=`${(0,s.iconHTML)("pause")}${(0,s.iconHTML)("play")}`,n.appendChild(r)}))}),{onlyStream:!0}),e.cleanupStream((function(){Object.values(o||{}).forEach((e=>{e.removeEventListener("click",t),e.removeEventListener("load",t)})),o={}})),(0,i.prefersReducedMotion)()||(window.addEventListener("blur",this.blurEvent),window.addEventListener("focus",this.focusEvent))}))},blurEvent(){c().forEach((e=>{1!==e.parentNode.querySelectorAll("img").length||e.previousSibling||a(e)}))},focusEvent(){c().forEach((e=>{1===e.parentNode.querySelectorAll("img").length&&e.previousSibling&&l(e)}))},teardown(){window.removeEventListener("blur",this.blurEvent),window.removeEventListener("focus",this.focusEvent)}}},98576:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBeforeAuthCompleteCallback:()=>h,default:()=>g,resetBeforeAuthCompleteCallbacks:()=>m});var r=n(48163),i=n.n(r),s=n(51372),o=n(19608),a=n(23392),l=n(59469),c=n(20229),u=n(82099);const d=["requires_invite","awaiting_approval","awaiting_activation","admin_not_allowed_from_ip_address","not_allowed_from_ip_address"],p=[];function h(e){p.push(e)}function m(){p.length=0}const g={after:"inject-objects",initialize(e){let t;if(document.getElementById("data-authentication")&&(t=document.getElementById("data-authentication").dataset.authenticationData),t){const n=e.lookup("service:router");n.one("routeDidChange",(()=>{(0,s.next)((()=>{const r=JSON.parse(t);if(p.every((e=>e(r))))if("invites.show"===n.currentRouteName)e.lookup("controller:invites-show").authenticationComplete(r);else{const t=e.lookup("service:modal"),n=e.lookup("service:site-settings"),p=(n,i,o,l)=>{const c=e.lookup("route:application"),u=e.lookup("controller:application");t.show(a.default,{model:{showNotActivated:e=>c.send("showNotActivated",e),showCreateAccount:e=>c.send("showCreateAccount",e),canSignUp:u.canSignUp,flash:n,flashType:i||"success",awaitingApproval:r.awaiting_approval,...o}}),(0,s.next)((()=>l?.()))};if(r.omniauth_disallow_totp)return p(u.default.t("login.omniauth_disallow_totp"),"error",{loginName:r.email,showLoginButtons:!1},(()=>document.getElementById("login-account-password").focus()));for(let e=0;e<d.length;e++){const t=d[e];if(r[t])return p(u.default.t(`login.${t}`))}if(r.suspended)return p(r.suspended_message,"error");if(r.authenticated){const e=(0,l.default)("destination_url")||r.destination_url;return void(e?((0,l.removeCookie)("destination_url"),window.location.href=e):window.location.pathname===c.default.getURL("/login")?window.location=c.default.getURL("/"):window.location.reload())}(0,s.next)((()=>t.show(o.default,{model:{accountEmail:r.email,accountUsername:r.username,accountName:r.name,authOptions:i().create(r),skipConfirmation:n.auth_skip_create_confirm}})))}}))}))}}}},73843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoLoadModules:()=>c,default:()=>u});var r=n(72326),i=n(31706),s=n.n(i),o=n(61369),a=n(11205),l=n(24816);function c(e,t){Object.keys(requirejs.entries).forEach((e=>{var t;(t=e).includes("/helpers/")&&(t.startsWith("discourse/theme-")||t.startsWith("discourse/plugins/"))&&!t.endsWith("-test")&&requirejs(e,null,null,!0),e.includes("/widgets/")&&!e.endsWith("-test")&&requirejs(e,null,null,!0)}));let n={siteSettings:e.lookup("service:site-settings"),keyValueStore:e.lookup("service:key-value-store"),capabilities:e.lookup("service:capabilities"),currentUser:e.lookup("service:current-user"),site:e.lookup("service:site"),session:e.lookup("service:session"),topicTrackingState:e.lookup("service:topic-tracking-state"),registry:t};(0,r.setOwner)(n,e),(0,o.createHelperContext)(n),(0,o.registerHelpers)(t),(0,l.registerRawHelpers)(a.default,s(),e)}const u={after:"inject-objects",initialize:e=>{c(e,e.__container__.registry)}}},28763:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={after:"message-bus",initialize(e){if(!navigator.setAppBadge)return;const t=e.lookup("service:current-user");t&&e.lookup("service:app-events").on("notifications:changed",(()=>{let e;e=t.all_unread_notifications_count,t.unseen_reviewable_count&&(e+=t.unseen_reviewable_count),navigator.setAppBadge(e)}))}}},64108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(13369),l=n(57555);const c=(r={after:"message-bus",initialize(e){this.site=e.lookup("service:site"),this.messageBus=e.lookup("service:message-bus");const t=o().create(a.default.get("banner")||{});this.site.set("banner",t),this.messageBus.subscribe("/site/banner",this.onMessage)},teardown(){this.messageBus.unsubscribe("/site/banner",this.onMessage)},onMessage(e){e?this.site.set("banner",o().create(e)):this.site.set("banner",null)}},(0,i.Z)(r,"onMessage",[l.bind],Object.getOwnPropertyDescriptor(r,"onMessage"),r),r)},71957:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={initialize(e){e.lookup("service:client-error-handler"),e.lookup("service:deprecation-warning-handler")}}},55061:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(56746);const s={after:"category-color-css-generator",initialize(e){if(this.site=e.lookup("service:site"),!this.site.categories?.length)return;const t=this.site.categories.map((e=>{let t=i.default.findById((0,r.get)(e,"parent_category_id")),n=`.badge-category[data-category-id="${e.id}"] { --category-badge-color: var(--category-${e.id}-color); --category-badge-text-color: #${e.text_color}; }`;return t&&(n+=`.badge-category[data-parent-category-id="${t.id}"] { --parent-category-badge-color: var(--category-${t.id}-color); }`),n})),n=document.createElement("style");n.type="text/css",n.id="category-badge-css-generator",n.innerHTML=t.join("\n"),document.head.appendChild(n)}}},29356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={after:"register-hashtag-types",initialize(e){if(this.site=e.lookup("service:site"),!this.site.categories?.length)return;const t=[":root {",...this.site.categories.map((e=>`--category-${e.id}-color: #${e.color};`)),"}"],n=document.createElement("style");n.type="text/css",n.id="category-color-css-generator",n.innerHTML=t.join("\n"),document.head.appendChild(n)}}},99776:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51372),i=n(71466),s=n.n(i);function o(e){window.MiniProfiler&&e.from&&window.MiniProfiler.pageTransition(),document.querySelectorAll("header ul.icons li").forEach((e=>{e.classList.remove("active")})),document.querySelectorAll('[data-toggle="dropdown"]').forEach((e=>{e.parentElement.classList.remove("open")})),s().magnificPopup?.instance&&(s().magnificPopup.instance.close(),document.body.classList.remove("mfp-zoom-out-cur"));const{activeElement:t}=document;t&&!t.classList.contains("no-blur")&&t.blur(),this.lookup("route:application").send("closeModal"),this.lookup("service:app-events").trigger("dom:clean"),this.lookup("service:document-title").updateContextCount(0)}const a={after:"inject-objects",initialize(e){e.lookup("service:router").on("routeDidChange",(t=>{t.isAborted||(0,r.scheduleOnce)("afterRender",e,o,t)}))}}},14256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(71466),i=n.n(r),s=n(77559),o=n(20229);const a={initialize(e){this.selector=e.rootElement,i()(this.selector).on("click.discourse","a",s.default),window.addEventListener("hashchange",this.hashChanged)},hashChanged(){o.default.routeTo(document.location.hash)},teardown(){i()(this.selector).off("click.discourse","a",s.default),window.removeEventListener("hashchange",this.hashChanged)}}},74534:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51372),i=n(33933),s=n(58256);let o=[];const a={initialize(e){const t=e.lookup("service:site-settings");(0,s.withPluginApi)("0.8.7",(e=>{e.decorateCookedElement(((e,n)=>{(0,r.schedule)("afterRender",(()=>{!function(e,n){if(!n)return;if(!t.show_copy_button_on_codeblocks)return;const r=n.getModel(),s=new i.default({showFullscreen:!0,showCopy:!0});s.attachToPost(r,e),o.push(s)}(e,n)}))}),{onlyStream:!0}),e.cleanupStream((function(){o.forEach((e=>e.cleanup())),o.length=0}))}))}}},75128:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,overrideThrowGjsError:()=>u});var r=n(43122),i=n(31691),s=n.n(i),o=n(34405),a=n(50542);const l=new Map;let c=(0,o.isTesting)();function u(e){c=e}const d=r.getComponentTemplate;r.getComponentTemplate=e=>l.get(e)??d(e);const p={after:["populate-template-map","mobile"],initialize(e){this.site=e.lookup("service:site"),this.eachThemePluginTemplate(((t,n,r)=>{if(!r&&a.default.coreTemplates.has(t))return;let i=t;r&&(i=i.slice(7)),i=i.slice(11);const o=e.resolveRegistration(`component:${i}`);if(!o)return void e.register(`component:${i}`,s());const u=d(o),p=u?.()?.parsedLayout?.isStrictMode,h=n[n.length-1];if(p){const e=`[${h}] ${i} was authored using gjs and its template cannot be overridden. Ignoring override. For more information on the future of template overrides, see https://meta.discourse.org/t/247487`;if(c)throw new Error(e);console.error(e)}else if(u){const e=window.require(h).default;l.set(o,e)}}))},eachThemePluginTemplate(e){const{coreTemplates:t,pluginTemplates:n,themeTemplates:r}=a.default,i=[[n,"components/",!1],[r,"components/",!1]];this.site.mobileView&&i.push([t,"mobile/components/",!0],[n,"mobile/components/",!0],[r,"mobile/components/",!0]);for(const[t,n,r]of i)for(const[i,s]of t)i.startsWith(n)&&e(i,s,r)},teardown(){l.clear()}}},64243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(71466),i=n.n(r);let s=!1,o=i().Callbacks();const a={initialize(e){let t=e.lookup("service:session");t.set("csrfToken",document.head.querySelector("meta[name=csrf-token]")?.content),s||(i().ajaxPrefilter(o.fire),s=!0),o.add((function(e,n,r){e.crossDomain||r.setRequestHeader("X-CSRF-Token",t.get("csrfToken"))}))},teardown(){o.empty()}}},48939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o=n(94664),a=n(54001),l=n(48163),c=n.n(l),u=n(39840),d=n(17579),p=n(54736);let h=[];function m(e,t){var n,r;return n=class extends(c()){static printDeprecation(){(0,p.default)(`${e} no longer exists, and this shim will eventually be removed. To fetch information about the current discovery route, use the discovery service instead.`,{id:t})}static reopen(){return this.printDeprecation(),h.push(e),super.reopen(...arguments)}constructor(){super(...arguments),(0,o.Z)(this,"discovery",r,this),this.constructor.printDeprecation()}},r=(0,a.Z)(n.prototype,"discovery",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n}let g=(r=class extends(m("controller:navigation/category","discourse.navigation-category-controller")){get category(){return this.constructor.printDeprecation(),this.discovery.category}},(0,a.Z)(r.prototype,"category",[u.dependentKeyCompat],Object.getOwnPropertyDescriptor(r.prototype,"category"),r.prototype),r),f=(i=class extends(m("controller:discovery/topics","discourse.discovery-topics-controller")){get model(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.currentTopicList}get category(){if(this.constructor.printDeprecation(),this.discovery.onDiscoveryRoute)return this.discovery.category}},(0,a.Z)(i.prototype,"model",[u.dependentKeyCompat],Object.getOwnPropertyDescriptor(i.prototype,"model"),i.prototype),(0,a.Z)(i.prototype,"category",[u.dependentKeyCompat],Object.getOwnPropertyDescriptor(i.prototype,"category"),i.prototype),i),b=(s=class extends(m("controller:tag-show","discourse.tag-show-controller")){get tag(){return this.constructor.printDeprecation(),this.discovery.tag}},(0,a.Z)(s.prototype,"tag",[u.dependentKeyCompat],Object.getOwnPropertyDescriptor(s.prototype,"tag"),s.prototype),s);const _={initialize(e){e.register("controller:navigation/category",g),e.register("controller:discovery/topics",f),e.register("controller:tag-show",b),e.lookup("service:router").on("routeDidChange",(t=>{const n=t.to?.name;(n?.startsWith("discovery.")||n?.startsWith("tags.show")||"tag.show"===n)&&h.forEach((t=>e.lookup(t)))}))}}},47812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={async initialize(e){if(e.lookup("service:site-settings").enable_experimental_lightbox){let e=window.innerWidth-document.body.getBoundingClientRect().width;e=e=Math.round(100*e)/100,document.documentElement.style.setProperty("--document-scrollbar-width",`${e}px`)}}}},38572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(21896);const i={initialize(){(0,r.eagerLoadRawTemplateModules)()}}},64905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(8253),i=n(58256),s=n(13369);const o={initialize(e){e.lookup("service:site-settings").enable_emoji&&((0,i.withPluginApi)("0.1",(e=>{e.onToolbarCreate((e=>{e.addButton({id:"emoji",group:"extras",icon:"far-smile",action:()=>e.context.send("emoji"),title:"composer.emoji",className:"emoji insert-emoji"})}))})),(s.default.get("customEmoji")||[]).forEach((e=>(0,r.registerEmoji)(e.name,e.url,e.group))))}}},48346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(51372),i=n(28507),s=n(87591),o=n(7223);const a=(0,n(34405).isTesting)()?0:5e3,l={initialize(){(0,r.later)((()=>{(0,s.extendThemeCookie)(),(0,i.extendColorSchemeCookies)(),(0,o.extendTextSizeCookie)()}),a)}}},21047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(90737);const i={after:"category-color-css-generator",initialize(e){if(this.site=e.lookup("service:site"),!this.site.categories?.length)return;let t=[];Object.values((0,r.getHashtagTypeClasses)()).forEach((e=>{e.preloadedData.forEach((n=>{t=t.concat(e.generateColorCssClasses(n))}))}));const n=document.createElement("style");n.type="text/css",n.id="hashtag-css-generator",n.innerHTML=t.join("\n"),document.head.appendChild(n)}}},56053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(44743),i=n(58256);const s={after:"hashtag-css-generator",initialize(e){const t=e.lookup("service:site");(0,i.withPluginApi)("0.8.7",(e=>{e.decorateCookedElement((e=>(0,r.decorateHashtags)(e,t)))}))}}},51436:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(58256);const i={initWithApi(e){const t=CSS.supports("aspect-ratio: 1");e.decorateCookedElement((e=>{e.querySelectorAll("img").forEach((e=>{const n=parseFloat(e.getAttribute("height")),r=parseFloat(e.getAttribute("width"));if(!(isNaN(n)||isNaN(r)||e.style.aspectRatio))if(t)e.style.setProperty("aspect-ratio",`${r} / ${n}`);else{const t=e.width/(r/n);e.style.setProperty("--calculated-height",`${t}px`)}}))}))},initialize(){(0,r.withPluginApi)("1.2.0",this.initWithApi)}}},87552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={initialize(e){e.lookup("service:route-scroll-manager")}}},93283:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(19990),i=n(7223),s=n(54736),o=n(37080);const a={after:"sniff-capabilities",initialize(e){(0,o.setDefaultOwner)(e.__container__),window.Discourse=e,Object.defineProperty(e,"SiteSettings",{get:()=>((0,s.default)("use injected siteSettings instead of Discourse.SiteSettings",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site-settings"}),e.lookup("service:site-settings"))}),Object.defineProperty(e,"User",{get:()=>((0,s.default)("import discourse/models/user instead of using Discourse.User",{since:"2.8",dropFrom:"3.2",id:"discourse.global.user"}),i.default)}),Object.defineProperty(e,"Site",{get:()=>((0,s.default)("import discourse/models/site instead of using Discourse.Site",{since:"2.8",dropFrom:"3.2",id:"discourse.global.site"}),r.default)})},teardown(){delete window.Discourse}}},3032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(71466),i=n.n(r);!function(e){var t=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function n(n,r){return this.each((function(){var i=e(this),s=i.data("bs.modal"),o=e.extend({},t.DEFAULTS,i.data(),"object"==typeof n&&n);s||i.data("bs.modal",s=new t(this,o)),"string"==typeof n?s[n](r):o.show&&s.show(r)}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var r=this,i=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){r.$element.one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var i=e.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),i&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var s=e.Event("shown.bs.modal",{relatedTarget:n});i?r.$dialog.one("bsTransitionEnd",(function(){r.$element.trigger("focus").trigger(s)})).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(s)})))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")}))},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var r=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=e.support.transition&&i;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;s?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){r.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):o()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),e(this.fixedContent).each((function(t,r){var i=r.style.paddingRight,s=e(r).css("padding-right");e(r).data("padding-right",i).css("padding-right",parseFloat(s)+n+"px")})))},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each((function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r||""}))},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var r=e.fn.modal;e.fn.modal=n,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=r,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var r=e(this),i=r.attr("href"),s=r.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),o=e(document).find(s),a=o.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},o.data(),r.data());r.is("a")&&t.preventDefault(),o.one("show.bs.modal",(function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){r.is(":visible")&&r.trigger("focus")}))})),n.call(o,a,this)}))}(i());var s=n(97990),o=n.n(s),a=n(13680),l=n(10465),c=n(54736),u=n(37080);let d=!1;const p={initialize(){if(d)return;o().animate(!1),o().backdrop(!0);const e=o().alert;o().alert=function(){if(1===arguments.length){const e=(0,u.getOwnerWithFallback)(this).lookup("service:dialog");if(e)return(0,c.default)("`bootbox.alert` is deprecated, please use the dialog service instead.",{id:"discourse.bootbox",dropFrom:"3.1.0.beta5",url:"https://meta.discourse.org/t/244902"}),e.alert(arguments[0])}return e(...arguments)};const t=o().dialog;o().dialog=function(){return(0,c.default)("`bootbox` is now deprecated, please use the dialog service instead.",{id:"discourse.bootbox",dropFrom:"3.1.0.beta5",url:"https://meta.discourse.org/t/244902"}),t(...arguments)},i().fn.autocomplete=a.default,i().fn.caret=l.caret,i().fn.caretPosition=l.caretPosition,d=!0}}},88253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(54712),i=n.n(r),s=n(6677);const o={initialize(e){s.default.init(i(),e),s.default.bindEvents()},teardown(){s.default.teardown()}}},69322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r,i=n(54001),s=n(12933),o=n(57555);const a=(r={initialize(e){this.messageBus=e.lookup("service:message-bus"),this.session=e.lookup("service:session");const t=new URLSearchParams(window.location.search),n=["preview_theme_id","pp","safe_mode"].map((e=>[e,t.get(e)])).filter((e=>{let[,t]=e;return t}));n.length&&["replaceState","pushState"].forEach((e=>{const t=window.history[e];window.history[e]=(e,r,i)=>{const s=new URL(i,window.location);for(const[e,t]of n)s.searchParams.set(e,t);return t.call(window.history,e,r,s.href)}})),this.messageBus.subscribe("/file-change",this.onFileChange,this.session.mbLastFileChangeId)},teardown(){this.messageBus.unsubscribe("/file-change",this.onFileChange)},onFileChange(e){e.forEach((e=>{if("refresh"===e)document.location.reload(!0);else if("development-mode-theme-changed"===e)window.location.pathname.startsWith("/admin/customize/themes")?this.session.requiresRefresh=!0:document.location.reload(!0);else if(e.new_href&&e.target){let t=`link[data-target='${e.target}']`;e.theme_id&&(t+=`[data-theme-id='${e.theme_id}']`);const n=document.querySelectorAll(t);if(n.length>0){const t=n[n.length-1];t.href.split("/").pop()!==e.new_href.split("/").pop()&&this.refreshCSS(t,e.new_href)}}}))},refreshCSS(e,t){const n=e.cloneNode(!0);n.href=t,e.insertAdjacentElement("afterend",n),(0,s.default)((()=>e?.parentNode?.removeChild(e)),500)}},(0,i.Z)(r,"onFileChange",[o.bind],Object.getOwnPropertyDescriptor(r,"onFileChange"),r),r)},71691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(97990),i=n.n(r),s=n(82099);const o={after:"inject-objects",isVerboseLocalizationEnabled(e){if(e.lookup("service:site-settings").verbose_localization)return!0;try{return sessionStorage&&sessionStorage.getItem("verbose_localization")}catch(e){return!1}},initialize(e){this.isVerboseLocalizationEnabled(e)&&s.default.enableVerboseLocalization();for(const[e,t]of Object.entries(s.default._overrides||{}))for(const[n,r]of Object.entries(t)){const t=n.replace(/^admin_js\./,"js.").split(".");let i=s.default.translations[e]||{};for(let e=0;e<t.length-1;e++)t[e]in i||(i[t[e]]={}),i=i[t[e]];"object"==typeof i&&(i[t[t.length-1]]=r)}for(let[e,t]of Object.entries(s.default._mfOverrides||{}))e=e.replace(/^[a-z_]*js\./,""),s.default._compiledMFs[e]=t;i().addLocale(s.default.currentLocale(),{OK:s.default.t("composer.modal_ok"),CANCEL:s.default.t("composer.modal_cancel"),CONFIRM:s.default.t("composer.modal_ok")}),i().setLocale(s.default.currentLocale())}}},6132:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(54001),s=n(28560),o=n(57555),a=n(82099);let l=!1;const c=(r={after:"message-bus",initialize(e){this.messageBus=e.lookup("service:message-bus"),this.dialog=e.lookup("service:dialog"),this.currentUser=e.lookup("service:current-user"),this.currentUser&&this.messageBus.subscribe(`/logout/${this.currentUser.id}`,this.onMessage)},teardown(){this.currentUser&&this.messageBus.unsubscribe(`/logout/${this.currentUser.id}`,this.onMessage)},onMessage(){l||(l=!0,this.dialog.alert({message:a.default.t("logout"),confirmButtonLabel:"home",didConfirm:s.default,didCancel:s.default,shouldDisplayCancel:!1}))}},(0,i.Z)(r,"onMessage",[o.bind],Object.getOwnPropertyDescriptor(r,"onMessage"),r),r)},99927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(95716),i=n(55748);let s=!1;const o={after:"message-bus",initialize(e){if(s)return;const t=e.lookup("service:site-settings"),n=e.lookup("service:message-bus"),o=e.lookup("service:key-value-store"),a=e.lookup("service:current-user");i.default.reopenClass(r.default,{createCurrent(){return this.create({messageBus:n,keyValueStore:o,siteSettings:t,currentUser:a})}}),s=!0}}},51905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(71466),i=n.n(r),s=n(3055),o=n(3872),a=n(34405),l=n(47582);const c=12e5;function u(e){if(e.complete){const t=e.complete;e.complete=function(e,n){(0,s.handleLogoff)(e),t(e,n)}}else e.complete=s.handleLogoff;return i().ajax(e)}const d={after:"inject-objects",initialize(e){if((0,a.isTesting)())return;const t=e.lookup("service:message-bus"),n=e.lookup("service:current-user"),r=e.lookup("service:site-settings");if(t.alwaysLongPoll=!(0,a.isProduction)(),t.shouldLongPollCallback=()=>(0,o.default)({userUnseenTime:c}),t.stop(),(0,o.onPresenceChange)({unseenTime:c,callback:e=>{e&&t.onVisibilityChange&&t.onVisibilityChange()}}),r.login_required&&!n)return;const s=setInterval((()=>{"complete"===document.readyState&&(clearInterval(s),t.start())}),500);t.callbackInterval=r.anon_polling_interval,t.backgroundCallbackInterval=r.background_polling_interval,t.baseUrl=r.long_polling_base_url.replace(/\/$/,"")+"/",t.enableChunkedEncoding=r.enable_chunked_encoding,"/"!==t.baseUrl?t.ajax=function(e){return e.headers=e.headers||{},e.headers["X-Shared-Session-Key"]=i()("meta[name=shared_session_key]").attr("content"),(0,o.default)()&&(e.headers["Discourse-Present"]="true"),u(e)}:(t.ajax=function(e){return e.headers=e.headers||{},(0,o.default)()&&(e.headers["Discourse-Present"]="true"),u(e)},t.baseUrl=(0,l.default)("/")),n&&(t.callbackInterval=r.polling_interval)}}},54849:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(20229),i=n(47582);const s={initialize(e){const t=document.querySelector("meta[property='og:title']"),n=document.querySelector("meta[property='og:url']"),s=document.querySelector("meta[name='twitter:title']"),o=document.querySelector("meta[name='twitter:url']"),a=document.querySelector("link[rel='canonical']");e.lookup("service:app-events").on("page:changed",(e=>{let{title:l,url:c}=e;const u=(0,i.getAbsoluteURL)(c);t?.setAttribute("content",l),n?.setAttribute("content",u),s?.setAttribute("content",l),o?.setAttribute("content",u),a&&a.setAttribute("href",(0,r.getCanonicalUrl)(u))}))}}},48737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r,i=n(54001),s=n(57555);const o=(r={after:"mobile",initialize(e){const t=e.lookup("service:site");this.capabilities=e.lookup("service:capabilities"),(this.capabilities.isIpadOS||t.mobileView)&&window.visualViewport&&(this.windowInnerHeight=window.innerHeight,this.onViewportResize(),window.visualViewport.addEventListener("resize",this.onViewportResize),"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",this.onViewportResize)))},teardown(){window.visualViewport.removeEventListener("resize",this.onViewportResize),"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!1,navigator.virtualKeyboard.removeEventListener("geometrychange",this.onViewportResize))},onViewportResize(){const e=.01*window.visualViewport.height,t=document.documentElement;t.style.setProperty("--composer-vh",`${e}px`);let n=!1;if("virtualKeyboard"in navigator)navigator.virtualKeyboard.boundingRect.height>0&&(n=!0);else if(this.capabilities.isFirefox&&this.capabilities.isAndroid)Math.abs(this.windowInnerHeight-Math.min(window.innerHeight,window.visualViewport.height))>150&&(n=!0);else{let e=this.windowInnerHeight-window.visualViewport.height;e>0&&(n=!0),this.capabilities.isIpadOS&&t.style.setProperty("--composer-ipad-padding",`${e<75?e:0}px`)}n?t.classList.add("keyboard-visible"):t.classList.remove("keyboard-visible")}},(0,i.Z)(r,"onViewportResize",[s.bind],Object.getOwnPropertyDescriptor(r,"onViewportResize"),r),r)},6243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93594),i=n(71384);const s={after:"inject-objects",initialize(e){r.default.init();const t=e.lookup("service:site");t.set("mobileView",r.default.mobileView),t.set("desktopView",!r.default.mobileView),t.set("isMobileDevice",r.default.isMobileDevice),(0,i.setResolverOption)("mobileView",r.default.mobileView)}}},57757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={after:"message-bus",initialize(){moment.tz.link(["Asia/Kolkata|IST","Asia/Seoul|KST","Asia/Tokyo|JST"]),delete moment.tz._links["us_pacific-new"]}}},86625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(71261);const i={initialize(e){r.default.init();const t=e.lookup("service:site");t.set("narrowDesktopView",r.default.narrowDesktopView),this._resizeObserver=new ResizeObserver((n=>{if(!e.isDestroyed)for(let i of n){const n=t.narrowDesktopView,s=r.default.isNarrowDesktopView(i.contentRect.width);if(n!==s){const n=e.lookup("controller:application");t.set("narrowDesktopView",s),n.set("showSidebar",n.calculateShowSidebar()),n.appEvents.trigger("site-header:force-refresh")}}})),this._resizeObserver.observe(document.body)}}},22302:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decorateGithubOneboxBody:()=>s,default:()=>l});var r=n(58256);let i=[];function s(e){e.querySelectorAll(".onebox.githubcommit .show-more-container, .onebox.githubpullrequest .show-more-container, .onebox.githubissue .show-more-container").length&&(i.push(e),e.addEventListener("click",o,!1))}function o(e){if(!e.target.classList.contains("show-more"))return;e.preventDefault();const t=e.target.parentNode,n=t.parentNode;return t.classList.add("hidden"),n.querySelector(".excerpt.hidden").classList.remove("hidden"),!1}function a(){(i||[]).forEach((e=>{e.removeEventListener("click",o)})),i=[]}const l={initialize(){(0,r.withPluginApi)("0.8.42",(e=>{e.decorateCookedElement((e=>{s(e)})),e.cleanupStream(a)}))}}},63978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(3055),i=n(49216);const s={after:"inject-objects",initialize(e){const t=e.lookup("router:main");t.on("routeWillChange",this.handleRouteWillChange);let n=e.lookup("service:app-events"),r=e.lookup("service:document-title");(0,i.startPageTracking)(t,n,r),void 0===window._gaq?(void 0!==window.ga&&void 0===window.gtag&&n.on("page:changed",(e=>{e.replacedOnlyQueryParams||window.ga("send","pageview",{page:e.url,title:e.title})})),void 0!==window.gtag&&n.on("page:changed",(e=>{e.replacedOnlyQueryParams||window.gtag("event","page_view",{page_location:e.url,page_title:e.title})})),void 0!==window.dataLayer&&n.on("page:changed",(e=>{e.replacedOnlyQueryParams||(0,i.googleTagManagerPageChanged)(e)}))):n.on("page:changed",(e=>{e.replacedOnlyQueryParams||(window._gaq.push(["_set","title",e.title]),window._gaq.push(["_trackPageview",e.url]))}))},handleRouteWillChange(e){e.from&&(e.isIntermediate||(0,r.trackNextAjaxAsPageview)())},teardown(){(0,i.resetPageTracking)(),(0,r.resetAjax)()}}},78597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(50542);const i={initialize(){r.default.setModuleNames(Object.keys(requirejs.entries))}}},33718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(51372),i=n(41221),s=n(31285),o=n(51450),a=n(3055),l=n(38864),c=n(271),u=n(14347),d=n(31405),p=n(99121),h=n(66196),m=n(58256),g=n(35193),f=n(43168),b=n(62617),_=n(3961),y=n(82099);const w={initialize(e){(0,m.withPluginApi)("0.1",(t=>{const n=e.lookup("service:site-settings"),m=e.lookup("service:session"),w=e.lookup("service:site"),v=e.lookup("service:capabilities"),k=e.lookup("service:modal"),x=e.lookup("service:lightbox");t.decorateCookedElement((e=>(0,u.default)(e,n,m))),n.enable_experimental_lightbox?(t.decorateCookedElement(((e,t)=>t&&e.querySelector(h.SELECTORS.DEFAULT_ITEM_SELECTOR)?x.setupLightboxes({container:e,selector:h.SELECTORS.DEFAULT_ITEM_SELECTOR}):null),{onlyStream:!0}),t.cleanupStream(x.cleanupLightboxes)):t.decorateCookedElement((e=>(0,p.default)(e,n))),t.decorateCookedElement((e=>{const t=e.querySelectorAll(".d-image-grid");t.length&&t.forEach((e=>new c.default(e,{columns:w.mobileView?2:3})))})),n.support_mixed_text_direction&&t.decorateCookedElement(f.setTextDirections,{}),(0,d.nativeLazyLoading)(t),t.decorateCookedElement((e=>{e.querySelectorAll("audio").forEach((n=>{n.addEventListener("play",(()=>{const n=parseInt(e.closest("article")?.dataset.postId,10);n&&t.preventCloak(n)}))}))}));const T={amazon:"discourse-amazon",githubactions:"fab-github",githubblob:"fab-github",githubcommit:"fab-github",githubpullrequest:"fab-github",githubissue:"fab-github",githubfile:"fab-github",githubgist:"fab-github",twitterstatus:"fab-twitter",wikipedia:"fab-wikipedia-w"};function S(e){const t=document.createElement("button"),n=["open-popup-link","btn-default","btn","btn-icon",...e.label?["no-text"]:[]];if(t.classList.add(...n),e.classes&&t.classList.add(...e.classes),e.title&&(t.title=y.default.t(e.title)),e.label&&v.touch&&(t.innerHTML=`\n          <span class="d-button-label">\n            ${y.default.t(e.label)}\n          </div>`),e.icon){const n=(0,i.create)((0,_.iconNode)(e.icon.name,{class:e.icon?.class}));t.prepend(n)}return t}function C(e){const t=e.currentTarget.parentElement.nextElementSibling.cloneNode(!0);k.show(s.default,{model:{tableHtml:t}})}function P(){const e=this.tableIndex;return(0,a.ajax)(`/posts/${this.id}`,{type:"GET"}).then((t=>{(0,g.parseAsync)(t.raw).then((n=>{const r=(0,b.tokenRange)(n,"table_open","table_close")[e];k.show(o.default,{model:{post:t,tableIndex:e,tableTokens:r}})}))})).catch(l.popupAjaxError)}t.decorateCookedElement((e=>{e.querySelectorAll(".onebox").forEach((e=>{Object.entries(T).forEach((t=>{let[n,r]=t;e.classList.contains(n)&&e.querySelector(".source").insertAdjacentHTML("afterbegin",(0,_.iconHTML)(r))}))}))})),t.decorateCookedElement(((e,t)=>{(0,r.schedule)("afterRender",(()=>{var n,r;n=e.querySelectorAll(".md-table table"),r=t.widget.attrs,n.forEach(((e,t)=>{const n=document.createElement("div");n.classList.add("fullscreen-table-wrapper__buttons");const i=S({classes:["btn-edit-table"],title:"table_builder.edit.btn_edit",label:"table_builder.edit.btn_edit",icon:{name:"pencil-alt",class:"edit-table-icon"}});if(e.parentNode.setAttribute("data-table-index",t),e.parentNode.classList.add("fullscreen-table-wrapper"),r.canEdit&&(n.append(i),i.addEventListener("click",P.bind({tableIndex:t,...r}),!1)),e.parentNode.insertBefore(n,e),!function(e){let{clientWidth:t,scrollWidth:n}=e;return n>t}(e.parentNode))return;if(w.isMobileDevice)return;const s=S({classes:["btn-expand-table"],title:"fullscreen_table.expand_btn",icon:{name:"discourse-expand",class:"expand-table-icon"}});n.append(s),s.addEventListener("click",C,!1),e.parentNode.insertBefore(n,e)}))}))}),{onlyStream:!0,id:"table-wrapper"}),t.cleanupStream((function(){const e=document.querySelector(".open-popup-link.btn-edit-table"),t=document.querySelector(".open-popup-link.btn-expand-table");t?.removeEventListener("click",C),e?.removeEventListener("click",P)}))}))}}},64592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r,i=n(54001),s=n(57555);const o=(r={after:"message-bus",initialize(e){this.messageBus=e.lookup("service:message-bus"),this.site=e.lookup("service:site"),this.messageBus.subscribe("/site/read-only",this.onMessage)},teardown(){this.messageBus.unsubscribe("/site/read-only",this.onMessage)},onMessage(e){this.site.set("isReadOnly",e)}},(0,i.Z)(r,"onMessage",[s.bind],Object.getOwnPropertyDescriptor(r,"onMessage"),r),r)},86925:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24567),i=n(53817),s=n(58256);const o={before:"hashtag-css-generator",initialize(e){(0,s.withPluginApi)("0.8.7",(t=>{t.registerHashtagType("category",new r.default(e)),t.registerHashtagType("tag",new i.default(e))}))}}},10397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(10425),i=n(12350),s=n(20934);const o={initialize(e){const t=e.lookup("service:site-settings"),n=e.lookup("service:capabilities");if(t.composer_media_optimization_image_enabled){if(n.isIOS&&!t.composer_ios_media_optimisation_image_enabled)return;(0,i.addComposerUploadPreProcessor)(s.default,(t=>{let{isMobileDevice:n}=t;return{optimizeFn:(t,n)=>e.isDestroyed||e.isDestroying?r.Promise.resolve():e.lookup("service:media-optimization-worker").optimizeImage(t,n),runParallel:!n}}))}}}},9952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(8265);const i={initialize(e){let{serviceWorkerURL:t}=e.lookup("service:session");(0,r.registerServiceWorker)(t)}}},83820:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(70352);const i={initialize(){this._interval=setInterval((function(){(0,r.updateRelativeAge)(document.querySelectorAll(".relative-date"))}),6e4)},teardown(){this._interval&&(clearInterval(this._interval),this._interval=null)}}},42469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(25477),i=n(82099);const s={initialize(e){const t=e.lookup("service:site-settings");r.default.addSource({id:"twitter",icon:"fab-twitter",generateUrl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=n?`"${n}" -- `:t;return`http://twitter.com/intent/tweet?url=${encodeURIComponent(e)}&text=${encodeURIComponent(r)}`},shouldOpenInPopup:!0,title:i.default.t("share.twitter"),popupHeight:265}),r.default.addSource({id:"facebook",icon:"fab-facebook",title:i.default.t("share.facebook"),generateUrl(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return`${t.facebook_app_id?`https://www.facebook.com/dialog/share?app_id=${t.facebook_app_id}&quote=${encodeURIComponent(r)}&href=`:"https://www.facebook.com/sharer.php?u="}${encodeURIComponent(e)}`},shouldOpenInPopup:!0}),r.default.addSource({id:"email",icon:"envelope",title:i.default.t("share.email"),generateUrl(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=r?`${r} \n\n ${e}`:e;return"mailto:?to=&subject="+encodeURIComponent("["+t.title+"] "+n)+"&body="+encodeURIComponent(i)},showInPrivateContext:!0})}}},35589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(31311);const i={initialize(e){const t=e.lookup("service:screen-track"),n=r.default.current(),i=e.lookup("service:site-settings"),s=e.lookup("service:key-value-store"),o=e.lookup("service:current-user"),a=e.lookup("service:app-events");function l(){if(n.get("showSignupCta"))return;if(n.get("hideSignupCta"))return;if(s.get("anon-cta-never"))return;const e=Date.now();if(s.getInt("anon-cta-hidden",0)>e-864e5)return;if(s.getInt("anon-topic-time")<12e4)return;const t=s.get("anon-topic-ids");t&&(t.split(",").length<2||(n.set("showSignupCta",!0),a.trigger("cta:shown")))}o||s.get("anon-cta-never")||i.allow_new_registrations&&(i.invite_only||i.login_required||i.enable_signup_cta&&(t.registerAnonCallback(l),l()))}}},51198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={initialize(e){const t=e.lookup("service:capabilities"),n=document.documentElement;t.touch?n.classList.add("touch","discourse-touch"):n.classList.add("no-touch","discourse-no-touch")}}},68333:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={initialize(){let e=window.location.search;if(e.includes("user_api_public_key")){let t=e.startsWith("?")?e.slice(1).split("&"):[];t=t.filter((e=>!e.startsWith("user_api_public_key=")&&!e.startsWith("auth_redirect="))),e=t.length>0?`?${t.join("&")}`:"",window.history&&window.history.replaceState&&window.history.replaceState(null,null,`${location.pathname}${e}${location.hash}`)}}}},35534:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(44750),o=n(98952),a=n(83649),l=n(34405),c=n(57555);const u=(r={after:"message-bus",initialize(e){this.currentUser=e.lookup("service:current-user"),this.currentUser&&(this.messageBus=e.lookup("service:message-bus"),this.store=e.lookup("service:store"),this.messageBus=e.lookup("service:message-bus"),this.appEvents=e.lookup("service:app-events"),this.siteSettings=e.lookup("service:site-settings"),this.site=e.lookup("service:site"),this.router=e.lookup("service:router"),this.reviewableCountsChannel=`/reviewable_counts/${this.currentUser.id}`,this.messageBus.subscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.subscribe(`/notification/${this.currentUser.id}`,this.onNotification,this.currentUser.notification_channel_position),this.messageBus.subscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.subscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb),this.messageBus.subscribe("/user-status",this.onUserStatus,this.currentUser.status?.message_bus_last_id),this.messageBus.subscribe("/categories",this.onCategories),this.messageBus.subscribe("/client_settings",this.onClientSettings),(0,l.isTesting)()||(this.messageBus.subscribe((0,s.alertChannel)(this.currentUser),this.onAlert),(0,s.init)(this.messageBus,this.appEvents),(0,o.isPushNotificationsEnabled)(this.currentUser)?((0,s.disable)(),(0,o.register)(this.currentUser,this.router,this.appEvents)):(0,o.unsubscribe)(this.currentUser)))},teardown(){this.currentUser&&(this.messageBus.unsubscribe(this.reviewableCountsChannel,this.onReviewableCounts),this.messageBus.unsubscribe(`/notification/${this.currentUser.id}`,this.onNotification),this.messageBus.unsubscribe(`/user-drafts/${this.currentUser.id}`,this.onUserDrafts),this.messageBus.unsubscribe(`/do-not-disturb/${this.currentUser.id}`,this.onDoNotDisturb),this.messageBus.unsubscribe("/user-status",this.onUserStatus),this.messageBus.unsubscribe("/categories",this.onCategories),this.messageBus.unsubscribe("/client_settings",this.onClientSettings),this.messageBus.unsubscribe((0,s.alertChannel)(this.currentUser),this.onAlert))},onReviewableCounts(e){e.reviewable_count>=0&&this.currentUser.updateReviewableCount(e.reviewable_count),this.currentUser.set("unseen_reviewable_count",e.unseen_reviewable_count)},onNotification(e){const t=this.currentUser.unread_notifications,n=this.currentUser.unread_high_priority_notifications,r=this.currentUser.all_unread_notifications_count;this.currentUser.setProperties({unread_notifications:e.unread_notifications,unread_high_priority_notifications:e.unread_high_priority_notifications,read_first_notification:e.read_first_notification,all_unread_notifications_count:e.all_unread_notifications_count,grouped_unread_notifications:e.grouped_unread_notifications,new_personal_messages_notifications_count:e.new_personal_messages_notifications_count}),t===e.unread_notifications&&n===e.unread_high_priority_notifications&&r===e.all_unread_notifications_count||(this.appEvents.trigger("notifications:changed"),this.site.mobileView&&(e.unread_notifications-t>0||e.unread_high_priority_notifications-n>0||e.all_unread_notifications_count-r>0)&&this.appEvents.trigger("header:update-topic",null,5e3));const i=this.store.findStale("notification",{},{cacheKey:"recent-notifications"}),s=e.last_notification?.notification;if(i?.hasResults&&s){const t=i.results.get("content");if(-1===t.findIndex((e=>e.id===s.id))){let e=0;if(!s.high_priority||s.read){const n=t.findIndex((e=>!e.high_priority||e.read));-1!==n&&(e=n)}t.insertAt(e,a.default.create(s))}const n=Object.fromEntries(e.recent),r=t.map((e=>{if(void 0!==n[e.id])return e.set("read",n[e.id]),e})).filter(Boolean);i.results.set("content",r)}},onUserDrafts(e){this.currentUser.updateDraftProperties(e)},onDoNotDisturb(e){this.currentUser.updateDoNotDisturbStatus(e.ends_at)},onUserStatus(e){this.appEvents.trigger("user-status:changed",e)},onCategories(e){(e.categories||[]).forEach((e=>{const t=this.currentUser.muted_category_ids?.concat(this.currentUser.indirectly_muted_category_ids);return t&&t.includes(e.parent_category_id)&&!t.includes(e.id)&&this.currentUser.set("indirectly_muted_category_ids",this.currentUser.indirectly_muted_category_ids.concat(e.id)),this.site.updateCategory(e)})),(e.deleted_categories||[]).forEach((e=>this.site.removeCategory(e)))},onClientSettings(e){this.siteSettings[e.name]=e.value},onAlert(e){return(0,s.onNotification)(e,this.siteSettings,this.currentUser)}},(0,i.Z)(r,"onReviewableCounts",[c.bind],Object.getOwnPropertyDescriptor(r,"onReviewableCounts"),r),(0,i.Z)(r,"onNotification",[c.bind],Object.getOwnPropertyDescriptor(r,"onNotification"),r),(0,i.Z)(r,"onUserDrafts",[c.bind],Object.getOwnPropertyDescriptor(r,"onUserDrafts"),r),(0,i.Z)(r,"onDoNotDisturb",[c.bind],Object.getOwnPropertyDescriptor(r,"onDoNotDisturb"),r),(0,i.Z)(r,"onUserStatus",[c.bind],Object.getOwnPropertyDescriptor(r,"onUserStatus"),r),(0,i.Z)(r,"onCategories",[c.bind],Object.getOwnPropertyDescriptor(r,"onCategories"),r),(0,i.Z)(r,"onClientSettings",[c.bind],Object.getOwnPropertyDescriptor(r,"onClientSettings"),r),(0,i.Z)(r,"onAlert",[c.bind],Object.getOwnPropertyDescriptor(r,"onAlert"),r),r)},75573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(12999);const i={initialize(e){const t=e.lookup("service:session");t.svgSpritePath&&(0,r.loadSprites)(t.svgSpritePath,"fontawesome")}}},18748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(75900),i=n(73638),s=n(87521),o=n(82099);const a={initialize(e){(0,i.registerTopicFooterButton)({id:"share-and-invite",icon:"d-topic-share",priority:1e3,label(){if(!this.get("topic.isPrivateMessage")||this.site.mobileView)return"footer_nav.share"},title:"topic.share.help",action(){e.lookup("service:modal").show(r.default,{model:{category:this.topic.category,topic:this.topic,allowInvites:this.currentUser.can_invite_to_forum&&this.canInviteTo&&!this.inviteDisabled}})},dropdown(){return this.site.mobileView},classNames:["share-and-invite"],dependentKeys:["topic.shareUrl","topic.isPrivateMessage","canInviteTo","inviteDisabled","isPM","invitingToTopic"]}),(0,i.registerTopicFooterButton)({id:"flag",icon:"flag",priority:700,label:"topic.flag_topic.title",title:"topic.flag_topic.help",action:"showFlagTopic",dropdown(){return this.site.mobileView},classNames:["flag-topic"],dependentKeys:["topic.details.can_flag_topic","topic.isPrivateMessage"],displayed(){return this.get("topic.details.can_flag_topic")&&!this.get("topic.isPrivateMessage")}}),(0,i.registerTopicFooterButton)({dependentKeys:["topic.bookmarked","topic.bookmarksWereChanged"],id:"bookmark",icon(){return this.topic.bookmarks.some((e=>e.reminder_at))?s.WITH_REMINDER_ICON:s.NO_REMINDER_ICON},priority:900,classNames(){return this.topic.bookmarked?["bookmark","bookmarked"]:["bookmark"]},label(){if(!this.topic.isPrivateMessage||this.site.mobileView)return 0===this.topic.bookmarkCount?"bookmarked.title":1===this.topic.bookmarkCount?"bookmarked.edit_bookmark":"bookmarked.clear_bookmarks"},translatedTitle(){return 0===this.topic.bookmarkCount?o.default.t("bookmarked.help.bookmark"):1===this.topic.bookmarkCount?this.topic.bookmarks.some((e=>"Topic"===e.bookmarkable_type))?o.default.t("bookmarked.help.edit_bookmark_for_topic"):o.default.t("bookmarked.help.edit_bookmark"):this.topic.bookmarks.some((e=>e.reminder_at))?o.default.t("bookmarked.help.unbookmark_with_reminder"):o.default.t("bookmarked.help.unbookmark")},action:"toggleBookmark",dropdown(){return this.site.mobileView}}),(0,i.registerTopicFooterButton)({id:"archive",priority:800,icon(){return this.archiveIcon},label(){return this.archiveLabel},title(){return this.archiveTitle},action:"toggleArchiveMessage",classNames:["standard","archive-topic"],dependentKeys:["canArchive","archiveIcon","archiveLabel","archiveTitle","toggleArchiveMessage"],dropdown(){return this.site.mobileView},displayed(){return this.canArchive}}),(0,i.registerTopicFooterButton)({id:"defer",icon:"circle",priority:500,label:"topic.defer.title",title:"topic.defer.help",action:"deferTopic",displayed(){return this.canDefer},dropdown(){return this.site.mobileView}})}}},84739:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(20229),i=n(62617);const s={after:"inject-objects",initialize(e){r.default.rewrite(/^\/group\//,"/groups/"),r.default.rewrite(/^\/groups$/,"/g"),r.default.rewrite(/^\/groups\//,"/g/");const t=e.lookup("service:current-user");let n=e.lookup("service:site-settings");t?r.default.rewrite(/^\/my\//,`/u/${t.username_lower}/`):r.default.rewrite(/^\/my\/.*/,"/login-preferences"),(0,i.initializeDefaultHomepage)(n)}}},64738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r,i=n(54001),s=n(57555);const o=(r={after:"message-bus",initialize(e){this.currentUser=e.lookup("service:current-user"),this.currentUser&&(this.userTips=e.lookup("service:user-tips"),this.messageBus=e.lookup("service:message-bus"),this.site=e.lookup("service:site"),this.messageBus.subscribe(`/user-tips/${this.currentUser.id}`,this.onMessage))},teardown(){this.currentUser&&this.messageBus?.unsubscribe(`/user-tips/${this.currentUser.id}`,this.onMessage)},onMessage(e){this.site.user_tips&&(this.currentUser.user_option||this.currentUser.set("user_option",{}),this.currentUser.set("user_option.seen_popups",e),(e||[]).forEach((e=>{this.userTips.hideUserTipForever(Object.keys(this.site.user_tips).find((t=>this.site.user_tips[t]===e)))})))}},(0,i.Z)(r,"onMessage",[s.bind],Object.getOwnPropertyDescriptor(r,"onMessage"),r),r)},18957:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(94312),i=n(58256),s=n(3961),o=n(12933),a=n(82099);const l={initialize(e){(0,i.withPluginApi)("0.8.7",(t=>{function n(t,n){const i=n.target.closest(".video-placeholder-container"),l=i.querySelector(".video-placeholder-wrapper"),c=l.querySelector(".video-placeholder-overlay");i.style.cursor="",c.innerHTML=r.spinnerHTML;const u=`\n        <video width="100%" height="100%" preload="metadata" controls style="display:none">\n          <source src="${i.dataset.videoSrc}" ${i.dataset.origSrc}>\n          <a href="${i.dataset.videoSrc}">${i.dataset.videoSrc}</a>\n        </video>`;i.insertAdjacentHTML("beforeend",u),i.classList.add("video-container");const d=i.querySelector("video"),p=e.lookup("service:capabilities");if(p.isSafari||p.isIOS){const e=d.querySelector("source");e&&e.parentElement.load()}d.addEventListener("loadeddata",(()=>{(0,o.default)((()=>{if(0===d.videoWidth||0===d.videoHeight){const e=document.createElement("div");e.className="notice",e.innerHTML=(0,s.iconHTML)("exclamation-triangle")+" "+a.default.t("cannot_render_video"),i.appendChild(e)}}),500)})),d.addEventListener("canplay",(function(){d.play(),l.remove(),d.style.display="",i.classList.remove("video-placeholder-container")}))}t.decorateCookedElement((function(e,t){t&&e.querySelectorAll(".video-placeholder-container").forEach((e=>{const r=document.createElement("div"),i=document.createElement("div");r.classList.add("video-placeholder-wrapper"),e.appendChild(r),i.classList.add("video-placeholder-overlay"),e.style.cursor="pointer",e.addEventListener("click",n.bind(null,t),{once:!0}),i.innerHTML=`${(0,s.iconHTML)("play")}`,r.appendChild(i)}))}),{onlyStream:!0})}))}}},10405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(62617),i=n(12933);const s={after:"inject-objects",initialize(e){e.lookup("service:capabilities").isAppWebview&&(window.matchMedia("(prefers-color-scheme: dark)").addListener(this.updateAppBackground),this.updateAppBackground())},updateAppBackground(){(0,i.default)((()=>{const e=document.querySelector(".d-header-wrap .d-header");if(e){const t=window.getComputedStyle(e);(0,r.postRNWebviewMessage)("headerBg",t.backgroundColor)}}),500)}}},38864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractError:()=>c,flashAjaxError:()=>d,popupAjaxError:()=>p,throwAjaxError:()=>u});var r=n(24434),i=n(71466),s=n.n(i),o=n(37080),a=n(82099);function l(e,t){e instanceof Error&&console.error(e.stack),"string"==typeof e&&console.error(e),e.jqXHR&&(e=e.jqXHR);let n,r,i=!1;if(e.responseJSON&&(r=e.responseJSON),!r&&e.responseText)try{r=s().parseJSON(e.responseText)}catch(e){console.error(e.stack)}return r&&(r.html_message&&(i=!0),r.errors?.length>1?n=a.default.t("multiple_errors",{errors:r.errors.map(((e,t)=>`${t+1}) ${e}`)).join(" ")}):r.errors?.length>0?n=a.default.t("generic_error_with_reason",{error:r.errors[0]}):r.error?n=r.error:r.message?n=r.message:r.failed&&(n=r.failed)),n||e.status&&e.status>=400&&(n=e.status+" "+e.statusText),{html:i,message:n||t||a.default.t("generic_error")}}function c(e,t){return l(e,t).message}function u(e,t){return function(n){throw e&&e(n),c(n,t)}}function d(e,t){return n=>{e.flash(c(n,t),"error")}}function p(e){const t=(0,o.getOwnerWithFallback)(this).lookup("service:dialog"),n=l(e);n.html?t.alert({message:(0,r.htmlSafe)(n.message)}):t.alert(n.message)}},3055:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ajax:()=>k,handleLogoff:()=>w,resetAjax:()=>_,setLogoffCallback:()=>y,setTransientHeader:()=>f,trackNextAjaxAsPageview:()=>b,updateCsrfToken:()=>v});var r=n(51372),i=n(71466),s=n.n(i),o=n(10425),a=n(3872),l=n(31311),c=n(19990),u=n(7223),d=n(34405),p=n(47582);let h,m=!1,g=null;function f(e,t){g={key:e,value:t}}function b(){m=!0}function _(){m=!1}function y(e){h=e}function w(e){e&&e.getResponseHeader("Discourse-Logged-Out")&&h&&h()}function v(){return k("/session/csrf").then((e=>{l.default.currentProp("csrfToken",e.csrf)}))}function k(){let e,t,n;1===arguments.length?"string"==typeof arguments[0]?(e=arguments[0],t={}):(t=arguments[0],e=t.url,delete t.url):2===arguments.length&&(e=arguments[0],t=arguments[1]),e=(0,p.default)(e);let i,h=!0;function f(i,o){t.headers=t.headers||{},u.default.current()&&(t.headers["Discourse-Logged-In"]="true"),g&&(t.headers[g.key]=g.value,g=null),!m||t.type&&"GET"!==t.type||(m=!1,t.headers["Discourse-Track-View"]="true"),(0,a.default)()&&(t.headers["Discourse-Present"]="true"),t.success=(e,n,s)=>{!function(e){e&&e.getResponseHeader("Discourse-Xhr-Redirect")&&(window.location=e.responseText)}(s),w(s),(0,r.run)((()=>{c.default.currentProp("isReadOnly",!(!s||!s.getResponseHeader("Discourse-Readonly")))})),t.returnXHR&&(e={result:e,xhr:s}),(0,r.run)(null,i,e)},t.error=(n,i,s)=>{if(h&&0===n.readyState){if("error"===i&&(0,d.isTesting)())throw s}else{if(w(n),403===n.status&&'["BAD CSRF"]'===n.responseText&&l.default.current().set("csrfToken",null),200===n.status)return t.success(n);n.jqTextStatus=i,n.requestedUrl=e,(0,r.run)(null,o,{jqXHR:n,textStatus:i,errorThrown:s})}},t.method&&(t.type=t.method,delete t.method),t.type||(t.type="GET"),t.dataType||"GET"!==t.type.toUpperCase()||(t.dataType="json"),"script"===t.dataType&&(t.headers["Discourse-Script"]=!0),n=s().ajax(e,t)}return void 0!==t.ignoreUnsent&&(h=t.ignoreUnsent,delete t.ignoreUnsent),i=t.type&&"GET"!==t.type.toUpperCase()&&e!==(0,p.default)("/clicks/track")&&!l.default.currentProp("csrfToken")?new o.Promise(((e,t)=>{n=v().then((()=>{f(e,t)}))})):new o.Promise(f),i.abort=()=>{n&&n.abort()},i}},83297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{apiInitializer:()=>s});var r=n(58256);let i=0;function s(e,t,n){return{name:"api-initializer"+i++,after:"inject-objects",initialize:()=>(0,r.withPluginApi)(e,t,n)}}},13680:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CANCELLED_STATUS:()=>g,SKIP:()=>m,default:()=>w});var r=n(51372),i=n(83844),s=n(71466),o=n.n(s),a=n(43168),l=n(62617),c=n(19990),u=n(34405),d=n(56111),p=n(3961),h=n(12933);const m="skip",g="__CANCELLED",f=/[\s\t\[\{\(\/]/;let b;const _={backSpace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,esc:27,space:32,leftWindows:91,rightWindows:92,pageUp:33,pageDown:34,end:35,home:36,leftArrow:37,upArrow:38,rightArrow:39,downArrow:40,insert:45,deleteKey:46,zero:48,a:65,z:90};let y;function w(e){if(0===this.length)return;if(("destroy"===e||e.updateData)&&((0,r.cancel)(y),this[0].removeEventListener("keydown",q),this[0].removeEventListener("keyup",R),this[0].removeEventListener("paste",O),this[0].removeEventListener("click",D),window.removeEventListener("click",D),"destroy"===e))return;if(e&&e.cancel&&this.data("closeAutocomplete"))return this.data("closeAutocomplete")(),this;if(1!==this.length)return window.console&&(window.console.log("WARNING: passed multiple elements to $.autocomplete, skipping."),window.Error&&window.console.log((new window.Error).stack)),this;e&&void 0===e.preserveKey&&(e.preserveKey=!0);const t=e&&e.disabled;let n=null,s=null,w=null,v=null,k=this,x=null,T=null,S=null;"autoSelectFirstSuggestion"in e||(e.autoSelectFirstSuggestion=!0);const C="INPUT"===k[0].tagName&&!e.treatAsTextarea;let P=[];function O(){(0,h.default)((()=>k.trigger("keydown")),50)}function E(){if(!T&&!x)return;const e=T?.length>0?T[0]:x[0],t=A(),n=t.offsetTop,r=n+t.clientHeight;n<=e.scrollTop?e.scrollTo(0,n):r>=e.scrollTop+e.clientHeight&&e.scrollTo(0,e.scrollTop+t.clientHeight)}function D(){b?.destroy(),e.onClose&&e.onClose(),x&&x.hide().remove(),x=null,T=null,v=null,s=null,S=null,b=null}function I(t,n){let r,i=t;e.transformComplete&&(i=e.transformComplete(i)),e.single&&(P=[]),r=Array.isArray(i)?i:[i||t];const s=r.map((e=>{let t=o()(`<div class='item'><span>${e}<a class='remove' href>${(0,p.iconHTML)("times")}</a></span></div>`);const n=k.parent().find(".item:last");return 0===n.length?k.parent().prepend(t):n.after(t),P.push(e),t[0]}));e.onChangeItems&&n&&e.onChangeItems(P),o()(s).find("a").click((function(){return D(),P.splice(o().inArray(i,P),1),o()(this).parent().parent().remove(),e.single&&k.show(),e.onChangeItems&&e.onChangeItems(P),!1}))}let j=async function(t,n){let r=null;if(t)if(C)k.val(""),e.single&&k.hide(),I(t,!0);else if(e.transformComplete&&(t=await e.transformComplete(t,n)),t){let i=k.val(),s=$({completeTerm:!0});void 0!==s.completeStart&&void 0!==s.completeEnd?(v=s.completeStart,r=s.completeEnd):v=r=(0,l.caretPosition)(k[0]);let o=" "===i.substring(r+1,r+2)?"":" ";i=i.substring(0,v)+(e.preserveKey&&e.key||"")+t+o+i.substring(r+1,i.length),k.val(i);let a=v+1+t.length;e.key&&a++,(0,l.setCaretPosition)(k[0],a),e&&e.afterComplete&&e.afterComplete(i,n)}D()};if(C){const r=Math.max(this.width(),200);e.updateData?(n=this.parent(),n.find(".item").remove(),k.show()):(n=this.wrap("<div class='ac-wrap clearfix"+(t?" disabled":"")+"'/>").parent(),e.fullWidthWrap||n.width(r)),e.single&&!e.width?this.attr("class",`${this.attr("class")} fullwidth-input`):e.width&&this.css("width",e.width),this.attr("name",e.updateData?this.attr("name"):this.attr("name")+"-renamed"),this.val().split(",").forEach((t=>{""!==t&&(e.reverseTransform&&(t=e.reverseTransform(t)),e.single&&k.hide(),I(t,!1))})),e.items&&e.items.forEach((t=>{e.single&&k.hide(),I(t,!0)})),this.val(""),v=0,n.click((function(){return this.focus(),!0}))}function Z(){return M().removeClass("selected"),o()(A()).addClass("selected")}function A(){return M()[w]}function M(){return x.find("li a")}const N=-32;function z(e,t){const n=t._gboard_hack_force_lookup;return n&&delete t._gboard_hack_force_lookup,S!==e||n?(S=e,0!==e.length&&0===e.trim().length?(D(),null):t.dataSource(e)):m}function L(t){if(null!==v&&t!==m)return t&&t.then&&"function"==typeof t.then?(x&&x.hide().remove(),void t.then(L)):void(t!==g&&(s=t,t&&0!==t.length?function(){if(x&&x.hide().remove(),0===s.length)return;x=o()(e.template({options:s}));let t=x.find("ul");if(e.autoSelectFirstSuggestion?(w=0,Z()):w=-1,t.find("li").click((function(n){let{originalEvent:r}=n;if(w=t.find("li").index(this),null==s){const t={...e,_gboard_hack_force_lookup:!0},n=z(S,t);n?.then((t=>{L(t),j(s[w],r),e.single||k.focus()}))}else j(s[w],r),e.single||k.focus();return!1})),e.appendSelector?k.parents(e.appendSelector).append(x):k.parent().append(x),e.scrollElementSelector&&(T=x.find(e.scrollElementSelector)),e.onRender&&e.onRender(s),C||e.treatAsTextarea)return b&&b.destroy(),b=(0,i.fi)(k[0],x[0],{placement:(c.default.currentProp("mobileView")?"top":"bottom")+"-start",modifiers:[{name:"offset",options:{offset:[0,2]}}]}),b;let n=0,r=k.caretPosition({pos:v+1});e.treatAsTextarea&&(n=-32),C||e.treatAsTextarea||(n=x.height(),window.innerHeight-k.outerHeight()-o()("header.d-header").innerHeight()<n&&n>r.top&&(n=N),c.default.currentProp("mobileView")&&k.height()/2>=r.top&&(n=N));const l=k.position();let u;if((0,a.isDocumentRTL)())u=l.left+r.left-x.width();else{let e=10;c.default.currentProp("mobileView")&&k.width()/2<=r.left&&(e=-x.width()),u=l.left+r.left+e}u<0&&(u=0);const d=k.offset().top,p=parseInt(k.css("border-top-width"),10)||0;l.top+r.top+p-n+d<30&&(n=N),x.css({position:"absolute",top:`${l.top+r.top-n+p}px`,left:`${u}px`})}():D()))}const F=k.data("closeAutocomplete");function U(t){return!e.triggerRule||e.triggerRule(k[0],t)}function R(t){e.debounced?(0,d.default)(this,B,t,u.INPUT_DELAY):B(t)}function B(t){if([_.esc,_.enter].includes(t.which))return!0;let n=(0,l.caretPosition)(k[0]);const r=k[0].value[n-1];if(e.key&&e.onKeyUp&&r!==e.key){let t=e.onKeyUp(k.val(),n);t&&(v=n-t[0].length,L(z(t[0].substring(1,t[0].length),e)))}if(null===v&&n>0){if(r===e.key){let t=k.val().charAt(n-2);!U()||t&&!f.test(t)||(v=n-1,L(z("",e)))}}else null!==v&&L(z(k.val().substring(v+(e.key?1:0),n),e))}function $(t){let n,r,i,s=!0,o=k[0],a=t&&t.backSpace,c=t&&t.completeTerm,u=(0,l.caretPosition)(o);a&&(u-=1);let d=null,p=null,h=u;for(;s&&u>=0;){if(u-=1,n=o.value[u],r=n===e.key,r&&(n=o.value[u-1],U({backSpace:a})&&(void 0===n||f.test(n)))){d=u,i=o.value.substring(u+1,h),p=u+i.length;break}s=!/\s/.test(n),c&&(s||=" "===n)}return{completeStart:d,completeEnd:p,term:i}}function q(t){let i,o,a,c,u;if(t.ctrlKey||t.altKey||t.metaKey)return!0;if(e.allowAny&&((0,r.cancel)(y),y=(0,h.default)((function(){0===P.length&&P.push(""),"string"==typeof P[0]&&k.val().length>0&&(P.pop(),P.push(k.val()),e.onChangeItems&&e.onChangeItems(P))}),50)),e.key||(v=0),t.which!==_.shift){if(null===v&&t.which===_.backSpace&&e.key){let t=$({backSpace:!0});if(v=t.completeStart,t.completeEnd)return L(z(t.term,e)),!0}if(t.which===_.esc)return null===x||(D(),t.preventDefault(),t.stopImmediatePropagation(),!1);if(null!==v){if(u=(0,l.caretPosition)(k[0]),t.which===_.rightArrow&&" "===k[0].value[u])return D(),!0;if(u<=v&&e.key)return D(),!0;switch(t.which){case _.tab:case _.enter:return s?!(w>=0&&(c=s[w])&&(j(c,t),t.stopImmediatePropagation(),t.preventDefault(),1)):(D(),!0);case _.upArrow:return w-=1,w<0&&(w=0),Z(),E(),t.preventDefault(),!1;case _.downArrow:return s?(a=s.length,w+=1,w>=a&&(w=a-1),w<0&&(w=0),Z(),E(),t.preventDefault(),!1):(D(),!0);case _.backSpace:return s=null,u--,u<0?(D(),C&&(i=n.find("a:last"),i&&i.click()),!0):(o=k.val().substring(v+(e.key?1:0),u),v===u&&o===e.key&&D(),L(z(o,e)),!0);default:return s=null,!0}}}}return k.data("closeAutocomplete",(function(){F&&F(),D()})),window.addEventListener("click",D),this[0].addEventListener("click",D),this[0].addEventListener("paste",O),this[0].addEventListener("keyup",R),this[0].addEventListener("keydown",q),this}},64383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const r="function"==typeof Set?new Set:function(){const e=[];return{has:t=>Boolean(e.includes(t)),add(t){e.push(t)},delete(t){e.splice(e.indexOf(t),1)}}}();function i(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName)return;const t=new Event("autosize:destroy",{bubbles:!0,cancelable:!1});e.dispatchEvent(t)}function s(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName)return;const t=new Event("autosize:update",{bubbles:!0,cancelable:!1});e.dispatchEvent(t)}let o=(e,t)=>(e&&Array.prototype.forEach.call(e.length?e:[e],(e=>function(e){let{setOverflowX:t=!0,setOverflowY:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||r.has(e))return;let i=null,s=null,o=e.clientWidth;function a(t){{const t=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=t}s=t,n&&(e.style.overflowY=t),l()}function l(){const t=window.pageYOffset,n=document.body.scrollTop,r=e.style.height;e.style.height="auto";let s=e.scrollHeight+i;0!==e.scrollHeight?(e.style.height=s+"px",o=e.clientWidth,document.documentElement.scrollTop=t,document.body.scrollTop=n):e.style.height=r}function c(){const t=e.style.height;if(l(),window.getComputedStyle(e,null).height!==e.style.height?"visible"!==s&&a("visible"):"hidden"!==s&&a("hidden"),t!==e.style.height){const t=new Event("autosize:resized",{bubbles:!0,cancelable:!1});e.dispatchEvent(t)}}const u=()=>{e.clientWidth!==o&&c()},d=t=>{window.removeEventListener("resize",u,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",d,!1),e.removeEventListener("autosize:update",c,!1),r.delete(e),Object.keys(t).forEach((n=>{e.style[n]=t[n]}))};e.addEventListener("autosize:destroy",d,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",u,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),r.add(e),t&&(e.style.overflowX="hidden",e.style.wordWrap="break-word"),function(){const t=window.getComputedStyle(e,null);s=t.overflowY,"vertical"===t.resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),i="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(i)&&(i=0),c()}()}(e,t))),e);o.destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],i),e),o.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],s),e);const a=o},14382:(e,t,n)=>{"use strict";let r,i;function s(e,t){if(r||function(e){r={},i=!0,["admins","moderators","staff","trust_level_0","trust_level_1","trust_level_2","trust_level_3","trust_level_4"].forEach((t=>{const n=e.groups?.findBy("name",t);n&&n.flair_url&&(i=!1,r[t]={flair_name:n.name.replace(/_/g," "),flair_url:n.flair_url,flair_bg_color:n.flair_bg_color,flair_color:n.flair_color})}))}(e),i)return null;if(t.admin&&r.admins)return r.admins;if(t.moderator&&r.moderators)return r.moderators;if(r.staff&&(t.admin||t.moderator))return r.staff;let n=t.trust_level||t.trustLevel;if(n)for(let e=n;e>=0;e--)if(r[`trust_level_${e}`])return r[`trust_level_${e}`]}function o(){r=null,i=null}n.r(t),n.d(t,{default:()=>s,resetFlair:()=>o})},64390:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BookmarkFormData:()=>y,formattedReminderTime:()=>_});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(54001),m=n(23183),g=n(50459),f=n(87521),b=n(82099);function _(e,t){let n=moment.tz(e,t),r=n.format(b.default.t("dates.time")),i=moment.tz(t),s=moment(i).add(1,"day");return n.isSame(s,"date")?b.default.t("bookmarks.reminders.tomorrow_with_time",{time:r}):n.isSame(i,"date")?b.default.t("bookmarks.reminders.today_with_time",{time:r}):b.default.t("bookmarks.reminders.at_time",{date_time:n.format(b.default.t("dates.long_with_year"))})}let y=(r=class{constructor(e){(0,p.Z)(this,"selectedDatetime",i,this),(0,p.Z)(this,"selectedReminderType",s,this),(0,p.Z)(this,"id",o,this),(0,p.Z)(this,"reminderAt",a,this),(0,p.Z)(this,"autoDeletePreference",l,this),(0,p.Z)(this,"name",c,this),(0,p.Z)(this,"bookmarkableId",u,this),(0,p.Z)(this,"bookmarkableType",d,this),this.id=e.id,this.reminderAt=e.reminder_at,this.name=e.name,this.bookmarkableId=e.bookmarkable_id,this.bookmarkableType=e.bookmarkable_type,this.autoDeletePreference=e.auto_delete_preference??f.AUTO_DELETE_PREFERENCES.CLEAR_REMINDER}get reminderAtISO(){if(this.selectedReminderType&&this.selectedDatetime)return this.selectedDatetime.toISOString()}get saveData(){return{reminder_at:this.reminderAtISO,name:this.name,id:this.id,auto_delete_preference:this.autoDeletePreference,bookmarkable_id:this.bookmarkableId,bookmarkable_type:this.bookmarkableType}}},i=(0,h.Z)(r.prototype,"selectedDatetime",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.Z)(r.prototype,"selectedReminderType",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return g.TIME_SHORTCUT_TYPES.NONE}}),o=(0,h.Z)(r.prototype,"id",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.Z)(r.prototype,"reminderAt",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.Z)(r.prototype,"autoDeletePreference",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.Z)(r.prototype,"name",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.Z)(r.prototype,"bookmarkableId",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,h.Z)(r.prototype,"bookmarkableType",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},83924:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a,l,c,u=n(94664),d=n(49246),p=n(54001),h=n(23183),m=n(72326),g=n(17579),f=n(57959),b=n(35814),_=n(92635),y=n(57555);let w=(r=class{constructor(e){(0,u.Z)(this,"router",i,this),(0,u.Z)(this,"modal",s,this),(0,u.Z)(this,"pmTopicTrackingState",o,this),(0,u.Z)(this,"topicTrackingState",a,this),(0,u.Z)(this,"bulkSelectEnabled",l,this),(0,u.Z)(this,"autoAddTopicsToBulkSelect",c,this),(0,d.Z)(this,"selected",new f.TrackedArray),(0,m.setOwner)(this,(0,m.getOwner)(e))}clear(){this.selected.length=0}addTopics(e){this.selected.concat(e)}toggleBulkSelect(){this.bulkSelectEnabled=!this.bulkSelectEnabled,this.clear()}dismissRead(e,t){const n="posts"===e?{type:"dismiss_posts"}:{type:"change_notification_level",notification_level_id:b.NotificationLevels.REGULAR},r="tracked"===(this.router.currentRoute.queryParams.f||this.router.currentRoute.queryParams.filter);(this.selected.length?_.default.bulkOperation(this.selected,n,{},r):_.default.bulkOperationByFilter("unread",n,t,r)).then((e=>{e?.topic_ids&&(t.private_message_inbox?this.pmTopicTrackingState.removeTopics(e.topic_ids):this.topicTrackingState.removeTopics(e.topic_ids)),this.modal.close(),this.router.refresh()}))}},i=(0,p.Z)(r.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.Z)(r.prototype,"modal",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,p.Z)(r.prototype,"pmTopicTrackingState",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,p.Z)(r.prototype,"topicTrackingState",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.Z)(r.prototype,"bulkSelectEnabled",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,p.Z)(r.prototype,"autoAddTopicsToBulkSelect",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,p.Z)(r.prototype,"toggleBulkSelect",[y.bind],Object.getOwnPropertyDescriptor(r.prototype,"toggleBulkSelect"),r.prototype),r)},72247:(e,t,n)=>{"use strict";function r(e,t){e.set("topicList",t)}function i(e){e.get("topicList")}function s(e){e.setProperties({topicList:null})}function o(e,t){const n=e.get("topicList");return n&&n.filter===t?n:(s(e),!1)}n.r(t),n.d(t,{findOrResetCachedTopicList:()=>o,getCachedTopicList:()=>i,resetCachedTopicList:()=>s,setCachedTopicList:()=>r})},10465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{caret:()=>a,caretPosition:()=>l});var r=n(71466),i=n.n(r);let s=null;function o(e){return e.selectionStart?e.selectionStart:0}function a(e){return o(e||this[0])}function l(e){let t,n,r,a,l,c,u,d,p,h,m,g,f,b,_;s&&s.remove(),b=i()(this),r=function(e){return e.currentStyle?e.currentStyle:document.defaultView.getComputedStyle(e,"")},c=function(e){return f.getPropertyValue(e)},f=r(b[0]),s=i()("<div><p></p></div>").appendTo("body"),h=s.find("p");let y=i()("html").hasClass("rtl");s.css({border:"1px solid black",padding:c("padding"),resize:c("resize"),"max-height":b.height()+"px","overflow-y":"auto","word-wrap":"break-word",position:"absolute",left:y?"auto":"-7000px",right:y?"-7000px":"auto"}),h.css({margin:0,padding:0,"word-wrap":"break-word","letter-spacing":c("letter-spacing"),"font-family":c("font-family"),"font-size":c("font-size"),"line-height":c("line-height")}),s.width(b.width()),s.height(b.height()),g=e&&(e.pos||0===e.pos)?e.pos:o(b[0]),_=b.val().replace("\r",""),e&&e.key&&(_=_.substring(0,g)+e.key+_.substring(g)),n=g-1,t=g,u=!1,"\n"===_[n]&&"\n"===_[t]&&(u=!0),a=function(e){let t;return t=e.replace(/</g,"&lt;"),t=t.replace(/>/g,"&gt;"),t=t.replace(/[ ]/g,"&#x200b;&nbsp;&#x200b;"),t.replace(/\n/g,"<br />")},p=function(e,t,n){let r;return r=_.substring(e,e+1),"\n"===r?"<br>":"<span class='"+t+"' style='background-color:"+n+"; margin:0; padding: 0'>"+a(r)+"</span>"},l="",n>=0&&(l+=a(_.substring(0,g-1))+p(n,"before","#d0ffff"),u&&(l+=p(0,"post-before","#d0ffff"))),t>=0&&(l+=p(t,"after","#ffd0ff"),t-1<_.length&&(l+=a(_.substring(t+1)))),h.html(l),s.scrollTop(b.scrollTop()),d=h.find("span:first"),g=d.offset(),d.hasClass("before")&&(g.left=g.left+d.width()),m=h.offset();let w={left:g.left-m.left,top:g.top-m.top-s.scrollTop()};return s.remove(),w}},62388:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SEPARATOR:()=>s,categoryHashtagTriggerRule:()=>a,replaceSpan:()=>o});var r=n(41087),i=n(54736);const s=":";function o(e,t,n,r){r=r?` data-type="${r}"`:"",e.replaceWith(`<a href="${n}" class="hashtag"${r}>#<span>${t}</span></a>`)}function a(e,t){return(0,i.default)("categoryHashtagTriggerRule is being replaced by hashtagTriggerRule and the new hashtag-autocomplete plugin APIs",{since:"2.9.0.beta10",dropFrom:"3.0.0.beta1",id:"discourse.category-hashtags.categoryHashtagTriggerRule"}),(0,r.hashtagTriggerRule)(e,t)}},71631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{search:()=>_});var r=n(51372),i=n(10425),s=n(3055),o=n(13680),a=n(62388),l=n(26639),c=n(56746),u=n(34405),d=n(56111),p=n(12933);let h,m,g={};function f(e,t){return g[e]=t,h=new Date,t}function b(e,t,n,r){m=(0,s.ajax)("/tags/filter/search",{data:{limit:t,q:e}});let i=o.CANCELLED_STATUS;m.then((e=>{const t=n.map((e=>e.model.get("name"))),r=e.results.map((e=>(e.text=t.includes(e.text)?`${e.text}${l.TAG_HASHTAG_POSTFIX}`:e.text,e)));i=n.concat(r)})).finally((()=>{m=null,r(i)}))}function _(e,t){m&&(m.abort(),m=null),new Date-h>3e4&&(g={});const n=g[e];if(n)return n;let s=c.default.search(e,{limit:5}),l=s.length;return s=s.map((e=>({model:e,text:c.default.slugFor(e,a.SEPARATOR,2)}))),5!==l&&t.tagging_enabled?function(e,t,n){return new i.Promise((i=>{let s=(0,u.isTesting)()?null:(0,p.default)((()=>{i(o.CANCELLED_STATUS)}),5e3);(0,d.default)(this,b,e,n,t,(t=>{(0,r.cancel)(s),i(f(e,t))}),300)}))}(e,s,5-l):f(e,s)}},78480:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_,isValidLink:()=>g,openLinkInNewTab:()=>b,shouldOpenInNewTab:()=>f});var r=n(71466),i=n.n(r),s=n(10425),o=n(3055),a=n(77559),l=n(20229),c=n(7223),u=n(34405),d=n(54736),p=n(37080),h=n(47582),m=n(82099);function g(e){if(e instanceof i()&&(e=e[0],(0,d.default)("isValidLink now expects an Element, not a jQuery object",{since:"2.9.0.beta7",id:"discourse.click-track.is-valid-link-jquery"})),["lightbox","no-track-link","hashtag","hashtag-cooked","back"].some((t=>e.classList.contains(t))))return!1;const t=e.closest("aside.quote, .elided, .expanded-embed");if(t&&t!==e)return!1;if(e.closest(".onebox-result, .onebox-body")){const t=e.closest(".onebox")?.querySelector("header a");if(t&&t.href===e.href)return!0}return e.classList.contains("track-link")||!e.closest(".hashtag, .hashtag-cooked, .hashtag-icon-placeholder, .badge-category, .onebox-result, .onebox-body")}function f(e){const t=l.default.isInternal(e),n=c.default.currentProp("user_option.external_links_in_new_tab");return!t&&n}function b(e,t){let n=(t.href||t.dataset.href||"").trim();if(""===n)return;const r=window.open(n,"_blank");r.opener=null,r.focus(),e.preventDefault()}const _={trackClick(e,t){let{returnPromise:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(3===e.which)return!0;const r=e.currentTarget,i=g(r);if(["mention","mention-group"].some((e=>r.classList.contains(e))))return!0;let d=(r.getAttribute("href")||r.dataset.href||"").trim();if(!d||d.startsWith("mailto:"))return!0;if(t?.lookup("service:app-events").trigger("click-tracked",d),r.classList.contains("attachment")){if(t?.lookup("service:site-settings")?.prevent_anons_from_downloading_files&&!c.default.current())(0,p.getOwnerWithFallback)(this).lookup("service:dialog").alert(m.default.t("post.errors.attachment_download_requires_login"));else if((0,a.wantsNewWindow)(e)){const e=window.open(d,"_blank");e.opener=null,e.focus()}else l.default.redirectTo(d);return!1}const _=r.closest("article:not(.onebox-body), .excerpt, #revisions"),y=_.dataset.postId,w=document.querySelector("#topic")?.dataset?.topicId||_.dataset.topicId,v=r.dataset.userId||_.dataset.userId,k=v&&parseInt(v,10)===c.default.currentProp("id");if(i&&!k){const e=r.querySelector("span.badge");if(e){const t=e.innerHTML,n=`${(new Date).toLocaleDateString()}-${y}-${d}`;/^\d+$/.test(t)&&!sessionStorage.getItem(n)&&(sessionStorage.setItem(n,!0),e.innerHTML=parseInt(t,10)+1)}}let x=s.Promise.resolve();if(i)if(!(0,u.isTesting)()&&navigator.sendBeacon){const e=new FormData;e.append("url",d),e.append("post_id",y),e.append("topic_id",w),navigator.sendBeacon((0,h.default)("/clicks/track"),e)}else x=(0,o.ajax)("/clicks/track",{type:"POST",data:{url:d,post_id:y,topic_id:w}});return(0,a.wantsNewWindow)(e)?!n||x:(f(d)?b(e,r):x.finally((()=>{l.default.isInternal(d)&&(0,h.samePrefix)(d)?l.default.routeTo(d):l.default.redirectAbsolute(d)})),!!n&&x)}}},33933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i=n(54001),s=n(78582),o=n(51372),a=n(65442),l=n(93594),c=n(62617),u=n(37080),d=n(3961),p=n(12933),h=n(57555),m=n(82099);let g=(r=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={},e=Object.assign({showFullscreen:!0,showCopy:!0},e),this.showFullscreen=e.showFullscreen,this.showCopy=e.showCopy}attachToPost(e,t){let n=this._getCodeBlocks(t);n.length&&e&&(this._createButtons(n),this._storeClickHandler(e.id,t),this._addClickEvent(t))}attachToGeneric(e){let t=this._getCodeBlocks(e);if(!t.length)return;this._createButtons(t);const n=(0,s.guidFor)(e);this._storeClickHandler(n,e),this._addClickEvent(e)}cleanup(){Object.values(this._codeblockButtonClickHandlers||{}).forEach((e=>e.removeEventListener("click",this._handleClick))),Object.values(this._fadeCopyCodeblocksRunners||{}).forEach((e=>(0,o.cancel)(e))),this._codeblockButtonClickHandlers={},this._fadeCopyCodeblocksRunners={}}_storeClickHandler(e,t){this._codeblockButtonClickHandlers[e]&&(this._codeblockButtonClickHandlers[e].removeEventListener("click",this._handleClick),delete this._codeblockButtonClickHandlers[e]),this._codeblockButtonClickHandlers[e]=t}_getCodeBlocks(e){return e.querySelectorAll(":scope > pre > code, :scope :not(article):not(blockquote) > pre > code")}_createButtons(e){e.forEach((e=>{const t=document.createElement("div");if(t.classList.add("codeblock-button-wrapper"),e.before(t),this.showCopy){const n=document.createElement("button");n.classList.add("btn","nohighlight","copy-cmd"),n.ariaLabel=m.default.t("copy_codeblock.copy"),n.innerHTML=(0,d.iconHTML)("copy"),t.appendChild(n),t.style.right=e.offsetWidth-e.clientWidth+"px"}if(this.showFullscreen&&!l.default.isMobileDevice){const e=document.createElement("button");e.classList.add("btn","nohighlight","fullscreen-cmd"),e.ariaLabel=m.default.t("copy_codeblock.fullscreen"),e.innerHTML=(0,d.iconHTML)("discourse-expand"),t.appendChild(e)}e.parentElement.classList.add("codeblock-buttons")}))}_addClickEvent(e){e.addEventListener("click",this._handleClick,!1)}_handleClick(e){if(!e.target.classList.contains("copy-cmd")&&!e.target.classList.contains("fullscreen-cmd"))return;const t=e.target.classList.contains("fullscreen-cmd")?"fullscreen":"copy",n=e.target,r=n.parentElement.parentElement.querySelector("code");if(r){const e=r.innerText.replace(/[\f\v\u00a0\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/g," ").trim();if("copy"===t){const t=(0,c.clipboardCopy)(e);t?.then?t.then((()=>{this._copyComplete(n)})):t&&this._copyComplete(n)}else"fullscreen"===t&&(0,u.getOwnerWithFallback)(this).lookup("service:modal").show(a.default,{model:{code:e,codeClasses:r.className}})}}_copyComplete(e){e.classList.add("action-complete");const t=e.innerHTML;e.innerHTML=m.default.t("copy_codeblock.copied");const n=(0,s.guidFor)(e);this._fadeCopyCodeblocksRunners[n]&&((0,o.cancel)(this._fadeCopyCodeblocksRunners[n]),delete this._fadeCopyCodeblocksRunners[n]),this._fadeCopyCodeblocksRunners[n]=(0,p.default)((()=>{e.classList.remove("action-complete"),e.innerHTML=t,delete this._fadeCopyCodeblocksRunners[n]}),3e3)}},(0,i.Z)(r.prototype,"_handleClick",[h.bind],Object.getOwnPropertyDescriptor(r.prototype,"_handleClick"),r.prototype),r)},28507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{extendColorSchemeCookies:()=>m,listColorSchemes:()=>l,loadColorSchemeStylesheet:()=>c,updateColorSchemeCookie:()=>h});var r=n(3055),i=n(59469),s=n(31311),o=n(12933),a=n(82099);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.get("user_color_schemes");if(!n||!Array.isArray(n))return null;let r=[];if(t.darkOnly||(n=n.sort(((e,t)=>Number(e.is_dark)-Number(t.is_dark)))),n.forEach((e=>{(t.darkOnly&&e.is_dark||!t.darkOnly)&&r.push({name:e.name,id:e.id})})),t.darkOnly){const t=e.get("default_dark_color_scheme");t&&(n.findBy("id",t.id)||r.unshift({id:t.id,name:`${t.name} ${a.default.t("user.color_schemes.default_dark_scheme")}`})),r.unshift({id:-1,name:a.default.t("user.color_schemes.disable_dark_scheme")})}return 0===r.length?null:r}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=t?`/${t}`:"";return(0,r.ajax)(`/color-scheme-stylesheet/${e}${i}.json`).then((e=>{if(e&&e.new_href){const t=n?"cs-preview-dark":"cs-preview-light",r=document.querySelector(`link#${t}`);if(r)r.href=e.new_href;else{let r=document.createElement("link");r.href=e.new_href,r.media=n?"(prefers-color-scheme: dark)":"(prefers-color-scheme: light)",r.rel="stylesheet",r.id=t,document.body.appendChild(r)}n||(0,o.default)((()=>{const e=getComputedStyle(document.body).getPropertyValue("--scheme-type");s.default.currentProp("defaultColorSchemeIsDark","dark"===e.trim())}),500)}}))}const u="color_scheme_id",d="dark_scheme_id",p=365;function h(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dark?d:u;e?(0,i.default)(t,e,{path:"/",expires:p}):(0,i.removeCookie)(t,{path:"/"})}function m(){for(const e of[u,d]){const t=(0,i.default)(e);t&&(0,i.default)(e,t,{path:"/",expires:p})}}},271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.container=e,this.options={columns:3,minCount:2,...t},this.items=this._prepareItems(),this.items.length>=this.options.minCount?this.render():e.dataset.disabled=!0}count(){return 4===this.items.length||2===this.items.length?2:this.options.columns}render(){if(this.container.dataset.columns)return;this.container.dataset.columns=this.count();const e=this._distributeEvenly();for(;this.container.firstChild;)this.container.removeChild(this.container.firstChild);return this.container.append(...e),this}_prepareColumns(e){const t=[];return[...Array(e)].forEach((()=>{const e=document.createElement("div");e.classList.add("d-image-grid-column"),t.push(e)})),t}_prepareItems(){let e=[];return Array.from(this.container.children).forEach((t=>{"P"===t.nodeName&&t.children.length>0?Array.from(t.children).forEach((t=>{e.push(this._wrapDirectImage(t))})):e.push(this._wrapDirectImage(t))})),e.filter((e=>!["BR","P"].includes(e.nodeName)))}_wrapDirectImage(e){if("IMG"!==e.nodeName)return e;const t=document.createElement("span");return t.classList.add("image-wrapper"),t.appendChild(e.cloneNode()),t}_distributeEvenly(){const e=this.count(),t=this._prepareColumns(e),n=[];for(let t=0;t<e;t++)n[t]=0;return this.items.forEach((r=>{let i=0;for(let t=1;t<e;++t)n[t]<n[i]&&(i=t);const s=r.querySelector("img")||r,o="IMG"===s.nodeName?s.height/s.width:1;n[i]+=o,t[i].append(r)})),t}}},88743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPopupMenuOption:()=>s,clearPopupMenuOptions:()=>i,customPopupMenuOptions:()=>r});const r=[];function i(){r.length=0}function s(e){r.push(e)}},63319:(e,t,n)=>{"use strict";n.r(t),n.d(t,{endWith:()=>f,fmt:()=>m,htmlSafe:()=>h,i18n:()=>p,propertyEqual:()=>l,propertyGreaterThan:()=>u,propertyLessThan:()=>d,propertyNotEqual:()=>c,setting:()=>b,url:()=>g});var r=n(48163),i=n(24434),s=n(47582),o=n(82099);function a(e,t){let n=t;if(!Array.isArray(n)||arguments.length>2){n=new Array(arguments.length-1);for(let e=1,t=arguments.length;e<t;e++)n[e-1]=arguments[e]}let r=0;return e.replace(/%@([0-9]+)?/g,(function(e,t){return t=t?parseInt(t,10)-1:r++,"string"==typeof(e=n[t])?e:null===e?"(null)":void 0===e?"":""+e}))}function l(e,t){return(0,r.computed)(e,t,(function(){return this.get(e)===this.get(t)}))}function c(e,t){return(0,r.computed)(e,t,(function(){return this.get(e)!==this.get(t)}))}function u(e,t){return(0,r.computed)(e,t,(function(){return this.get(e)>this.get(t)}))}function d(e,t){return(0,r.computed)(e,t,(function(){return this.get(e)<this.get(t)}))}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t.pop();return(0,r.computed)(...t,(function(){return o.default.t(a(i,...t.map((e=>this.get(e)))))}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.computed)(...t,{get(){const e=t.pop();return(0,i.htmlSafe)(this.get(e))}})}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t.pop();return(0,r.computed)(...t,(function(){return a(i,...t.map((e=>this.get(e))))}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const i=t.pop();return(0,r.computed)(...t,(function(){return(0,s.default)(a(i,...t.map((e=>this.get(e)))))}))}function f(){const e=Array.prototype.slice.call(arguments,0),t=e.pop();return(0,r.computed)(...e,(function(){return e.map((e=>this.get(e))).every((e=>{const n=e.length-t.length,r=e.lastIndexOf(t);return-1!==r&&r===n}))}))}function b(e){return(0,r.computed)((function(){return this.siteSettings[e]}))}},24307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AUTO_GROUPS:()=>a,MAX_NOTIFICATIONS_LIMIT_PARAMS:()=>l,SEARCH_PHRASE_REGEXP:()=>i,SEARCH_PRIORITIES:()=>r,SIDEBAR_SECTION:()=>o,SIDEBAR_URL:()=>s});const r={ignore:1,very_low:2,low:3,normal:0,high:4,very_high:5},i='"([^"]+)"',s={max_icon_length:40,max_name_length:80,max_value_length:1e3},o={max_title_length:30},a={everyone:{id:0,automatic:!0,name:"everyone",display_name:"everyone"},admins:{id:1,automatic:!0,name:"admins",display_name:"admins"},moderators:{id:2,automatic:!0,name:"moderators",display_name:"moderators"},staff:{id:3,automatic:!0,name:"staff",display_name:"staff"},trust_level_0:{id:10,automatic:!0,name:"trust_level_0",display_name:"trust_level_0"},trust_level_1:{id:11,automatic:!0,name:"trust_level_1",display_name:"trust_level_1"},trust_level_2:{id:12,automatic:!0,name:"trust_level_2",display_name:"trust_level_2"},trust_level_3:{id:13,automatic:!0,name:"trust_level_3",display_name:"trust_level_3"},trust_level_4:{id:14,automatic:!0,name:"trust_level_4",display_name:"trust_level_4"}},l=60},59469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,removeCookie:()=>a});var r=n(54736);const i=/\+/g;function s(e){e.startsWith('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return decodeURIComponent(e.replace(i," "))}catch(e){}}function o(e,t,n){if(void 0!==t){if("number"==typeof(n={...n||{}}).expires){let e=n.expires,t=n.expires=new Date;t.setTime(+t+864e5*e)}return document.cookie=[encodeURIComponent(e),"=",encodeURIComponent(String(t)),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}let r=e?void 0:{},i=document.cookie?document.cookie.split("; "):[];for(let t=0,n=i.length;t<n;t++){let n=i[t].split("="),o=decodeURIComponent(n.shift()),a=n.join("=");if(e&&e===o){r=s(a);break}e||void 0===(a=s(a))||(r[o]=a)}return r}function a(e,t){return void 0!==o(e)&&(o(e,"",{...t||{},expires:-1}),!o(e))}if(window&&window.$){const e={since:"2.6.0",dropFrom:"2.7.0",id:"discourse.jquery-cookie"};window.$.cookie=function(){return(0,r.default)("$.cookie is being removed from Discourse. Please import our cookie module and use that instead.",e),o(...arguments)},window.$.removeCookie=function(){return(0,r.default)("$.removeCookie is being removed from Discourse. Please import our cookie module and use that instead.",e),a(...arguments)}}const l=o},90274:(e,t,n)=>{"use strict";function r(e,t){let n=!1;try{document.queryCommandSupported("copy")&&(n=!0)}catch(e){}if(!n)return;let r=document.createRange();r.selectNode(t);const i=window.getSelection();i.removeAllRanges(),i.addRange(r);try{if(document.execCommand("copy"))return!0}catch(e){}return!1}n.r(t),n.d(t,{default:()=>r})},95633:(e,t,n)=>{"use strict";n.r(t),n.d(t,{hidePopover:()=>s,showPopover:()=>i});var r=n(54736);function i(){(0,r.default)("`showPopover` is deprecated. Use tooltip service instead.",{id:"show-popover"})}function s(){(0,r.default)("`hidePopover` is deprecated. Use tooltip service instead.",{id:"hide-popover"})}},42420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(51372);function i(e,t){let n;const i=()=>{e.apply(this,n)};return function(){n=arguments,(0,r.debounce)(null,i,t)}}},78291:(e,t,n)=>{"use strict";function r(e,t,n){return void 0===n||0==+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!=0?NaN:(t=t.toString().split("e"),+((t=(t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]+n:n))))}n.r(t),n.d(t,{default:()=>r})},44750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{alertChannel:()=>P,clearDesktopNotificationHandlers:()=>k,confirmNotification:()=>T,context:()=>_,disable:()=>E,init:()=>x,onNotification:()=>C,registerDesktopNotificationHandler:()=>v,resetIdle:()=>S,unsubscribe:()=>O});var r=n(10425),i=n(59295),s=n(20229),o=n(62617),a=n(19990),l=n(7223),c=n(12933),u=n(82099);let d=!1,p=!1,h=null,m="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",g=-1;const f="focus-tracker",b=1e4,_="discourse_desktop_notifications_",y=new i.default(_);let w=[];function v(e){w.push(e)}function k(){w=[]}function x(e,t){if(p=!1,m=e.clientId,l.default.current()){try{y.getItem(f)}catch(e){return void console.info("Discourse desktop notifications are disabled - localStorage denied.")}if("Notification"in window){try{if("granted"===Notification.permission)h=!0;else if("denied"===Notification.permission)return void(h=!1)}catch(e){console.warn("Unexpected error, Notification is defined on window but not a responding correctly "+e)}p=!0;try{!function(e){window.addEventListener("storage",(function(e){if(e.key!==`${_}${f}`)return!0;d=!1})),window.addEventListener("focus",(function(){d||(d=!0,y.setItem(f,m))})),document&&void 0!==document.hidden&&document.hidden?d=!1:(d=!0,y.setItem(f,m)),document&&document.addEventListener("scroll",S),e.on("page:changed",S)}(t)}catch(e){console.error(e)}}else console.info("Discourse desktop notifications are disabled - not supported by browser")}}function T(e){const t=new Notification(u.default.t("notifications.popup.confirm_title",{site_title:e.title}),{body:u.default.t("notifications.popup.confirm_body"),icon:e.site_logo_small_url||e.site_logo_url,tag:"confirm-subscription"}),n=()=>t.close();t.addEventListener("click",n),(0,c.default)((()=>{t.close(),t.removeEventListener("click",n)}),1e4)}function S(){g=Date.now()}async function C(e,t,n){if(!p)return;if(!d)return;if(!(g+b<Date.now()))return;if(n.isInDoNotDisturb())return;if(y.getItem("notifications-disabled"))return;const i=e.translated_title||u.default.t((l=e.notification_type,"notifications.popup."+a.default.current().get("notificationLookup")[l]),{site_title:t.title,topic:e.topic_title,username:(0,o.formatUsername)(e.username)});var l;const c=e.excerpt,m=t.site_logo_small_url||t.site_logo_url,f="discourse-notification-"+t.title+"-"+e.topic_id;await(!0===h?r.Promise.resolve():!1===h?r.Promise.reject():new r.Promise((function(e,t){Notification.requestPermission((function(n){"granted"===n?e():t()}))})));const _=new Notification(i,{body:c,icon:m,tag:f});_.onclick=()=>{s.default.routeTo(e.post_url),_.close()},w.forEach((r=>r(e,t,n)))}function P(e){return`/notification-alert/${e.get("id")}`}function O(e,t){e.unsubscribe(P(t))}function E(){y.setItem("notifications-disabled","disabled")}},99046:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{constructor(e){this.name=e,this._keys={}}keyDirty(e,t){(t=t||{}).dirty=!0,this._keys[e]=t}forceAll(){this.keyDirty("*")}allDirty(){return!!this._keys["*"]}optionsFor(e){return this._keys[e]||{dirty:!1}}renderedKey(e){"*"===e?this._keys={}:delete this._keys[e]}}},71605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(49246);class i{static isEternal(e){return moment.utc(e).isSame(i.forever,"day")}}(0,r.Z)(i,"forever","3000-01-01T00:00:00.000Z")},55021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{downloadCalendar:()=>a,downloadGoogle:()=>c,downloadIcs:()=>l,formatDates:()=>u,generateIcsData:()=>d});var r=n(63875),i=n(7223),s=n(37080),o=n(47582);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=i.default.current(),a=u(t);switch(e=e.trim(),o.user_option.default_calendar){case"none_selected":!function(e,t,n){(0,s.getOwnerWithFallback)(this).lookup("service:modal").show(r.default,{model:{calendar:{title:e,dates:t,recurrenceRule:n}}})}(e,a,n);break;case"ics":l(e,a,n);break;case"google":c(e,a,n)}}function l(e,t,n){const r=new File([d(e,t,n)],{type:"text/plain"}),i=document.createElement("a");document.body.appendChild(i),i.style="display: none",i.href=window.URL.createObjectURL(r),i.download=`${e.toLowerCase().replace(/[^\w]/g,"-")}.ics`,i.click(),setTimeout((()=>window.URL.revokeObjectURL(r)),2e4)}function c(e,t,n){t.forEach((t=>{const r=new URL("https://www.google.com/calendar/event");r.searchParams.append("action","TEMPLATE"),r.searchParams.append("text",e),r.searchParams.append("dates",`${p(t.startsAt)}/${p(t.endsAt)}`),n&&r.searchParams.append("recur",`RRULE:${n}`),window.open((0,o.default)(r.href).trim(),"_blank","noopener","noreferrer")}))}function u(e){return e.map((e=>({startsAt:e.startsAt,endsAt:e.endsAt?e.endsAt:moment.utc(e.startsAt).add(1,"hours").format()})))}function d(e,t,n){let r="BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Discourse//EN\n";return t.forEach((t=>{const i=moment(t.startsAt),s=moment(t.endsAt);r=r.concat(`BEGIN:VEVENT\nUID:${i.utc().format("x")}_${s.format("x")}\nDTSTAMP:${moment().utc().format("YMMDDTHHmmss")}Z\nDTSTART:${i.utc().format("YMMDDTHHmmss")}Z\nDTEND:${s.utc().format("YMMDDTHHmmss")}Z\n`+(n?`RRULE:${n}\n`:"")+`SUMMARY:${e}\nEND:VEVENT\n`)})),r=r.concat("END:VCALENDAR"),r}function p(e){return moment(e).toISOString().replace(/-|:|\.\d\d\d/g,"")}},85894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const r={imap:{imap_server:"imap.gmail.com",imap_port:"993",imap_ssl:!0},smtp:{smtp_server:"smtp.gmail.com",smtp_port:"587",smtp_ssl:!0}};function i(e,t){if(e=e.toLowerCase(),t=t.toLowerCase(),"gmail"===e)return r[t]}},78007:(e,t,n)=>{"use strict";n.r(t),n.d(t,{actionModifier:()=>r,isSimpleClick:()=>i});const r=(0,n(42465).modifier)(((e,t,n)=>{let[r,a,...l]=t,{on:c,bubbles:u,preventDefault:d,allowedKeys:p}=n;const h=e=>{let t;if("string"==typeof a?t=r.actions?.[a]??r[a]:"function"==typeof a&&(t=a),void 0===t)throw new Error("Unexpected callback for `action` modifier. Please provide either a function or the name of a method on the current context.");return!function(e,t){if(null==t){if(o.test(e.type))return i(e);t=""}if(t.indexOf("any")>=0)return!0;for(let n=0;n<s.length;n++)if(e[s[n]+"Key"]&&-1===t.indexOf(s[n]))return!1;return!0}(e,p)||(!1!==d&&e.preventDefault(),!1!==u||e.stopPropagation(),l.length>0?t.call(r,...l):t.call(r,e))},m=c??"click";return e.addEventListener(m,h),()=>{e.removeEventListener(m,h)}}),{eager:!1});function i(e){if(!(e instanceof MouseEvent))return!1;let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1;return!t&&!n}const s=["alt","shift","meta","ctrl"],o=/^click|mouse|touch/},95106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalizeEmberEventHandling:()=>d});var r=n(31691),i=n.n(r),s=n(48163),o=n.n(s),a=n(92375),l=n.n(a),c=n(78007),u=n(52313);function d(e){l().EventDispatcher.reopen({events:{}}),function(e){const t={...p};if(e.customEvents)for(const[n,r]of Object.entries(e.customEvents))t[n]=r;const n={};for(const[e,r]of Object.entries(t))n[r]=e;const r=u.EMBER_MAJOR_VERSION<4?"trigger":"_trigger";o().reopen.call(i(),{[r](e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e!==m?e.toLowerCase()in t?void 0:this._super.call(this,e,...r):this.element?this._super.call(this,...r):void 0},didInsertElement(){this._super(...arguments),function(e,t){let n;const{element:r}=e;for(const i of Object.keys(t))if(e.has(i)){const s=t[i];void 0===n&&(n=h.get(e),void 0===n&&(n=[],h.set(e,n)));const o=t=>{const n=e.trigger.call(e,m,i,t);return!1===n&&(t.preventDefault(),t.stopPropagation()),n};r.addEventListener(s,o),n.push({event:s,listener:o})}}(this,n)},willDestroyElement(){!function(e){const t=h.get(e);if(t?.length>0){const{element:n}=e;if(n)for(const{event:e,listener:r}of t)n.removeEventListener(e,r);h.delete(e)}}(this),this._super(...arguments)}})}(e),e.instanceInitializer({name:"rewire-action-modifier",initialize:e=>function(e){const t=e.lookup("renderer:-dom"),n=t._runtimeResolver.lookupModifier;t._runtimeResolver.lookupModifier=(e,t)=>"action"===e?c.actionModifier:n(e,t)}(e)})}const p={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",focusin:"focusIn",focusout:"focusOut",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"},h=new WeakMap,m=Symbol("INTERNAL")},52313:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EMBER_MAJOR_VERSION:()=>i});const r=n(45257).VERSION.split("."),i=parseInt(r[0],10)},34811:(e,t,n)=>{"use strict";n.r(t),n.d(t,{exportEntity:()=>c,exportUserArchive:()=>l});var r=n(3055),i=n(38864),s=n(37080),o=n(82099);function a(e,t,n){return(0,r.ajax)("/export_csv/export_entity.json",{type:"POST",data:{entity:t,args:n}})}function l(){const e=(0,s.getOwnerWithFallback)(this).lookup("service:dialog");return a(0,"user_archive").then((function(){e.alert(o.default.t("user.download_archive.success"))})).catch(i.popupAjaxError)}function c(e,t){return a(0,e,t)}},84098:(e,t,n)=>{"use strict";n.r(t),n.d(t,{outputExportResult:()=>s});var r=n(37080),i=n(82099);function s(e){const t=(0,r.getOwnerWithFallback)(this).lookup("service:dialog");e.success?t.alert(i.default.t("admin.export_csv.success")):t.alert(i.default.t("admin.export_csv.failed"))}},51930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{configureEyeline:()=>p,default:()=>h});var r=n(48163),i=n.n(r),s=n(40375),o=n.n(s),a=n(71466),l=n.n(a),c=n(34405);let u,d;function p(e){e?(u=e.skipUpdate,d=e.rootElement):(u=(0,c.isTesting)(),d=null)}p();const h=i().extend(o(),{update(){if(u)return;const e=d?l()(d).scrollTop():l()(window).scrollTop(),t=d?l()(d).height():l()(window).height(),n=e+t,r=l()(this.selector),i=d?r.last().position():r.last().offset(),s=i&&i.top<=n&&i.top>=e;return r.each(((t,i)=>{const o=l()(i),a=d?o.position().top:o.offset().top,c=a+o.height();let u=!1;return!o.is(":visible")||(a<=n&&a>=e&&(u=!0),a<=e&&c>=n&&(u=!0),s&&c>=e&&(u=!0),!u||!!s&&(t===r.length-1?this.trigger("sawBottom",{detail:o}):void 0))}))}})},79593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateFilterMode:()=>i,filterTypeForMode:()=>s});var r=n(56746);function i(e){let{category:t,filterType:n,noSubcategories:i}=e;return t?`c/${r.default.slugFor(t)}${i?"/none":""}/l/${n}`:n}function s(e){return e?.split("/").pop()}},55737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(38864);class i{targetsTopic(){return!1}editable(){return!0}create(e,t){const n=this.postActionFor(e);e.appEvents.trigger(this.flagCreatedEvent,e.args.model.flagModel,n,t),e.args.closeModal(),n.act(e.args.model.flagModel,t).then((()=>{e.appEvents.trigger("post-stream:refresh",{id:e.args.model.flagModel.id})})).catch((e=>(0,r.popupAjaxError)(e)))}}},44359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(55737);class i extends r.default{title(){return"flagging.title"}customSubmitLabel(){return"flagging.notify_action"}submitLabel(){return"flagging.action"}flagCreatedEvent(){return"post:flag-created"}flagsAvailable(e){let t=e.args.model.flagModel.flagsAvailable;const n=t.indexOf(t.filterBy("name_key","notify_user")[0]);if(-1!==n){const e=t[n];t.splice(n,1),t.splice(0,0,e)}return t}postActionFor(e){return e.args.model.flagModel.actions_summary.findBy("id",e.selected.id)}}},19899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n.n(r),s=n(55737),o=n(99779);class a extends s.default{title(){return"flagging_topic.title"}targetsTopic(){return!0}customSubmitLabel(){return"flagging_topic.notify_action"}submitLabel(){return"flagging_topic.action"}flagCreatedEvent(){return"topic:flag-created"}flagsAvailable(e){let t=i().create();return e.args.model.flagModel.actions_summary.forEach((n=>{n.flagTopic=e.args.model.flagModel,n.actionType=e.site.topicFlagTypeById(n.id),t.set(n.actionType.name_key,o.default.create(n))})),e.topicActionByName=t,e.site.topic_flag_types.filter((t=>e.args.model.flagModel.actions_summary.some((e=>e.id===t.id&&e.can_act))))}postActionFor(e){return e.topicActionByName[e.selected.name_key]}}},82829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,getFormTemplateObject:()=>i});var r=n(82099);function i(e){const t=new FormData(e),n={};return t.forEach(((e,t)=>{n[t]=e})),n}function s(e,t){const n=t.reduce(((e,t)=>(e[t.id]=t.attributes.label,e)),{}),i=new FormData(e);if(function(e){Array.from(e.elements).forEach((e=>{e.setAttribute("aria-invalid",!1);const t=document.createElement("div");t.classList.add("form-template-field__error","popup-tip");const n=e.id+"-error";e.addEventListener("invalid",(()=>{e.setAttribute("aria-invalid",!0),t.classList.add("bad"),t.setAttribute("id",n),e.setAttribute("aria-describedby",n),e.nextElementSibling||e.insertAdjacentElement("afterend",t),function(e,t){e.validity.valueMissing?o(t,e,"form_templates.errors.valueMissing",["select-one","select-multiple","checkbox"]):e.validity.typeMismatch?o(t,e,"form_templates.errors.typeMismatch",["color","date","email","number","password","tel","text","url"]):e.validity.tooShort?t.textContent=r.default.t("form_templates.errors.tooShort",{count:e.minLength}):e.validity.tooLong?t.textContent=r.default.t("form_templates.errors.tooLong",{count:e.maxLength}):e.validity.rangeOverflow?t.textContent=r.default.t("form_templates.errors.rangeOverflow",{count:e.max}):e.validity.rangeUnderflow?t.textContent=r.default.t("form_templates.errors.rangeUnderflow",{count:e.min}):e.validity.patternMismatch?t.textContent=r.default.t("form_templates.errors.patternMismatch"):e.validity.badInput&&(t.textContent=r.default.t("form_templates.errors.badInput"))}(e,t)})),e.addEventListener("input",(()=>{e.checkValidity()&&(e.setAttribute("aria-invalid",!1),t.classList.remove("bad"),t.textContent="")})),e.addEventListener("blur",(()=>{e.checkValidity()}))}))}(e),!e.checkValidity())return!1;const s=[];for(let[e,t]of i.entries())s.push({[e]:t});const a=[],l=new Set;for(const e of s){const t=Object.keys(e)[0];l.has(t)?a[a.length-1][t]+="\n"+e[t]:(a.push(e),l.add(t))}return a.map((e=>{const t=Object.keys(e)[0],r=e[t];if(r)return`### ${n[t]}\n${r}`})).join("\n\n")}function o(e,t,n,i){i.includes(t.type)?i.forEach((i=>{t.type===i&&(e.textContent=r.default.t(`${n}.${i}`))})):e.textContent=r.default.t(`${n}.default`)}},70352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{autoUpdatingRelativeAge:()=>f,duration:()=>y,durationTiny:()=>w,ensureJSON:()=>S,longDate:()=>h,longDateNoYear:()=>m,number:()=>T,plainJSON:()=>C,prettyJSON:()=>P,relativeAge:()=>x,relativeAgeMediumSpan:()=>v,shortDate:()=>l,shortDateNoYear:()=>c,smartShortDate:()=>u,tinyDateYear:()=>d,toTitleCase:()=>p,until:()=>b,updateRelativeAge:()=>g});var r=n(71466),i=n.n(r),s=n(54736),o=n(61369),a=n(82099);function l(e){return moment(e).format(a.default.t("dates.medium.date_year"))}function c(e){return moment(e).format(a.default.t("dates.tiny.date_month"))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return e.getFullYear()===(new Date).getFullYear()?c(e):t(e)}function d(e){return moment(e).format(a.default.t("dates.tiny.date_year"))}function p(e){return e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}))}function h(e){if(e)return moment(e).format(a.default.t("dates.long_with_year"))}function m(e){if(e)return(new Date).getFullYear()!==e.getFullYear()?moment(e).format(a.default.t("dates.long_date_with_year")):moment(e).format(a.default.t("dates.long_date_without_year"))}function g(e){e instanceof i()&&(e=e.toArray(),(0,s.default)("updateRelativeAge now expects a DOM NodeList",{since:"2.8.0.beta7",dropFrom:"2.9.0.beta1",id:"discourse.formatter.update-relative-age-node-list"})),NodeList.prototype.isPrototypeOf(e)||(e=(0,o.makeArray)(e)),e.forEach((e=>{e.innerHTML=x(new Date(parseInt(e.dataset.time,10)),{format:e.dataset.format,wrapInSpan:!1})}))}function f(e,t){if(!e)return"";if(+e==+new Date(0))return"";let n=(t=t||{}).format||"tiny",r="";"medium"===n&&(r=" date",t.leaveAgo&&(n="medium-with-ago"),t.wrapInSpan=!1);const i=x(e,t);"tiny"===n&&i.match(/'[\d]{2}$/)&&(r+=" with-year"),t.title&&(r+="' title='"+h(e));let s="";return t.prefix&&(s=t.prefix+" "),"<span class='relative-date"+r+"' data-time='"+e.getTime()+"' data-format='"+n+"'>"+s+i+"</span>"}function b(e,t,n){const r=moment.tz(e,t);let i;if(moment.tz(t).isSame(r,"day")){const e=moment.localeData(n);i=r.format(e.longDateFormat("LT"))}else i=r.format(a.default.t("dates.long_no_year_no_time"));return`${a.default.t("until")} ${i}`}function _(e){return a.default.t("dates.wrap_ago",{date:e})}function y(e,t){if("number"!=typeof e)return"&mdash;";const n=Math.round(e/60),r=n<1?1:n,i=function(e,n){const r=t&&t.format||"tiny",i=a.default.t("dates."+r+"."+e,n);return t&&t.addAgo?_(i):i};let s;switch(!0){case e<=59:s=i("less_than_x_minutes",{count:1});break;case r>=0&&r<=44:s=i("x_minutes",{count:r});break;case r>=45&&r<=89:s=i("about_x_hours",{count:1});break;case r>=90&&r<=1409:s=i("about_x_hours",{count:Math.round(r/60)});break;case r>=1410&&r<=2519:s=i("x_days",{count:1});break;case r>=2520&&r<=129599:s=i("x_days",{count:Math.round(r/1440)});break;case r>=129600&&r<=525599:s=i("x_months",{count:Math.round(r/43200)});break;default:const t=r/525600,n=t%1;s=n<.25?i("about_x_years",{count:Math.floor(t)}):n<.75?i("over_x_years",{count:Math.floor(t)}):i("almost_x_years",{count:Math.floor(t)+1})}return s}function w(e,t){return y(e,Object.assign({format:"tiny"},t))}function v(e,t){let n;const r=Math.round(e/60),i=function(e,n){return a.default.t("dates.medium"+(t?"_with_ago":"")+"."+e,n)};switch(!0){case r>=1&&r<=55:n=i("x_minutes",{count:r});break;case r>=56&&r<=89:n=i("x_hours",{count:1});break;case r>=90&&r<=1409:n=i("x_hours",{count:Math.round(r/60)});break;case r>=1410&&r<=2519:n=i("x_days",{count:1});break;case r>=2520&&r<=129599:n=i("x_days",{count:Math.round((r-720)/1440)});break;case r>=129600&&r<=525599:n=i("x_months",{count:Math.round(r/43200)});break;default:n=i("x_years",{count:Math.round(r/525600)})}return n||"&mdash;"}function k(e,t){const n=!1!==t.wrapInSpan,r=t.leaveAgo,i=Math.round((new Date-e)/1e3);if(!e)return"&mdash;";const s=h(e);let o="";var c;return i<60?o=a.default.t("now"):i>432e3?(o=u(e,l),t.wrapOn&&(c=o,o=a.default.t("dates.wrap_on",{date:c}))):o=v(i,r),n?"<span class='date' title='"+s+"'>"+o+"</span>":o}function x(e,t){const n=(t=t||{}).format||"tiny";return"tiny"===n?function(e,t){let n=Math.round((new Date-e)/1e3);n<0&&(n=Math.round((e-new Date)/1e3));const r=Math.round(n/60),i=r<1?1:r;let s;const l=function(e,n){const r=a.default.t("dates.tiny."+e,n);return t&&t.addAgo?_(r):r};let d=(0,o.helperContext)().siteSettings;switch(!0){case i>=0&&i<=44:s=l("x_minutes",{count:i});break;case i>=45&&i<=89:s=l("about_x_hours",{count:1});break;case i>=90&&i<=1409:s=l("about_x_hours",{count:Math.round(i/60)});break;case 0===d.relative_date_duration&&i<=525599:s=c(e);break;case i>=1410&&i<=2519:s=l("x_days",{count:1});break;case i>=2520&&i<=1440*(d.relative_date_duration||14):s=l("x_days",{count:Math.round(i/1440)});break;default:s=(t.defaultFormat||u)(e)}return s}(e,t):"medium"===n?k(e,t):"medium-with-ago"===n?k(e,Object.assign(t,{format:"medium",leaveAgo:!0})):"medium-with-ago-and-on"===n?k(e,Object.assign(t,{format:"medium",leaveAgo:!0,wrapOn:!0})):"UNKNOWN FORMAT"}function T(e){let t;return e=Math.round(parseFloat(e)),isNaN(e)&&(e=0),e>999999?(t=a.default.toNumber(e/1e6,{precision:1}),a.default.t("number.short.millions",{number:t})):e>99999?(t=a.default.toNumber(Math.floor(e/1e3),{precision:0}),a.default.t("number.short.thousands",{number:t})):e>999?(t=a.default.toNumber(e/1e3,{precision:1}),a.default.t("number.short.thousands",{number:t})):e.toString()}function S(e){return"string"==typeof e?JSON.parse(e):e}function C(e){let t=S(e),n="";return Object.keys(t).forEach((e=>{n+=`${e}: ${t[e]}\n`})),n}function P(e){return JSON.stringify(S(e),null,2)}},29775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{grantableBadges:()=>i,isBadgeGrantable:()=>s});var r=n(3961);function i(e,t){const n=t.reduce(((e,t)=>(e[t.get("badge_id")]=!0,e)),{});return e.filter((e=>e.get("enabled")&&e.get("manually_grantable")&&(!n[e.get("id")]||e.get("multiple_grant")))).map((e=>(e.get("icon")&&e.set("icon",(0,r.convertIconClass)(e.icon)),e))).sort(((e,t)=>e.get("name").localeCompare(t.get("name"))))}function s(e,t){return!(!t||!t.some((t=>t.get("id")===e)))}},508:(e,t,n)=>{"use strict";function r(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}n.r(t),n.d(t,{hashString:()=>r})},41087:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cleanUpHashtagTypeClasses:()=>k,decorateHashtags:()=>y,fetchUnseenHashtagsInContext:()=>f,generatePlaceholderHashtagHTML:()=>_,getHashtagTypeClasses:()=>w,hashtagTriggerRule:()=>T,linkSeenHashtagsInContext:()=>b,registerHashtagType:()=>v,setupHashtagAutocomplete:()=>x});var r=n(51372),i=n(24434),s=n(3055),o=n(13680),a=n(44743),l=n(90737),c=n(35193),u=n(62617),d=n(34405),p=n(56111),h=n(54736),m=n(12933),g=n(21896);function f(){return(0,h.default)("fetchUnseenHashtagsInContext is has been moved to the module 'discourse/lib/hashtag-decorator'",{id:"discourse.hashtag.fetchUnseenHashtagsInContext",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,a.fetchUnseenHashtagsInContext)(...arguments)}function b(){return(0,h.default)("linkSeenHashtagsInContext is has been moved to the module 'discourse/lib/hashtag-decorator'",{id:"discourse.hashtag.linkSeenHashtagsInContext",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,a.linkSeenHashtagsInContext)(...arguments)}function _(){return(0,h.default)("generatePlaceholderHashtagHTML is has been moved to the module 'discourse/lib/hashtag-decorator'",{id:"discourse.hashtag.generatePlaceholderHashtagHTML",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,a.generatePlaceholderHashtagHTML)(...arguments)}function y(){return(0,h.default)("decorateHashtags is has been moved to the module 'discourse/lib/hashtag-decorator'",{id:"discourse.hashtag.decorateHashtags",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,a.decorateHashtags)(...arguments)}function w(){return(0,h.default)("getHashtagTypeClasses is has been moved to the module 'discourse/lib/hashtag-type-registry'",{id:"discourse.hashtag.getHashtagTypeClasses",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,l.getHashtagTypeClasses)(...arguments)}function v(){return(0,h.default)("registerHashtagType is has been moved to the module 'discourse/lib/hashtag-type-registry'",{id:"discourse.hashtag.registerHashtagType",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,l.registerHashtagType)(...arguments)}function k(){return(0,h.default)("cleanUpHashtagTypeClasses is has been moved to the module 'discourse/lib/hashtag-type-registry'",{id:"discourse.hashtag.cleanUpHashtagTypeClasses",since:"3.2.0.beta5-dev",dropFrom:"3.2.1"}),(0,l.cleanUpHashtagTypeClasses)(...arguments)}function x(e,t,n){!function(e,t,n,i){t.autocomplete({template:(0,g.findRawTemplate)("hashtag-autocomplete"),key:"#",afterComplete:i.afterComplete,treatAsTextarea:i.treatAsTextarea,scrollElementSelector:".hashtag-autocomplete__fadeout",autoSelectFirstSuggestion:!0,transformComplete:e=>e.ref,dataSource:t=>t.match(/\s/)?null:function(e,t,n){C&&(C.abort(),C=null),new Date-S>3e4&&(P={});const i=P[e];return i||new Promise((t=>{let i=(0,d.isTesting)()?null:(0,m.default)((()=>{t(o.CANCELLED_STATUS)}),5e3);((n,s,o)=>{(0,p.default)(this,O,n,s,(n=>{(0,r.cancel)(i),t(function(e,t){return P[e]=t,S=new Date,t}(e,n))}),d.INPUT_DELAY)})(e,n)}))}(t,0,e),triggerRule:(e,t)=>T(e)})}(e,t,0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})}function T(e){return!(0,u.inCodeBlock)(e.value,(0,u.caretPosition)(e))}let S,C,P={};function O(e,t,n){return C=(0,s.ajax)("/hashtags/search.json",{data:{term:e,order:t}}),C.then((e=>{e.results?.forEach((e=>{e.text=(0,i.htmlSafe)((0,c.emojiUnescape)((0,u.escapeExpression)(e.text)));const t=(0,l.getHashtagTypeClasses)()[e.type];e.icon=t.generateIconHTML({icon:e.icon,id:e.id})})),n(e.results||o.CANCELLED_STATUS)})).finally((()=>{C=null})),C}},44743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decorateHashtags:()=>p,fetchUnseenHashtagsInContext:()=>c,generatePlaceholderHashtagHTML:()=>d,linkSeenHashtagsInContext:()=>u});var r=n(3055),i=n(90737),s=n(35193),o=n(33057);const a=new Set;let l={};function c(e,t){return(0,r.ajax)("/hashtags",{data:{slugs:t,order:e}}).then((e=>{Object.keys(e).forEach((t=>{l[t]=l[t]||{},e[t].forEach((e=>{l[t][e.ref]=l[t][e.ref]||e}))})),t.forEach(a.add,a)}))}function u(e,t){const n=[...t?.querySelectorAll("span.hashtag-raw")||[]];if(0===n.length)return[];const r=[...n.map((e=>e.innerText.replace("#","")))];return n.forEach(((t,n)=>{!function(e,t,n){t.forEach((t=>{const r=l[t]?.[e];r&&d(t,n,r)}))}(r[n],e,t)})),r.map((e=>e.toLowerCase())).uniq().filter((e=>!a.has(e)))}function d(e,t,n){const r=document.createElement("a");r.classList.add("hashtag-cooked"),r.href=n.relative_url,r.dataset.type=e,r.dataset.id=n.id,r.dataset.slug=n.slug;const o=(new i.getHashtagTypeClasses)[e];r.innerHTML=`${o.generateIconHTML(n)}<span>${(0,s.emojiUnescape)(n.text)}</span>`,t.replaceWith(r)}function p(e,t){e.querySelectorAll(".hashtag-cooked").forEach((e=>{const n=e.querySelector(".hashtag-icon-placeholder"),r=e.dataset.type,s=(0,i.getHashtagTypeClasses)()[r];if(n&&s){const i=s.generateIconHTML({icon:t.hashtag_icons[r],id:e.dataset.id}).trim();n.replaceWith((0,o.default)(i)[0])}e.setAttribute("aria-label",`${e.innerText.trim()}`)}))}},90737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cleanUpHashtagTypeClasses:()=>s,getHashtagTypeClasses:()=>o,registerHashtagType:()=>i});let r={};function i(e,t){r[e]=t}function s(){r={}}function o(){return r}},93093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(72326);class i{constructor(e){(0,r.setOwner)(this,e)}get type(){throw"not implemented"}get preloadedData(){throw"not implemented"}generateColorCssClasses(){throw"not implemented"}generateIconHTML(){throw"not implemented"}}},24567:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(94664),o=n(54001),a=n(17579),l=n(93093);let c=(r=class extends l.default{constructor(){super(...arguments),(0,s.Z)(this,"site",i,this)}get type(){return"category"}get preloadedData(){return this.site.categories||[]}generateColorCssClasses(e){const t=[],n=[`var(--category-${e.id}-color) 50%`];return e.parentCategory?n.push(`var(--category-${e.parentCategory.id}-color) 50%`):n.push(`var(--category-${e.id}-color) 50%`),t.push(`.hashtag-color--category-${e.id} {\n  background: linear-gradient(-90deg, ${n.join(", ")});\n}`),t}generateIconHTML(e){const t=parseInt(e.id,10);return`<span class="hashtag-category-badge ${this.preloadedData.mapBy("id").includes(t)?`hashtag-color--${this.type}-${e.id}`:"hashtag-missing"}"></span>`}},i=(0,o.Z)(r.prototype,"site",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},53817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(3961),i=n(93093);class s extends i.default{get type(){return"tag"}get preloadedData(){return[]}generateColorCssClasses(){return[]}generateIconHTML(e){return(0,r.iconHTML)(e.icon,{class:`hashtag-color--${this.type}-${e.id}`})}}},98066:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,unhighlightHTML:()=>o});var r=n(61369);function i(e,t,n,r){if(![Node.ELEMENT_NODE,Node.TEXT_NODE].includes(e.nodeType)||["SCRIPT","STYLE"].includes(e.tagName)||e.tagName===n&&e.className===r)return 0;if(e.nodeType===Node.ELEMENT_NODE&&e.childNodes){for(let s=0;s<e.childNodes.length;s++)s+=i(e.childNodes[s],t,n,r);return 0}if(e.nodeType===Node.TEXT_NODE){const i=e.data.match(t);if(!i)return 0;const s=document.createElement(n);s.className=r,s.innerText=i[0];const o=e.splitText(i.index);return o.splitText(i[0].length),o.parentNode.replaceChild(s,o),1}return 0}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s={nodeName:"span",className:"highlighted",matchCase:!1};if(s={...s,...n},!(t=(0,r.makeArray)(t).filter(Boolean).map((e=>e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")))).length)return e;const o=`(${t.join(" ")})`;let a;return s.matchCase||(a="i"),i(e,new RegExp(o,a),s.nodeName.toUpperCase(),s.className),e}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={nodeName:"span",className:"highlighted"};t={...t,...e},document.querySelectorAll(`${t.nodeName}.${t.className}`).forEach((e=>{const t=e.parentNode;t.replaceChild(e.firstChild,e),t.normalize()}))}},16289:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLASS_NAME:()=>o,default:()=>a});var r=n(33217),i=n(24307),s=n(98066);const o="search-highlight";function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isEmpty)(t)){let r=t.match(new RegExp(`${i.SEARCH_PHRASE_REGEXP}|[^\\s]+`,"g")).filter((e=>"l"!==e)).map((e=>e.replace(/^"(.*)"$/,"$1")));const a={};n.defaultClassName||(a.className=o),(0,s.default)(e,r,a)}}},10050:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(){var e;function t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(e){return e.nodeName.toLowerCase()}function r(e){const t=[];return function e(r,i){for(let s=r.firstChild;s;s=s.nextSibling)3===s.nodeType?i+=s.nodeValue.length:1===s.nodeType&&(t.push({event:"start",offset:i,node:s}),i=e(s,i),n(s).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:s}));return i}(e,0),t}return{"before:highlightElement":t=>{let{el:n}=t;e=r(n)},"after:highlightElement":i=>{let{el:s,result:o,text:a}=i;if(!e.length)return;const l=document.createElement("div");l.innerHTML=o.value,o.value=function(e,r,i){let s=0,o="";const a=[];function l(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset<r[0].offset?e:r:"start"===r[0].event?e:r:e.length?e:r}function c(e){o+="<"+n(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+t(e.value)+'"'})).join("")+">"}function u(e){o+="</"+n(e)+">"}function d(e){("start"===e.event?c:u)(e.node)}for(;e.length||r.length;){let n=l();if(o+=t(i.substring(s,n[0].offset)),s=n[0].offset,n===e){a.reverse().forEach(u);do{d(n.splice(0,1)[0]),n=l()}while(n===e&&n.length&&n[0].offset===s);a.reverse().forEach(c)}else"start"===n[0].event?a.push(n[0].node):a.pop(),d(n.splice(0,1)[0])}return o+t(i.substr(s))}(e,r(l),a),s.innerHTML=o.value}}}()},14347:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,registerHighlightJSLanguage:()=>m,registerHighlightJSPlugin:()=>g});var r=n(82837),i=n.n(r),s=n(22902),o=n(10050),a=n(34405),l=n(47582);let c,u=[],d=[];async function p(e,t,r){if(!e)return;const i=t.autohighlight_all_code?"pre code":"pre code[class]",a=e.querySelectorAll(i);if(!a.length)return;const l=r.highlightJsPath,p=await async function(e){try{return c||(c=async function(e){const[t,r]=await Promise.all([n.e(847).then(n.bind(n,20847)),h(e)]),i=t.default;return r(i),function(e){(function(e){u.forEach((t=>{void 0===e.getLanguage(t.name)&&e.registerLanguage(t.name,t.fn)}))})(e),function(e){d.forEach((t=>{e.addPlugin(t)}))}(e),e.addPlugin(o.default),e.configure({ignoreUnescapedHTML:!0})}(i),i}(e),(0,s.waitForPromise)(c)),await c}catch(e){throw c=null,e}}(l);a.forEach((e=>{if(e.innerHTML.length>3e4)return;let t;for(const n of e.classList){const e=n.match(/^lang-(.+)$/);if(e){t=e[1];break}}t&&("auto"===t||p.getLanguage(t))?(e.classList.remove("lang-auto"),p.highlightElement(e)):e.dataset.unknownHljsLang=t}))}async function h(e){if(i()&&(0,a.isTesting)()){const[e,t,r]=await Promise.all([n.e(217).then(n.bind(n,29217)),n.e(655).then(n.bind(n,2655)),n.e(8).then(n.bind(n,34008))]);return n=>{n.registerLanguage("javascript",e.default),n.registerLanguage("ruby",r.default),n.registerLanguage("sql",t.default)}}const t=(0,l.getURLWithCDN)(e);return(await import(t)).default}function m(e,t){u.push({name:e,fn:t})}function g(e){d.push(e)}},53574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,homepageDestination:()=>s});var r=n(62617);function i(e){const t=e._routerMicrolib;for(const e of["updateURL","replaceURL"]){const n=t[e].bind(t);t[e]=function(e){return e=o(e,this.activeTransition),n(e)}}}function s(){return`/${(0,r.defaultHomepage)()}?_discourse_homepage_rewrite=1`}function o(e,t){const n=t?.intent?.url;if(n?.startsWith(s())||t?.intent.name===`discovery.${(0,r.defaultHomepage)()}`&&t?.intent.queryParams._discourse_homepage_rewrite){const t=e.split("?",2)[1];e="/",t&&(e+=`?${t}`)}return e}},46646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{disableImplicitInjections:()=>v,registerDiscourseImplicitInjections:()=>w});var r=n(72326),i=n(31691),s=n.n(i),o=n(97423),a=n.n(o),l=n(48163),c=n.n(l),u=n(69828),d=n.n(u),p=n(17579),h=n.n(p),m=n(19858),g=n(12652);const f=Symbol("DISABLE_IMPLICIT_INJECTIONS");function b(e,t){let n=`__OVERRIDE_${t}`;return(0,l.computed)(t,{get(){if(this[n])return this[n];if(this[f])return;let t=(0,r.getOwner)(this)||this.container;return t?t.lookup(e):void 0},set(e,t){return this[n]=t}})}function _(e,t){const n={};for(const[e,r]of Object.entries(t))n[e]=b(r,e);c().reopen.call(e,n)}let y=!1;function w(){if(y)return;const e={appEvents:"service:app-events",pmTopicTrackingState:"service:pm-topic-tracking-state",store:"service:store",site:"service:site",searchService:"service:search",session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store"};_(a(),{...e,capabilities:"service:capabilities",currentUser:"service:current-user"}),_(s(),{capabilities:"service:capabilities",currentUser:"service:current-user",...e}),_(d(),{...e,currentUser:"service:current-user"}),_(g.default,{...e}),_(m.default,{...e}),_(h(),{session:"service:session",messageBus:"service:message-bus",siteSettings:"service:site-settings",topicTrackingState:"service:topic-tracking-state",keyValueStore:"service:key-value-store",currentUser:"service:current-user"}),y=!0}function v(e){e.prototype[f]=!0}},77559:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,wantsNewWindow:()=>i});var r=n(20229);function i(e){return e.defaultPrevented||e.isDefaultPrevented&&e.isDefaultPrevented()||e.shiftKey||e.metaKey||e.ctrlKey||e.button&&0!==e.button||e.currentTarget&&"_blank"===e.currentTarget.target}function s(e){if(i(e))return;const t=e.currentTarget,n=t.getAttribute("href"),s=t.getAttribute("target"),o=s&&"_self"!==s;return!n||n.startsWith("#")||o||t.dataset.emberAction||t.dataset.autoRoute||t.dataset.shareUrl||t.classList.contains("widget-link")||t.classList.contains("raw-link")||t.classList.contains("mention")||!t.classList.contains("d-link")&&!t.dataset.userCard&&t.classList.contains("ember-view")||t.classList.contains("lightbox")||n.startsWith("mailto:")||n.match(/^http[s]?:\/\//i)&&!n.match(new RegExp("^https?:\\/\\/"+window.location.hostname,"i"))?void 0:(e.preventDefault(),r.default.routeTo(n),!1)}},6549:(e,t,n)=>{"use strict";function r(e){if(!e)return;const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=window.innerHeight&&t.right<=window.innerWidth}n.r(t),n.d(t,{default:()=>r})},59295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(49246),i=n(34405);let s;try{s=localStorage,"true"===localStorage.disableLocalStorage?s=null:s.safeLocalStorage=!0}catch(e){s=null}class o{constructor(e){(0,r.Z)(this,"context",null),this.context=(0,i.isTesting)()?`__test_${e}`:e}abandonLocal(){return this.removeKeys()}removeKeys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>!0;if(!s)return;let t=s.length-1;for(;t>=0;){let n=s.key(t),r=s[n];try{r=JSON.parse(r)}catch(e){}n.substring(0,this.context.length)===this.context&&e(n,r)&&s.removeItem(n),t--}return!0}remove(e){if(s)return s.removeItem(this.context+e)}set(e){if(!s)return!1;s[this.context+e.key]=e.value}setObject(e){this.set({key:e.key,value:JSON.stringify(e.value)})}get(e){return s?s[this.context+e]:null}getInt(e,t){if(t||(t=0),!s)return t;const n=parseInt(this.get(e),10);return isFinite(n)?n:t}getObject(e){if(!s)return null;try{return JSON.parse(s[this.context+e])}catch(e){}}}o.prototype.getItem=o.prototype.get,o.prototype.removeItem=o.prototype.remove,o.prototype.setItem=function(e,t){this.set({key:e,value:t})}},6677:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PLATFORM_KEY_MODIFIER:()=>f,clearExtraKeyboardShortcutHelp:()=>g,default:()=>y,extraKeyboardShortcutsHelp:()=>m});var r=n(72326),i=n(51372),s=n(3055),o=n(31310),a=n(5002),l=n(20229),c=n(21859),u=n(10591),d=n(34405),p=n(12933),h=n(26730);let m={};function g(){m={}}const f=/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl",b={"!":{postAction:"showFlags"},"#":{handler:"goToPost",anonymous:!0},"/":{handler:"toggleSearch",anonymous:!0},"ctrl+alt+f":{handler:"toggleSearch",anonymous:!0,global:!0},"=":{handler:"toggleHamburgerMenu",anonymous:!0},"?":{handler:"showHelpModal",anonymous:!0},".":{click:".alert.alert-info.clickable",anonymous:!0},a:{handler:"toggleArchivePM"},b:{handler:"toggleBookmark"},c:{handler:"createTopic"},"shift+c":{handler:"focusComposer"},"ctrl+f":{handler:"showPageSearch",anonymous:!0},"command+f":{handler:"showPageSearch",anonymous:!0},"command+left":{handler:"webviewKeyboardBack",anonymous:!0},"command+[":{handler:"webviewKeyboardBack",anonymous:!0},"command+right":{handler:"webviewKeyboardForward",anonymous:!0},"command+]":{handler:"webviewKeyboardForward",anonymous:!0},"mod+p":{handler:"printTopic",anonymous:!0},d:{postAction:"deletePostWithConfirmation"},e:{handler:"editPost"},end:{handler:"goToLastPost",anonymous:!0},"command+down":{handler:"goToLastPost",anonymous:!0},f:{handler:"toggleBookmarkTopic"},"g h":{path:"/",anonymous:!0},"g l":{path:"/latest",anonymous:!0},"g n":{path:"/new"},"g u":{path:"/unread"},"g c":{path:"/categories",anonymous:!0},"g t":{path:"/top",anonymous:!0},"g b":{path:"/my/activity/bookmarks"},"g p":{path:"/my/activity"},"g m":{path:"/my/messages"},"g d":{path:"/my/activity/drafts"},"g s":{handler:"goToFirstSuggestedTopic",anonymous:!0},"g j":{handler:"goToNextTopic",anonymous:!0},"g k":{handler:"goToPreviousTopic",anonymous:!0},home:{handler:"goToFirstPost",anonymous:!0},"command+up":{handler:"goToFirstPost",anonymous:!0},j:{handler:"selectDown",anonymous:!0},k:{handler:"selectUp",anonymous:!0},l:{click:".topic-post.selected button.toggle-like"},"m m":{handler:"setTrackingToMuted"},"m r":{handler:"setTrackingToRegular"},"m t":{handler:"setTrackingToTracking"},"m w":{handler:"setTrackingToWatching"},"o,enter":{click:[".topic-list tr.selected a.title",".latest-topic-list .latest-topic-list-item.selected div.main-link a.title",".top-topic-list .latest-topic-list-item.selected div.main-link a.title",".latest .featured-topic.selected a.title",".search-results .fps-result.selected .search-link"].join(", "),anonymous:!0},tab:{handler:"switchFocusCategoriesPage",anonymous:!0},p:{handler:"showCurrentUser"},q:{handler:"quoteReply"},r:{postAction:"replyToPost"},s:{click:".topic-post.selected a.post-date",anonymous:!0},"shift+j":{handler:"nextSection",anonymous:!0},"shift+k":{handler:"prevSection",anonymous:!0},"shift+p":{handler:"pinUnpinTopic"},"shift+r":{handler:"replyToTopic"},"shift+s":{click:"#topic-footer-buttons button.share-and-invite",anonymous:!0},"shift+l":{handler:"goToUnreadPost"},"shift+z shift+z":{handler:"logout"},"shift+f11":{handler:"fullscreenComposer",global:!0},"shift+u":{handler:"deferTopic"},"shift+a":{handler:"toggleAdminActions"},t:{postAction:"replyAsNewTopic"},u:{handler:"goBack",anonymous:!0},"x r":{click:"#dismiss-new-bottom,#dismiss-new-top"},"x t":{click:"#dismiss-topics-bottom,#dismiss-topics-top"}};function _(e){e.preventDefault(),e.stopPropagation()}const y={init(e,t){(0,r.setOwner)(this,t),this.keyTrapper&&(this.keyTrapper.destroy(),this.keyTrapper=null),this.keyTrapper=new e,this._stopCallback(),this.searchService=t.lookup("service:search"),this.appEvents=t.lookup("service:app-events"),this.currentUser=t.lookup("service:current-user"),this.siteSettings=t.lookup("service:site-settings"),this.site=t.lookup("service:site"),this.currentUser?.can_send_private_messages||delete b["g m"]},bindEvents(){Object.keys(b).forEach((e=>{this.bindKey(e)}))},teardown(){Object.getPrototypeOf(this.keyTrapper).stopCallback=this.oldStopCallback,this.oldStopCallback=null,this.keyTrapper?.destroy(),this.keyTrapper=null},isTornDown(){return null==this.keyTrapper},bindKey(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.isTornDown()||(t||(t=b[e]),(t.anonymous||this.currentUser)&&(t.path?this._bindToPath(t.path,e):t.handler?t.global?this._globalBindToFunction(t.handler,e):this._bindToFunction(t.handler,e):t.postAction?this._bindToSelectedPost(t.postAction,e):t.click&&this._bindToClick(t.click,e)))},pause(e){this.isTornDown()||(e?e.forEach((e=>this.keyTrapper.unbind(e))):this.keyTrapper.paused=!0)},unpause(e){this.isTornDown()||(e?e.forEach((e=>this.bindKey(e))):this.keyTrapper.paused=!1)},addShortcut(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=e.trim();let r=Object.assign({handler:t},n);this.bindKey(e,r),n.help&&function(e){const t=e.category;m[t]?m[t]=m[t].concat([e]):m[t]=[e]}(n.help)},unbind(e){Object.keys(e).forEach((e=>this.keyTrapper.unbind(e)))},toggleBookmark(e){const t=this._getSelectedPost();if(t)return _(e),void this.sendToSelectedPost("toggleBookmark",t);const n=this._getSelectedTopicListItem();if(n)return _(e),void this.sendToTopicListItemView("toggleBookmark",n);this._bookmarkCurrentTopic(e)},toggleBookmarkTopic(e){const t=this._getSelectedTopicListItem();if(t)return _(e),void this.sendToTopicListItemView("toggleBookmark",t);this._bookmarkCurrentTopic(e)},_bookmarkCurrentTopic(e){this.currentTopic()&&document.querySelectorAll(".posts-wrapper").length&&(_(e),(0,r.getOwner)(this).lookup("controller:topic").send("toggleBookmark"))},logout(){(0,r.getOwner)(this).lookup("route:application").send("logout")},quoteReply(){return this.isPostTextSelected?(this.appEvents.trigger("quote-button:quote"),!1):(this.sendToSelectedPost("replyToPost"),(0,p.default)((()=>document.querySelector(".d-editor .quote")?.click()),500),!1)},editPost(){return this.siteSettings.enable_fast_edit&&this.isPostTextSelected?(this.appEvents.trigger("quote-button:edit"),!1):(this.sendToSelectedPost("editPost"),!1)},goToNextTopic(){(0,a.nextTopicUrl)().then((e=>{e&&l.default.routeTo(e)}))},goToPreviousTopic(){(0,a.previousTopicUrl)().then((e=>{e&&l.default.routeTo(e)}))},goToFirstSuggestedTopic(){const e=document.querySelector("#suggested-topics a.raw-topic-link");if(e)e.click();else{const e=(0,r.getOwner)(this).lookup("controller:topic"),t=`/t/${e.get("model.id")}/last.json`;(0,s.ajax)(t).then((t=>{if(t.suggested_topics&&t.suggested_topics.length>0){const n=e.store.createRecord("topic",t.suggested_topics[0]);l.default.routeTo(n.get("url"))}}))}},goToFirstPost(){this._jumpTo("jumpTop")},goToLastPost(){this._jumpTo("jumpBottom")},goToUnreadPost(){this._jumpTo("jumpUnread")},_jumpTo(e){document.querySelector(".container.posts")&&(0,r.getOwner)(this).lookup("controller:topic").send(e)},replyToTopic(){return this._replyToPost(),!1},selectDown(){this._moveSelection(1)},selectUp(){this._moveSelection(-1)},goBack(){history.back()},nextSection(){this._changeSection(1)},prevSection(){this._changeSection(-1)},showPageSearch(e){(0,i.run)((()=>{this.appEvents.trigger("header:keyboard-trigger",{type:"page-search",event:e})}))},printTopic(e){(0,i.run)((()=>{document.querySelector(".container.posts")&&(e.preventDefault(),(0,r.getOwner)(this).lookup("controller:topic").print())}))},createTopic(e){if(!this.currentUser||!this.currentUser.can_create_topic)return;e.preventDefault();const t=document.querySelector("#create-topic");t?t.click():(0,r.getOwner)(this).lookup("service:composer").open({action:c.default.CREATE_TOPIC,draftKey:c.default.NEW_TOPIC_KEY})},focusComposer(e){const t=(0,r.getOwner)(this).lookup("service:composer");e&&(e.preventDefault(),e.stopPropagation()),t.focusComposer(e)},fullscreenComposer(){const e=(0,r.getOwner)(this).lookup("service:composer");e.get("model")&&e.toggleFullscreen()},pinUnpinTopic(){(0,r.getOwner)(this).lookup("controller:topic").togglePinnedState()},goToPost(e){_(e),this.appEvents.trigger("topic:keyboard-trigger",{type:"jump"})},toggleSearch(e){return this.appEvents.trigger("header:keyboard-trigger",{type:"search",event:e}),!1},toggleHamburgerMenu(e){this.appEvents.trigger("header:keyboard-trigger",{type:"hamburger",event:e})},showCurrentUser(e){this.appEvents.trigger("header:keyboard-trigger",{type:"user",event:e})},showHelpModal(){(0,r.getOwner)(this).lookup("controller:application").send("showKeyboardShortcutsHelp")},setTrackingToMuted(){(0,i.throttle)(this,"_setTracking",0,d.INPUT_DELAY,!0)},setTrackingToRegular(){(0,i.throttle)(this,"_setTracking",1,d.INPUT_DELAY,!0)},setTrackingToTracking(){(0,i.throttle)(this,"_setTracking",2,d.INPUT_DELAY,!0)},setTrackingToWatching(){(0,i.throttle)(this,"_setTracking",3,d.INPUT_DELAY,!0)},_setTracking(e){const t=this.currentTopic();t&&t.details.updateNotifications(e)},sendToTopicListItemView(e,t){if(t=t||document.querySelector("tr.selected.topic-list-item")){const n=(0,r.getOwner)(this).lookup("-view-registry:main");n&&n[t.id].send(e)}},currentTopic(){const e=(0,r.getOwner)(this).lookup("controller:topic");if(e){const t=e.get("model");if(t)return t}},get isPostTextSelected(){return!!(0,r.getOwner)(this).lookup("controller:topic").quoteState.postId},sendToSelectedPost(e,t){const n=t||document.querySelector(".topic-post.selected article.boxed");let i;if(n&&(i=parseInt(n.dataset.postId,10)),i){const t=(0,r.getOwner)(this).lookup("controller:topic"),n=t.get("model.postStream.posts").findBy("id",i);if(n){let s=t.actions[e];s||(s=(0,r.getOwner)(this).lookup("route:topic").actions[e]);const o=s.call(t,n);o&&o.then&&this.appEvents.trigger("post-stream:refresh",{id:i})}}return!1},_bindToSelectedPost(e,t){this.keyTrapper.bind(t,(()=>this.sendToSelectedPost(e)))},_bindToPath(e,t){this.keyTrapper.bind(t,(()=>l.default.routeTo(e)))},_bindToClick(e,t){t=t.split(","),this.keyTrapper.bind(t,(function(t){const n=document.querySelector(e);if(t&&"Enter"===t.key){if(!n)return;t.preventDefault()}n?.click()}))},_globalBindToFunction(e,t){let n="function"==typeof e?e:this[e];"function"==typeof n&&this.keyTrapper.bindGlobal(t,n.bind(this))},_bindToFunction(e,t){let n="function"==typeof e?e:this[e];"function"==typeof n&&this.keyTrapper.bind(t,n.bind(this))},_moveSelection(e){const t=+new Date,n=this._lastMoveTime&&t-this._lastMoveTime<150;this._lastMoveTime=t;let r=this._findArticles();if(void 0===r)return;r=Array.from(r);let i=r.find((e=>e.classList.contains("selected")));if(i||(i=r.find((e=>"true"===e.dataset.islastviewedtopic))),i&&!n){const e=i.getBoundingClientRect();(e.bottom<(0,o.headerOffset)()||e.top>window.innerHeight)&&(i=null)}if(!i){const t=(0,o.headerOffset)();i=r.find((n=>e>0?n.getBoundingClientRect().top>=t:n.getBoundingClientRect().bottom>=t)),i||(i=r[r.length-1]),e=0}const s=r.indexOf(i);let a=i;if(!n&&0!==e&&a){const t=a.classList.contains("topic-post")&&a.querySelector("#post_1")?0:h.default.offset(a).top,n=h.default.offset(a).top+a.offsetHeight,r=window.scrollY,i=r+window.innerHeight;if(e<0&&r>t)return this._scrollTo(Math.max(r-window.innerHeight+3*(0,o.headerOffset)(),t-(0,o.headerOffset)()));if(e>0&&i<n-(0,o.headerOffset)())return this._scrollTo(Math.min(i-3*(0,o.headerOffset)(),n-window.innerHeight))}if(!i){if(-1===e&&0===s)return;if(1===e&&s===r.length-1)return}let l=s;for(;;){if(l+=e,a=r[l],!a)return;if(a.getBoundingClientRect().height>0)break}for(const e of r)e.classList.remove("selected"),e.removeAttribute("tabindex");a.classList.add("selected"),a.setAttribute("tabindex","0"),a.focus(),this.appEvents.trigger("keyboard:move-selection",{articles:r,selectedArticle:a});const c=h.default.offset(a).top,u=c-(0,o.headerOffset)();if(!n&&e<0&&a.offsetHeight>window.innerHeight)return this._scrollTo(c+a.offsetHeight-window.innerHeight);if(a.classList.contains("topic-post"))return this._scrollTo(a.querySelector("#post_1")?0:u);if(u>window.pageYOffset&&c+a.offsetHeight<window.pageYOffset+window.innerHeight)return;const d=e>0?.2:.7;this._scrollTo(u-window.innerHeight*d)},_scrollTo(e){window.scrollTo({top:e,behavior:"smooth"})},categoriesTopicsList(){switch(this.siteSettings.desktop_category_page_style){case"categories_with_featured_topics":return document.querySelectorAll(".latest .featured-topic");case"categories_and_latest_topics":case"categories_and_latest_topics_created_date":return document.querySelectorAll(".latest-topic-list .latest-topic-list-item");case"categories_and_top_topics":return document.querySelectorAll(".top-topic-list .latest-topic-list-item");default:return[]}},_findArticles(){let e;return document.querySelector(".posts-wrapper")?document.querySelectorAll(".posts-wrapper .topic-post, .topic-list tbody tr"):document.querySelector(".topic-list")?document.querySelectorAll(".topic-list .topic-list-item"):document.querySelector(".search-results")?document.querySelectorAll(".search-results .fps-result"):(e=this.categoriesTopicsList())?e:void 0},_changeSection(e){const t=Array.from(document.querySelectorAll(".nav.nav-pills li")),n=document.querySelector(".nav.nav-pills li.active"),r=t.indexOf(n)+e;r>=0&&r<t.length&&t[r].querySelector("a")?.click()},_stopCallback(){const e=Object.getPrototypeOf(this.keyTrapper),t=this.oldStopCallback=e.stopCallback;e.stopCallback=function(e,n,r,i){return!!this.paused||("ctrl+f"!==r&&"command+f"!==r||"search-term"!==n.id)&&t.call(this,e,n,r,i)}},_replyToPost(){(0,r.getOwner)(this).lookup("controller:topic").send("replyToPost")},_getSelectedPost:()=>document.querySelector(".topic-post.selected article[data-post-id]"),_getSelectedTopicListItem:()=>document.querySelector("tr.selected.topic-list-item"),deferTopic(){(0,r.getOwner)(this).lookup("controller:topic").send("deferTopic")},toggleAdminActions(){this.appEvents.trigger("topic:toggle-actions")},toggleArchivePM(){(0,r.getOwner)(this).lookup("controller:topic").send("toggleArchiveMessage")},webviewKeyboardBack(){u.capabilities.isAppWebview&&window.history.back()},webviewKeyboardForward(){u.capabilities.isAppWebview&&window.history.forward()}}},31405:(e,t,n)=>{"use strict";function r(e){e.decorateCookedElement((e=>e.querySelectorAll("img").forEach((e=>e.loading="lazy")))),e.decorateCookedElement((t=>{const n=e.container.lookup("service:site-settings");t.querySelectorAll("img").forEach((e=>{const{smallUpload:t,dominantColor:r}=e.dataset;n.secure_uploads&&t||!t&&!r||function(e){return!!e.naturalHeight}(e)||(e.onload||(e.onload=()=>{e.style.removeProperty("background-image"),e.style.removeProperty("background-size"),e.style.removeProperty("background-color")}),t?(e.style.setProperty("background-image",`url(${t})`),e.style.setProperty("background-size","cover")):e.style.setProperty("background-color",`#${r}`))}))}),{afterAdopt:!0})}n.r(t),n.d(t,{nativeLazyLoading:()=>r})},99121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cleanupLightboxes:()=>b,default:()=>_,setupLightboxes:()=>f});var r=n(71466),i=n.n(r),s=n(94312),o=n(66196),a=n(18104),l=n(62617),c=n(7223),u=n(34405),d=n(54736),p=n(37080),h=n(61369),m=n(3961),g=n(82099);async function f(e){let{container:t,selector:n}=e;(0,p.getOwnerWithFallback)(this).lookup("service:lightbox").setupLightboxes({container:t,selector:n})}function b(){return(0,p.getOwnerWithFallback)(this).lookup("service:lightbox").cleanupLightboxes()}function _(e,t){if(t.enable_experimental_lightbox)return(0,d.default)("Accessing the default `lightbox` export is deprecated. Import setupLightboxes and cleanupLightboxes from `discourse/lib/lightbox` instead.",{since:"3.0.0.beta16",dropFrom:"3.2.0",id:"discourse.lightbox.default-export"}),f({container:e,selector:o.SELECTORS.DEFAULT_ITEM_SELECTOR});if(!e)return;const n=e.querySelectorAll(o.SELECTORS.DEFAULT_ITEM_SELECTOR);if(!n.length)return;const r=(0,h.helperContext)().capabilities,p=r.touch;(0,a.default)("/javascripts/jquery.magnific-popup.min.js").then((function(){i()(n).magnificPopup({type:"image",closeOnContentClick:!1,removalDelay:(0,u.isTesting)()?0:300,mainClass:"mfp-zoom-in",tClose:g.default.t("lightbox.close"),tLoading:s.spinnerHTML,prependTo:(0,u.isTesting)()&&document.getElementById("ember-testing"),gallery:{enabled:!0,tPrev:g.default.t("lightbox.previous"),tNext:g.default.t("lightbox.next"),tCounter:g.default.t("lightbox.counter"),navigateByImgClick:p},ajax:{tError:g.default.t("lightbox.content_load_error")},callbacks:{open(){if(!p){const e=this.wrap,t=this.currItem.img,n=t.css("max-height");e.on("click.pinhandler","img",(function(){e.toggleClass("mfp-force-scrollbars"),t.css("max-height",e.hasClass("mfp-force-scrollbars")?"none":n)}))}r.isAppWebview&&(0,l.postRNWebviewMessage)("headerBg",i()(".mfp-bg").css("background-color"))},change(){this.wrap.removeClass("mfp-force-scrollbars")},beforeClose(){this.wrap.off("click.pinhandler"),this.wrap.removeClass("mfp-force-scrollbars"),r.isAppWebview&&(0,l.postRNWebviewMessage)("headerBg",i()(".d-header").css("background-color"))}},image:{tError:g.default.t("lightbox.image_load_error"),titleSrc(e){const n=e.el.data("download-href")||e.src;let r=[e.el.attr("title"),i()("span.informations",e.el).text()];return t.prevent_anons_from_downloading_files&&!c.default.current()||r.push('<a class="image-source-link" href="'+n+'">'+(0,m.renderIcon)("string","download")+g.default.t("lightbox.download")+"</a>"),r.push('<a class="image-source-link" href="'+e.src+'">'+(0,m.renderIcon)("string","image")+g.default.t("lightbox.open")+"</a>"),r.join(" &middot; ")}}})}))}},66196:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ANIMATION_DURATION:()=>r,DOCUMENT_ELEMENT_LIGHTBOX_OPEN_CLASS:()=>l,KEYBOARD_SHORTCUTS:()=>m,LAYOUT_TYPES:()=>h,LIGHTBOX_APP_EVENT_NAMES:()=>p,LIGHTBOX_ELEMENT_ID:()=>c,MIN_CAROUSEL_ARROW_ITEM_COUNT:()=>s,MIN_CAROUSEL_ITEM_COUNT:()=>i,SELECTORS:()=>d,SWIPE_DIRECTIONS:()=>a,SWIPE_THRESHOLD:()=>o,TITLE_ELEMENT_ID:()=>u});const r=(0,n(34405).isTesting)()||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:150,i=2,s=5,o=50,a={DOWN:"down",LEFT:"left",RIGHT:"right",UP:"up"},l="has-lightbox",c="discourse-lightbox",u="d-lightbox-image-title",d={ACTIVE_CAROUSEL_ITEM:"[data-lightbox-carousel-item='current']",DEFAULT_ITEM_SELECTOR:"*:not(.spoiler):not(.spoiled) a.lightbox",FILE_DETAILS_CONTAINER:".informations",LIGHTBOX_CONTAINER:".d-lightbox",LIGHTBOX_CONTENT:".d-lightbox__content",LIGHTBOX_BODY:".d-lightbox__body",FOCUS_TRAP:".d-lightbox__focus-trap",MAIN_IMAGE:".d-lightbox__main-image",MULTI_BUTTONS:".d-lightbox__multi-item-controls",CAROUSEL_BUTTON:".d-lightbox__carousel-button",PREV_BUTTON:".d-lightbox__previous-button",NEXT_BUTTON:".d-lightbox__next-button",CLOSE_BUTTON:".d-lightbox__close-button",FULL_SCREEN_BUTTON:".d-lightbox__full-screen-button",TAB_BUTTON:".d-lightbox__new-tab-button",ROTATE_BUTTON:".d-lightbox__rotate-button",ZOOM_BUTTON:".d-lightbox__zoom-button",DOWNLOAD_BUTTON:".d-lightbox__download-button",COUNTERS:".d-lightbox__counters",COUNTER_CURRENT:".d-lightbox__counter-current",COUNTER_TOTAL:".d-lightbox__counter-total",IMAGE_TITLE:".d-lightbox__image-title",ACTIVE_ITEM_TITLE:".d-lightbox__item-title",ACTIVE_ITEM_FILE_DETAILS:".d-lightbox__item-file-details",CAROUSEL:".d-lightbox__carousel",CAROUSEL_ITEM:".d-lightbox__carousel-item",CAROUSEL_PREV_BUTTON:".d-lightbox__carousel-previous-button",CAROUSEL_NEXT_BUTTON:".d-lightbox__carousel-next-button"},p={CLEAN:"dom:clean",CLOSE:"lightbox:close",CLOSED:"lightbox:closed",ITEM_DID_CHANGE:"lightbox:item-did-change",ITEM_WILL_CHANGE:"lightbox:item-will-change",OPEN:"lightbox:open",OPENED:"lightbox:opened"},h={HORIZONTAL:"horizontal",VERTICAL:"vertical"},m={CAROUSEL:"a",CLOSE:"Escape",DOWNLOAD:"d",FULLSCREEN:"m",NEWTAB:"n",NEXT:["ArrowRight","ArrowDown"],PREVIOUS:["ArrowLeft","ArrowUp"],ROTATE:"r",TITLE:"t",ZOOM:"z"}},14331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createDownloadLink:()=>o.createDownloadLink,findNearestSharedParent:()=>u.findNearestSharedParent,getSiteThemeColor:()=>r.getSiteThemeColor,getSwipeDirection:()=>i.getSwipeDirection,openImageInNewTab:()=>l.openImageInNewTab,preloadItemImages:()=>s.preloadItemImages,scrollParentToElementCenter:()=>a.scrollParentToElementCenter,setCarouselScrollPosition:()=>c.setCarouselScrollPosition,setSiteThemeColor:()=>r.setSiteThemeColor});var r=n(91739),i=n(10344),s=n(75133),o=n(3635),a=n(56217),l=n(19479),c=n(46629),u=n(52928)},3635:(e,t,n)=>{"use strict";async function r(e){try{const t=document.createElement("a");t.href=e.downloadURL,t.download=e.title,t.click()}catch(e){console.error(e)}}n.r(t),n.d(t,{createDownloadLink:()=>r})},52928:(e,t,n)=>{"use strict";function r(e){const t=[];for(const n of e){let e=n;for(;e;)t.push(e),e=e.parentElement}return t.filter((e=>t.indexOf(e)!==t.lastIndexOf(e)))[0]}n.r(t),n.d(t,{findNearestSharedParent:()=>r})},10344:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSwipeDirection:()=>i});var r=n(66196);function i(e){let{touchstartX:t,touchstartY:n,touchendX:i,touchendY:s}=e;const o=t-i,a=Math.abs(o),l=n-s,c=Math.abs(l);return a>r.SWIPE_THRESHOLD?Math.sign(o)>0?r.SWIPE_DIRECTIONS.RIGHT:r.SWIPE_DIRECTIONS.LEFT:c>r.SWIPE_THRESHOLD&&(Math.sign(l)>0?r.SWIPE_DIRECTIONS.UP:r.SWIPE_DIRECTIONS.DOWN)}},19479:(e,t,n)=>{"use strict";async function r(e){try{window.open(e.fullsizeURL,"_blank")}catch(e){console.error(e)}}n.r(t),n.d(t,{openImageInNewTab:()=>r})},75133:(e,t,n)=>{"use strict";async function r(e){if(!e)return;if(e.isLoaded&&!e.hasLoadingError)return e;const t=new Image,n=new Image,r=new Promise(((n,r)=>{t.onload=n,t.onerror=r,t.src=e.fullsizeURL})),i=new Promise(((t,r)=>{n.onload=t,n.onerror=r,n.src=e.smallURL}));try{await Promise.all([r,i]),e={...e,isLoaded:!0,hasLoadingError:!1,width:t.naturalWidth,height:t.naturalHeight,aspectRatio:e.aspectRatio||`${n.naturalWidth} / ${n.naturalHeight}`,canZoom:t.naturalWidth>window.innerWidth||t.naturalHeight>window.innerHeight}}catch(t){e.hasLoadingError=!0,console.error(`Failed to load lightbox image ${e.index}: ${e.fullsizeURL}`)}return e}n.r(t),n.d(t,{preloadItemImages:()=>r})},56217:(e,t,n)=>{"use strict";async function r(e){let{element:t,isRTL:n}=e;const{offsetWidth:r,offsetHeight:i,parentElement:s}=t,o=n?-1:1,a=(r-s.offsetWidth)/2*o,l=(i-s.offsetHeight)/2;s.scrollLeft=parseInt(a,10),s.scrollTop=parseInt(l,10)}n.r(t),n.d(t,{scrollParentToElementCenter:()=>r})},46629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setCarouselScrollPosition:()=>i});var r=n(66196);async function i(){let{behavior:e="instant"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=document.querySelector(r.SELECTORS.ACTIVE_CAROUSEL_ITEM);if(!t)return;const n=t.offsetLeft-t.offsetWidth-t.offsetWidth/2,i=t.offsetTop-t.offsetHeight-t.offsetHeight/2;t.parentElement.scrollTo({behavior:e,left:n,top:i})}},91739:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSiteThemeColor:()=>i,setSiteThemeColor:()=>s});var r=n(62617);async function i(){const e=document.querySelector('meta[name="theme-color"]');return e?.content}async function s(){const e=`#${(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"000000").replace(/^#*/,"")}`,t=document.querySelector('meta[name="theme-color"]');t&&(t.content=e),(0,r.postRNWebviewMessage)?.("headerBg",e)}},91615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{processHTML:()=>s});var r=n(24434),i=n(66196);async function s(e){let{container:t,selector:n,clickTarget:s}=e;n??=i.SELECTORS.DEFAULT_ITEM_SELECTOR;const o=[...t.querySelectorAll(n)];let a=o.findIndex((e=>e===s));-1===a&&(a=0);const l=/url\((['"])?(.*?)\1\)/gi;return{items:o.map(((e,t)=>{try{const n=e.querySelector("img")||{},s=e.style?.backgroundImage||e.parentElement?.style?.backgroundImage||null,o=e.dataset?.largeSrc||e.href||e.src||n.src||null,a=n.currentSrc||e.src||n.src||s?.replace(l,"$2")||null,c=e.dataset?.downloadHref||e.href||e.src||n.src||null,u=e.title||e.alt||n.title||n.alt||"",d=e.dataset?.aspectRatio||n.dataset?.aspectRatio||e.style?.aspectRatio||n.style?.aspectRatio||null,p=e.querySelector(i.SELECTORS.FILE_DETAILS_CONTAINER)?.innerText.trim()||null,h=e.dataset?.dominantColor??n.dataset?.dominantColor??null,m=[h&&`--dominant-color: #${h};`,d&&`--aspect-ratio: ${d};`,a&&`--small-url: url(${encodeURI(a)});`].join("");return{fullsizeURL:encodeURI(o),smallURL:encodeURI(a),downloadURL:encodeURI(c),title:u,fileDetails:p,dominantColor:h,aspectRatio:d,index:t,cssVars:(0,r.htmlSafe)(m)}}catch(e){console.error(`Error processing lightbox item ${t}`),console.error(e)}})),startingIndex:a}}},30787:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,reset:()=>s});let r={};const i=[!1,null];function s(){r={}}class o{constructor(e){this._links=e}check(e,t){if(r[t])return i;const n=t.toLowerCase().replace(/^https?:\/\//,"").replace(/\/$/,"");if(r[n])return i;const s=this._links[n];if(s){if(e){const t=e.get("post_number");if(1===t||t===s.post_number)return i;if(moment(e.get("created_at")).isBefore(moment().subtract(2,"weeks")))return i}return r[t]=!0,r[n]=!0,[!0,s]}return i}}},4152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fetchUnseenMentions:()=>f,linkSeenMentions:()=>g,resetMentions:()=>h});var r=n(3055),i=n(20229),s=n(62617),o=n(47582);let a,l={},c={},u={},d={},p={};function h(){l={},c={},u={},d={},p={},a=null}function m(e,t,n){const r=document.createElement("a");n.group?(r.href=(0,o.default)(`/g/${t}`),r.innerText=`@${t}`,r.classList.add("mention-group"),!n.reason&&n.details&&(r.dataset.mentionableUserCount=n.details.user_count,r.dataset.maxMentions=a)):(r.href=(0,i.userPath)(t.toLowerCase()),r.innerText=`@${(0,s.formatUsername)(t)}`,r.classList.add("mention")),r.dataset.name=t,n.reason&&(r.dataset.reason=n.reason,n.details&&(r.dataset.notifiedUserCount=n.details.notified_count)),e.replaceWith(r)}function g(e,t){const n=[...e.querySelectorAll("span.mention:not(.mention-tested)")];if(0===n.length)return[];const r=n.map((e=>e.innerText.slice(1)));return function(e,t){e.forEach(((e,n)=>{const r=t[n];c[r.toLowerCase()]?m(e,r,{reason:u[r]}):d[r]?m(e,r,{group:!0,details:d[r],reason:p[r]}):l[r]&&e.classList.add("mention-tested")}))}(n,r),r.uniq().filter((e=>!l[e]&&e.length>=t.min_username_length))}async function f(e){let{names:t,topicId:n,allowedNames:i}=e;const s=await(0,r.ajax)("/composer/mentions",{data:{names:t,topic_id:n,allowed_names:i}});return t.forEach((e=>l[e]=!0)),s.users.forEach((e=>c[e]=!0)),Object.entries(s.user_reasons).forEach((e=>{let[t,n]=e;return u[t]=n})),Object.entries(s.groups).forEach((e=>{let[t,n]=e;return d[t]=n})),Object.entries(s.group_reasons).forEach((e=>{let[t,n]=e;return p[t]=n})),a=s.max_users_notified_per_group_mention,s}},14201:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadOneboxes:()=>s});var r=n(11210),i=n(59539);function s(e,t,n,s,o,a,l){const c={},u={};let d=e.querySelectorAll(`aside.onebox, a.${i.LOADING_ONEBOX_CSS_CLASS}, a.inline-onebox`).length;return e.querySelectorAll("a.onebox, a.inline-onebox-loading").forEach((e=>{const t=e.classList.contains("inline-onebox-loading"),n=t?u:c;d<o?(void 0===n[e.href]&&(n[e.href]=[],d++),n[e.href].push(e)):void 0!==n[e.href]?n[e.href].push(e):t&&e.classList.remove("inline-onebox-loading")})),Object.keys(c).length>0&&function(e){let{oneboxes:t,ajax:n,topicId:r,categoryId:s,refresh:o,offline:a}=e;Object.values(t).forEach((e=>{e.forEach((e=>{(0,i.load)({elem:e,ajax:n,categoryId:s,topicId:r,refresh:o,offline:a})}))}))}({oneboxes:c,ajax:t,topicId:n,categoryId:s,refresh:a,offline:l}),Object.keys(u).length>0&&function(e,t,n,i){(0,r.applyInlineOneboxes)(e,t,{categoryId:n,topicId:i})}(u,t,n,s),Object.keys(c).length+Object.keys(u).length}},18104:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cacheBuster:()=>m,default:()=>h,loadCSS:()=>p});var r=n(51372),i=n(3253),s=n(10425),o=n(3055),a=n(39789),l=n(34405),c=n(47582);const u={},d={};function p(e){return h(e,{css:!0})}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u[e])return s.Promise.resolve();e=m(e);const n=t.css?(0,c.default)(e):(0,c.getURLWithCDN)(e);return document.querySelectorAll("script").forEach((e=>{const t=e.getAttribute("src");t&&t!==n&&!d[t]&&(u[t]=!0)})),new s.Promise((function(a){if(u[n])return a();if(d[n])return d[n].then(a);let c;d[n]=new s.Promise((function(e){c=e})),d[n].then((function(){delete d[n]}));const p=function(r){if(t?.css){const e=document.createElement("style");e.innerText=r,document.querySelector("head").appendChild(e)}c(),a(),u[e]=!0,u[n]=!0};t.css?(0,o.ajax)({url:n,dataType:"text"}).then(p):function(e,t){const n=document.getElementsByTagName("head")[0];let s=!1,o=document.createElement("script");o.src=e,(0,l.isTesting)()&&(0,i.registerWaiter)((()=>s)),o.onerror=function(){s=!0},o.onload=o.onreadystatechange=function(e,n){s=!0,!n&&o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(o=o.onload=o.onreadystatechange=null,n||(0,r.run)(null,t))},n.appendChild(o)}(n,p)}))}function m(e){if(a.PUBLIC_JS_VERSIONS){let[t,...n]=e.split("/").filter(Boolean);if("javascripts"===t){n=n.join("/").toLowerCase();const e=a.PUBLIC_JS_VERSIONS[n];if(e)return`/javascripts/${e}`}}return e}},43386:(e,t,n)=>{"use strict";function r(e,t){t.discourse_local_dates_enabled&&(0,requirejs("discourse/plugins/discourse-local-dates/initializers/discourse-local-dates").applyLocalDates)(e,t)}n.r(t),n.d(t,{applyLocalDates:()=>r})},73162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(31310),o=n(57555);const a=["scroll","touchmove","mousedown","wheel","keyup"],l=["mousedown","mousewheel","touchmove","wheel"];function c(e,t,n){return Math.abs(t-n)<e}let u=(r=class{constructor(e,t){this.selector=e,this.options=t||{}}elementTop(){const e=document.querySelector(this.selector);if(!e)return;const{top:t}=e.getBoundingClientRect();let n=t+window.scrollY;return this.options.originalTopOffset&&window.innerHeight/2.25>this.options.originalTopOffset?n-this.options.originalTopOffset:n-(0,s.headerOffset)()}clearLock(){this._removeListener(),window.cancelAnimationFrame(this._requestId),this.options.finished&&this.options.finished()}lock(){this.startedAt=Date.now(),this.previousTop=this.elementTop(),this.previousTop&&window.scrollTo(window.pageXOffset,this.previousTop),this._requestId=window.requestAnimationFrame(this._performLocking),this._removeListener(),this._addListener()}_scrollListener(e){(e.which>0||l.includes(e.type))&&this.clearLock()}_addListener(){a.forEach((e=>{document.body.addEventListener(e,this._scrollListener,{passive:!0})}))}_removeListener(){a.forEach((e=>{document.body.removeEventListener(e,this._scrollListener)}))}_performLocking(){const e=this.elementTop();if(!this.previousTop&&!e)return Date.now()-this.startedAt>5e3&&this.clearLock(),void(this._requestId=window.requestAnimationFrame(this._performLocking));const t=Math.max(0,e);return isNaN(t)?this.clearLock():(c(4,t,this.previousTop)&&c(4,window.scrollY,t)||(window.scrollTo(window.pageXOffset,t),this.previousTop=t),this.options.originalTopOffset||Date.now()-this.startedAt>1e3?this.clearLock():void(this._requestId=window.requestAnimationFrame(this._performLocking)))}},(0,i.Z)(r.prototype,"_scrollListener",[o.bind],Object.getOwnPropertyDescriptor(r.prototype,"_scrollListener"),r.prototype),(0,i.Z)(r.prototype,"_performLocking",[o.bind],Object.getOwnPropertyDescriptor(r.prototype,"_performLocking"),r.prototype),r)},28560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(33217),i=n(34405),s=n(47582),o=n(61369);function a(){let{redirect:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,i.isTesting)())return;const t=(0,o.helperContext)();if(t.keyValueStore.abandonLocal(),!(0,r.isEmpty)(e))return void(window.location.href=e);const n=t.siteSettings.login_required?"/login":"/";window.location.href=(0,s.default)(n)}},38616:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fileToImageData:()=>s});var r=n(10425),i=n(61369);async function s(e){const t=await async function(e){const t=(0,i.helperContext)().capabilities;if("createImageBitmap"in self&&!t.isApple)return await createImageBitmap(e);{const t=URL.createObjectURL(e),n=new Image;n.decoding="async",n.src=t;const i=new r.Promise(((e,t)=>{n.onload=()=>e(),n.onerror=()=>t(Error("Image loading error"))}));return n.decode&&await n.decode().catch((()=>null)),await i,n}}(e),n=function(e){const t=e.width,n=e.height,r=t,i=n,s="undefined"!=typeof OffscreenCanvas;let o;s?o=new OffscreenCanvas(t,n):(o=document.createElement("canvas"),o.width=t,o.height=n);const a=o.getContext("2d");if(!a)throw"Could not create canvas context";a.drawImage(e,0,0,r,i,0,0,t,n);const l=a.getImageData(0,0,t,n);return s||o.remove(),l}(t);if(function(e,t){if(!/(\.|\/)(png|webp)$/i.test(e))return!1;for(let e=0;e<t.data.length;e+=4)if(t.data[e+3]<255)return!0;return!1}(e.type,n))throw"Image has transparent pixels, won't convert to JPEG!";if(function(e,t){return!!/(\.|\/)jpe?g$/i.test(e)&&0===t.data[3]}(e.type,n))throw"JPEG image has transparent pixel, decode failed!";return n}},93594:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c,forceMobile:()=>a,resetMobile:()=>l});var r=n(71466),i=n.n(r),s=n(34405);let o=!1;function a(){o=!0}function l(){o=!1}const c={isMobileDevice:!1,mobileView:!1,init(){const e=i()("html");if(this.isMobileDevice=o||e.hasClass("mobile-device"),this.mobileView=o||e.hasClass("mobile-view"),!(0,s.isTesting)()&&!o)try{if(window.location.search.match(/mobile_view=1/)&&(localStorage.mobileView=!0),window.location.search.match(/mobile_view=0/)&&(localStorage.mobileView=!1),window.location.search.match(/mobile_view=auto/)&&localStorage.removeItem("mobileView"),localStorage.mobileView){let e="true"===localStorage.mobileView;e!==this.mobileView&&this.reloadPage(e)}}catch(e){}},toggleMobileView(){try{localStorage&&(localStorage.mobileView=!this.mobileView)}catch(e){}this.reloadPage(!this.mobileView)},reloadPage(e){window.location.assign(window.location.pathname+"?mobile_view="+(e?"1":"0"))}}},82331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyModelTransformations:()=>o,registerModelTransformer:()=>s,resetModelTransformers:()=>a});var r=n(72393);let i={};function s(e,t){i[e]||(i[e]=[]);const n={prefix:(0,r.consolePrefix)(),execute:t};i[e].push(n)}async function o(e,t){for(const n of i[e]||[])try{await n.execute(t)}catch(t){console.error(n.prefix,`transformer for the \`${e}\` model failed with:`,t,t.stack)}}function a(){i={}}},71261:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={narrowDesktopView:!1,init(){this.narrowDesktopView=this.isNarrowDesktopView(document.body.getBoundingClientRect().width)},isNarrowDesktopView:e=>e<768}},35814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NotificationLevels:()=>l,allLevels:()=>u,buttonDetails:()=>c,topicLevels:()=>d});const r=0,i=1,s=2,o=3,a=4,l={WATCHING_FIRST_POST:a,WATCHING:o,TRACKING:s,REGULAR:i,NORMAL:1,MUTED:r};function c(e){switch(e){case a:return{id:a,key:"watching_first_post",icon:"d-watching-first"};case o:return{id:o,key:"watching",icon:"d-watching"};case s:return{id:s,key:"tracking",icon:"d-tracking"};case r:return{id:r,key:"muted",icon:"d-muted"};default:return{id:i,key:"regular",icon:"d-regular"}}}const u=[o,s,a,i,r].map(c),d=u.filter((e=>e.id!==a))},98350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRenderDirector:()=>x,registerNotificationTypeRenderer:()=>v,resetNotificationTypeRenderers:()=>k});var r=n(36870),i=n(47008),s=n(5051),o=n(11018),a=n(8604),l=n(65404),c=n(58868),u=n(94894),d=n(66534),p=n(81899),h=n(98158),m=n(56847),g=n(7708),f=n(30054),b=n(56627),_=n(81153);const y={bookmark_reminder:s.default,custom:o.default,edited:a.default,granted_badge:l.default,group_mentioned:c.default,group_message_summary:u.default,invitee_accepted:d.default,liked:p.default,liked_consolidated:h.default,membership_request_accepted:m.default,membership_request_consolidated:g.default,moved_post:f.default,new_features:b.default,admin_problems:r.default,watching_first_post:_.default};let w={};function v(e,t){w[e]=t(i.default)}function k(){w={}}function x(e,t,n,r,s){return new(w[e]||y[e]||i.default)({notification:t,currentUser:n,siteSettings:r,site:s})}},36870:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(47582),s=n(82099);const o=class extends r.default{get label(){return null}get description(){return s.default.t("notifications.admin_problems")}get linkHref(){return(0,i.default)("/admin")}get icon(){return"exclamation-triangle"}}},47008:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(35193),s=n(20229),o=n(62617),a=n(82099);class l{constructor(e){let{notification:t,currentUser:n,siteSettings:r,site:i}=e;this.notification=t,this.currentUser=n,this.siteSettings=r,this.site=i}get classNames(){const e=["notification"];return this.notification.read?e.push("read"):e.push("unread"),this.notificationName&&e.push(this.notificationName.replace(/_/g,"-")),this.notification.is_warning&&e.push("is-warning"),e}get linkHref(){return this.topicId?(0,o.postUrl)(this.notification.slug,this.topicId,this.notification.post_number):this.notification.data.group_id?(0,s.userPath)(`${this.notification.data.username}/messages/${this.notification.data.group_name}`):void 0}get linkTitle(){return this.notificationName?a.default.t(`notifications.titles.${this.notificationName}`):""}get icon(){return`notification.${this.notificationName}`}get label(){return this.username}get description(){const e=(0,i.emojiUnescape)(this.notification.fancy_title);return e?(0,r.htmlSafe)(e):this.notification.data.topic_title}get labelClasses(){return[]}get descriptionClasses(){return[]}get topicId(){return this.notification.topic_id}get username(){return(0,o.formatUsername)(this.notification.data.display_username)}get notificationName(){return this.site.notificationLookup[this.notification.notification_type]}}},5051:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(47582),s=n(82099);const o=class extends r.default{get linkTitle(){return this.notification.data.bookmark_name?s.default.t("notifications.titles.bookmark_reminder_with_name",{name:this.notification.data.bookmark_name}):super.linkTitle}get description(){return super.description||this.notification.data.title}get label(){return null}get linkHref(){return super.linkHref||(this.notification.data.bookmarkable_url?(0,i.default)(this.notification.data.bookmarkable_url):void 0)}}},11018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(47008),i=n(82099);const s=class extends r.default{get linkTitle(){if(this.notification.data.title)return i.default.t(this.notification.data.title)}get icon(){return`notification.${this.notification.data.message}`}}},8604:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(47008),i=n(4993);const s=class extends r.default{onClick(){(0,i.setLastEditNotificationClick)(this.notification.topic_id,this.notification.post_number,this.notification.data.revision_number)}}},65404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(47582),s=n(82099);const o=class extends r.default{get linkHref(){const e=this.notification.data.badge_id;if(e){let t=this.notification.data.badge_slug;t||(t=this.notification.data.badge_name.replace(/[^A-Za-z0-9_]+/g,"-").toLowerCase());let n=this.notification.data.username;return n=n?`?username=${n.toLowerCase()}`:"",(0,i.default)(`/badges/${e}/${t}${n}`)}return super.url}get description(){return s.default.t("notifications.granted_badge",{description:this.notification.data.badge_name})}get label(){return null}}},58868:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(47008);const i=class extends r.default{get label(){return`${this.username} @${this.notification.data.group_name}`}get labelClasses(){return["mention-group","notify"]}}},94894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(20229),s=n(82099);const o=class extends r.default{get description(){return s.default.t("notifications.group_message_summary",{count:this.notification.data.inbox_count,group_name:this.notification.data.group_name})}get label(){return null}get linkHref(){return(0,i.userPath)(`${this.notification.data.username}/messages/group/${this.notification.data.group_name}`)}}},66534:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(20229),s=n(82099);const o=class extends r.default{get linkHref(){return(0,i.userPath)(this.notification.data.display_username)}get description(){return s.default.t("notifications.invitee_accepted_your_invitation")}}},98158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(20229),s=n(82099);const o=class extends r.default{get linkHref(){return(0,i.userPath)(`${this.currentUser.username}/notifications/likes-received?acting_username=${this.notification.data.username}`)}get description(){return s.default.t("notifications.liked_consolidated_description",{count:this.notification.data.count})}}},81899:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(32758),i=n(47008),s=n(62617),o=n(82099);var a=new WeakMap;const l=class extends i.default{constructor(){var e,t,n;super(...arguments),n={get:c,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=a),t.set(e,n)}get label(){return 2===this.count?o.default.t("notifications.liked_by_2_users",{username:this.username,username2:(0,r.Z)(this,a)}):this.count>2?o.default.t("notifications.liked_by_multiple_users",{username:this.username,count:this.count-1}):super.label}get labelClasses(){return 2===this.count?["double-user"]:this.count>2?["multi-user"]:void 0}get count(){return this.notification.data.count}};function c(){return(0,s.formatUsername)(this.notification.data.username2)}},56847:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(20229),s=n(82099);const o=class extends r.default{get linkHref(){return(0,i.groupPath)(this.notification.data.group_name)}get description(){return s.default.t("notifications.membership_request_accepted",{group_name:this.notification.data.group_name})}get label(){return null}}},7708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(20229),s=n(82099);const o=class extends r.default{get linkHref(){return(0,i.userPath)(`${this.notification.username||this.currentUser.username}/messages`)}get description(){return s.default.t("notifications.membership_request_consolidated",{group_name:this.notification.data.group_name,count:this.notification.data.count})}get label(){return null}}},30054:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(47008),i=n(82099);const s=class extends r.default{get label(){return i.default.t("notifications.user_moved_post",{username:this.username})}}},56627:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(47008),i=n(47582),s=n(82099);const o=class extends r.default{get label(){return null}get description(){return s.default.t("notifications.new_features")}get linkHref(){return(0,i.default)("/admin/dashboard/whats-new")}get icon(){return"gift"}}},81153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(47008),i=n(82099);const s=class extends r.default{get label(){return i.default.t("notifications.watching_first_post_label")}}},31310:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,headerOffset:()=>o,minimumOffset:()=>s,scrollTopFor:()=>i});var r=n(54736);function i(e){return e-a()}function s(){(0,r.default)("The minimumOffset() helper is deprecated, please use headerOffset() instead.",{since:"2.8.0.beta10",dropFrom:"2.9.0.beta2",id:"discourse.offset-calculator.minimumOffset"});const e=document.querySelector("header.d-header"),t=document.querySelector(".footer-nav-ipad .footer-nav"),n=t?t.offsetHeight:0,i=document.querySelector(".d-header-wrap").getBoundingClientRect();return e?e.offsetHeight+i.top+n:0}function o(){return parseInt(document.documentElement.style.getPropertyValue("--header-offset"),10)||0}function a(){const e=o();if(document.querySelector("html").classList.contains("mobile-view"))return e;const t=window.innerHeight,n=document.body.clientHeight,r=document.getElementById("topic-bottom").offsetTop;if(n-t>r)return e;const i=window.scrollY+t-r;if(i>0){const s=n-r,o=(t-s)*i/s;return Math.max(e,o)}return e}},29318:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(72326),i=n(48163),s=n(16572);function o(e){return(0,i.computed)((function(t){return(0,r.getOwner)(this).lookup(`service:${e||(0,s.dasherize)(t)}`)}))}},49216:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addGTMPageChangedCallback:()=>h,getTransient:()=>c,googleTagManagerPageChanged:()=>m,resetPageTracking:()=>u,setTransient:()=>l,startPageTracking:()=>d});var r=n(51372),i=n(47582);let s=!1,o={},a=0;function l(e,t,n){o[e]={data:t,target:a+n}}function c(e){return o[e]}function u(){s=!1,a=0,o={}}function d(e,t,n){s||(e.on("routeDidChange",(s=>{if(s.isAborted)return;const l="replace"===s.urlMethod&&s.queryParamsOnly;e.send("refreshTitle");const c=(0,i.default)(e.get("url"));(0,r.next)((()=>{t.trigger("page:changed",{url:c,title:n.getTitle(),currentRouteName:e.currentRouteName,replacedOnlyQueryParams:l})})),a++,Object.keys(o).forEach((e=>{const t=o[e];t&&t.target&&t.target<a&&delete o[e]}))})),s=!0)}const p=[];function h(e){p.push(e)}function m(e){let t={event:"virtualPageView",page:{title:e.title,url:e.url}};p.forEach((e=>e(t))),window.dataLayer.push(t)}},58256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PLUGIN_API_VERSION:()=>je,withPluginApi:()=>Ne});var r=n(71466),i=n.n(r),s=n(41221),o=n(12350),a=n(33452),l=n(64280),c=n(10374),u=n(32562),d=n(40371),p=n(17238),h=n(56310),m=n(26794),g=n(88621),f=n(78678),b=n(81821),_=n(841),y=n(34110),w=n(19105),v=n(87842),k=n(36817),x=n(39972),T=n(90793),S=n(65016),C=n(84798),P=n(48541),O=n(74424),E=n(95563),D=n(45105),I=n(96426),j=n(6659),Z=n(58831),A=n(32605),M=n(98576),N=n(88743),z=n(44750),L=n(55021),F=n(90737),U=n(14347),R=n(6677),B=n(82331),$=n(98350),q=n(49216),H=n(4173),W=n(73638),K=n(35591),V=n(25821),G=n(12360),Y=n(3948),Q=n(64519),J=n(25477),X=n(36693),ee=n(47786),te=n(62362),ne=n(39718),re=n(74184),ie=n(72393),se=n(1350),oe=n(82658),ae=n(62617),le=n(80471),ce=n(21859),ue=n(62047),de=n(92635),pe=n(7223),he=n(46621),me=n(84199),ge=n(86066),fe=n(64589),be=n(51804),_e=n(46737),ye=n(69892),we=n(67927),ve=n(75922),ke=n(83788),xe=n(36462),Te=n(39894),Se=n(94473),Ce=n(34405),Pe=n(54736),Oe=n(37080),Ee=n(3961),De=n(566),Ie=n(99139);const je="1.24.0";function Ze(e,t,n,r){if(!r.pluginId)return console.warn((0,ie.consolePrefix)(),"To prevent errors in tests, add a `pluginId` key to your `modifyClass` call. This will ensure the modification is only applied once."),!0;let i="_"+t+"/"+r.pluginId+"/"+n;return!e.class[i]&&(e.class[i]=1,!0)}function Ae(e,t){return function(){try{return e.call(this,...arguments)}catch(e){if(document.dispatchEvent(new CustomEvent("discourse-error",{detail:{messageKey:t,error:e}})),(0,Ce.isTesting)())throw e;return}}}class Me{constructor(e,t){this.version=e,this.container=t,this.h=s.h}getCurrentUser(){return this._lookupContainer("service:current-user")}_lookupContainer(e){if(this.container&&!this.container.isDestroying&&!this.container.isDestroyed)return this.container.lookup(e)}_resolveClass(e,t){t=t||{},(this.container.cache[e]||"model:user"===e&&this.container.lookup("service:current-user"))&&console.warn((0,ie.consolePrefix)(),`"${e}" has already been initialized and registered as a singleton. Move the modifyClass call earlier in the boot process for changes to take effect. https://meta.discourse.org/t/262064`);const n=this.container.factoryFor(e);if(n)return n;t.ignoreMissing||console.warn((0,ie.consolePrefix)(),`"${e}" was not found by modifyClass`)}modifyClass(e,t,n){const r=this._resolveClass(e,n);if(r)return Ze(r,"member",e,t)&&(delete t.pluginId,r.class.reopen?r.class.reopen(t):Object.defineProperties(r.class.prototype||r.class,Object.getOwnPropertyDescriptors(t))),r}modifyClassStatic(e,t,n){const r=this._resolveClass(e,n);if(r)return Ze(r,"static",e,t)&&(delete t.pluginId,r.class.reopenClass(t)),r}registerIconRenderer(e){(0,Ee.registerIconRenderer)(e)}replaceIcon(e,t){(0,Ee.replaceIcon)(e,t)}decorateCooked(e,t){this.decorateCookedElement(((t,n)=>e(i()(t),n)),t)}decorateCookedElement(e,t){t=t||{},e=Ae(e,"broken_decorator_alert"),(0,_e.addDecorator)(e,{afterAdopt:!!t.afterAdopt}),t.onlyStream||this.onAppEvent("decorate-non-stream-cooked-element",e)}addKeyboardShortcut(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};R.default.addShortcut(e,t,n)}addPosterIcon(e){this.addPosterIcons(e)}addPosterIcons(e){const t=this._lookupContainer("service:site"),n=t&&t.mobileView?"before":"after";(0,Se.decorateWidget)(`poster-name:${n}`,(t=>{const n=t.attrs;let r=e(n.userCustomFields||{},n);if(r)return Array.isArray(r)||(r=[r]),r.map((e=>{let n;return e.icon?n=(0,Ee.iconNode)(e.icon):e.emoji&&(n=e.emoji.split("|").map((n=>{let r={name:n};return e.emojiTitle&&(r.title=!0),t.attach("emoji",r)}))),e.text&&(n=[n,e.text]),e.url&&(n=t.h("a",{attributes:{href:e.url}},n)),t.h("span.poster-icon",{className:e.className,attributes:{title:e.title}},n)}))}))}decorateWidget(e,t){(0,Se.decorateWidget)(e,t)}attachWidgetAction(e,t,n){const r=(0,Se.queryRegistry)(e)||this.container.factoryFor(`widget:${e}`)?.class;r?r.prototype[t]=n:console.error((0,ie.consolePrefix)(),`attachWidgetAction: Could not find widget ${e} in registry`)}includePostAttributes(){(0,se.includeAttributes)(...arguments)}addPostMenuButton(e,t){ye.apiExtraButtons[e]=t,(0,ye.addButton)(e,t)}addPostAdminMenuButton(e){this.container.lookup("service:admin-post-menu-buttons").addButton(e)}removePostMenuButton(e,t){(0,ye.removeButton)(e,t)}replacePostMenuButton(e,t){(0,ye.replaceButton)(e,t)}onToolbarCreate(e){(0,l.addToolbarCallback)(e)}addComposerToolbarPopupMenuOption(e){(0,N.addPopupMenuOption)(e)}addToolbarPopupMenuOptionsCallback(e){(0,Pe.default)("`addToolbarPopupMenuOptionsCallback` has been renamed to `addToolbarPopupMenuOption`",{id:"discourse.add-toolbar-popup-menu-options-callback",since:"3.2",dropFrom:"3.3"}),this.addComposerToolbarPopupMenuOption(e)}cleanupStream(e){(0,p.addWidgetCleanCallback)("post-stream",e)}onPageChange(e){const t=Ae(e,"broken_page_change_alert");this.onAppEvent("page:changed",(e=>t(e.url,e.title)))}onAppEvent(e,t){const n=this._lookupContainer("service:app-events");n&&n.on(e,t)}customUserAvatarClasses(e){(0,A.registerCustomAvatarHelper)(e)}disableNameSuppressionOnPosts(){(0,ke.disableNameSuppression)()}registerCustomPostMessageCallback(e,t){(0,E.registerCustomPostMessageCallback)(e,t)}addBeforeLoadMoreNotificationsCallback(e){(0,D.addBeforeLoadMoreCallback)(e)}changeWidgetSetting(e,t,n){(0,Se.changeSetting)(e,t,n)}preventCloak(e){(0,ve.preventCloak)(e)}createWidget(e,t){return(0,Se.createWidget)(e,t)}reopenWidget(e,t){return(0,Se.reopenWidget)(e,t)}addFlagProperty(){(0,Pe.default)("addFlagProperty has been removed. Use the reviewable API instead.",{id:"discourse.add-flag-property"})}addHeaderPanel(e,t,n){(0,fe.attachAdditionalPanel)(e,t,n)}addStorePluralization(e,t){const n=this._lookupContainer("service:store");n&&n.addPluralization(e,t)}registerConnectorClass(e,t,n){(0,H.extraConnectorClass)(`${e}/${t}`,n)}renderInOutlet(e,t){(0,H.extraConnectorComponent)(e,t)}registerTopicFooterButton(e){(0,W.registerTopicFooterButton)(e)}registerTopicFooterDropdown(e){(0,K.registerTopicFooterDropdown)(e)}registerDesktopNotificationHandler(e){(0,z.registerDesktopNotificationHandler)(e)}addPostSmallActionIcon(e,t){(0,we.addPostSmallActionIcon)(e,t)}addGroupPostSmallActionCode(e){(0,we.addGroupPostSmallActionCode)(e)}addPostSmallActionClassesCallback(e){(0,we.addPostSmallActionClassesCallback)(e)}addDiscoveryQueryParam(e,t){(0,P.addDiscoveryQueryParam)(e,t)}addTagsHtmlCallback(e,t){(0,G.addTagsHtmlCallback)(e,t)}addUserMenuGlyph(){(0,Pe.default)("addUserMenuGlyph has been removed. Use api.registerUserMenuTab instead.",{id:"discourse.add-user-menu-glyph"})}addPostClassesCallback(e){(0,be.addPostClassesCallback)(e)}addTopicParticipantClassesCallback(e){(0,k.addTopicParticipantClassesCallback)(e)}addPostTransformCallback(e){(0,ve.addPostTransformCallback)(e)}addNavigationBarItem(e){if(e.name){const t=e.customHref;if(t){const n=this.container.lookup("service:router");e.customHref=function(e,r){return t(e,r,n)}}const n=e.customFilter;if(n){const t=this.container.lookup("service:router");e.customFilter=function(e,r){return n(e,r,t)}}const r=e.forceActive;if(r){const t=this.container.lookup("service:router");e.forceActive=function(e,n){return r(e,n,t)}}const i=e.init;if(i){const t=this.container.lookup("service:router");e.init=function(e,n,r){i(e,n,r,t)}}(0,ue.addNavItem)(e)}else console.warn((0,ie.consolePrefix)(),"A 'name' is required when adding a Navigation Bar Item.",e)}formatUsername(e){(0,ae.replaceFormatter)(e)}modifySelectKit(e){return(0,Ie.modifySelectKit)(e)}addGTMPageChangedCallback(e){(0,q.addGTMPageChangedCallback)(e)}addSharingSource(e){J.default.addSharingId(e.id),J.default.addSource(e)}addComposerUploadHandler(e,t){(0,o.addComposerUploadHandler)(e,t)}addComposerUploadPreProcessor(e,t){(0,o.addComposerUploadPreProcessor)(e,t)}addComposerUploadMarkdownResolver(e){(0,o.addComposerUploadMarkdownResolver)(e)}addUsernameSelectorDecorator(e){(0,Z.addUsernameSelectorDecorator)(e)}composerBeforeSave(e){ce.default.reopen({beforeSave:e})}addComposerSaveErrorCallback(e){(0,ge.addComposerSaveErrorCallback)(e)}serializeToTopic(e,t){ce.default.serializeToTopic(e,t)}serializeToDraft(e,t){ce.default.serializeToDraft(e,t)}serializeOnCreate(e,t){ce.default.serializeOnCreate(e,t)}serializeOnUpdate(e,t){ce.default.serializeOnUpdate(e,t)}addCategorySortCriteria(e){(0,c.addCategorySortCriteria)(e)}addCardClickListenerSelector(e){(0,le.addCardClickListenerSelector)(e)}replaceCategoryLinkRenderer(e){(0,j.replaceCategoryLinkRenderer)(e)}replaceTagRenderer(e){(0,V.replaceTagRenderer)(e)}registerCustomLastUnreadUrlCallback(e){(0,de.registerCustomLastUnreadUrlCallback)(e)}registerHighlightJSLanguage(e,t){(0,U.registerHighlightJSLanguage)(e,t)}registerHighlightJSPlugin(e){(0,U.registerHighlightJSPlugin)(e)}addGlobalNotice(e,t,n){(0,u.addGlobalNotice)(e,t,n)}addDocumentTitleCounter(e){(0,a.addPluginDocumentTitleCounter)(e)}decoratePluginOutlet(e,t,n){(0,Pe.default)("decoratePluginOutlet is deprecated because modifying an Ember-rendered DOM tree can lead to very unexpected errors. Use CSS or plugin outlet connectors instead",{id:"discourse.decorate-plugin-outlet"}),(0,h.addPluginOutletDecorator)(e,t,n||{})}setDesktopTopicTimelineScrollAreaHeight(e){(0,x.setDesktopScrollAreaHeight)(e)}decorateTopicTitle(e){(0,Pe.default)("decorateTopicTitle is deprecated because modifying an Ember-rendered DOM tree can lead to very unexpected errors. Use plugin outlet connectors instead",{id:"discourse.decorate-topic-title",since:"3.2",dropFrom:"3.3"}),(0,T.addTopicTitleDecorator)(e)}setUserMenuNotificationsLimit(e){(0,S.setNotificationsLimit)(e)}addCategoryLinkIcon(e){(0,j.addExtraIconRenderer)(e)}addToHeaderIcons(e){(0,fe.addToHeaderIcons)(e)}addQuickAccessProfileItem(e){(0,C.addUserMenuProfileTabItem)(e)}addFeaturedLinkMetaDecorator(e){(0,Y.addFeaturedLinkMetaDecorator)(e)}addAdvancedSearchOptions(e){(0,g.addAdvancedSearchOptions)(e)}addSaveableUserField(e){(0,pe.addSaveableUserField)(e)}addSaveableUserOptionField(e){(0,pe.addSaveableUserOptionField)(e)}addPluginReviewableParam(e,t){(0,m.addPluginReviewableParam)(e,t)}registerReviewableActionModal(e,t){(0,m.registerReviewableActionModal)(e,t)}setNewCategoryDefaultColors(e,t){(0,he.setNewCategoryDefaultColors)(e,t)}setNotificationsLimit(e){(0,me.setNotificationsLimit)(e)}addSearchResultsCallback(e){(0,Q.addSearchResultsCallback)(e)}addSearchSuggestion(e){(0,Te.addSearchSuggestion)(e),(0,f.addSearchSuggestion)(e)}addSearchMenuAssistantSelectCallback(e){(0,b.addItemSelectCallback)(e)}forceDropdownForMenuPanels(e){(0,v.forceDropdownForMenuPanels)(e)}downloadCalendar(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,L.downloadCalendar)(e,t,n)}addSearchMenuOnKeyDownCallback(e){(0,xe.addOnKeyDownCallback)(e),(0,y.addOnKeyUpCallback)(e)}addQuickSearchRandomTip(e){(0,_.addQuickSearchRandomTip)(e),(0,Te.addQuickSearchRandomTip)(e)}removeDefaultQuickSearchRandomTips(){(0,_.removeDefaultQuickSearchRandomTips)(),(0,Te.removeDefaultQuickSearchRandomTips)()}addUserSearchOption(e){De.CUSTOM_USER_SEARCH_OPTIONS.push(e)}dispatchWidgetAppEvent(e,t,n){this.modifyClass(`component:${e}`,{pluginId:`${e}/${t}/${n}`,didInsertElement(){this._super(),this.dispatch(n,t)}},{ignoreMissing:!0})}customizeComposerText(e){(0,ce.registerCustomizationCallback)(e)}addCommunitySectionLink(e,t){(0,ee.addSectionLink)(e,t)}registerUserCategorySectionLinkCountable(e){let{badgeTextFunction:t,route:n,routeQuery:r,shouldRegister:i,refreshCountFunction:s,prioritizeOverDefaults:o}=e;(0,ne.registerCustomCountable)({badgeTextFunction:t,route:n,routeQuery:r,shouldRegister:i,refreshCountFunction:s,prioritizeOverDefaults:o})}registerCustomCategorySectionLinkLockIcon(e){return(0,ne.registerCustomCategoryLockIcon)(e)}registerCustomCategorySectionLinkPrefix(e){let{categoryId:t,prefixType:n,prefixValue:r,prefixColor:i}=e;(0,ne.registerCustomCategorySectionLinkPrefix)({categoryId:t,prefixType:n,prefixValue:r,prefixColor:i})}registerCustomTagSectionLinkPrefixIcon(e){let{tagName:t,prefixValue:n,prefixColor:r}=e;(0,re.registerCustomTagSectionLinkPrefixIcon)({tagName:t,prefixValue:n,prefixColor:r})}refreshUserSidebarCategoriesSectionCounts(){const e=this._lookupContainer("service:app-events");e?.trigger(w.REFRESH_COUNTS_APP_EVENT_NAME)}addSidebarPanel(e){(0,te.addSidebarPanel)(e)}addAdminSidebarSectionLink(e,t){(0,X.addAdminSidebarSectionLink)(e,t)}setSidebarPanel(e){this._lookupContainer("service:sidebar-state")?.setPanel(e)}getSidebarPanel(){return this._lookupContainer("service:sidebar-state")?.currentPanel}setCombinedSidebarMode(){this._lookupContainer("service:sidebar-state")?.setCombinedMode()}setSeparatedSidebarMode(){this._lookupContainer("service:sidebar-state").setSeparatedMode()}showSidebarSwitchPanelButtons(){this._lookupContainer("service:sidebar-state").showSwitchPanelButtons()}hideSidebarSwitchPanelButtons(){this._lookupContainer("service:sidebar-state")?.hideSwitchPanelButtons()}addSidebarSection(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";(0,te.addSidebarSection)(e,t)}registerNotificationTypeRenderer(e,t){(0,$.registerNotificationTypeRenderer)(e,t)}registerUserMenuTab(e){(0,oe.registerUserMenuTab)(e)}registerModelTransformer(e,t){(0,B.registerModelTransformer)(e,t)}addUserMessagesNavigationDropdownRow(e,t,n){(0,I.registerCustomUserNavMessagesDropdownRow)(e,t,n)}addFullPageSearchType(e,t,n){(0,O.registerFullPageSearchType)(e,t,n)}addBeforeAuthCompleteCallback(e){(0,M.addBeforeAuthCompleteCallback)(e)}registerHashtagType(e,t){(0,F.registerHashtagType)(e,t)}addBulkActionButton(e){(0,d._addBulkButton)(e)}includeUserFieldPropertyOnSave(e){this.container.lookup("service:admin-custom-user-fields").addProperty(e)}}function Ne(e,t,n){n=n||{};const r=function(e){if(function(e,t){let n,r,i=/(\.0+)+$/,s=e.replace(i,"").split("."),o=t.replace(i,"").split("."),a=Math.min(s.length,o.length);for(n=0;n<a;n++)if(r=parseInt(s[n],10)-parseInt(o[n],10),r)return r;return s.length-o.length}(e=e.toString(),je)<=0){const t=(0,Oe.getOwnerWithFallback)(this);let n=t.lookup("plugin-api:main");return n?n.container=t:(n=new Me(e,t),t.registry.register("plugin-api:main",n,{instantiate:!1})),n.version<e&&(n.version=e),n}console.warn((0,ie.consolePrefix)(),`Plugin API v${e} is not supported`)}(e);if(r)return t(r,n)}},4173:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildArgsWithDeprecations:()=>L,clearCache:()=>k,connectorsExist:()=>A,connectorsFor:()=>M,expireConnectorCache:()=>x,extraConnectorClass:()=>y,extraConnectorComponent:()=>w,rawConnectorsFor:()=>z,renderedConnectorsFor:()=>N,resetExtraClasses:()=>_});var r=n(58255),i=n(32758),s=n(43122),o=n(91138),a=n.n(o),l=n(54736),c=n(21896);function u(e,t){p(e,t),t.add(e)}function d(e,t,n){p(e,t),t.set(e,n)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let m,g,f={},b={};function _(){f={},b={}}function y(e,t){(0,l.default)("Defining connector classes via registerConnectorClass is deprecated. See https://meta.discourse.org/t/32727 for more modern patterns.",{id:"discourse.register-connector-class-legacy"}),f[e]=t}function w(e,t){if(!(0,s.hasInternalComponentManager)(t))throw new Error("klass is not an Ember component");if(!(0,s.getComponentTemplate)(t))throw new Error("connector component has no associated template. Ensure the template is colocated or authored with gjs.");if(e.includes("/"))throw new Error("invalid outlet name");b[e]??=[],b[e].push(t)}const v=/^discourse(\/[^\/]+)*?(?<template>\/templates)?\/connectors\/(?<outlet>[^\/]+)\/(?<name>[^\/\.]+)$/;function k(){m=null,g=null}function x(){m=null}var T=new WeakMap,S=new WeakMap,C=new WeakSet,P=new WeakSet,O=new WeakSet;class E{constructor(e,t){u(this,O),u(this,P),u(this,C),d(this,T,{writable:!0,value:void 0}),d(this,S,{writable:!0,value:void 0}),this.outletName=e,this.connectorName=t}get componentClass(){return(0,i.Z)(this,T)??(0,r.Z)(this,T,h(this,C,D).call(this))}get templateOnly(){return(0,i.Z)(this,S)??(0,r.Z)(this,S,h(this,P,I).call(this))}get classicClassNames(){return`${this.outletName}-outlet ${this.connectorName}`}get connectorClass(){return this.classModule?this.classModule:this.classModuleName?window.require(this.classModuleName).default:f[`${this.outletName}/${this.connectorName}`]}get template(){if(this.templateModule)return window.require(this.templateModule).default}get humanReadableName(){return`${this.outletName}/${this.connectorName} (${this.classModuleName||this.templateModule})`}}function D(){const e=this.connectorClass;return!(!e||!(0,s.hasInternalComponentManager)(e))&&(this.template&&function(e,t){try{(0,s.setComponentTemplate)(e,t)}catch(n){if((0,s.getComponentTemplate)(t)!==e)throw n}}(this.template,e),h(this,O,j).call(this),e)}function I(){const e=a()();return(0,s.setComponentTemplate)(this.template,e),h(this,O,j).call(this),e}function j(){for(const e of["actions","setupComponent","teardownComponent"])this.connectorClass?.[e]&&(0,l.default)(`actions, setupComponent and teardownComponent hooks cannot be used with Glimmer plugin outlets. Define a component class instead. (${this.outletName}/${this.connectorName}).`,{id:"discourse.plugin-outlet-classic-hooks"})}function Z(){m={};const e={};var t,n;t=Object.keys(window.require.entries),n=t=>{let{outletName:n,connectorName:r,moduleName:i,isTemplate:s}=t,o=s?i.replace("/templates/","/"):i,a=e[o]??=new E(n,r);s?a.templateModule=i:a.classModuleName=i},t.forEach((e=>{const t=e.match(v);t&&n({outletName:t.groups.outlet,connectorName:t.groups.name,moduleName:e,isTemplate:!!t.groups.template})}));for(const t of Object.values(e))m[t.outletName]??=[],m[t.outletName].push(t);for(const[e,t]of Object.entries(b))for(const n of t){const t=new E(e);t.classModule=n,m[t.outletName]??=[],m[t.outletName].push(t)}}function A(e){return m||Z(),Boolean(m[e])}function M(e){return m||Z(),m[e]||[]}function N(e,t,n){return M(e).filter((e=>{const r=e.connectorClass?.shouldRender;return!r||r(t,n)}))}function z(e){return g||(g=(0,c.buildRawConnectorCache)()),g[e]||[]}function L(e,t){const n={};return Object.keys(e).forEach((t=>{Object.defineProperty(n,t,{value:e[t]})})),Object.keys(t).forEach((e=>{Object.defineProperty(n,e,{get:()=>((0,l.default)(`${e} is deprecated`,{id:"discourse.plugin-connector.deprecated-arg"}),t[e])})})),n}},33338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,recentlyCopied:()=>o,showAlert:()=>a});var r=n(3961),i=n(82099);function s(e){let{postId:t,actionClass:n,messageKey:r,actionCallback:i,errorCallback:s}=e;if(o(t,n))return;const l=i();l&&l.then?l.then((()=>{a(t,n,r)})).catch((()=>{s&&s()})):a(t,n,r)}function o(e,t){return document.querySelector(`article[data-post-id='${e}'] .${t} .${t}-checkmark`)}function a(e,t,n){const s=`article[data-post-id='${e}']`,o=document.querySelector(`${s} .${t}`);var a;o?.classList.add("post-action-feedback-button"),function(e,t,n){if(!n)return;let r=document.createElement("div");r.className="post-action-feedback-alert -success",r.textContent=e,n.appendChild(r),setTimeout((()=>r.classList.add("slide-out")),1e3),setTimeout((()=>l(r)),2500)}(i.default.t(n),0,o),function(e,t,n){const i=`svg_${t}_${n}`,s=function(e,t,n){const i=document.createElement("template");return i.innerHTML=`\n      <svg class="${t}-checkmark post-action-feedback-svg is-visible" id="${n}" xmlns="${r.SVG_NAMESPACE}" viewBox="0 0 52 52">\n        <path class="checkmark__check" fill="none" d="M13 26 l10 10 20 -20"/>\n      </svg>\n    `,i}(0,t,i);e.appendChild(s.content),setTimeout((()=>s.classList.remove("is-visible")),3e3),setTimeout((()=>l(document.getElementById(i))),3500)}(o,t,e),(a=o).classList.add("is-copied"),setTimeout((()=>a.classList.remove("is-copied")),3200)}function l(e){e?.parentNode?.removeChild(e)}},75157:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Placeholder:()=>d,default:()=>p});var r,i=n(54001),s=n(85356),o=n(38307),a=n.n(o),l=n(48163),c=n.n(l),u=n(57555);function d(e){this.viewName=e}const p=c().extend(a(),(r={posts:null,_appendingIds:null,init(){this._appendingIds={}},length(){return this.get("posts.length")+Object.keys(this._appendingIds||{}).length},nextObject(e){return this.objectAt(e)},_changeArray(e,t,n,r){(0,s.arrayContentWillChange)(this,t,n,r),e(),(0,s.arrayContentDidChange)(this,t,n,r),this.notifyPropertyChange("length")},clear(e){this._changeArray(e,0,this.get("posts.length"),0)},appendPost(e){this._changeArray(e,this.get("posts.length"),0,1)},removePost(e){this._changeArray(e,this.get("posts.length")-1,1,0)},insertPost(e,t){this._changeArray(t,e,0,1)},refreshAll(e){const t=this.get("posts.length");this._changeArray(e,0,t,t)},appending(e){this._changeArray((()=>{const t=this._appendingIds;e.forEach((e=>t[e]=!0))}),this.length,0,e.length)},finishedAppending(e){this._changeArray((()=>{const t=this._appendingIds;e.forEach((e=>delete t[e]))}),this.get("posts.length")-e.length,e.length,e.length)},finishedPrepending(e){this._changeArray((function(){}),0,0,e.length)},objectAt(e){const t=this.posts;return e<t.length?t[e]:new d("post-placeholder")}},(0,i.Z)(r,"length",[u.default],Object.getOwnPropertyDescriptor(r,"length"),r),r))},13369:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(10425);const i={data:new Map,store(e,t){this.data.set(e,t)},getAndRemove(e,t){if(this.data.has(e)){let t=r.Promise.resolve(this.data.get(e));return this.data.delete(e),t}return t?new r.Promise((function(e,n){let r=t();r&&r.then?r.then((t=>e(t))).catch((e=>n(e))):e(r)})):r.Promise.resolve(null)},get(e){return this.data.get(e)},remove(e){this.data.delete(e)},reset(){this.data=new Map}}},39789:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PUBLIC_JS_VERSIONS:()=>r});const r={"ace/ace.js":"ace.js/1.4.13/ace.js","jsoneditor.js":"@json-editor/json-editor/2.10.0/jsoneditor.js","chart.min.js":"chart.js/3.5.1/chart.min.js","chartjs-plugin-datalabels.min.js":"chartjs-plugin-datalabels/2.2.0/chartjs-plugin-datalabels.min.js","diffhtml.min.js":"diffhtml/1.0.0-beta.30/diffhtml.min.js","jquery.magnific-popup.min.js":"magnific-popup/1.1.0/jquery.magnific-popup.min.js","pikaday.js":"pikaday/1.8.2/pikaday.js"}},98952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isPushNotificationsEnabled:()=>u,isPushNotificationsSupported:()=>c,keyValueStore:()=>o,register:()=>d,subscribe:()=>p,unsubscribe:()=>h,userSubscriptionKey:()=>a});var r=n(3055),i=n(59295),s=n(61369);const o=new i.default("discourse_push_notifications_");function a(e){return`subscribed-${e.get("id")}`}function l(e,t){(0,r.ajax)("/push_notifications/subscribe",{type:"POST",data:{subscription:e.toJSON(),send_confirmation:t}})}function c(){let e=(0,s.helperContext)().capabilities;return!!("serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"undefined"!=typeof Notification&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window&&!e.isAppWebview&&navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state)}function u(e){return e&&!e.isInDoNotDisturb()&&c()&&o.getItem(a(e))}function d(e,t){c()&&"denied"!==Notification.permission&&e&&(navigator.serviceWorker.ready.then((t=>{t.pushManager.getSubscription().then((t=>{t&&(l(t,!1),o.setItem(a(e),"subscribed"))})).catch((e=>{console.error(e)}))})),navigator.serviceWorker.addEventListener("message",(e=>{"url"in e.data&&t.transitionTo(e.data.url)})))}function p(e,t){c()&&navigator.serviceWorker.ready.then((n=>{n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:new Uint8Array(t.split("|"))}).then((t=>{l(t,!0),e&&e()})).catch((e=>{console.error(e)}))}))}function h(e,t){c()&&(o.setItem(a(e),""),navigator.serviceWorker.ready.then((e=>{e.pushManager.getSubscription().then((e=>{e&&e.unsubscribe().then((t=>{t&&(0,r.ajax)("/push_notifications/unsubscribe",{type:"POST",data:{subscription:e.toJSON()}})}))})).catch((e=>{console.error(e)})),t&&t()})))}},25351:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(15443),i=n(61369);function s(e){(0,i.helperContext)().capabilities.isApple&&r.default.touchstartEvent?r.default.touchstartEvent(e):e.focus();const t=e.value.length;e.setSelectionRange(t,t),e.scrollTop=999999}},60353:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getNativeContact:()=>s,nativeShare:()=>i});var r=n(10425);function i(e,t){return new r.Promise(((n,r)=>{(e.isIOS||e.isAndroid||e.isWinphone)&&"https:"===window.location.protocol&&void 0!==window.navigator.share?window.navigator.share(t).then(n).catch((e=>{"AbortError"===e.name||r()})):r()}))}function s(e,t,n){return new r.Promise(((r,i)=>{if(!e.hasContactPicker)return i();navigator.contacts.select(t,{multiple:n}).then(r).catch(i)}))}},45273:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s,o,a=n(94664),l=n(54001),c=n(23183);let u=(r=class{constructor(){(0,a.Z)(this,"postId",i,this),(0,a.Z)(this,"buffer",s,this),(0,a.Z)(this,"opts",o,this)}selected(e,t,n){this.postId=e,this.buffer=t,this.opts=n}clear(){this.buffer="",this.postId=null,this.opts=null}},i=(0,l.Z)(r.prototype,"postId",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=(0,l.Z)(r.prototype,"buffer",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),o=(0,l.Z)(r.prototype,"opts",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),r)},18272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{QUOTE_REGEXP:()=>s,buildQuote:()=>o});var r=n(9387),i=n(61369);const s=/\[quote=([^\]]*)\]((?:[\s\S](?!\[quote=[^\]]*\]))*?)\[\/quote\]/im;function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||!t)return"";let s=e.name;n.username&&n.username!==e.username&&(s=null);const o=[(0,r.prioritizeNameFallback)(s,n.username||e.username),`post:${n.post||e.post_number}`,`topic:${n.topic||e.topic_id}`];return n.full&&o.push("full:true"),(0,i.helperContext)().siteSettings.display_name_on_posts&&!(0,i.helperContext)().siteSettings.prioritize_username_in_ux&&s&&o.push(`username:${n.username||e.username}`),`[quote="${o.join(", ")}"]\n${t.trim()}\n[/quote]\n\n`}},20840:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(72326),i=n(51372);let s=0;function o(e,t,n,o){const a=(0,r.getOwner)(e).lookup("service:render-glimmer");s++;const l=`_render_glimmer_${s}`,[c,...u]=t.split(".");return(0,i.schedule)("afterRender",(()=>{const e=document.getElementById(l);if(e){const t={element:e,component:n,data:o};a.add(t)}})),`<${c} id="${l}" class="${u.join(" ")}"></${c}>`}},8265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{registerServiceWorker:()=>i});var r=n(47582);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.isSecureContext&&"serviceWorker"in navigator&&(e?(navigator.serviceWorker.getRegistrations().then((t=>{for(let n of t)n.active&&!n.active.scriptURL.includes(e)&&s(n)})),navigator.serviceWorker.register((0,r.default)(`/${e}`),t).catch((e=>{console.info(`Failed to register Service Worker: ${e}`)}))):navigator.serviceWorker.getRegistrations().then((e=>{for(let t of e)s(t)})))}function s(e){(0,r.isAbsoluteURL)(e.scope)&&e.unregister()}},73638:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearTopicFooterButtons:()=>l,getTopicFooterButtons:()=>a,registerTopicFooterButton:()=>o});var r=n(48163),i=n(82099);let s={};function o(e){if(!e.id)throw new Error("Attempted to register a topic button with no id.");if(s[e.id])return;const t=Object.assign({type:"inline-button",id:null,icon:null,title:null,translatedTitle:null,label:null,translatedLabel:null,ariaLabel:null,translatedAriaLabel:null,dropdown:!1,classNames:[],dependentKeys:[],displayed:!0,disabled:!1,priority:0,anonymousOnly:!1},e);if(!t.icon&&!t.title&&!t.translatedTitle)throw new Error(`Attempted to register a topic button: ${e.id} with no icon or title.`);s[t.id]=t}function a(){const e=[].concat(...Object.values(s).map((e=>e.dependentKeys)).filter((e=>e)));return(0,r.computed)(...e,{get(){const e=e=>e&&"function"==typeof e,t=(t,n)=>{const r=t[n];return e(r)?r.apply(this):r};return Object.values(s).filter((e=>t(e,"displayed"))).map((n=>{const r={};r.id=n.id,r.type=n.type;const s=t(n,"label");r.label=s?i.default.t(s):t(n,"translatedLabel");const o=t(n,"ariaLabel");if(o)r.ariaLabel=i.default.t(o);else{const e=t(n,"translatedAriaLabel");r.ariaLabel=e||r.label}const a=t(n,"title");if(r.title=a?i.default.t(a):t(n,"translatedTitle"),r.classNames=(t(n,"classNames")||[]).join(" "),r.icon=t(n,"icon"),r.disabled=t(n,"disabled"),r.dropdown=t(n,"dropdown"),r.priority=t(n,"priority"),r.anonymousOnly=t(n,"anonymousOnly"),e(n.action))r.action=()=>n.action.apply(this);else{const e=n.action;r.action=()=>this[e]()}return r}))}})}function l(){s=[]}},35591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearTopicFooterDropdowns:()=>a,getTopicFooterDropdowns:()=>o,registerTopicFooterDropdown:()=>s});var r=n(48163);let i={};function s(e){if(!e.id)throw new Error("Attempted to register a topic dropdown with no id.");if(i[e.id])return;const t=Object.assign({type:"inline-dropdown",id:null,icon:null,content:null,classNames:[],dependentKeys:[],displayed:!0,disabled:!1,priority:0,noneItem:null},e);if(!t.content)throw new Error(`Attempted to register a topic dropdown: ${e.id} with no content.`);i[t.id]=t}function o(){const e=[].concat(...Object.values(i).mapBy("dependentKeys").filter(Boolean));return(0,r.computed)(...e,{get(){const e=(e,t)=>{const n=e[t];return(r=n)&&"function"==typeof r?n.apply(this):n;var r};return Object.values(i).filter((t=>e(t,"displayed"))).map((t=>{const n={};return n.id=t.id,n.type=t.type,n.classNames=(e(t,"classNames")||[]).join(" "),n.icon=e(t,"icon"),n.disabled=e(t,"disabled"),n.priority=e(t,"priority"),n.content=e(t,"content"),n.value=e(t,"value"),n.action=t.action,n.noneItem=e(t,"noneItem"),n}))}})}function a(){i={}}},25821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d,defaultRenderTag:()=>u,replaceTagRenderer:()=>c});var r=n(62617),i=n(7223),s=n(53134),o=n(47582),a=n(61369);let l=u;function c(e){l=e}function u(e,t){let n=(0,a.helperContext)().siteSettings;t=t||{};const l=(0,r.escapeExpression)(e);e=l.toLowerCase();const c=["discourse-tag"],u=t.tagName||"a";let d;"a"!==u||t.noHref||(d=(t.isPrivateMessage||t.pmOnly)&&i.default.current()?`/u/${t.tagsForUser?t.tagsForUser:i.default.current().username}/messages/tags/${e}`:`/tag/${e}`);const p=d?` href='${(0,o.default)(d)}' `:"";(n.tag_style||t.style)&&c.push(t.style||n.tag_style),t.extraClass&&c.push(t.extraClass),t.size&&c.push(t.size);const h=t.description&&t.description.replace(/<.+?>/g,"");let m="<"+u+p+" data-tag-name="+e+(t.description?' title="'+(0,s.default)(h)+'" ':"")+" class='"+c.join(" ")+"'>"+(t.displayName?(0,s.default)(t.displayName):l)+"</"+u+">";return t.count&&(m+=" <span class='discourse-tag-count'>x"+t.count+"</span>"),m}function d(e,t){return l(e,t)}},12360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addTagsHtmlCallback:()=>a,clearTagsHtmlCallbacks:()=>l,default:()=>c});var r=n(25821),i=n(82099);let s=null,o=null;function a(e,t){s=s||[],o=o||[];const n=t&&t.priority||0;let r=0;for(;r<o.length&&o[r]>n;)r+=1;o.splice(r,0,n),s.splice(r,0,e)}function l(){s=null,o=null}function c(e,t){let n,o=e.tags,a="",l=null;const c=e.get("isPrivateMessage");t&&("list"===t.mode&&(o=e.get("visibleListTags")),t.tagsForUser&&(l=t.tagsForUser),t.tagName&&(n=t.tagName));let u=null;if(s&&s.forEach((n=>{const r=n(e,t);r&&(u?u+=r:u=r)})),u||o&&o.length>0){if(a=`<div class='discourse-tags' role='list'\n                aria-label=${i.default.t("tagging.tags")}>`,o)for(let t=0;t<o.length;t++)a+=(0,r.default)(o[t],{description:e.tags_descriptions&&e.tags_descriptions[o[t]],isPrivateMessage:c,tagsForUser:l,tagName:n})+"";u&&(a+=u),a+="</div>"}return a}},3948:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addFeaturedLinkMetaDecorator:()=>a,default:()=>c,extractLinkMeta:()=>l,topicFeaturedLinkNode:()=>u});var r=n(41221),i=n(7223),s=n(3961);const o=[];function a(e){o.push(e)}function l(e){const t=e.get("featured_link"),n=i.default.currentProp("user_option.external_links_in_new_tab")?"_blank":"",r=e.get("featured_link_root_domain");let s=e.siteSettings.exclude_rel_nofollow_domains,a="nofollow ugc";if(s&&(s=s.split("|"),s.includes(r)&&(a=a.replace("nofollow ",""))),!t)return;const l={target:n,href:t,domain:r,rel:a};return o.length&&o.forEach((e=>e(l))),l}function c(e){const t=l(e);return t?`<a class="topic-featured-link" rel="${t.rel}" target="${t.target}" href="${t.href}">${(0,s.renderIcon)("string","external-link-alt")} ${t.domain}</a>`:""}function u(e){const t=l(e);if(t)return(0,r.h)("a.topic-featured-link",{attributes:{href:t.href,rel:t.rel,target:t.target}},[(0,s.renderIcon)("node","external-link-alt"),t.domain])}},60656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(3055),i=n(56111);let s=[],o=0;const a={enqueue(e,t,n){s.length>=20&&s.splice(0,1)[0].forEach((e=>{e.runnable()(429)})),s.push({runnable:()=>n,type:e,params:t}),(0,i.default)(this,this._processQueue,50)},_processQueue(){if(0===s.length)return;if(o>=3)return;o++;const e=s.splice(0,4);s.length>0&&(0,i.default)(this,this._processQueue,50);let t={};e.forEach((e=>{t[e.type]=e.params})),(0,r.ajax)("/admin/reports/bulk",{data:{reports:t}}).then((t=>{e.forEach((e=>{const n=t.reports.findBy("type",e.type);e.runnable()(n)}))})).catch((t=>{e.forEach((e=>{t.jqXHR&&429===t.jqXHR.status?e.runnable()(429):t.jqXHR&&500===t.jqXHR.status?e.runnable()(500):e.runnable()()}))})).finally((()=>{o--,(0,i.default)(this,this._processQueue,50)}))},_reset(){s=[],o=0}}},40019:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRenderDirector:()=>l});var r=n(53331),i=n(89604),s=n(83201),o=n(61673);const a={ReviewableFlaggedPost:i.default,ReviewableQueuedPost:s.default,ReviewableUser:o.default};function l(e,t,n,i,s){return new(a[e]||r.default)({reviewable:t,currentUser:n,siteSettings:i,site:s})}},53331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(82099);class i{constructor(e){let{reviewable:t,currentUser:n,siteSettings:r,site:i}=e;this.reviewable=t,this.currentUser=n,this.siteSettings=r,this.site=i}get actor(){return this.reviewable.flagger_username||r.default.t("user_menu.reviewable.deleted_user")}get description(){return r.default.t("user_menu.reviewable.default_item",{reviewable_id:this.reviewable.id})}get icon(){return"flag"}}},89604:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(24434),i=n(53331),s=n(35193),o=n(82099);const a=class extends i.default{get description(){const e=this.reviewable.topic_fancy_title,t=this.reviewable.post_number;return e&&t?(0,r.htmlSafe)(o.default.t("user_menu.reviewable.post_number_with_topic_title",{post_number:t,title:(0,s.emojiUnescape)(e)})):o.default.t("user_menu.reviewable.deleted_post")}}},83201:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(53331),s=n(35193),o=n(62617),a=n(82099);const l=class extends i.default{get actor(){return a.default.t("user_menu.reviewable.queue")}get description(){let e=this.reviewable.topic_fancy_title;return e||(e=(0,o.escapeExpression)(this.reviewable.payload_title)),e=(0,s.emojiUnescape)(e),this.reviewable.is_new_topic?(0,r.htmlSafe)(e):(0,r.htmlSafe)(a.default.t("user_menu.reviewable.new_post_in_topic",{title:e}))}get icon(){return"layer-group"}}},61673:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(53331),i=n(82099);const s=class extends r.default{get description(){return i.default.t("user_menu.reviewable.user_requires_approval",{username:this.reviewable.username})}get icon(){return"user"}}},23318:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(78291);function i(e,t){return(0,r.default)("round",e,t)}},15443:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d,isWorkaroundActive:()=>u});var r=n(71466),i=n.n(r),s=n(34405),o=n(56111),a=n(61369),l=n(12933);let c=!1;function u(){return c}const d=function e(t){let n=(0,a.helperContext)().capabilities;if(!n.isIOS)return;document.addEventListener("scroll",(()=>{!n.isIpadOS&&c&&window.scrollTo(0,0)}));let r=0,u=null;e.blur=function(e){c&&(document.body.classList.remove("ios-safari-composer-hacks"),window.scrollTo(0,r),e?.target?.removeEventListener("blur",p),c=!1)};let d=function(n){u&&("hidden"===document.visibilityState||t.classList.contains("edit-title")||u.classList.contains("select-kit-header")||u.closest(".autocomplete")||"TEXTAREA"===u.nodeName&&document.activeElement===u||u.closest(".d-editor-button-bar")||u.classList.contains("emoji"))||e.blur(n)},p=function(e){(0,o.default)(this,d,e,s.INPUT_DELAY)},h=function(e){void 0===e&&(e=new CustomEvent("no-op")),this.addEventListener("blur",p),t.querySelectorAll(".select-kit.is-expanded > button").forEach((e=>e.click())),t.querySelectorAll(".select-kit > button.is-focused").forEach((e=>e.classList.remove("is-focused"))),window.pageYOffset>0&&(r=window.pageYOffset);let i=n.isIpadOS?350:150;(0,l.default)((()=>{n.isIpadOS&&window.innerHeight-window.visualViewport.height<75||this.disabled||(document.body.classList.add("ios-safari-composer-hacks"),window.scrollTo(0,0),e.preventDefault(),this.focus(),c=!0)}),i)},m=function(e){e&&e.target&&(u=e.target)};function g(e,t){i()(e).data("listening")||(e.addEventListener("touchstart",t),i()(e).data("listening",!0))}function f(){g(t,m),t.querySelectorAll("input[type=text], textarea").forEach((e=>{g(e,h)}))}e.touchstartEvent=function(e){h.bind(e)()},new MutationObserver((function(){(0,o.default)(f,100)})).observe(t,{childList:!0,subtree:!0,attributes:!1,characterData:!1})}},49886:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.scrollingElement;e?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.scrollingElement,t=0;t=e===document.scrollingElement?Math.max(0,window.innerWidth-e.clientWidth):e.offsetWidth-e.clientWidth,e.style.setProperty("--scroll-gap",`${t}px`),e.classList.add("scroll-lock")}(t):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.scrollingElement;e.classList.remove("scroll-lock"),e.style.setProperty("--scroll-gap",null)}(t)}n.r(t),n.d(t,{default:()=>r})},64519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addSearchResultsCallback:()=>x,applySearchAutocomplete:()=>E,getSearchKey:()=>P,isValidSearchTerm:()=>O,logSearchLinkClick:()=>I,reciprocallyRankedList:()=>j,searchContextDescription:()=>C,searchForTerm:()=>S,translateResults:()=>T,updateRecentSearches:()=>D});var r=n(48163),i=n.n(r),s=n(33217),o=n(10425),a=n(3055),l=n(71631),c=n(35193),u=n(20229),d=n(47301),p=n(62617),h=n(56746),m=n(97245),g=n(92635),f=n(7223),b=n(47582),_=n(12757),y=n(21896),w=n(82099);const v=[],k=5;function x(e){v.push(e)}function T(e,t){t=t||{},e.topics=e.topics||[],e.users=e.users||[],e.posts=e.posts||[],e.categories=e.categories||[],e.tags=e.tags||[],e.groups=e.groups||[];const n={};return e.topics=e.topics.map((function(e){return e=g.default.create(e),n[e.id]=e,e})),e.posts=e.posts.map((e=>(e.username&&(e.userPath=(0,u.userPath)(e.username.toLowerCase())),(e=m.default.create(e)).set("topic",n[e.topic_id]),e.blurb=(0,c.emojiUnescape)(e.blurb),e))),e.users=e.users.map((function(e){return f.default.create(e)})),e.categories=e.categories.map((function(e){return h.default.list().findBy("id",e.id||e.model.id)})).compact(),e.groups=e.groups.map((e=>{const t=(0,p.escapeExpression)(e.name),n=(0,p.escapeExpression)(e.full_name||e.display_name),r=(0,s.isEmpty)(e.flair_url)?null:(0,p.escapeExpression)(e.flair_url),i=(0,p.escapeExpression)(e.flair_color),o=(0,p.escapeExpression)(e.flair_bg_color);return{id:e.id,flairUrl:r,flairColor:i,flairBgColor:o,fullName:n,name:t,url:(0,b.default)(`/g/${t}`)}})).compact(),e.tags=e.tags.map((function(e){const t=(0,p.escapeExpression)(e.name);return i().create({id:t,url:(0,b.default)("/tag/"+t)})})).compact(),v.reduce(((e,t)=>e.then((e=>t(e)))),o.Promise.resolve(e)).then((e=>(function(e,t){e.resultTypes=[];const n=e.grouped_search_result;n&&[["topic","posts"],["category","categories"],["tag","tags"],["user","users"],["group","groups"]].forEach((function(r){const i=r[0],s=r[1];if(e[s].length>0){const r="topic"===t.searchContext?.type&&"topic"===i?"post":i,o={results:e[s],componentName:`search-result-${r}`,type:i,more:n[`more_${s}`]};o.more&&"topic"===r&&t.fullSearchUrl&&(o.more=!1,o.moreUrl=t.fullSearchUrl),e.resultTypes.push(o)}}))}(e,t),i().create(e))))}function S(e,t){t||(t={});const n={term:e};t.typeFilter&&(n.type_filter=t.typeFilter),t.searchForId&&(n.search_for_id=!0),t.restrictToArchetype&&(n.restrict_to_archetype=t.restrictToArchetype),t.searchContext&&(n.search_context={type:t.searchContext.type,id:t.searchContext.id,name:t.searchContext.name});let r=(0,a.ajax)("/search/query",{data:n});const i=r.then((e=>T(e,t)));return i.abort=r.abort,i}function C(e,t){if(e)switch(e){case"topic":return w.default.t("search.context.topic");case"user":return w.default.t("search.context.user",{username:t});case"category":return w.default.t("search.context.category",{category:t});case"tag":return w.default.t("search.context.tag",{tag:t});case"private_messages":return w.default.t("search.context.private_messages")}}function P(e){return e.q+"|"+(e.searchContext&&e.searchContext.type||"")+"|"+(e.searchContext&&e.searchContext.id||"")}function O(e,t){return!!e&&e.trim().length>=t.min_search_term_length}function E(e,t){e.autocomplete((0,_.deepMerge)({template:(0,y.findRawTemplate)("category-tag-autocomplete"),key:"#",width:"100%",treatAsTextarea:!0,autoSelectFirstSuggestion:!1,transformComplete:e=>e.text,dataSource:e=>(0,l.search)(e,t)})),t.enable_mentions&&e.autocomplete((0,_.deepMerge)({template:(0,y.findRawTemplate)("user-selector-autocomplete"),key:"@",width:"100%",treatAsTextarea:!0,autoSelectFirstSuggestion:!1,transformComplete:e=>e.username||e.name,dataSource:e=>(0,d.default)({term:e,includeGroups:!0})}))}function D(e,t){let n=Object.assign(e.recent_searches||[]);n.includes(t)?n=n.without(t):n.length===k&&n.popObject(),n.unshiftObject(t),e.set("recent_searches",n)}function I(e){(0,a.ajax)("/search/click",{type:"POST",data:{search_log_id:e.searchLogId,search_result_id:e.searchResultId,search_result_type:e.searchResultType}})}function j(e,t){if(1===e.length)return e;if(e.length!==t.length)throw new Error("The number of lists must match the number of identifiers");if(0===e.length)throw new Error("Lists must not be an empty array");e.forEach((e=>{e.forEach(((e,n)=>{const r=t.map((t=>e[t])).join("_");e.reciprocalRank=1/(n+5),e.itemKey=r}))}));const n=[].concat(...e),r=new Map;return n.forEach((e=>{const t=r.get(e.itemKey);t?t.reciprocalRank+=e.reciprocalRank:r.set(e.itemKey,e)})),Array.from(r.values()).sort(((e,t)=>t.reciprocalRank-e.reciprocalRank))}},9387:(e,t,n)=>{"use strict";n.r(t),n.d(t,{emojiBasePath:()=>o,prioritizeNameFallback:()=>s,prioritizeNameInUx:()=>i});var r=n(61369);function i(e){return!(0,r.helperContext)().siteSettings.prioritize_username_in_ux&&e&&e.trim().length>0}function s(e,t){let n=(0,r.helperContext)().siteSettings;return n.display_name_on_posts&&!n.prioritize_username_in_ux&&e||t}function o(){let e=(0,r.helperContext)().siteSettings;return""===e.external_emoji_url?"/images/emoji":e.external_emoji_url}},25477:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});let r={},i=[];const s={addSharingId(e){i.push(e)},addSource(e){e.faIcon&&(e.icon=e.faIcon.replace("fa-",""),delete e.faIcon),r[e.id]=e},shareSource(e,t){if(e.clickHandler)e.clickHandler(t.url,t.title);else{const n=e.generateUrl(t.url,t.title,t.quote),r={menubar:"no",toolbar:"no",resizable:"yes",scrollbars:"yes",width:600,height:e.popupHeight||315},i=Object.keys(r).map((e=>`${e}=${r[e]}`)).join(",");e.shouldOpenInPopup?window.open(n,"",i):"email"===e.id?window.location.href=n:window.open(n,"_blank")}},activeSources(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("|").concat(i).map((e=>r[e])).compact();return e?t.filter((e=>e.showInPrivateContext)):t},_reset(){r={},i=[]}}},2223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(37080);function i(e,t){if("string"!=typeof e)throw new Error("`discourse/lib/show-modal` can only be used with the legacy controller-based API. To use the new component-based API, inject the modal service and call modal.show(). https://meta.discourse.org/t/268057");t=t||{};let n=(0,r.getOwnerWithFallback)(this);if(!n.isDestroying&&!n.isDestroyed)return n.lookup("service:modal").show(e,t)}},76076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ADMIN_NAV_MAP:()=>r});const r=[{name:"plugins",route:"adminPlugins.index",label:"admin.plugins.title",links:[{name:"admin_installed_plugins",route:"adminPlugins",label:"admin.plugins.installed",icon:"puzzle-piece"}]},{name:"email",text:"Emails",links:[{name:"admin_email",route:"adminEmail.index",label:"admin.email.settings",icon:"cog"},{name:"admin_email_sent",route:"adminEmail.sent",label:"admin.email.sent",icon:"arrow-right"},{name:"admin_email_skipped",route:"adminEmail.skipped",label:"admin.email.skipped",icon:"angle-double-right"},{name:"admin_email_bounced",route:"adminEmail.bounced",label:"admin.email.bounced",icon:"times"},{name:"admin_email_received",route:"adminEmail.received",label:"admin.email.received",icon:"inbox"},{name:"admin_email_rejected",route:"adminEmail.rejected",label:"admin.email.rejected",icon:"ban"},{name:"admin_email_preview_summary",route:"adminEmail.previewDigest",label:"admin.email.preview_digest",icon:"notification.private_message"},{name:"admin_email_advanced_test",route:"adminEmail.advancedTest",label:"admin.email.advanced_test.title",icon:"wrench"}]},{name:"logs",label:"admin.logs.title",links:[{name:"admin_logs_staff_action_logs",route:"adminLogs.staffActionLogs",label:"admin.logs.staff_actions.title",icon:"user-shield"},{name:"admin_logs_screened_emails",route:"adminLogs.screenedEmails",label:"admin.logs.screened_emails.title",icon:"envelope"},{name:"admin_logs_screened_ip_addresses",route:"adminLogs.screenedIpAddresses",label:"admin.logs.screened_ips.title",icon:"globe"},{name:"admin_logs_screened_urls",route:"adminLogs.screenedUrls",label:"admin.logs.screened_urls.title",icon:"globe"},{name:"admin_logs_search_logs",route:"adminSearchLogs",label:"admin.logs.search_logs.title",icon:"search"},{name:"admin_logs_error_logs",href:(0,n(47582).default)("/logs"),label:"admin.logs.logster.title",icon:"external-link-alt"}]},{name:"customize",label:"admin.customize.title",links:[{name:"admin_customize_themes",route:"adminCustomizeThemes",label:"admin.customize.theme.title",icon:"paint-brush"},{name:"admin_customize_colors",route:"adminCustomize.colors",label:"admin.customize.colors.title",icon:"palette"},{name:"admin_customize_site_texts",route:"adminSiteText",label:"admin.site_text.title",icon:"language"},{name:"admin_customize_email_templates",route:"adminCustomizeEmailTemplates",label:"admin.email.templates_title",icon:"envelope"},{name:"admin_customize_email_style",route:"adminCustomizeEmailStyle",label:"admin.customize.email_style.title",icon:"envelope"},{name:"admin_customize_user_fields",route:"adminUserFields",label:"admin.user_fields.title",icon:"user-edit"},{name:"admin_customize_emojis",route:"adminEmojis",label:"admin.emoji.title",icon:"discourse-emojis"},{name:"admin_customize_permalinks",route:"adminPermalinks",label:"admin.permalink.title",icon:"link"},{name:"admin_customize_embedding",route:"adminEmbedding",label:"admin.embedding.title",icon:"code"},{name:"admin_customize_watched_words",route:"adminWatchedWords",label:"admin.watched_words.title",icon:"eye"}]},{name:"api",label:"admin.api.title",links:[{name:"admin_api_keys",route:"adminApiKeys",icon:"key",label:"admin.api.keys"},{name:"admin_api_web_hooks",route:"adminWebHooks",label:"admin.web_hooks.title",icon:"globe"}]},{name:"backups",label:"admin.backups.menu.backups",links:[{name:"admin_backups",route:"admin.backups.index",label:"admin.backups.menu.backups",icon:"archive"},{name:"admin_backups_logs",route:"admin.backups.logs",label:"admin.backups.menu.logs",icon:"stream"}]}]},36693:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addAdminSidebarSectionLink:()=>b,clearAdditionalAdminSidebarSectionLinks:()=>m,default:()=>_,useAdminNavConfig:()=>f});var r=n(49246),i=n(33217),s=n(13369),o=n(76076),a=n(33693),l=n(33888),c=n(84826),u=n(78715),d=n(37080),p=n(82099);let h={};function m(){h={}}class g extends c.default{constructor(e){let{adminSidebarNavLink:t}=e;super(...arguments),this.adminSidebarNavLink=t}get name(){return this.adminSidebarNavLink.name}get classNames(){return"admin-sidebar-nav-link"}get route(){return this.adminSidebarNavLink.route}get href(){return this.adminSidebarNavLink.href}get models(){return this.adminSidebarNavLink.routeModels}get text(){return this.adminSidebarNavLink.label?p.default.t(this.adminSidebarNavLink.label):this.adminSidebarNavLink.text}get prefixType(){return"icon"}get prefixValue(){return this.adminSidebarNavLink.icon}get title(){return this.adminSidebarNavLink.text}}function f(e){e=[{text:"",name:"root",hideSectionHeader:!0,links:[{name:"back_to_forum",route:"discovery.latest",label:"admin.back_to_forum",icon:"arrow-left"},{name:"admin_dashboard",route:"admin.dashboard",label:"admin.dashboard.title",icon:"home"},{name:"admin_site_settings",route:"adminSiteSettings",label:"admin.site_settings.title",icon:"cog"},{name:"admin_users",route:"adminUsers",label:"admin.users.title",icon:"users"},{name:"admin_badges",route:"adminBadges",label:"admin.badges.title",icon:"certificate"}]}].concat(e);for(const[t,n]of Object.entries(h)){const r=e.findBy("name",t);r&&n.length&&r.links.push(...n)}return e}function b(e,t){h.hasOwnProperty(e)||(h[e]=[]),t.name=`admin_additional_${e}_${t.name}`,t.href||t.route?t.label||t.text?t.label&&"string"!=typeof p.default.lookup(t.label)?console.debug("[AdminSidebar]",`Custom link ${e}_${t.name} must have a valid I18n label, got ${t.label}`):h[e].push(t):console.debug("[AdminSidebar]",`Custom link ${e}_${t.name} must have either label (which is an I18n key) or text`):console.debug("[AdminSidebar]",`Custom link ${e}_${t.name} must have either href or route`)}class _ extends a.default{constructor(){super(...arguments),(0,r.Z)(this,"key",u.ADMIN_PANEL),(0,r.Z)(this,"hidden",!0)}get sections(){const e=(0,d.getOwnerWithFallback)().lookup("service:site-settings");if((0,i.isEmpty)(e.admin_sidebar_enabled_groups))return[];this.adminSidebarExperimentStateManager=(0,d.getOwnerWithFallback)(this).lookup("service:admin-sidebar-experiment-state-manager");const t=this.adminSidebarExperimentStateManager.navConfig||o.ADMIN_NAV_MAP;return t.findBy("name","plugins").links.push(...(s.default.get("enabledPluginAdminRoutes")||[]).map((e=>({name:`admin_plugin_${e.location}`,route:`adminPlugins.${e.location}`,label:e.label,icon:"cog"})))),e.experimental_form_templates&&t.findBy("name","customize").links.push({name:"admin_customize_form_templates",route:"adminCustomizeFormTemplates",label:"admin.form_templates.nav_title",icon:"list"}),f(t).map((e=>function(e){const t=class extends l.default{constructor(){super(...arguments),this.adminNavSectionData=e,this.hideSectionHeader=e.hideSectionHeader}get sectionLinks(){return this.adminNavSectionData.links}get name(){return`admin-nav-section-${this.adminNavSectionData.name}`}get title(){return this.adminNavSectionData.text}get text(){return this.adminNavSectionData.label?p.default.t(this.adminNavSectionData.label):this.adminNavSectionData.text}get links(){return this.sectionLinks.map((e=>new g({adminSidebarNavLink:e})))}get displaySection(){return!0}};return t}(e)))}}},67639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{constructor(){let{topicTrackingState:e,currentUser:t,appEvents:n,router:r,siteSettings:i,inMoreDrawer:s,overridenName:o,overridenIcon:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.router=r,this.topicTrackingState=e,this.currentUser=t,this.appEvents=n,this.siteSettings=i,this.inMoreDrawer=s,this.overridenName=o,this.overridenIcon=a}onTopicTrackingStateChange(){}teardown(){}get name(){this._notImplemented()}get shouldDisplay(){return!0}get route(){this._notImplemented()}get href(){}get model(){}get models(){}get query(){return{}}get currentWhen(){}get title(){this._notImplemented()}get text(){this._notImplemented()}get badgeText(){}get prefixType(){return"icon"}get defaultPrefixValue(){return"link"}get prefixValue(){return this.overridenIcon||this.defaultPrefixValue}_notImplemented(){throw"not implemented"}}},33693:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s,o=n(94664),a=n(54001),l=n(23183);function c(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let u=(s=new WeakSet,r=class{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=s),t.add(e),(0,o.Z)(this,"sections",i,this)}get hidden(){return!1}get key(){c(this,s,d).call(this)}get switchButtonLabel(){this.hidden||c(this,s,d).call(this)}get switchButtonIcon(){this.hidden||c(this,s,d).call(this)}get switchButtonDefaultUrl(){this.hidden||c(this,s,d).call(this)}},i=(0,a.Z)(r.prototype,"sections",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r);function d(){throw"not implemented"}},84826:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{get name(){this._notImplemented()}get classNames(){return""}get route(){}get href(){}get model(){}get models(){}get currentWhen(){}get title(){this._notImplemented()}get text(){this._notImplemented()}get contentCSSClass(){}get prefixType(){}get prefixValue(){}get prefixColor(){}get prefixBadge(){}get prefixCSSClass(){}get suffixType(){}get suffixValue(){}get suffixCSSClass(){}get hoverType(){}get hoverValue(){}get hoverAction(){}get hoverTitle(){}_notImplemented(){throw"not implemented"}}},33888:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{get name(){this._notImplemented()}get text(){this._notImplemented()}get actions(){}get actionsIcon(){}get links(){}get displaySection(){return!0}_notImplemented(){throw"not implemented"}}},24438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get name(){return"about"}get route(){return"about"}get title(){return i.default.t("sidebar.sections.community.links.about.title")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get defaultPrefixValue(){return"info-circle"}}},97327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get name(){return"badges"}get route(){return"badges"}get title(){return i.default.t("sidebar.sections.community.links.badges.title")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_badges}get defaultPrefixValue(){return"certificate"}}},8229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a,l,c=n(94664),u=n(32758),d=n(54001),p=n(23183),h=n(67639),m=n(82099);function g(e,t,n){f(e,t),t.set(e,n)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let _=(o=new WeakSet,a=new WeakMap,l=new WeakMap,r=class extends h.default{constructor(){var e;super(...arguments),g(this,l,{get:v,set:void 0}),g(this,a,{get:w,set:void 0}),f(this,e=o),e.add(this),(0,c.Z)(this,"totalUnread",i,this),(0,c.Z)(this,"totalNew",s,this),b(this,o,y).call(this)}onTopicTrackingStateChange(){b(this,o,y).call(this)}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}get name(){return"everything"}get query(){return{f:void 0}}get title(){return m.default.t("sidebar.sections.community.links.topics.title")}get text(){return m.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get currentWhen(){return"discovery.latest discovery.new discovery.unread discovery.top"}get badgeText(){if(this.showCount)return(0,u.Z)(this,l)&&(0,u.Z)(this,a)>0?(0,u.Z)(this,a).toString():this.totalUnread>0?m.default.t("sidebar.unread_count",{count:this.totalUnread}):this.totalNew>0?m.default.t("sidebar.new_count",{count:this.totalNew}):void 0}get route(){if(this.currentUser?.sidebarLinkToFilteredList){if((0,u.Z)(this,l)&&(0,u.Z)(this,a)>0)return"discovery.new";if(this.totalUnread>0)return"discovery.unread";if(this.totalNew>0)return"discovery.new"}return"discovery.latest"}get defaultPrefixValue(){return"layer-group"}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(!this.showCount&&(this.totalUnread||this.totalNew))return"circle"}},i=(0,d.Z)(r.prototype,"totalUnread",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=(0,d.Z)(r.prototype,"totalNew",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),r);function y(){this.currentUser&&(this.totalUnread=this.topicTrackingState.countUnread(),(0===this.totalUnread||(0,u.Z)(this,l))&&(this.totalNew=this.topicTrackingState.countNew()))}function w(){return this.totalUnread+this.totalNew}function v(){return!!this.currentUser?.new_new_view_enabled}},24682:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get name(){return"faq"}get route(){return"faq"}get href(){return this.siteSettings.faq_url}get title(){return i.default.t("sidebar.sections.community.links.faq.title")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get defaultPrefixValue(){return"question-circle"}}},49839:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get name(){return"groups"}get route(){return"groups"}get title(){return i.default.t("sidebar.sections.community.links.groups.title")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_group_directory}get defaultPrefixValue(){return"user-friends"}}},12145:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r,i,s,o,a,l,c,u,d,p,h,m=n(94664),g=n(49246),f=n(54001),b=n(23183),_=n(72326),y=n(17579),w=n(24438),v=n(97327),k=n(8229),x=n(24682),T=n(49839),S=n(2049),C=n(47786),P=n(99223),O=n(67099),E=n(2129),D=n(95735),I=n(71299);function j(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Z(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}const A={"/latest":k.default,"/about":w.default,"/u":S.default,"/faq":x.default,"/my/activity":D.default,"/review":I.default,"/badges":v.default,"/admin":E.default,"/admin-revamp":O.default,"/g":T.default};let M=(p=new WeakSet,h=new WeakSet,r=class{constructor(e){let{section:t,owner:n}=e;j(this,h),j(this,p),(0,m.Z)(this,"appEvents",i,this),(0,m.Z)(this,"currentUser",s,this),(0,m.Z)(this,"modal",o,this),(0,m.Z)(this,"router",a,this),(0,m.Z)(this,"siteSettings",l,this),(0,m.Z)(this,"topicTrackingState",c,this),(0,m.Z)(this,"links",u,this),(0,m.Z)(this,"moreLinks",d,this),(0,g.Z)(this,"hideSectionHeader",!0),(0,_.setOwner)(this,n),this.section=t,this.slug=t.slug,this.callbackId=this.topicTrackingState?.onStateChange((()=>{this.links.forEach((e=>{e.onTopicTrackingStateChange&&e.onTopicTrackingStateChange()}))})),this.apiLinks=C.customSectionLinks.concat(C.secondaryCustomSectionLinks).map((e=>Z(this,h,z).call(this,e,{inMoreDrawer:!0}))),this.links=this.section.links.reduce(((e,t)=>{if("primary"===t.segment){const n=Z(this,p,N).call(this,t);n&&e.push(n)}return e}),[]),this.moreLinks=this.section.links.reduce(((e,t)=>{if("secondary"===t.segment){const n=Z(this,p,N).call(this,t,!0);n&&e.push(n)}return e}),[]).concat(this.apiLinks)}teardown(){this.callbackId&&this.topicTrackingState.offStateChange(this.callbackId),[...this.links,...this.moreLinks].forEach((e=>{e.teardown?.()}))}},i=(0,f.Z)(r.prototype,"appEvents",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,f.Z)(r.prototype,"currentUser",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,f.Z)(r.prototype,"modal",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,f.Z)(r.prototype,"router",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,f.Z)(r.prototype,"siteSettings",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,f.Z)(r.prototype,"topicTrackingState",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,f.Z)(r.prototype,"links",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,f.Z)(r.prototype,"moreLinks",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=A[e.value];return n?Z(this,h,z).call(this,n,t,e.name,e.icon):new P.default(e,this,this.router)}function z(e,t,n,r){if(!this.router.isDestroying)return new e({topicTrackingState:this.topicTrackingState,currentUser:this.currentUser,appEvents:this.appEvents,router:this.router,siteSettings:this.siteSettings,inMoreDrawer:t,overridenName:n,overridenIcon:r})}},2049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get name(){return"users"}get route(){return"users"}get title(){return i.default.t("sidebar.sections.community.links.users.title")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return this.siteSettings.enable_user_directory&&(this.currentUser||!this.siteSettings.hide_user_profiles_from_public)}get defaultPrefixValue(){return"users"}}},47786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addSectionLink:()=>a,customSectionLinks:()=>s,resetDefaultSectionLinks:()=>l,secondaryCustomSectionLinks:()=>o});var r=n(67639),i=n(47985);let s=[],o=[];function a(e,t){const n=t?o:s;if("function"==typeof e)n.push(e.call(this,r.default));else{const t=class extends r.default{constructor(){super(...arguments),e.href&&(this.routeInfoHelper=new i.default(this.router,e.href))}get name(){return e.name}get route(){return e.href?this.routeInfoHelper.route:e.route}get models(){if(e.href)return this.routeInfoHelper.models}get query(){if(e.href)return this.routeInfoHelper.query}get text(){return e.text}get title(){return e.title}get prefixValue(){return e.icon||super.prefixValue}};n.push(t)}}function l(){s.length=0,o.length=0}},62362:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addSidebarPanel:()=>h,addSidebarSection:()=>m,currentPanelKey:()=>p,customPanels:()=>d,resetPanelSections:()=>g,resetSidebarPanels:()=>f});var r=n(49246),i=n(33693),s=n(33888),o=n(84826),a=n(78715),l=n(82099),c=n(36693);class u{constructor(){(0,r.Z)(this,"sections",[])}get key(){return"main"}get switchButtonLabel(){return l.default.t("sidebar.panels.forum.label")}get switchButtonIcon(){return"random"}get switchButtonDefaultUrl(){return"/"}}let d,p;function h(e){const t=e.call(this,i.default);d.push(new t)}function m(e,t){const n=d.findBy("key",t);if(!n)return console.warn(`Error adding section to ${t} because panel doens't exist. Check addSidebarPanel API.`);n.sections.push(e.call(this,s.default,o.default))}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=d.findBy("key",e);t?(r.sections=[],n(t)):r.sections=[]}function f(){d=[new u,new c.default],p=a.MAIN_PANEL}f()},61766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{canDisplayCategory:()=>i,hasDefaultSidebarCategories:()=>s,hasDefaultSidebarTags:()=>o});var r=n(56746);function i(e,t){return!!t.allow_uncategorized_topics||!r.default.isUncategorized(e)}function s(e){return e.default_navigation_menu_categories.length>0}function o(e){return e.default_navigation_menu_tags.length>0}},78715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ADMIN_PANEL:()=>o,COMBINED_MODE:()=>r,MAIN_PANEL:()=>s,SEPARATED_MODE:()=>i});const r="combined",i="separated",s="main",o="admin"},47985:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(32758);var i=new WeakMap;class s{constructor(e,t){var n,r,s;s={get:o,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=i),r.set(n,s),this.routeInfo=e.recognize(e.rootURL.replace(/\/$/,"")+t)}get route(){return this.routeInfo.name}get models(){return(0,r.Z)(this,i)}get query(){return this.routeInfo.queryParams}}function o(){let e=[],t=this.routeInfo;do{const{params:n,paramNames:r}=t;e=[...r.map((e=>n[e])),...e]}while(t=t.parent);return e}},99223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(47985),c=n(62617);let u=(r=class{constructor(e,t,n){let{external:r,full_reload:o,icon:a,id:u,name:d,value:p}=e;if((0,s.Z)(this,"linkDragCss",i,this),this.external=r,this.fullReload=o,this.prefixValue=a,this.id=u,this.name=d,this.text=d,this.value=p,this.section=t,this.withAnchor=p.match(/#\w+$/gi),!this.externalOrFullReload){const e=new l.default(n,p);"discovery.index"===e.route?this.route=`discovery.${(0,c.defaultHomepage)()}`:this.route=e.route,this.models=e.models,this.query=e.query}}get shouldDisplay(){return!0}get externalOrFullReload(){return this.external||this.fullReload||this.withAnchor}},i=(0,o.Z)(r.prototype,"linkDragCss",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},51614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o,a,l,c=n(94664),u=n(54001),d=n(23183),p=n(72326),h=n(17579),m=n(54052),g=n(3055),f=n(99223),b=n(57555),_=n(82099);let y=(r=class{constructor(e){let{section:t,owner:n}=e;(0,c.Z)(this,"currentUser",i,this),(0,c.Z)(this,"modal",s,this),(0,c.Z)(this,"router",o,this),(0,c.Z)(this,"dragCss",a,this),(0,c.Z)(this,"links",l,this),(0,p.setOwner)(this,n),this.section=t,this.slug=t.slug,this.links=this.section.links.map((e=>new f.default(e,this,this.router)))}get decoratedTitle(){return this.section.title}get indicatePublic(){return this.section.public&&this.currentUser?.staff}get headerActions(){if(!this.section.public||this.currentUser?.admin)return[{action:()=>this.modal.show(m.default,{model:this}),title:_.default.t("sidebar.sections.custom.edit")}]}get headerActionIcon(){return"pencil-alt"}disable(){this.dragCss="disabled"}enable(){this.dragCss=null}moveLinkDown(e){const t=this.links.indexOf(e)+1;this.links=this.links.removeObject(e),this.links.splice(t,0,e)}moveLinkUp(e){const t=this.links.indexOf(e)-1;this.links=this.links.removeObject(e),this.links.splice(t,0,e)}reorder(){return(0,g.ajax)("/sidebar_sections/reorder",{type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({sidebar_section_id:this.section.id,links_order:this.links.map((e=>e.id))})})}},i=(0,u.Z)(r.prototype,"currentUser",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.Z)(r.prototype,"modal",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,u.Z)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(r.prototype,"dragCss",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,u.Z)(r.prototype,"links",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(r.prototype,"disable",[b.bind],Object.getOwnPropertyDescriptor(r.prototype,"disable"),r.prototype),(0,u.Z)(r.prototype,"enable",[b.bind],Object.getOwnPropertyDescriptor(r.prototype,"enable"),r.prototype),(0,u.Z)(r.prototype,"moveLinkDown",[b.bind],Object.getOwnPropertyDescriptor(r.prototype,"moveLinkDown"),r.prototype),(0,u.Z)(r.prototype,"moveLinkUp",[b.bind],Object.getOwnPropertyDescriptor(r.prototype,"moveLinkUp"),r.prototype),(0,u.Z)(r.prototype,"reorder",[b.bind],Object.getOwnPropertyDescriptor(r.prototype,"reorder"),r.prototype),r)},39718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O,registerCustomCategoryLockIcon:()=>x,registerCustomCategorySectionLinkPrefix:()=>C,registerCustomCountable:()=>w,resetCustomCategoryLockIcon:()=>T,resetCustomCategorySectionLinkPrefix:()=>P,resetCustomCountables:()=>v});var r,i,s,o,a=n(94664),l=n(32758),c=n(54001),u=n(23183),d=n(48163),p=n(56746),h=n(57555),m=n(82099);function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}const b={propertyName:"unreadAndNewCount",badgeTextFunction:e=>e.toString(),route:"discovery.newCategory",refreshCountFunction:e=>{let{topicTrackingState:t,category:n}=e;return t.countNewAndUnread({categoryId:n.id})}},_=[{propertyName:"totalUnread",badgeTextFunction:e=>m.default.t("sidebar.unread_count",{count:e}),route:"discovery.unreadCategory",refreshCountFunction:e=>{let{topicTrackingState:t,category:n}=e;return t.countUnread({categoryId:n.id})}},{propertyName:"totalNew",badgeTextFunction:e=>m.default.t("sidebar.new_count",{count:e}),route:"discovery.newCategory",refreshCountFunction:e=>{let{topicTrackingState:t,category:n}=e;return t.countNew({categoryId:n.id})}}],y=[];function w(e){let{badgeTextFunction:t,route:n,routeQuery:r,shouldRegister:i,refreshCountFunction:s,prioritizeOverDefaults:o}=e;const a=y.length+1;y.push({propertyName:`customCountableProperty${a}`,badgeTextFunction:t,route:n,routeQuery:r,shouldRegister:i,refreshCountFunction:s,prioritizeOverDefaults:o})}function v(){y.length=0}let k;function x(e){k=e}function T(){k=null}let S={};function C(e){let{categoryId:t,prefixValue:n,prefixType:r,prefixColor:i}=e;S[t]={prefixValue:n,prefixType:r,prefixColor:i}}function P(){for(let e in S)S.hasOwnProperty(e)&&delete S[e]}let O=(s=new WeakSet,o=new WeakMap,r=class{constructor(e){let{category:t,topicTrackingState:n,currentUser:r}=e;var l,c;c={get:D,set:void 0},g(this,l=o),l.set(this,c),function(e,t){g(e,t),t.add(e)}(this,s),(0,a.Z)(this,"activeCountable",i,this),this.category=t,this.topicTrackingState=n,this.currentUser=r,this.countables=f(this,s,E).call(this),this.refreshCounts()}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}refreshCounts(){this.countables=f(this,s,E).call(this),this.activeCountable=this.countables.find((e=>{const t=e.refreshCountFunction({topicTrackingState:this.topicTrackingState,category:this.category});return(0,d.set)(this,e.propertyName,t),t>0}))}get name(){return this.category.slug}get model(){return`${p.default.slugFor(this.category)}/${this.category.id}`}get currentWhen(){return"discovery.unreadCategory discovery.topCategory discovery.newCategory discovery.latestCategory discovery.category discovery.categoryNone discovery.categoryAll"}get title(){return this.category.description_text}get text(){return this.category.name}get prefixType(){return S[this.category.id]?.prefixType||"span"}get prefixValue(){const e=S[this.category.id]?.prefixValue;return e||(this.category.parentCategory?.color?[this.category.parentCategory?.color,this.category.color]:[this.category.color])}get prefixColor(){return S[this.category.id]?.prefixColor||this.category.color}get prefixBadge(){if(this.category.read_restricted)return k||"lock"}get badgeText(){if(!this.showCount)return;const e=this.activeCountable;return e?e.badgeTextFunction((0,d.get)(this,e.propertyName)):void 0}get route(){if(this.currentUser?.sidebarLinkToFilteredList){const e=this.activeCountable;if(e)return e.route}return"discovery.category"}get query(){if(this.currentUser?.sidebarLinkToFilteredList){const e=this.activeCountable;if(e?.routeQuery)return e.routeQuery}}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(!this.showCount&&this.activeCountable)return"circle"}},i=(0,c.Z)(r.prototype,"activeCountable",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.Z)(r.prototype,"refreshCounts",[h.bind],Object.getOwnPropertyDescriptor(r.prototype,"refreshCounts"),r.prototype),r);function E(){const e=[];return(0,l.Z)(this,o)?e.push(b):e.push(..._),y.length>0&&y.forEach((t=>{t.shouldRegister&&!t.shouldRegister({category:this.category})||(t?.prioritizeOverDefaults({category:this.category,currentUser:this.currentUser})?e.unshift(t):e.push(t))})),e}function D(){return!!this.currentUser?.new_new_view_enabled}},67099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(17579),l=n(67639),c=n(82099);let u=(r=class extends l.default{constructor(){super(...arguments),(0,s.Z)(this,"siteSettings",i,this)}get name(){return"admin-revamp"}get route(){return"admin-revamp"}get title(){return c.default.t("sidebar.sections.community.links.admin.content")}get text(){return c.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return!!this.currentUser&&this.currentUser.staff&&this.siteSettings.userInAnyGroups("admin_sidebar_enabled_groups",this.currentUser)}get defaultPrefixValue(){return"star"}},i=(0,o.Z)(r.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},2129:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get name(){return"admin"}get route(){return"admin"}get title(){return i.default.t("sidebar.sections.community.links.admin.content")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get shouldDisplay(){return!!this.currentUser?.staff}get defaultPrefixValue(){return"wrench"}}},10078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(94664),a=n(54001),l=n(48163),c=n(17579),u=n(54052),d=n(12145),p=n(82099);let h=(r=class extends d.default{constructor(){super(...arguments),(0,o.Z)(this,"modal",i,this),(0,o.Z)(this,"navigationMenu",s,this)}moreSectionButtonAction(){return this.modal.show(u.default,{model:this})}get moreSectionButtonText(){return p.default.t("sidebar.sections.community.edit_section."+(this.navigationMenu.isDesktopDropdownMode?"header_dropdown":"sidebar"))}get moreSectionButtonIcon(){return"pencil-alt"}},i=(0,a.Z)(r.prototype,"modal",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,a.Z)(r.prototype,"navigationMenu",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(r.prototype,"moreSectionButtonAction",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"moreSectionButtonAction"),r.prototype),r)},95735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(67639),c=n(82099);const u="user-drafts:changed";let d=(r=class extends l.default{constructor(){super(...arguments),(0,s.Z)(this,"draftCount",i,this),this.shouldDisplay&&this.appEvents.on(u,this,this._updateDraftCount)}teardown(){this.shouldDisplay&&this.appEvents.off(u,this,this._updateDraftCount)}_updateDraftCount(){this.draftCount=this.currentUser.draft_count}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}get name(){return"my-posts"}get route(){return this._hasDraft?"userActivity.drafts":"userActivity.index"}get currentWhen(){if(this._hasDraft)return"userActivity.index userActivity.drafts"}get model(){return this.currentUser}get title(){return this._hasDraft?c.default.t("sidebar.sections.community.links.my_posts.title_drafts"):c.default.t("sidebar.sections.community.links.my_posts.title")}get text(){return this._hasDraft&&this.currentUser?.new_new_view_enabled?c.default.t("sidebar.sections.community.links.my_posts.content_drafts"):c.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase().replace(" ","_")}.content`,{defaultValue:this.overridenName})}get badgeText(){if(this.showCount&&this._hasDraft)return this.currentUser.new_new_view_enabled?this.draftCount.toString():c.default.t("sidebar.sections.community.links.my_posts.draft_count",{count:this.draftCount})}get _hasDraft(){return this.draftCount>0}get defaultPrefixValue(){return this._hasDraft&&this.currentUser?.new_new_view_enabled?"pencil-alt":"user"}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(this._hasDraft&&!this.showCount)return"circle"}get shouldDisplay(){return this.currentUser}},i=(0,o.Z)(r.prototype,"draftCount",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.currentUser?.draft_count}}),r)},71299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(67639),i=n(82099);class s extends r.default{get shouldDisplay(){return!!this.currentUser?.can_review}get name(){return"review"}get route(){return"review"}get title(){return i.default.t("sidebar.sections.community.links.review.title")}get text(){return i.default.t(`sidebar.sections.community.links.${this.overridenName.toLowerCase()}.content`,{defaultValue:this.overridenName})}get badgeText(){if(this.currentUser?.get("reviewable_count")>0)return i.default.t("sidebar.sections.community.links.review.pending_count",{count:this.currentUser.reviewable_count})}get defaultPrefixValue(){return"flag"}}},44692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(49246),i=n(39320),s=n(82099);class o extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"routeNames",new Set(["userPrivateMessages.group","userPrivateMessages.group.index","userPrivateMessages.group.unread","userPrivateMessages.group.new","userPrivateMessages.group.archive"]))}get name(){return`group-messages-${this.type}`}get class(){return this.group.name}get route(){return this._isInbox?"userPrivateMessages.group":`userPrivateMessages.group.${this.type}`}get currentWhen(){if(this._isInbox)return[...this.routeNames].join(" ")}get models(){return[this.currentUser,this.group.name]}get text(){return this._isInbox?this.group.name:this.count>0?s.default.t(`sidebar.sections.messages.links.${this.type}_with_count`,{count:this.count}):s.default.t(`sidebar.sections.messages.links.${this.type}`)}pageChanged(e){let{currentRouteName:t,currentRouteParentParams:n,privateMessageTopic:r}=e;this._isInbox||(r?.allowedGroups?.some((e=>e.name===this.group.name))?this.setDisplayState=!0:this.setDisplayState=this.routeNames.has(t)&&n.name.toLowerCase()===this.group.name.toLowerCase())}}},39320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s,o=n(94664),a=n(54001),l=n(23183),c=n(79771);let u=(r=class{constructor(e){let{group:t,currentUser:n,type:r,pmTopicTrackingState:a}=e;(0,o.Z)(this,"shouldDisplay",i,this),(0,o.Z)(this,"count",s,this),this.group=t,this.currentUser=n,this.type=r,this.pmTopicTrackingState=a}refreshCount(){this._refreshCount()}_refreshCount(){this.shouldDisplay&&this._shouldTrack&&(this.count=this.pmTopicTrackingState.lookupCount(this.type,{inboxFilter:this.group?"group":"user",groupName:this.group?.name}))}set setDisplayState(e){const t=this.shouldDisplay!==e;this.shouldDisplay=e,t&&this._refreshCount()}get inboxFilter(){throw"not implemented"}expand(){this._isInbox||(this.setDisplayState=!0)}collapse(){this._isInbox||(this.setDisplayState=!1)}pageChanged(e){let{currentRouteName:t,currentRouteParams:n,privateMessageTopic:r}=e;throw"not implemented"}get _isInbox(){return this.type===c.INBOX}get _shouldTrack(){return this.type===c.NEW||this.type===c.UNREAD}get prefixType(){if(this._isInbox)return"icon"}get prefixValue(){if(this._isInbox)return"inbox"}},i=(0,a.Z)(r.prototype,"shouldDisplay",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this._isInbox}}),s=(0,a.Z)(r.prototype,"count",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),r)},35201:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(49246),i=n(39320),s=n(82099);class o extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"routeNames",new Set(["userPrivateMessages.user","userPrivateMessages.user.index","userPrivateMessages.user.unread","userPrivateMessages.user.sent","userPrivateMessages.user.new","userPrivateMessages.user.archive"]))}get name(){return`personal-messages-${this.type}`}get class(){return"personal-messages"}get route(){return this._isInbox?"userPrivateMessages.user.index":`userPrivateMessages.user.${this.type}`}get currentWhen(){if(this._isInbox)return[...this.routeNames].join(" ")}get model(){return this.currentUser}get text(){return this.count>0?s.default.t(`sidebar.sections.messages.links.${this.type}_with_count`,{count:this.count}):s.default.t(`sidebar.sections.messages.links.${this.type}`)}pageChanged(e){let{currentRouteName:t,privateMessageTopic:n}=e;this._isInbox||(this.setDisplayState=0===n?.allowedGroups?.length||this.routeNames.has(t))}}},74184:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,registerCustomTagSectionLinkPrefixIcon:()=>s,resetCustomTagSectionLinkPrefixIcons:()=>o});var r=n(53134);let i={};function s(e){let{tagName:t,prefixValue:n,prefixColor:r}=e;i[t]={prefixValue:n,prefixColor:r}}function o(){for(let e in i)i.hasOwnProperty(e)&&delete i[e]}class a{constructor(e){let{tag:t,currentUser:n}=e;this.tag=t,this.tagName=t.name,this.currentUser=n}get name(){return this.tagName}get text(){return this.tagName}get title(){return(0,r.default)(this.tag.description)}get prefixType(){return"icon"}get prefixValue(){return i[this.tagName]?.prefixValue||"tag"}get prefixColor(){return i[this.tagName]?.prefixColor}}},2616:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(74184);class i extends r.default{get models(){return[this.currentUser,this.tagName]}get route(){return"userPrivateMessages.tags.show"}}},75965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a,l=n(94664),c=n(32758),u=n(54001),d=n(23183),p=n(74184),h=n(57555),m=n(82099);function g(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}let f=(o=new WeakMap,a=new WeakMap,r=class extends p.default{constructor(e){let{topicTrackingState:t}=e;super(...arguments),g(this,a,{get:_,set:void 0}),g(this,o,{get:b,set:void 0}),(0,l.Z)(this,"totalUnread",i,this),(0,l.Z)(this,"totalNew",s,this),this.topicTrackingState=t,this.refreshCounts()}refreshCounts(){this.totalUnread=this.topicTrackingState.countUnread({tagId:this.tagName}),(0===this.totalUnread||(0,c.Z)(this,a))&&(this.totalNew=this.topicTrackingState.countNew({tagId:this.tagName}))}get showCount(){return this.currentUser?.sidebarShowCountOfNewItems}get models(){return[this.tagName]}get route(){if(this.currentUser?.sidebarLinkToFilteredList){if((0,c.Z)(this,a)&&(0,c.Z)(this,o)>0)return"tag.showNew";if(this.totalUnread>0)return"tag.showUnread";if(this.totalNew>0)return"tag.showNew"}return"tag.show"}get currentWhen(){return"tag.show tag.showNew tag.showUnread tag.showTop"}get badgeText(){if(this.showCount)return(0,c.Z)(this,a)&&(0,c.Z)(this,o)>0?(0,c.Z)(this,o).toString():this.totalUnread>0?m.default.t("sidebar.unread_count",{count:this.totalUnread}):this.totalNew>0?m.default.t("sidebar.new_count",{count:this.totalNew}):void 0}get suffixCSSClass(){return"unread"}get suffixType(){return"icon"}get suffixValue(){if(!this.showCount&&(this.totalUnread||this.totalNew))return"circle"}},i=(0,u.Z)(r.prototype,"totalUnread",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),s=(0,u.Z)(r.prototype,"totalNew",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),(0,u.Z)(r.prototype,"refreshCounts",[h.bind],Object.getOwnPropertyDescriptor(r.prototype,"refreshCounts"),r.prototype),r);function b(){return this.totalUnread+this.totalNew}function _(){return!!this.currentUser?.new_new_view_enabled}},72393:(e,t,n)=>{"use strict";n.r(t),n.d(t,{consolePrefix:()=>u,default:()=>l,getThemeInfo:()=>c});var r=n(82837),i=n.n(r),s=n(13369),o=n(47582);const a=["moz-extension://","chrome-extension://","webkit-masked-url://"];function l(e){if(!e||!e.stack)try{throw new Error("Source identification error")}catch(t){e=t}if(!e.stack)return;const t=e.stack.replaceAll(/^.*discourse-deprecation-collector.*$/gm,"");if(a.any((e=>t.includes(e))))return{type:"browser-extension"};const n=t.match(/\/theme-javascripts\/[\w-]+\.js/g)||[];for(const e of n){const t=document.querySelector(`script[src*="${e}"`);if(t?.dataset.themeId)return{type:"theme",...c(t.dataset.themeId)}}let r;return i()&&(r??=t.match(/assets\/plugins\/([\w-]+)\.js/)?.[1],r??=t.match(/assets\/plugins\/test\/([\w-]+)_tests\.js/)?.[1]),r??=t.match(/assets\/plugins\/_?([\w-]+)-[0-9a-f]+(?:\.br)?\.js/)?.[1],r?{type:"plugin",name:r}:void 0}function c(e){return{id:e,name:s.default.get("activatedThemes")?.[e]||`(theme-id: ${e})`,path:(0,o.default)(`/admin/customize/themes/${e}?safe_mode=no_themes`)}}function u(e,t){return(t=t||l(e))&&"theme"===t.type?`[THEME ${t.id} '${t.name}']`:t&&"plugin"===t.type?`[PLUGIN ${t.name}]`:t&&"browser-extension"===t.type?"[BROWSER EXTENSION]":""}},12999:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadSprites:()=>s});var r=n(18104);const i="svg-sprites";function s(e,t){let n=document.getElementById(i);if(!n){n=document.createElement("div"),n.id=i;const e=document.querySelector("discourse-assets-icons");e?.appendChild(n)}let s=n.querySelector(`.${t}`);s||(s=document.createElement("div"),s.className=t,n.appendChild(s)),(0,r.default)(e).then((()=>{s.innerHTML=window.__svg_sprite,delete window.__svg_sprite}))}},13473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_ANIMATION_TIME:()=>b,MINIMUM_SWIPE_DISTANCE:()=>f,SWIPE_DISTANCE_THRESHOLD:()=>m,SWIPE_VELOCITY_THRESHOLD:()=>g,default:()=>_});var r,i,s,o,a,l=n(49246),c=n(54001),u=n(34405),d=n(57555);function p(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function h(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}const m=50,g=.12,f=5,b=200;let _=(i=new WeakSet,s=new WeakSet,o=new WeakSet,a=new WeakSet,r=class{constructor(e){p(this,a),p(this,o),p(this,s),p(this,i),(0,l.Z)(this,"swipeState",null),(0,l.Z)(this,"animationPending",!1),this.element=e}touchStart(e){if(e.touches.length>1){if(this.cancelled)return;this.cancelled=!0;const t=new CustomEvent("swipecancel",{detail:{originalEvent:e}});this.element.dispatchEvent(t)}else h(this,o,v).call(this,e.touches[0])}touchMove(e){const t=e.touches[0];t.type="pointermove",h(this,a,k).call(this,t,e)}touchEnd(e){h(this,a,k).call(this,{type:"pointerup"},e),0===e.touches.length&&(this.cancelled=!1)}touchCancel(e){h(this,a,k).call(this,{type:"pointercancel"},e),0===e.touches.length&&(this.cancelled=!1)}addTouchListeners(){const e={passive:!1};this.element.addEventListener("touchstart",this.touchStart,e),this.element.addEventListener("touchmove",this.touchMove,e),this.element.addEventListener("touchend",this.touchEnd,e),this.element.addEventListener("touchcancel",this.touchCancel,e)}removeTouchListeners(){this.element.removeEventListener("touchstart",this.touchStart),this.element.removeEventListener("touchmove",this.touchMove),this.element.removeEventListener("touchend",this.touchEnd),this.element.removeEventListener("touchcancel",this.touchCancel)}getMaxAnimationTimeMs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;return(0,u.isTesting)()||window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:Math.min(e,b)}shouldCloseMenu(e,t){return"right"===t?e.deltaX>m&&e.velocityX>-g||e.velocityX>0:"left"===t?e.deltaX<-m&&e.velocityX<g||e.velocityX<0:"bottom"===t?e.deltaY>m&&e.velocityY>-g||e.velocityY>0:"top"===t&&(e.deltaY<-m&&e.velocityY<g||e.velocityY<0)}},(0,c.Z)(r.prototype,"touchStart",[d.bind],Object.getOwnPropertyDescriptor(r.prototype,"touchStart"),r.prototype),(0,c.Z)(r.prototype,"touchMove",[d.bind],Object.getOwnPropertyDescriptor(r.prototype,"touchMove"),r.prototype),(0,c.Z)(r.prototype,"touchEnd",[d.bind],Object.getOwnPropertyDescriptor(r.prototype,"touchEnd"),r.prototype),(0,c.Z)(r.prototype,"touchCancel",[d.bind],Object.getOwnPropertyDescriptor(r.prototype,"touchCancel"),r.prototype),r);function y(e,t,n){return e.start||!e.direction?Math.abs(t)>Math.abs(n)?t>0?"right":"left":n>0?"down":"up":e.direction}function w(e,t){if("pointerup"===t.type||"pointercancel"===t.type)return e;const n=Date.now(),r=n-e.timestamp;if(0===r)return e;const s=t.clientX-e.startLocation.x,o=t.clientY-e.startLocation.y,a=(t.clientX-e.center.x)/r,l=(t.clientY-e.center.y)/r;return{startLocation:e.startLocation,center:{x:t.clientX,y:t.clientY},velocityX:a,velocityY:l,deltaX:s,deltaY:o,start:!1,timestamp:n,direction:h(this,i,y).call(this,e,s,o)}}function v(e){const t={center:{x:e.clientX,y:e.clientY},startLocation:{x:e.clientX,y:e.clientY},velocityX:0,velocityY:0,deltaX:0,deltaY:0,start:!0,timestamp:Date.now(),direction:null};this.swipeState=t}function k(e,t){if(this.cancelled)return;if(!this.swipeState)return void h(this,o,v).call(this,e);t.stopPropagation();const n=this.swipeState,r=h(this,s,w).call(this,n,e);if(!(n.start&&Math.abs(r.deltaX)<f&&Math.abs(r.deltaY)<f))if(this.swipeState=r,r.originalEvent=t,n.start){const e=new CustomEvent("swipestart",{cancelable:!0,detail:r});if(this.cancelled=!this.element.dispatchEvent(e),this.cancelled)return;this.swiping=!0}else if("pointerup"!==e.type&&"pointercancel"!==e.type||!this.swiping){if("pointermove"===e.type){if(this.animationPending)return;this.animationPending=!0,window.requestAnimationFrame((()=>{if(!this.animationPending||!this.swiping||this.cancelled)return void(this.animationPending=!1);const e=new CustomEvent("swipe",{detail:r});this.element.dispatchEvent(e),this.animationPending=!1}))}}else{this.swiping=!1;const e=new CustomEvent("swipeend",{detail:r});this.element.dispatchEvent(e)}}},26639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TAG_HASHTAG_POSTFIX:()=>r});const r="::tag"},43168:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isDocumentRTL:()=>p,isLTR:()=>c,isRTL:()=>l,setTextDirections:()=>u,siteDir:()=>d});const r="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿",i="֑-߿יִ-﷽ﹰ-ﻼ",s=new RegExp("^[^"+r+"]*["+i+"]"),o=new RegExp("^[^"+i+"]*["+r+"]");let a;function l(e){return s.test(e)}function c(e){return o.test(e)}function u(e){for(let t of e.children)t.textContent&&("ASIDE"===t.tagName&&t.classList.contains("quote")?h(t):t.setAttribute("dir",l(t.textContent)?"rtl":"ltr"))}function d(){return a||(a=document.documentElement.classList.contains("rtl")?"rtl":"ltr"),a}function p(){return"rtl"===d()}function h(e){for(let t of e.querySelectorAll(".title"))t.setAttribute("dir",d());for(let t of e.querySelectorAll("blockquote > p"))t.setAttribute("dir",l(t.textContent)?"rtl":"ltr")}},35193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cook:()=>d,cookAsync:()=>p,emojiUnescape:()=>w,emojiUrlFor:()=>v,excerpt:()=>T,generateCookFunction:()=>h,generateLinkifyFunction:()=>m,humanizeList:()=>S,parseAsync:()=>b,parseMentions:()=>_,sanitize:()=>g,sanitizeAsync:()=>f});var r=n(83312),i=n(8253),s=n(96927),o=n(54736),a=n(47582),l=n(61369),c=n(82099);async function u(e){const t=await Promise.all([n.e(688),n.e(422)]).then(n.bind(n,31141));for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return t[e](...i)}async function d(e,t){return await u("cook",e,t)}function p(e,t){return(0,o.default)("cookAsync() is deprecated, call cook() instead",{since:"3.2.0.beta2",dropFrom:"3.2.0.beta5",id:"discourse.text.cook-async"}),d(e,t)}async function h(e){return await u("generateCookFunction",e)}async function m(e){return await u("generateLinkifyFunction",e)}function g(e,t){return(0,s.sanitize)(e,new r.default(t))}async function f(e,t){return await u("sanitize",e,t)}async function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return await u("parse",e,t,n)}async function _(e,t){return await u("parseMentions",e,t)}function y(){let e=(0,l.helperContext)().siteSettings,t=(0,l.helperContext)();if(e.enable_emoji)return{getURL:e=>(0,a.getURLWithCDN)(e),emojiSet:e.emoji_set,enableEmojiShortcuts:e.enable_emoji_shortcuts,inlineEmoji:e.enable_inline_emoji_translation,emojiDenyList:t.site.denied_emojis,emojiCDNUrl:e.external_emoji_url}}function w(e,t){const n=y();return n?(0,i.performEmojiUnescape)(e,Object.assign(n,t||{})):e}function v(e){const t=y();if(t)return(0,i.buildEmojiUrl)(e,t)}function k(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function x(e,t){t(e)&&e.childNodes.forEach((e=>x(e,t)))}function T(e,t){let n="",r=0;const i=document.createElement("div");return i.innerHTML=e,x(i,(e=>{if(!(r>=t))if(e.nodeType===Node.TEXT_NODE)if(r+e.textContent.length>t){const i=e.textContent.slice(0,t-r);n+=k(i),n+="&hellip;",r+=i.length}else n+=k(e.textContent),r+=e.textContent.length;else if("A"===e.tagName)n+=e.outerHTML,r+=e.innerText.length;else{if("IMG"!==e.tagName)return!0;e.classList.contains("emoji")?n+=e.outerHTML:(n+="[image]",r+=7)}})),n}function S(e){const t=Array.from(e),n=t.pop();return 0===t.length?n:[t.join(c.default.t("word_connector.comma")),c.default.t("word_connector.last_item"),n].join(" ")}},87591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{currentThemeId:()=>d,currentThemeIds:()=>u,currentThemeKey:()=>c,extendThemeCookie:()=>h,listThemes:()=>m,setLocalTheme:()=>p});var r=n(59469),i=n(54736),s=n(82099);const o="meta[name=discourse_theme_id]",a="theme_ids",l=365;function c(){console&&console.warn&&console.trace&&(0,i.default)("'currentThemeKey' is is deprecated use 'currentThemeId' instead. A theme component may require updating.",{id:"discourse.current-theme-key"})}function u(){const e=[],t=document.querySelector(o);return t&&t.content.split(",").forEach((t=>{t=parseInt(t,10),isNaN(t)||e.push(t)})),e}function d(){return u()[0]}function p(e,t){(e=e.reject((e=>!e)))&&e.length>0?(0,r.default)(a,`${e.join(",")}|${t}`,{path:"/",expires:l}):(0,r.removeCookie)(a,{path:"/"})}function h(){const e=(0,r.default)(a);e&&(0,r.default)(a,e,{path:"/",expires:l})}function m(e){let t=e.get("user_themes");if(!t)return null;let n=!!t.findBy("default",!0),r=[];return n||r.push({name:s.default.t("themes.default_description"),id:null}),t.forEach((e=>{r.push({name:e.name,id:e.theme_id,color_scheme_id:e.color_scheme_id})})),0===r.length?null:r}},23606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getObjectForTheme:()=>c,getSetting:()=>l,registerSettings:()=>a,resetSettings:()=>u});var r=n(48163),i=n(12757);const s={},o={};function a(e,t){let{force:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(o[e]&&!n)return;s[e]=(0,i.cloneJSON)(t);const r={};Object.keys(t).forEach((e=>{Object.defineProperty(r,e,{enumerable:!0,get:()=>t[e],set(n){t[e]=n}})})),o[e]=r}function l(e,t){return o[e]?(0,r.get)(o[e],t):null}function c(e){return o[e]}function u(){Object.keys(s).forEach((e=>{Object.keys(s[e]).forEach((t=>{const n=s[e][t];o[e][t]=n&&"object"==typeof n?(0,i.cloneJSON)(n):n}))}))}},50459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TIME_SHORTCUT_TYPES:()=>s,defaultTimeShortcuts:()=>o,extendedDefaultTimeShortcuts:()=>a,formatTime:()=>d,hideDynamicTimeShortcuts:()=>u,specialShortcutOptions:()=>l,timeShortcuts:()=>c});var r=n(18225),i=n(82099);const s={ONE_HOUR:"one_hour",TWO_HOURS:"two_hours",LATER_TODAY:"later_today",TOMORROW:"tomorrow",THIS_WEEKEND:"this_weekend",NEXT_MONTH:"next_month",ONE_YEAR:"one_year",FOREVER:"forever",CUSTOM:"custom",RELATIVE:"relative",LAST_CUSTOM:"last_custom",NONE:"none",NOW:"now",START_OF_NEXT_BUSINESS_WEEK:"start_of_next_business_week",LATER_THIS_WEEK:"later_this_week",POST_LOCAL_DATE:"post_local_date"};function o(e){const t=c(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.thisWeekend(),t.monday(),t.nextMonth()]}function a(e){const t=c(e);return[t.laterToday(),t.tomorrow(),t.laterThisWeek(),t.monday(),t.twoWeeks(),t.nextMonth(),t.twoMonths(),t.threeMonths(),t.fourMonths(),t.sixMonths(),t.oneYear(),t.forever()]}function l(){const e=c();return[e.lastCustom(),e.custom(),e.none()]}function c(e){return{oneHour:()=>({id:s.ONE_HOUR,icon:"angle-right",label:"time_shortcut.in_one_hour",time:(0,r.oneHour)(e),timeFormatKey:"dates.time"}),twoHours:()=>({id:s.TWO_HOURS,icon:"angle-right",label:"time_shortcut.in_two_hours",time:(0,r.twoHours)(e),timeFormatKey:"dates.time"}),laterToday:()=>({id:s.LATER_TODAY,icon:"angle-right",label:"time_shortcut.later_today",time:(0,r.laterToday)(e),timeFormatKey:"dates.time"}),tomorrow:()=>({id:s.TOMORROW,icon:"far-sun",label:"time_shortcut.tomorrow",time:(0,r.tomorrow)(e),timeFormatKey:"dates.time_short_day"}),twoDays:()=>({id:"two_days",icon:"angle-right",label:"time_shortcut.two_days",time:(0,r.twoDays)(e),timeFormatKey:"dates.time_short_day"}),laterThisWeek:()=>({id:s.LATER_THIS_WEEK,icon:"angle-double-right",label:"time_shortcut.later_this_week",time:(0,r.laterThisWeek)(e),timeFormatKey:"dates.time_short_day"}),thisWeekend:()=>({id:s.THIS_WEEKEND,icon:"bed",label:"time_shortcut.this_weekend",time:(0,r.thisWeekend)(e),timeFormatKey:"dates.time_short_day"}),monday:()=>({id:s.START_OF_NEXT_BUSINESS_WEEK,icon:"briefcase",label:(0,r.now)(e).day()===r.MOMENT_MONDAY||(0,r.now)(e).day()===r.MOMENT_SUNDAY?"time_shortcut.start_of_next_business_week_alt":"time_shortcut.start_of_next_business_week",time:(0,r.nextBusinessWeekStart)(e),timeFormatKey:"dates.long_no_year"}),nextMonth:()=>({id:s.NEXT_MONTH,icon:"far-calendar-plus",label:"time_shortcut.next_month",time:(0,r.nextMonth)(e),timeFormatKey:"dates.long_no_year"}),twoWeeks:()=>({id:"two_weeks",icon:"far-clock",label:"time_shortcut.two_weeks",time:(0,r.twoWeeks)(e),timeFormatKey:"dates.long_no_year"}),twoMonths:()=>({id:"two_months",icon:"far-calendar-plus",label:"time_shortcut.two_months",time:(0,r.twoMonths)(e),timeFormatKey:"dates.long_no_year"}),threeMonths:()=>({icon:"far-calendar-plus",id:"three_months",label:"time_shortcut.three_months",time:(0,r.threeMonths)(e),timeFormatKey:"dates.long_no_year"}),fourMonths:()=>({id:"four_months",icon:"far-calendar-plus",label:"time_shortcut.four_months",time:(0,r.fourMonths)(e),timeFormatKey:"dates.long_no_year"}),sixMonths:()=>({id:"six_months",icon:"far-calendar-plus",label:"time_shortcut.six_months",time:(0,r.sixMonths)(e),timeFormatKey:"dates.long_with_year"}),oneYear:()=>({id:s.ONE_YEAR,icon:"far-calendar-plus",label:"time_shortcut.one_year",time:(0,r.oneYear)(e),timeFormatKey:"dates.long_with_year"}),forever:()=>({id:s.FOREVER,icon:"gavel",label:"time_shortcut.forever",time:(0,r.thousandYears)(e),timeFormatKey:"dates.long_with_year"}),custom:()=>({icon:"calendar-alt",id:s.CUSTOM,label:"time_shortcut.custom",time:null,isCustomTimeShortcut:!0}),lastCustom:()=>({icon:"undo",id:s.LAST_CUSTOM,label:"time_shortcut.last_custom",time:null,hidden:!0}),none:()=>({icon:"ban",id:s.NONE,label:"time_shortcut.none",time:null}),now:()=>({id:s.NOW,icon:"magic",label:"time_shortcut.now",time:(0,r.now)(e)})}}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=new Set,o=(0,r.now)(t);return o.hour()>=r.LATER_TODAY_CUTOFF_HOUR&&i.add(s.LATER_TODAY),(o.day===r.MOMENT_SUNDAY||o.day()>=r.MOMENT_THURSDAY)&&i.add(s.LATER_THIS_WEEK),n.suggest_weekends_in_date_pickers&&o.day()!==r.MOMENT_FRIDAY&&o.day()!==r.MOMENT_SATURDAY&&o.day()!==r.MOMENT_SUNDAY||i.add(s.THIS_WEEKEND),e.filter((e=>!i.has(e.id)))}function d(e){return e.time&&e.timeFormatKey?e.time.format(i.default.t(e.timeFormatKey)):null}},18225:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LATER_TODAY_CUTOFF_HOUR:()=>s,LATER_TODAY_MAX_HOUR:()=>o,MOMENT_FRIDAY:()=>p,MOMENT_MONDAY:()=>l,MOMENT_SATURDAY:()=>h,MOMENT_SUNDAY:()=>a,MOMENT_THURSDAY:()=>d,MOMENT_TUESDAY:()=>c,MOMENT_WEDNESDAY:()=>u,START_OF_DAY_HOUR:()=>i,fourMonths:()=>P,laterThisWeek:()=>k,laterToday:()=>w,nextBusinessWeekStart:()=>I,nextMonth:()=>x,now:()=>m,oneHour:()=>f,oneYear:()=>E,parseCustomDatetime:()=>j,sixMonths:()=>O,startOfDay:()=>g,thisWeekend:()=>y,thousandYears:()=>D,threeMonths:()=>C,tomorrow:()=>_,twoDays:()=>v,twoHours:()=>b,twoMonths:()=>S,twoWeeks:()=>T});var r=n(33217);const i=8,s=17,o=18,a=0,l=1,c=2,u=3,d=4,p=5,h=6;function m(e){return moment.tz(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return e.hour(t).startOf("hour")}function f(e){return m(e).add(1,"hours")}function b(e){return m(e).add(2,"hours")}function _(e){return g(m(e).add(1,"day"))}function y(e){return g(m(e).day(h))}function w(e){let t=m(e).add(3,"hours");return t.hour()>=o?t.hour(o).startOf("hour"):t.minutes()<30?t.startOf("hour"):t.add(30,"minutes").startOf("hour")}function v(e){return g(m(e).add(2,"days"))}function k(e){return v(e)}function x(e){return g(m(e).add(1,"month").startOf("month"))}function T(e){return g(m(e).add(2,"weeks").day(l))}function S(e){return g(m(e).add(2,"months").startOf("month"))}function C(e){return g(m(e).add(3,"months").startOf("month"))}function P(e){return g(m(e).add(4,"months").startOf("month"))}function O(e){return g(m(e).add(6,"months").startOf("month"))}function E(e){return g(m(e).add(1,"years").startOf("month"))}function D(e){return g(m(e).add(1e3,"years").startOf("month"))}function I(e){return g(m(e).add(7,"days")).day(l)}function j(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e||(new Date).toISOString().split("T")[0];let s=(0,r.isPresent)(t)?`${e} ${t}`:e;i=i||n;let o=moment.tz(s,i);return i!==n&&(o=o.tz(n)),o}},7179:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Tag:()=>m,addBlockDecorateCallback:()=>u,addTagDecorateCallback:()=>l,addTextDecorateCallback:()=>p,clearBlockDecorateCallbacks:()=>d,clearTagDecorateCallbacks:()=>c,clearTextDecorateCallbacks:()=>h,default:()=>f});const r=["MsoListParagraphCxSpFirst","MsoListParagraphCxSpMiddle","MsoListParagraphCxSpLast"];let i,s=[],o=[],a=[];function l(e){s.push(e)}function c(){s=[]}function u(e){o.push(e)}function d(){o=[]}function p(e){a.push(e)}function h(){a=[]}class m{static named(e){const t=class extends m{};return t.tagName=e,t}static blocks(){return["address","article","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","hr","main","nav","p","pre","section"]}static headings(){return["h1","h2","h3","h4","h5","h6"]}static emphases(){return[["b","**"],["strong","**"],["i","*"],["em","*"],["s","~~"],["strike","~~"]]}static slices(){return["dt","dd","thead","tbody","tfoot"]}static trimmable(){return[...m.blocks(),...m.headings(),...m.slices(),"aside","li","td","th","br","hr","blockquote","table","ol","tr","ul"]}static allowedTags(){return["ins","del","small","big","kbd","ruby","rt","rb","rp","mark"]}static block(e,t,n){return class extends(m.named(e)){constructor(){super(t,n),this.gap="\n\n"}decorate(t){const n=this.element.parent;for(const e of o){const n=e.call(this,t);void 0!==n&&(t=n)}return"p"===e&&"li"===n?.name&&(this.gap=""),`${this.gap}${this.prefix}${t}${this.suffix}${this.gap}`}}}static aside(){return class extends(m.block("aside")){constructor(){super()}toMarkdown(){if(!/\bquote\b/.test(this.element.attributes.class))return super.toMarkdown();const e=this.element.children.find((e=>"blockquote"===e.name));if(!e)return super.toMarkdown();let t=g.parse([e],this.element)||"";if(t=t.trim().replaceAll(/^> /gm,"").trim(),0===t.length)return"";const n=this.element.attributes["data-username"],r=this.element.attributes["data-post"],i=this.element.attributes["data-topic"];return`\n${n&&r&&i?`[quote="${n}, post:${r}, topic:${i}"]`:"[quote]"}\n${t}\n[/quote]\n`}}}static heading(e,t){const n=`${[...Array(t)].map((()=>"#")).join("")} `;return m.block(e,n,"")}static emphasis(e,t){return class extends(m.named(e)){constructor(){super(t,t,!0)}decorate(t){t.includes("\n")&&(this.prefix=`<${e}>`,this.suffix=`</${e}>`);let n=t.match(/^\s/);return n&&(this.prefix=n[0]+this.prefix),n=t.match(/\s$/),n&&(this.suffix=this.suffix+n[0]),super.decorate(t.trim())}}}static allowedTag(e){return class extends(m.named(e)){constructor(){super(`<${e}>`,`</${e}>`)}}}static replace(e,t){return class extends(m.named(e)){constructor(){super("",""),this.text=t}toMarkdown(){return this.text}}}static span(){return class extends(m.named("span")){constructor(){super()}decorate(e){return"badge badge-notification clicks"===this.element.attributes.class?"":super.decorate(e)}}}static link(){return class extends(m.named("a")){constructor(){super("","",!0)}decorate(e){const t=this.element,n=t.attributes;if(/^mention/.test(n.class)&&"@"===e[0])return e;if("hashtag"===n.class&&"#"===e[0])return e;if(n.class?.includes("hashtag-cooked")){if(n["data-ref"])return`#${n["data-ref"]}`;{let e="";return n["data-type"]&&(e=`::${n["data-type"]}`),`#${n["data-slug"]}${e}`}}let r;if(["lightbox","d-lazyload"].includes(n.class)&&(r=(t.children||[]).find((e=>"img"===e.name)))){let t=n.href;const i=r.attributes["data-base62-sha1"];return i&&(t=`upload://${i}`),`![${e=n.title||""}](${t})`}if(n.href&&e!==n.href){e=e.replace(/\n{2,}/g,"\n");let t="";return n.class?.includes("attachment")&&(t="|attachment"),`[${e}${t}](${n.href})`}return e}}}static image(){return class extends(m.named("img")){constructor(){super("","",!0)}toMarkdown(){const e=this.element,t=e.attributes,n=e.parent?.attributes||{},r=t.class||n.class;let i=t.src||n.src;const s=t["data-base62-sha1"];if(s&&(i=`upload://${s}`),r?.includes("emoji"))return r.includes("user-status")?"":t.title||n.title;if(i){if(i.match(/^data:image\/([a-zA-Z]*);base64,([^\"]*)$/))return"[image]";let e=t.alt||n.alt||"";const r=t.width||n.width,s=t.height||n.height,o=t.title;return r&&s&&(e=`${e}${this.element.parentNames.includes("table")?"\\|":"|"}${r}x${s}`),`![${e}](${i}${o?` "${o}"`:""})`}return""}}}static slice(e,t){return class extends(m.named(e)){constructor(){super("",t)}decorate(e){return this.element.next||(this.suffix=""),`${e}${this.suffix}`}}}static cell(e){return class extends(m.named(e)){constructor(){super("|")}toMarkdown(){const e=this.element.innerMarkdown().trim();if(e.includes("\n")){let e=this.element;for(;e=e.parent;)if("table"===e.name){e.tag().invalid();break}}return this.decorate(e)}}}static li(){return class extends(m.slice("li","\n")){decorate(e){const t=this.element.attributes;let n=this.element.filterParentNames(["ol","ul"]).slice(1).map((()=>"\t")).join("");if(r.includes(t.class))try{const e=parseInt(t.style.match(/level./)[0].replace("level",""),10);n=Array(e).join("\t")+n}finally{"MsoListParagraphCxSpFirst"===t.class?n=`\n\n${n}`:"MsoListParagraphCxSpLast"===t.class&&(e=`${e}\n`)}return super.decorate(`${n}* ${e.trimStart()}`)}}}static code(){return class extends(m.named("code")){constructor(){super("`","`")}decorate(e){this.element.parentNames.includes("pre")?(this.prefix="\n\n```\n",this.suffix="\n```\n\n"):this.inline=!0;const t=document.createElement("textarea");return t.innerHTML=e,super.decorate(t.innerText)}}}static blockquote(){return class extends(m.named("blockquote")){constructor(){super("\n> ","\n")}decorate(e){return e=e.trim().replace(/\n{2,}>/g,"\n>").replace(/\n/g,"\n> "),super.decorate(e)}}}static table(){return class extends(m.block("table")){constructor(){super(),this.isValid=!0}invalid(){if(this.isValid=!1,this.element.parentNames.includes("table")){let e=this.element;for(;e=e.parent;)if("table"===e.name){e.tag().invalid();break}}}countPipes(e){return(e.replace(/\\\|/,"").match(/\|/g)||[]).length}decorate(e){const t=(e=super.decorate(e).replace(/\|\n{2,}\|/g,"|\n|")).trim().split("\n"),n=this.countPipes(t[0]);if(this.isValid=this.isValid&&t.length>1&&n>2&&t.reduce(((e,t)=>e&&this.countPipes(t)<=n)),this.isValid){const t=[...Array(n-1)].map((()=>"| --- ")).join("")+"|\n";e=e.replace("|\n","|\n"+t)}else e=e.replace(/\|/g," "),this.invalid();return e}}}static list(e){return class extends(m.block(e)){decorate(e){let t="";const n=this.element.parent;return"ul"===n?.name&&(this.gap="",this.suffix="\n"),this.element.filterParentNames(["li"]).length&&(this.gap="",t="\n"),t+super.decorate(e.trimEnd())}}}static ol(){return class extends(m.list("ol")){decorate(e){const t=(e="\n"+e).match(/\n\t*\*/)[0];let n=parseInt(this.element.attributes.start||1,10);for(;e.includes(t);)e=e.replace(t,t.replace("*",`${n}.`)),n++;return super.decorate(e.slice(1))}}}static tr(){return class extends(m.slice("tr","|\n")){decorate(e){return this.element.next||(this.suffix="|"),`${e}${this.suffix}`}}}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.prefix=e,this.suffix=t,this.inline=n}decorate(e){for(const t of s){const n=t.call(this,e);void 0!==n&&(e=n)}if((this.prefix||this.suffix)&&(e=[this.prefix,e,this.suffix].join("")),this.inline){const{prev:t,next:n}=this.element;t&&"#text"!==t.name&&(e=" "+e),n&&"#text"!==n.name&&(e+=" ")}return e}toMarkdown(){const e=this.element.innerMarkdown();return e?.trim()?this.decorate(e):e}}class g{static toMarkdown(e,t,n,r,i){return new g(e,t,n,r,i).toMarkdown()}static parseChildren(e){return g.parse(e.children,e)}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){let n=[],r={};for(let i=0;i<e.length;i++){const s=0===i?null:e[i-1],o=i===e.length?null:e[i+1];n.push(g.toMarkdown(e[i],t,s,o,r))}return n.join("")}return""}constructor(e,t,n,i,s){this.name=e.name,this.data=e.data,this.metadata=s,this.children=e.children,this.attributes=e.attributes,t&&(this.parent=t,this.parentNames=t.parentNames.slice(),this.parentNames.push(t.name)),this.parentNames=this.parentNames||[],this.previous=n,this.next=i,"p"===this.name&&r.includes(this.attributes.class)&&(this.name="li",this.parentNames.push("ul"))}tag(){const e=new(function(e){if(!i){i=new Map;const e=[...m.blocks().map((e=>m.block(e))),...m.headings().map(((e,t)=>m.heading(e,t+1))),...m.slices().map((e=>m.slice(e,"\n"))),...m.emphases().map((e=>m.emphasis(e[0],e[1]))),...m.allowedTags().map((e=>m.allowedTag(e))),m.aside(),m.cell("td"),m.cell("th"),m.replace("br","\n"),m.replace("hr","\n---\n"),m.replace("head",""),m.li(),m.link(),m.image(),m.code(),m.blockquote(),m.table(),m.tr(),m.ol(),m.list("ul"),m.span()];for(const t of e)i.set(t.tagName,t)}return i.get(e)}(this.name)||m);return e.element=this,e.metadata=this.metadata,e}innerMarkdown(){return g.parseChildren(this)}leftTrimmable(){return this.previous&&m.trimmable().includes(this.previous.name)}rightTrimmable(){return this.next&&m.trimmable().includes(this.next.name)}text(){let e=this.data||"";return this.leftTrimmable()&&(e=e.trimStart()),this.rightTrimmable()&&(e=e.trimEnd()),e=e.replace(/[\s\t]+/g," "),a.forEach((t=>{const n=t.call(this,e,this.next,this.previous,this.metadata);void 0!==n&&(e=n)})),e}toMarkdown(){return"#text"===this.name?this.text():this.tag().toMarkdown()}filterParentNames(e){return this.parentNames.filter((t=>e.includes(t)))}}function f(e){try{const{elements:t,placeholders:n}=function(e){const t=/<code[^>]*>([\s\S]*?)<\/code>/gi,n=e;let r=t.exec(n),i=[];for(;r;){const s=`DISCOURSE_PLACEHOLDER_${i.length+1}`,o=document.createElement("div");o.innerHTML=r[1];const a=o.innerText.replace(/^\n/,"").replace(/\n$/,"");i.push([s,a]),e=e.replace(r[0],`<code>${s}</code>`),r=t.exec(n)}const s=e=>{if("#text"!==e.nodeName&&void 0!==e.length){const t=[];for(let n=0;n<e.length;++n)"#comment"!==e[n].nodeName&&t.push(s(e[n]));return t}const t={name:e.nodeName.toLowerCase(),data:e.data,children:[],attributes:{}};if("#text"===e.nodeName)return t;for(let n=0;n<e.childNodes.length;++n)"#comment"!==e.childNodes[n].nodeName&&t.children.push(s(e.childNodes[n]));for(let n=0;n<e.attributes.length;++n)t.attributes[e.attributes[n].name]=e.attributes[n].value;return t},o=document.createElement("template");return o.innerHTML=function(e){const t=e.match(/<body[^>]*>([\s\S]*?)<\/body>/);let n;for(e=(e=(e=t?t[1]:e).replace(/\r|\n|&nbsp;/g," ")).replace(/\u00A0/g," ");n=e.match(/<[^\s>]+[^>]*>\s{2,}<[^\s>]+[^>]*>/);)e=e.replace(n[0],n[0].replace(/>\s{2,}</,"> <"));return e.replace(/<!\[if !?\S*]>[^!]*<!\[endif]>/g,"")}(e),{elements:s(o.content.childNodes),placeholders:i}}(e);let r=g.parse(t).trim();return r=r.replace(/^<b>/,"").replace(/<\/b>$/,"").trim(),r=r.replace(/\n +/g,"\n").replace(/ +\n/g,"\n").replace(/ {2,}/g," ").replace(/\n{3,}/g,"\n\n").replace(/\t/g,"  "),function(e,t){return t.forEach((t=>{e=e.replace(t[0],t[1])})),e}(r,n)}catch(e){return""}}},58988:(e,t,n)=>{"use strict";n.r(t),n.d(t,{fancyTitle:()=>a});var r=n(27926),i=n(35193),s=n(43168),o=n(19990);function a(e,t){let n=(0,r.censor)((0,i.emojiUnescape)(e)||"",o.default.currentProp("censored_regexp"));return t?`<span dir="${(0,s.isRTL)(n)?"rtl":"ltr"}">${n}</span>`:n}},79461:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TRACKED_QUERY_PARAM_VALUE:()=>s,hasTrackedFilter:()=>o,isTrackedTopic:()=>a});var r=n(19990),i=n(7223);const s="tracked";function o(e){return!!e&&(e.f===s||e.filter===s)}function a(e){if(e.category_id){const t=r.default.current().trackedCategoriesList;for(const n of t){if(n.id===e.category_id)return!0;if(n.subcategories&&n.subcategories.some((t=>t.id===e.category_id||!(!t.subcategories||!t.subcategories.some((t=>t.id===e.category_id)))||void 0)))return!0}}if(e.tags){const t=i.default.current().trackedTags;for(const n of t)if(e.tags.includes(n))return!0}return!1}},5002:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHighestReadCache:()=>h,nextTopicUrl:()=>u,previousTopicUrl:()=>d,resetHighestReadCache:()=>m,setHighestReadCache:()=>p,setTopicId:()=>f,setTopicList:()=>c});var r=n(10425),i=n(35814);let s,o,a,l;function c(e){s=e,s?.topics?.forEach((e=>{if(e.notification_level>=i.NotificationLevels.TRACKING){const t=h(e.id);if(t&&t>=e.last_read_post_number){const n=Math.max(e.highest_post_number-t,0);e.setProperties({unread_posts:n,new_posts:n}),m()}}})),o=null}function u(){return g(1)}function d(){return g(-1)}function p(e,t){a=e,l=t}function h(e){if(e===a)return l}function m(){a=void 0,l=void 0}function g(e){if(!s||!s.topics)return r.Promise.resolve(null);let t=function(){if(o&&s&&s.topics){const e=s.topics.findIndex((e=>e.id===o));if(e>-1)return e}return-1}();-1===t?t=0:t+=e;const n=s.topics[t];return!n&&t>0&&s.more_topics_url&&s.loadMore?s.loadMore().then((()=>g(e))):n?(o=n.id,r.Promise.resolve(n.lastUnreadUrl)):r.Promise.resolve(null)}function f(e){o=e}},71012:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a,l,c,u,d,p,h,m=n(94664),g=n(54001),f=n(23183),b=n(3055),_=n(70352),y=n(35193);let w=(r=class{constructor(){(0,m.Z)(this,"text",i,this),(0,m.Z)(this,"summarizedOn",s,this),(0,m.Z)(this,"summarizedBy",o,this),(0,m.Z)(this,"newPostsSinceSummary",a,this),(0,m.Z)(this,"outdated",l,this),(0,m.Z)(this,"canRegenerate",c,this),(0,m.Z)(this,"regenerated",u,this),(0,m.Z)(this,"showSummaryBox",d,this),(0,m.Z)(this,"canCollapseSummary",p,this),(0,m.Z)(this,"loadingSummary",h,this)}processUpdate(e){const t=e.topic_summary;return(0,y.cook)(t.summarized_text).then((e=>{this.text=e,this.loading=!1})).then((()=>{e.done&&(this.summarizedOn=(0,_.shortDateNoYear)(t.summarized_on),this.summarizedBy=t.algorithm,this.newPostsSinceSummary=t.new_posts_since_summary,this.outdated=t.outdated,this.newPostsSinceSummary=t.new_posts_since_summary,this.canRegenerate=t.outdated&&t.can_regenerate)}))}collapse(){this.showSummaryBox=!1,this.canCollapseSummary=!1}generateSummary(e,t){if(this.showSummaryBox=!0,this.text&&!this.canRegenerate)return void(this.canCollapseSummary=!1);let n=`/t/${t}/strategy-summary?`;return e&&(n+="stream=true",this.canRegenerate&&(n+="&skip_age_check=true")),this.loading=!0,(0,b.ajax)(n).then((t=>{e||(t.done=!0,this.processUpdate(t))}))}},i=(0,g.Z)(r.prototype,"text",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),s=(0,g.Z)(r.prototype,"summarizedOn",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),o=(0,g.Z)(r.prototype,"summarizedBy",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),a=(0,g.Z)(r.prototype,"newPostsSinceSummary",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=(0,g.Z)(r.prototype,"outdated",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c=(0,g.Z)(r.prototype,"canRegenerate",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,g.Z)(r.prototype,"regenerated",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d=(0,g.Z)(r.prototype,"showSummaryBox",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=(0,g.Z)(r.prototype,"canCollapseSummary",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),h=(0,g.Z)(r.prototype,"loadingSummary",[f.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r)},88981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{defineTrackedProperty:()=>c,resettableTracked:()=>p});var r,i,s=n(94664),o=n(49246),a=n(54001),l=n(23183);function c(e,t,n){Object.defineProperty(e,t,(0,l.tracked)(e,t,{enumerable:!0,value:n}))}let u=(r=class{constructor(){(0,s.Z)(this,"currentValue",i,this),(0,o.Z)(this,"previousUpstreamValue",void 0)}},i=(0,a.Z)(r.prototype,"currentValue",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);function d(e,t){let n=e.get(t);return n||(n=new u,e.set(t,n)),n}function p(e,t,n){const r=new WeakMap;return{get(){const e=d(r,this),t=n.initializer?.call(this);return t!==e.previousUpstreamValue&&(e.currentValue=t,e.previousUpstreamValue=t),e.currentValue},set(e){d(r,this).currentValue=e}}}},1350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,includeAttributes:()=>l,transformBasicPost:()=>c});var r=n(33217),i=n(20229),s=n(47582),o=n(82099);const a=[];function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>a.push(e)))}function c(e){const t={id:e.id,hidden:e.hidden,deleted:e.get("deleted"),deleted_at:e.deleted_at,user_deleted:e.user_deleted,isDeleted:e.deleted_at||e.user_deleted,deletedByAvatarTemplate:null,deletedByUsername:null,primary_group_name:e.primary_group_name,flair_name:e.flair_name,flair_url:e.flair_url,flair_bg_color:e.flair_bg_color,flair_color:e.flair_color,flair_group_id:e.flair_group_id,wiki:e.wiki,lastWikiEdit:e.last_wiki_edit,firstPost:1===e.post_number,post_number:e.post_number,cooked:e.cooked,via_email:e.via_email,isAutoGenerated:e.is_auto_generated,user_id:e.user_id,usernameUrl:(0,i.userPath)(e.username),username:e.username,avatar_template:e.avatar_template,bookmarked:e.bookmarked,bookmarkReminderAt:e.bookmark_reminder_at,bookmarkName:e.bookmark_name,yours:e.yours,shareUrl:e.get("shareUrl"),staff:e.staff,admin:e.admin,moderator:e.moderator,groupModerator:e.group_moderator,new_user:0===e.trust_level,name:e.name,user_title:e.user_title,title_is_group:e.title_is_group,created_at:e.created_at,updated_at:e.updated_at,canDelete:e.can_delete,canPermanentlyDelete:!1,showFlagDelete:!1,canRecover:e.can_recover,canSeeHiddenPost:e.can_see_hidden_post,canEdit:e.can_edit,canFlag:!e.get("topic.deleted")&&!(0,r.isEmpty)(e.get("flagsAvailable")),canReviewTopic:!1,reviewableId:e.reviewable_id,reviewableScoreCount:e.reviewable_score_count,reviewableScorePendingCount:e.reviewable_score_pending_count,version:e.version,canRecoverTopic:!1,canDeleteTopic:!1,canViewEditHistory:e.can_view_edit_history,canWiki:e.can_wiki,showLike:!1,liked:!1,canToggleLike:!1,likeCount:!1,actionsSummary:null,read:e.read,replyToUsername:null,replyToName:null,replyToAvatarTemplate:null,reply_to_post_number:e.reply_to_post_number,cooked_hidden:!!e.cooked_hidden,expandablePost:!1,replyCount:e.reply_count,locked:e.locked,userCustomFields:e.user_custom_fields,readCount:e.readers_count,canPublishPage:!1,trustLevel:e.trust_level,userSuspended:e.user_suspended};return a.forEach((n=>t[n]=e[n])),t}function u(e,t,n,r,i){const l=n.post_type,u=t.post_types,d=n.topic,p=d.get("details"),h=d.get("postStream.filterUpwardsPostID"),m=d.get("postStream.filterRepliesToPostNumber"),g=c(n),f=p.created_by||{};g.topicId=d.id,g.topicOwner=f.id===n.user_id,g.topicCreatedById=f.id,g.post_type=l,g.via_email=n.via_email,g.isAutoGenerated=n.is_auto_generated,g.isModeratorAction=l===u.moderator_action,g.isWhisper=l===u.whisper,g.isSmallAction=l===u.small_action||"split_topic"===n.action_code,g.canBookmark=!!e,g.canManage=e&&e.get("canManageTopic"),g.canViewRawEmail=e&&e.staff,g.canArchiveTopic=!!p.can_archive_topic,g.canCloseTopic=!!p.can_close_topic,g.canSplitMergeTopic=!!p.can_split_merge_topic,g.canEditStaffNotes=!!p.can_edit_staff_notes,g.canReplyAsNewTopic=!!p.can_reply_as_new_topic,g.canReviewTopic=!!p.can_review_topic,g.canPublishPage=!!p.can_publish_page&&1===n.post_number,g.isWarning=d.is_warning,g.links=n.get("internalLinks"),g.replyDirectlyBelow=i&&i.reply_to_post_number===n.post_number&&n.post_number!==m,g.replyDirectlyAbove=r&&n.id!==h&&n.reply_to_post_number===r.post_number,g.linkCounts=n.link_counts,g.actionCode=n.action_code,g.actionCodeWho=n.action_code_who,g.actionCodePath=(0,s.default)(n.action_code_path||`/t/${d.id}`),g.topicUrl=d.get("url"),g.isSaving=n.isSaving,g.staged=n.staged,g.user=n.user,n.notice&&(g.notice=n.notice,"returning_user"===g.notice.type&&(g.notice.lastPostedAt=new Date(n.notice.last_posted_at))),1===n.post_number&&d.requested_group_name&&(g.requestedGroupName=d.requested_group_name);const b="private_message"===d.archetype&&1===n.post_number;if(b&&(g.showPMMap=!0,g.allowedGroups=p.allowed_groups,g.allowedUsers=p.allowed_users,g.canRemoveAllowedUsers=p.can_remove_allowed_users,g.canRemoveSelfId=p.can_remove_self_id,g.canInvite=p.can_invite_to),a.includes("topicMap")&&1===n.post_number||b||1===n.post_number&&"regular"===d.archetype&&d.posts_count>1){g.showTopicMap=!0,g.topicCreatedAt=d.created_at,g.createdByUsername=f.username,g.createdByAvatarTemplate=f.avatar_template,g.createdByName=f.name,g.lastPostUrl=d.get("lastPostUrl"),p.last_poster&&(g.lastPostUsername=p.last_poster.username,g.lastPostAvatarTemplate=p.last_poster.avatar_template,g.lastPostName=p.last_poster.name),g.lastPostAt=d.last_posted_at,g.topicReplyCount=d.get("replyCount"),g.topicViews=d.views,g.topicViewsHeat=d.get("viewsHeat"),g.participantCount=d.participant_count,g.topicLikeCount=d.like_count,g.topicLinks=p.links,g.topicLinks&&(g.topicLinkLength=p.links.length),g.topicPostsCount=d.posts_count,g.participants=p.participants;const e=d.get("postStream");g.userFilters=e.userFilters,g.topicSummaryEnabled=e.summary,g.topicWordCount=d.word_count,g.hasTopRepliesSummary=d.has_summary,g.summarizable=d.summarizable,1===n.post_number&&(g.summary=e.topicSummary)}g.isDeleted&&(g.deletedByAvatarTemplate=n.get("postDeletedBy.avatar_template"),g.deletedByUsername=n.get("postDeletedBy.username"));const _=n.get("reply_to_user");_&&(g.replyToUsername=_.username,g.replyToName=_.name,g.replyToAvatarTemplate=_.avatar_template),n.actions_summary&&(g.actionsSummary=n.actions_summary.filter((e=>"like"!==e.actionType.name_key&&e.acted)).map((e=>{const t=e.actionType.name_key;return{id:e.id,postId:n.id,action:t,canUndo:e.can_undo,description:o.default.t(`post.actions.by_you.${t}`)}})));const y=n.likeAction;return y?(g.liked=y.acted,g.canToggleLike=y.get("canToggle"),g.showLike=g.liked||g.canToggleLike,g.likeCount=y.count):(!e||d.archived&&d.user_id!==e.id)&&(g.showLike=!0),1===g.post_number?(g.canRecoverTopic=g.isDeleted&&p.can_recover,g.canDeleteTopic=!g.isDeleted&&p.can_delete,g.expandablePost=d.expandable_first_post,g.canPermanentlyDelete=g.isDeleted&&p.can_permanently_delete,g.showFlagDelete=!g.canDelete&&g.yours&&g.canFlag&&e&&!e.staff):(g.canRecover=g.isDeleted&&g.canRecover,g.canDelete=g.canDelete&&!n.deleted_at&&e&&(e.staff||!n.user_deleted),g.canPermanentlyDelete=g.isDeleted&&n.can_permanently_delete),a.forEach((e=>g[e]=n[e])),g}},80906:(e,t,n)=>{"use strict";function r(e,t){let n=document.createElement("canvas");if(n.getContext){let r=document.createElement("img");r.crossOrigin="anonymous",r.onload=()=>function(e,t,n){n=Math.round(n),isNaN(n)||n<1?n="":n<10?n=" "+n:n>99&&(n="99");let r=t.width/16,i=11*r,s=r,o=2*r;e.height=e.width=t.width;let a=e.getContext("2d");a.font=`bold ${i}px Arial, sans-serif`,n&&(a.globalAlpha=.4),a.drawImage(t,0,0),a.globalAlpha=1,a.shadowColor="#FFF",a.shadowBlur=o,a.shadowOffsetX=0,a.shadowOffsetY=0,a.fillStyle="#FFF",a.fillText(n,s,i),a.fillText(n,s+r,i),a.fillText(n,s,i+r),a.fillText(n,s+r,i+r),a.fillStyle="#000",a.fillText(n,s+r/2,i+r/2);let l=document.createElement("link");l.rel="icon",l.href=e.toDataURL("image/png");let c=document.querySelector("link[rel=icon]"),u=document.querySelector("head");c&&u.removeChild(c),u.appendChild(l)}(n,r,t),r.src=e}}n.r(t),n.d(t,{default:()=>r})},8199:(e,t,n)=>{"use strict";n.r(t),n.d(t,{destroyUserStatusOnMentions:()=>a,updateUserStatusOnMention:()=>o});var r=n(78582),i=n(38242);const s={};function o(e,t,n){if(function(e){s[(0,r.guidFor)(e)]?.destroy(),e.querySelector("span.user-status-message")?.remove()}(t),n){const o=new i.UserStatusMessage(e,n);s[(0,r.guidFor)(t)]=o,t.appendChild(o.html)}}function a(){Object.values(s).forEach((e=>{e.destroy()}))}},29966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allowsAttachments:()=>P,allowsImages:()=>C,authorizedExtensions:()=>f,authorizesAllExtensions:()=>_,authorizesOneOrMoreExtensions:()=>y,authorizesOneOrMoreImageExtensions:()=>w,bindFileInputChangeListener:()=>A,dialog:()=>l,displayErrorForBulkUpload:()=>I,displayErrorForUpload:()=>j,getUploadMarkdown:()=>D,isAudio:()=>x,isBackup:()=>T,isImage:()=>v,isVideo:()=>k,markdownNameFromFileName:()=>c,uploadIcon:()=>O,validateUploadedFile:()=>d,validateUploadedFiles:()=>u});var r=n(35193),i=n(62617),s=n(54736),o=n(37080),a=n(82099);const l={alert(e){(0,o.getOwnerWithFallback)(this).lookup("service:dialog").alert(e)}};function c(e){let t=e.slice(0,e.lastIndexOf("."));return(0,i.isAppleDevice)()&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t)&&(t=a.default.t("upload_selector.default_image_alt_text")),t.replace(/\[|\]|\|/g,"")}function u(e,t){return!(!e||0===e.length)&&(e.length>1?(l.alert(a.default.t("post.errors.too_many_uploads")),!1):d(e[0],t))}function d(e,t){if("undefined"!=typeof Blob&&"undefined"!=typeof File&&e instanceof Blob&&!(e instanceof File)&&"image/png"===e.type&&(e.name="image.png"),(t=t||{}).type=S(e.name),t.skipValidation)return!0;let n=t.user,r=n&&n.staff;if(!y(r,t.siteSettings))return l.alert(a.default.t("post.errors.no_uploads_authorized")),!1;const i=e&&e.name;if(!i)return!1;if(t.allowStaffToUploadAnyFileInPm&&t.isPrivateMessage&&r)return!0;if(t.imagesOnly){if(!v(i)&&!function(e,t,n){return new RegExp("\\.("+g(t,n).join("|")+")$","i").test(e)}(i,r,t.siteSettings))return l.alert(a.default.t("post.errors.upload_not_authorized",{authorized_extensions:b(r,t.siteSettings)})),!1}else if(t.csvOnly){if(!/\.csv$/i.test(i))return l.alert(a.default.t("user.invited.bulk_invite.error")),!1}else if(!_(r,t.siteSettings)&&!function(e,t,n){return!(!t||!new RegExp("\\.("+m(n).join("|")+")$","i").test(e))||new RegExp("\\.("+h(n).join("|")+")$","i").test(e)}(i,r,t.siteSettings))return l.alert(a.default.t("post.errors.upload_not_authorized",{authorized_extensions:f(r,t.siteSettings).join(", ")})),!1;return t.bypassNewUserRestriction||!n||n.isAllowedToUploadAFile(t.type)?0!==e.size||(console.warn("File with a 0 byte size detected, cancelling upload.",e),l.alert(a.default.t("post.errors.file_size_zero")),!1):(l.alert(a.default.t(`post.errors.${t.type}_upload_not_allowed_for_new_user`)),!1)}function p(e){return e.toLowerCase().replace(/[\s\.]+/g,"").split("|").filter((e=>!e.includes("*")))}function h(e){return p(e.authorized_extensions)}function m(e){return p(e.authorized_extensions_for_staff)}function g(e,t){let n=h(t).filter((e=>v(`.${e}`)));if(e){const e=m(t).filter((e=>v(`.${e}`)));n=n.concat(e)}return n}function f(e,t){return(e?[...h(t),...m(t)]:h(t)).filter((e=>e.length>0))}function b(e,t){return _(e,t)?"png, jpg, jpeg, gif, svg, ico, heic, heif, webp, avif":g(e,t).join(", ")}function _(e,t){return t.authorized_extensions.includes("*")||t.authorized_extensions_for_staff.includes("*")&&e}function y(e,t){return!!_(e,t)||t.authorized_extensions.split("|").filter((e=>e)).length>0||t.authorized_extensions_for_staff.split("|").filter((e=>e)).length>0&&e}function w(e,t){return!!_(e,t)||g(e,t).length>0}function v(e){return/\.(png|webp|jpe?g|gif|svg|ico|heic|heif|avif)$/i.test(e)}function k(e){return/\.(mov|mp4|webm|m4v|3gp|ogv|avi|mpeg)$/i.test(e)}function x(e){return/\.(mp3|og[ga]|opus|wav|m4[abpr]|aac|flac)$/i.test(e)}function T(e){return/^\w[\w\.-]*-v\d+\.(tar\.gz)$/i.test(e)}function S(e){return v(e)?"image":T(e)?"backup":"attachment"}function C(e,t){return _(e,t)||f(e,t).some((e=>v(`.${e}`)))}function P(e,t){return _(e,t)||f(e,t).length>g(e,t).length}function O(e,t){return P(e,t)?"upload":"far-image"}function E(e,t){return`![${c(e.original_filename)}|${t}](${e.short_url})`}function D(e){return v(e.original_filename)?function(e){return`![${c(e.original_filename)}|${e.thumbnail_width}x${e.thumbnail_height}](${e.short_url||e.url})`}(e):x(e.original_filename)?E(e,"audio"):k(e.original_filename)?E(e,"video"):function(e){return`[${e.original_filename}|attachment](${e.short_url}) (${a.default.toHumanSize(e.filesize)})`}(e)}function I(e){const t=(0,r.humanizeList)(e.mapBy("fileName"));l.alert(a.default.t("post.errors.upload",{file_name:t}))}function j(e,t,n){if(n||((0,s.default)("Calling displayErrorForUpload without a fileName is deprecated and will be removed in a future version.",{id:"discourse.uploads.display-error-for-upload"}),n=e.files[0].name),e.jqXHR){if(Z(e.jqXHR.status,e.jqXHR.responseJSON,n,t))return}else if(e.body&&e.status){if(Z(e.status,e.body,n,t))return}else if(e.errors&&e.errors.length>0)return void l.alert(e.errors.join("\n"));l.alert(a.default.t("post.errors.upload",{file_name:n}))}function Z(e,t,n,r){switch(e){case 0:return l.alert(a.default.t("post.errors.upload",{file_name:n})),!0;case 413:const e=S(n);if("backup"===e)l.alert(a.default.t("post.errors.backup_too_large"));else{const t=r[`max_${e}_size_kb`];l.alert(a.default.t("post.errors.file_too_large_humanized",{max_size:a.default.toHumanSize(1024*t)}))}return!0;case 422:return t.message?l.alert(t.message):l.alert(t.errors.join("\n")),!0}}function A(e,t){function n(e){Array.from(e.target.files).forEach((e=>{t(e)}))}return e.addEventListener("change",n),n}},71249:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(49246),o=n(54001),a=n(10425),l=n(7674),c=n(88548),u=n(57555);let d=(i=class extends l.UploadPreProcessorPlugin{constructor(e,t){super(e,t),this.capabilities=t.capabilities}_canUseSubtleCrypto(){return this._secureContext()?this.capabilities.isIE11?(this._consoleWarn("The required cipher suite is unavailable in Internet Explorer 11."),!1):Blob.prototype.arrayBuffer?!!this._hasCryptoCipher()||(this._consoleWarn("The required cipher suite is unavailable in this browser."),!1):(this._consoleWarn("The required File API is unavailable in this browser."),!1):(this._consoleWarn("Cannot generate cryptographic digests in an insecure context (not HTTPS)."),!1)}_generateChecksum(e){if(!this._canUseSubtleCrypto())return this._skipAll(e,!0);let t=e.map((e=>{let t=this._getFile(e);return this._emitProgress(t),t.size>c.HUGE_FILE_THRESHOLD_BYTES?(this._consoleWarn("The file provided is too large to checksum, skipping."),this._skip(t)):t.data.arrayBuffer().then((n=>window.crypto.subtle.digest("SHA-1",n).then((n=>{const r=Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("");this._setFileMeta(e,{sha1_checksum:r}),this._emitComplete(t)})).catch((e=>{e.message.toString().includes("Algorithm: Unrecognized name")?this._consoleWarn("SHA-1 algorithm is unsupported in this browser."):this._consoleWarn(`Error encountered when generating digest: ${e.message}`),this._emitComplete(t)}))))}));return a.Promise.all(t)}_secureContext(){return window.isSecureContext}_hasCryptoCipher(){return window.crypto?.subtle?.digest}install(){this._install(this._generateChecksum)}uninstall(){this._uninstall(this._generateChecksum)}},(0,s.Z)(i,"pluginId","uppy-checksum"),r=i,(0,o.Z)(r.prototype,"_generateChecksum",[u.bind],Object.getOwnPropertyDescriptor(r.prototype,"_generateChecksum"),r.prototype),r)},3223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(24350),i=n(20987),s=n(10425);const o={limit:5,retryDelays:[0,1e3,3e3,5e3],getChunkSize:()=>5242880,onStart(){},onProgress(){},onChunkComplete(){},onSuccess(){},onError(e){throw e}};class a{constructor(e,t){this.options={...o,...t},this.file=e,this.options.getChunkSize||(this.options.getChunkSize=o.getChunkSize,this.chunkSize=this.options.getChunkSize(this.file)),this.abortController=new r.AbortController,this._initChunks()}_aborted(){return this.abortController.signal.aborted}_initChunks(){this.chunksInProgress=0,this.chunks=null,this.chunkState=null;const e=[];if(0===this.file.size)e.push(this.file.data);else for(let t=0;t<this.file.data.size;t+=this.chunkSize){const n=Math.min(this.file.data.size,t+this.chunkSize);e.push(this.file.data.slice(t,n))}this.chunks=e,this.chunkState=e.map((()=>({bytesUploaded:0,busy:!1,done:!1})))}_createUpload(){if(this._aborted())throw(0,r.createAbortError)();this.options.onStart(),this._uploadChunks()}_uploadChunks(){if(this.chunkState.every((e=>e.done)))return void this._completeUpload();const e=this.options.limit-this.chunksInProgress,t=this.chunkState.filter((e=>e.done)).length,n=this.chunks.length-t;let r=Math.ceil(this.options.limit/2);if(r>n&&(r=n),e<r)return;const i=[];for(let t=0;t<this.chunkState.length;t++){const n=this.chunkState[t];if(!n.done&&!n.busy&&(i.push(t),i.length>=e))break}0!==i.length&&i.forEach((e=>{this._uploadChunkRetryable(e).then((()=>{this._uploadChunks()}),(e=>{this._onError(e)}))}))}_shouldRetry(e){if(e.source&&"number"==typeof e.source.status){const{status:t}=e.source;return 0===t||409===t||423===t||t>=500&&t<600}return!1}_retryable(e){let{before:t,attempt:n,after:s}=e;const{retryDelays:o}=this.options,{signal:a}=this.abortController;t&&t();const l=e=>n().catch((t=>{if(this._aborted())throw(0,r.createAbortError)();if(this._shouldRetry(t)&&e<o.length)return(0,i.default)(o[e],{signal:a}).then((()=>l(e+1)));throw t}));return l(0).then((e=>(s&&s(),e)),(e=>{throw s&&s(),e}))}_uploadChunkRetryable(e){return this._retryable({before:()=>{this.chunksInProgress+=1},attempt:()=>this._uploadChunk(e),after:()=>{this.chunksInProgress-=1}})}_uploadChunk(e){if(this.chunkState[e].busy=!0,this._aborted())throw this.chunkState[e].busy=!1,(0,r.createAbortError)();return this._uploadChunkBytes(e,this.options.url,this.options.headers)}_onChunkProgress(e,t){this.chunkState[e].bytesUploaded=parseInt(t,10);const n=this.chunkState.reduce(((e,t)=>e+t.bytesUploaded),0);this.options.onProgress(n,this.file.data.size)}_onChunkComplete(e){this.chunkState[e].done=!0,this.options.onChunkComplete(e)}_uploadChunkBytes(e,t,n){const i=this.chunks[e],{signal:o}=this.abortController;return new s.Promise(((s,a)=>{const l=new XMLHttpRequest;function c(){o.removeEventListener("abort",(()=>l.abort()))}o.addEventListener("abort",l.abort()),l.open(this.options.method||"POST",t,!0),n&&Object.keys(n).forEach((e=>{l.setRequestHeader(e,n[e])})),l.responseType="text",l.upload.addEventListener("progress",(t=>{t.lengthComputable&&this._onChunkProgress(e,t.loaded,t.total)})),l.addEventListener("abort",(()=>{c(),this.chunkState[e].busy=!1,a((0,r.createAbortError)())})),l.addEventListener("load",(t=>{if(c(),this.chunkState[e].busy=!1,t.target.status<200||t.target.status>=300){const e=new Error("Non 2xx");return e.source=t.target,void a(e)}this.chunks[e]=null,this._onChunkProgress(e,i.size,i.size),this._onChunkComplete(e),s()})),l.addEventListener("error",(t=>{c(),this.chunkState[e].busy=!1;const n=new Error("Unknown error");n.source=t.target,a(n)})),l.send(this._buildFormData(e+1,i))}))}async _completeUpload(){this.options.onSuccess()}_buildFormData(e,t){const n=this.file.data.size+"-"+this.file.data.name.replace(/[^0-9a-zA-Z_-]/gim,""),r=new FormData;return r.append("file",t),r.append("resumableChunkNumber",e),r.append("resumableCurrentChunkSize",t.size),r.append("resumableChunkSize",this.chunkSize),r.append("resumableTotalSize",this.file.data.size),r.append("resumableFilename",this.file.data.name),r.append("resumableIdentifier",n),r}_abortUpload(){this.abortController.abort()}_onError(e){e&&"AbortError"===e.name||this.options.onError(e)}start(){this._createUpload()}abort(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;e?.really&&this._abortUpload()}}},60683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(49246),i=n(51372),s=n(1784),o=n(10425),a=n(3223),l=n(7674),c=n(47582);class u extends l.UploaderPlugin{constructor(e,t){super(e,t),this.opts={limit:0,retryDelays:[0,1e3,3e3,5e3],...t},this.url=(0,c.default)(t.url),this.method=t.method||"POST",this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null)}_resetUploaderReferences(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}_uploadFile(e){return new o.Promise(((t,n)=>{const r=new a.default(e,{getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):null,onStart:()=>{this.uppy.emit("upload-started",e)},onProgress:(t,n)=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t,bytesTotal:n})},onChunkComplete:t=>{const n=this.uppy.getFile(e.id);n&&this.uppy.emit("chunk-uploaded",n,t)},onSuccess:()=>{this._resetUploaderReferences(e.id);const n=this.uppy.getFile(e.id);this.uppy.emit("upload-success",n||e,{}),t(r)},onError:t=>{this.uppy.log(t),this.uppy.emit("upload-error",e,t),this._resetUploaderReferences(e.id),n(t)},limit:this.opts.limit||5,retryDelays:this.opts.retryDelays||[],method:this.method,url:this.url,headers:this.opts.headers});this.uploaders[e.id]=r,this.uploaderEvents[e.id]=new s.default(this.uppy),(0,i.next)((()=>{e.isPaused||r.start()})),this._onFileRemove(e.id,(n=>{this._resetUploaderReferences(e.id,{abort:!0}),t(`upload ${n.id} was removed`)})),this._onCancelAll(e.id,(()=>{this._resetUploaderReferences(e.id,{abort:!0}),t(`upload ${e.id} was canceled`)})),this._onFilePause(e.id,(e=>{e?r.pause():(0,i.next)((()=>{r.start()}))})),this._onPauseAll(e.id,(()=>{r.pause()})),this._onResumeAll(e.id,(()=>{e.error&&r.abort(),(0,i.next)((()=>{r.start()}))})),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e)}))}_onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}_onFilePause(e,t){this.uploaderEvents[e].on("upload-pause",((n,r)=>{e===n&&t(r)}))}_onPauseAll(e,t){this.uploaderEvents[e].on("pause-all",(()=>{this.uppy.getFile(e)&&t()}))}_onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}_onResumeAll(e,t){this.uploaderEvents[e].on("resume-all",(()=>{this.uppy.getFile(e)&&t()}))}_upload(e){const t=e.map((e=>{const t=this.uppy.getFile(e);return this._uploadFile(t)}));return o.Promise.all(t)}install(){this._install(this._upload.bind(this))}uninstall(){this._uninstall(this._upload.bind(this))}}(0,r.Z)(u,"pluginId","uppy-chunked-uploader")},20934:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(49246),o=n(54001),a=n(10425),l=n(7674),c=n(57555);let u=(i=class extends l.UploadPreProcessorPlugin{constructor(e,t){super(e,t),this.optimizeFn=t.optimizeFn,this.runParallel=t.runParallel||!1}_optimizeFile(e){let t=this._getFile(e);return this._emitProgress(t),this.optimizeFn(t,{stopWorkerOnError:!this.runParallel}).then((n=>{let r=!1;n?this._setFileState(e,{data:n,size:n.size}):(this._consoleWarn("Nothing happened, possible error or other restriction, or the file format is not a valid one for compression."),r=!0),this._emitComplete(t,r)})).catch((e=>{this._consoleWarn(e),this._emitComplete(t)}))}_optimizeParallel(e){return a.Promise.all(e.map(this._optimizeFile))}async _optimizeSerial(e){let t=e.map((e=>()=>this._optimizeFile(e)));for(const e of t)await e()}install(){this.runParallel?this._install(this._optimizeParallel):this._install(this._optimizeSerial)}uninstall(){this.runParallel?this._uninstall(this._optimizeParallel):this._uninstall(this._optimizeSerial)}},(0,s.Z)(i,"pluginId","uppy-media-optimization"),r=i,(0,o.Z)(r.prototype,"_optimizeFile",[c.bind],Object.getOwnPropertyDescriptor(r.prototype,"_optimizeFile"),r.prototype),(0,o.Z)(r.prototype,"_optimizeParallel",[c.bind],Object.getOwnPropertyDescriptor(r.prototype,"_optimizeParallel"),r.prototype),(0,o.Z)(r.prototype,"_optimizeSerial",[c.bind],Object.getOwnPropertyDescriptor(r.prototype,"_optimizeSerial"),r.prototype),r)},7674:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UploadPreProcessorPlugin:()=>l,UploaderPlugin:()=>c,UppyPluginBase:()=>a});var r=n(49246),i=(n(95793),n(79338)),s=n(10425),o=n(34405);class a extends i.BasePlugin{constructor(e,t){super(e,t),this.id=this.constructor.pluginId}_consoleWarn(e){(0,o.isTesting)()}_consoleDebug(e){this.siteSettings?.enable_upload_debug_mode&&console.log(`[${this.id}] ${e}`)}_getFile(e){return this.uppy.getFile(e)}_setFileMeta(e,t){this.uppy.setFileMeta(e,t)}_setFileState(e,t){this.uppy.setFileState(e,t)}_emitAllComplete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.forEach((e=>{let n=this._getFile(e);this._emitComplete(n,t)})),s.Promise.resolve()}_emitError(e,t){this.uppy.emit("upload-error",e,{errors:[t],message:`[${this.id}] ${t}`})}_skip(e){return this._emitComplete(e,!0)}_skipAll(e){return this._emitAllComplete(e,!0)}}class l extends a{constructor(e,t){super(e,t),this.type=this.constructor.pluginType}_install(e){this.uppy.addPreProcessor(e)}_uninstall(e){this.uppy.removePreProcessor(e)}_emitProgress(e){this.uppy.emit("preprocess-progress",e,null,this.id)}_emitComplete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.uppy.emit("preprocess-complete",e,t,this.id),s.Promise.resolve()}}(0,r.Z)(l,"pluginType","preprocessor");class c extends a{constructor(e,t){super(e,t),this.type=this.constructor.pluginType}_install(e){this.uppy.addUploader(e)}_uninstall(e){this.uppy.removeUploader(e)}_emitProgress(e){this.uppy.emit("upload-progress",e,null,this.id)}_emitComplete(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.uppy.emit("upload-complete",e,t,this.id),s.Promise.resolve()}}(0,r.Z)(c,"pluginType","uploader")},20229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TOPIC_URL_REGEXP:()=>_,clearRewrites:()=>x,default:()=>M,getCanonicalUrl:()=>A,getCategoryAndTagUrl:()=>j,getEditCategoryUrl:()=>Z,groupPath:()=>S,prefixProtocol:()=>I,rewritePath:()=>k,setURLContainer:()=>D,userPath:()=>T});var r=n(72326),i=n(48163),s=n.n(i),o=n(51372),a=n(33217),l=n(71466),c=n.n(l),u=n(73162),d=n(31310),p=n(62617),h=n(56746),m=n(31311),g=n(34405),f=n(47582);const b=[],_=/\/t\/([^\/]*[^\d\/][^\/]*)\/(\d+)\/?(\d+)?/,y=[/^\/assets\//,/^\/uploads\//,/^\/secure-media-uploads\//,/^\/secure-uploads\//,/^\/stylesheets\//,/^\/site_customizations\//,/^\/raw\//,/^\/posts\/\d+\/raw/,/^\/raw\/\d+/,/\.rss$/,/\.json$/,/^\/logs($|\/)/,/^\/admin\/customize\/watched_words\/action\/[^\/]+\/download$/,/^\/pub\//,/^\/invites\//,/^\/styleguide/],w=["page"],v=/\/$/;function k(e){const t=e.split("?");let n=t[0];return b.forEach((t=>{(t.opts.exceptions||[]).some((t=>e.startsWith(t)))||(n=n.replace(t.regexp,t.replacement))})),t.length>1&&(n+=`?${t[1]}`),n}function x(){b.length=0}function T(e){return(0,f.default)(e?`/u/${e}`:"/u")}function S(e){return(0,f.default)(e?`/g/${e}`:"/g")}let C=!1,P=!1,O=null,E=s().extend({isJumpScheduled:()=>P||C,jumpToPost(e,t){t=t||{};const n=`#post_${e}`;P=e>1,(0,o.schedule)("afterRender",(()=>{if(t.jumpEnd){let e=c()(n),t=e.height();if(t>c()(window).height()-(0,d.default)())return c()(window).scrollTop(e.offset().top+(t-250)),void(P=!1)}if(1===e&&!t.anchor)return c()(window).scrollTop(0),void(P=!1);let r,i;if(t.anchor&&(r=`#main #${t.anchor}, a[name=${t.anchor}]`,i=document.querySelector(r)),i||(r=n,i=document.querySelector(r)),O&&O.clearLock(),O=new u.default(r,{originalTopOffset:t.originalTopOffset,finished(){P=!1,O=null}}),i&&t.skipIfOnScreen){const e=O.elementTop(),t=c()(window).scrollTop(),n=c()(window).height()-(0,d.default)(),r=c()(i).height();if(e>t&&e+r<t+n)return void(P=!1)}O.lock(),O.elementTop()<1&&(P=!1)}))},replaceState(e){e.startsWith("#")&&(e=this.routerService.currentURL.replace(/#.*$/,"")+e),e=(0,f.withoutPrefix)(e),this.routerService.currentURL!==e&&(0,o.next)((()=>{this.router._routerMicrolib.replaceURL(e)}))},routeToTag(e){return!(!e||!e.href)&&(e.host&&e.host!==document.location.host?(document.location=e.href,!1):this.routeTo(e.href))},routeTo(e,t){if(t=t||{},(0,a.isEmpty)(e))return;if(m.default.currentProp("requiresRefresh")&&!this.isComposerOpen)return this.redirectTo(e);const n=e.replace(/(https?\:)?\/\/[^\/]+/,"");if(!this.isInternal(e))return this.redirectTo(e);if(y.some((e=>n.match(e))))return void this.redirectTo(e);const r=/^#(.+)$/.exec(e);if(r)return this.jumpToElement(r[1]),this.replaceState(e);const i=this.routerService.currentURL;return(e=e.replace(/(https?\:)?\/\/[^\/]+/,"")).startsWith("/")&&(e=(0,f.withoutPrefix)(e)),"function"==typeof t.afterRouteComplete&&(0,o.schedule)("afterRender",t.afterRouteComplete),this.navigatedToPost(i,e,t)?void 0:((i===e||this.refreshedHomepage(i,e))&&this.routerService.refresh(),""===e&&(e="/"),this.handleURL(e,t))},routeToUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.routeTo((0,f.default)(e),t)},rewrite(e,t,n){b.push({regexp:e,replacement:t,opts:n||{}})},redirectAbsolute:e=>((0,g.isTesting)()||(window.location=e),!0),redirectTo(e){return this.redirectAbsolute((0,f.default)(e))},isInternal(e){if(e&&e.length){if(e.startsWith("//")&&(e="http:"+e),e.startsWith("#"))return!0;if(e.startsWith("/"))return!0;if(e.startsWith(this.origin()))return!0;if(e.replace(/^http/,"https").startsWith(this.origin()))return!0;if(e.replace(/^https/,"http").startsWith(this.origin()))return!0}return!1},navigatedToPost(e,t,n){const r=_.exec(t),i=r?r[2]:null;if(i){const s=_.exec(e);if((s?s[2]:null)===i){this.replaceState(t);const e=this.container.lookup("controller:topic"),i={},s=e.get("model.postStream");return r[3]&&(i.nearPost=r[3]),t.match(/last$/)&&(i.nearPost=e.get("model.highest_post_number")),n.keepFilter||(i.cancelFilter=!0),s.refresh(i).then((()=>{const r=s.closestPostNumberFor(i.nearPost||1);e.setProperties({"model.currentPost":r,enteredAt:Date.now().toString()}),this.appEvents.trigger("post:highlight",r);const o={skipIfOnScreen:n.skipIfOnScreen,jumpEnd:n.jumpEnd},a=/#(.+)$/.exec(t);a&&(o.anchor=a[1]),this.jumpToPost(r,o)})),!0}}return!1},refreshedHomepage(e,t){const n=(0,p.defaultHomepage)();return!("/"!==t&&t!=="/"+n||"/"!==e&&e!=="/"+n)},origin(){let e=(0,f.default)("/");return window.location.origin+("/"===e?"":e)},get isComposerOpen(){return this.container.lookup("service:composer")?.visible},get router(){return this.container.lookup("router:main")},get routerService(){return this.container.lookup("service:router")},get appEvents(){return this.container.lookup("service:app-events")},controllerFor(e){return this.container.lookup("controller:"+e)},handleURL(e,t){(t=t||{}).replaceURL&&this.replaceState(e);const n=e.split("#");let r;2===n.length&&(e=n[0],r=n[1]);const i=this.routerService.transitionTo(e);return i._discourse_intercepted=!0,i._discourse_anchor=r,i._discourse_original_url=e,(i.promise||i).then((()=>this.jumpToElement(r)))},jumpToElement(e){if(C||(0,a.isEmpty)(e))return;const t=`#main #${e}, a[name=${e}]`;C=!0,(0,o.schedule)("afterRender",(function(){O&&O.clearLock(),O=new u.default(t,{finished(){C=!1,O=null}}),O.lock()}))}}).create();function D(e){E.container=e,(0,r.setOwner)(E,e)}function I(e){return e.includes("://")||e.startsWith("mailto:")?e:"https://"+e}function j(e,t,n){let r;return e&&(r=e.path,"none"===e.default_list_filter&&t?r+=t?"/all":"/none":t||(r+="/none")),n&&(r=r?"/tags"+r+"/"+n.toLowerCase():"/tag/"+n.toLowerCase()),(0,f.default)(r||"/")}function Z(e,t,n){let r=`/c/${h.default.slugFor(e)}/edit`;return n&&(r+=`/${n}`),(0,f.default)(r)}function A(e){const t=new URL(e);t.pathname=t.pathname.replace(v,"");const n=new URLSearchParams;for(const[e,r]of t.searchParams)w.includes(e)&&n.append(e,r);return t.search=n.toString(),t.toString()}const M=E},63421:(e,t,n)=>{"use strict";n.r(t),n.d(t,{changeEmail:()=>a,resendActivationEmail:()=>o});var r=n(3055),i=n(38864),s=n(20229);function o(e){return(0,r.ajax)((0,s.userPath)("action/send_activation_email"),{type:"POST",data:{username:e}}).catch(i.popupAjaxError)}function a(e){return(0,r.ajax)((0,s.userPath)("update-activation-email"),{data:e,type:"PUT"})}},91049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(36630),i=n(77559),s=n(20229);class o{constructor(e){let{siteSettings:t,site:n}=e;this.site=n,this.siteSettings=t}get className(){}get linkHref(){throw new Error("not implemented")}get linkTitle(){throw new Error("not implemented")}get icon(){throw new Error("not implemented")}get label(){throw new Error("not implemented")}get labelClass(){}get description(){throw new Error("not implemented")}get descriptionClass(){}get topicId(){}get avatarTemplate(){}get iconComponent(){return this.siteSettings.show_user_menu_avatars?r.default:null}get iconComponentArgs(){return{avatarTemplate:this.avatarTemplate||this.site.system_user_avatar_template,icon:this.icon}}onClick(e){let{event:t,closeUserMenu:n}=e;if((0,i.wantsNewWindow)(t))return;n();const r=this.linkHref;r&&s.default.routeTo(r),t.preventDefault()}}},28063:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(91049),i=n(87521);class s extends r.default{constructor(e){let{bookmark:t}=e;super(...arguments),this.bookmark=t}get className(){return"bookmark"}get linkHref(){return this.bookmark.bookmarkable_url}get linkTitle(){return this.bookmark.name}get icon(){return i.NO_REMINDER_ICON}get label(){return this.bookmark.user?.username}get description(){return this.bookmark.title}get topicId(){return this.bookmark.topic_id}get avatarTemplate(){return this.bookmark.user.avatar_template}}},98242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(35193),s=n(91049),o=n(62617),a=n(82099);class l extends s.default{constructor(e){let{message:t}=e;super(...arguments),this.message=t}get className(){return"message"}get linkHref(){const e=Math.min((this.message.last_read_post_number||0)+1,this.message.highest_post_number);return(0,o.postUrl)(this.message.slug,this.message.id,e)}get linkTitle(){return a.default.t("user.private_message")}get icon(){return"notification.private_message"}get label(){return this.message.last_poster_username}get description(){return(0,r.htmlSafe)((0,i.emojiUnescape)(this.message.fancy_title))}get topicId(){return this.message.id}get avatarTemplate(){return this.message.last_poster_avatar_template}}},3366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(32758),i=n(3055),s=n(59469),o=n(98350),a=n(91049),l=n(47582);var c=new WeakMap;class u extends a.default{constructor(e){let{notification:t,endComponent:n,appEvents:i,currentUser:s,siteSettings:a,site:l}=e;var u,p,h;super(...arguments),h={get:d,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(u=this,p=c),p.set(u,h),this.appEvents=i,this.currentUser=s,this.endComponent=n,this.notification=t,this.siteSettings=a,this.site=l,this.renderDirector=(0,o.getRenderDirector)((0,r.Z)(this,c),t,s,a,l)}get className(){return this.renderDirector.classNames?.join(" ")||""}get linkHref(){return this.renderDirector.linkHref}get linkTitle(){return this.renderDirector.linkTitle}get icon(){return this.renderDirector.icon}get label(){return this.renderDirector.label}get labelClass(){return this.renderDirector.labelClasses?.join(" ")||""}get description(){return this.renderDirector.description}get descriptionClass(){return this.renderDirector.descriptionClasses?.join(" ")||""}get topicId(){return this.notification.topic_id}get avatarTemplate(){return this.notification.acting_user_avatar_template}get endOutletArgs(){return{notification:this.notification}}onClick(){if(this.renderDirector.onClick?.(),this.appEvents.trigger("user-menu:notification-click",{notification:this.notification,href:this.linkHref}),!this.notification.read){this.notification.set("read",!0);const e={...this.currentUser.grouped_unread_notifications},t=e&&e[this.notification.notification_type];t>0&&(e[this.notification.notification_type]=t-1,this.currentUser.set("grouped_unread_notifications",e)),(0,i.setTransientHeader)("Discourse-Clear-Notifications",this.notification.id),(0,s.default)("cn",this.notification.id,{path:(0,l.default)("/")})}super.onClick(...arguments)}}function d(){return this.site.notificationLookup[this.notification.notification_type]}},90065:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(40019),i=n(91049),s=n(47582);class o extends i.default{constructor(e){let{reviewable:t,currentUser:n,siteSettings:i,site:s}=e;super(...arguments),this.reviewable=t,this.currentUser=n,this.siteSettings=i,this.site=s,this.renderDirector=(0,r.getRenderDirector)(this.reviewable.type,this.reviewable,this.currentUser,this.siteSettings,this.site)}get className(){const e=["reviewable"];return this.reviewable.pending?e.push("pending"):e.push("reviewed"),e.join(" ")}get linkHref(){return(0,s.default)(`/review/${this.reviewable.id}`)}get linkTitle(){return""}get icon(){return this.renderDirector.icon}get label(){return this.renderDirector.actor}get description(){return this.renderDirector.description}}},82658:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CUSTOM_TABS_CLASSES:()=>s,default:()=>i,registerUserMenuTab:()=>o,resetUserMenuTabs:()=>a});var r=n(82099);class i{constructor(e,t,n){this.currentUser=e,this.siteSettings=t,this.site=n}get shouldDisplay(){return!0}get count(){return 0}get title(){const e=this.id.replaceAll(/-/g,"_"),t=this.count;let n;return n=this.count?`user_menu.tabs.${e}_with_unread`:`user_menu.tabs.${e}`,r.default.t(n,{count:t})}get panelComponent(){throw new Error("not implemented")}get id(){throw new Error("not implemented")}get icon(){throw new Error("not implemented")}get notificationTypes(){}getUnreadCountForType(e){const t=`grouped_unread_notifications.${this.site.notification_types[e]}`,n=`grouped_unread_high_priority_notifications.${this.site.notification_types[e]}`;return this.currentUser.get(t)||this.currentUser.get(n)||0}}const s=[];function o(e){s.push(e(i))}function a(){s.length=0}},3872:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPresenceCallbacks:()=>y,default:()=>p,onPresenceChange:()=>h,removeOnPresenceChange:()=>m,seenUser:()=>f,setTestPresence:()=>_,visibilityChanged:()=>b});var r=n(34405);const i=[],s=6e4,o=0;let a=null,l=Date.now(),c=!1,u=!1,d=!0;function p(){let{browserHiddenTime:e=o,userUnseenTime:t=s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.isTesting)()?d:!(a&&Date.now()-a>=e)&&!(Date.now()-l>=t)}function h(){let{userUnseenTime:e=s,browserHiddenTime:t=o,callback:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e<s)throw`userUnseenTime must be at least ${s}`;i.push({userUnseenTime:e,browserHiddenTime:t,lastState:!0,callback:n})}function m(e){const t=i.findIndex((t=>t.callback===e));i.splice(t,1)}function g(){const e=document.hidden;!!a!==e&&(a=e?Date.now():null),c&&(l=Date.now(),c=!1),u=!1;for(const e of i){const t=p({userUnseenTime:e.userUnseenTime,browserHiddenTime:e.browserHiddenTime});if(e.lastState!==t)try{e.callback(t)}finally{e.lastState=t}t||(u=!0)}}function f(){c=!0,u&&g()}function b(){document.hidden?g():f()}function _(e){if(!(0,r.isTesting)())throw"Only available in test mode";d=e}function y(){i.length=0}(0,r.isTesting)()||(document.addEventListener("touchmove",f,{passive:!0}),document.addEventListener("click",f,{passive:!0}),window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("focus",f,{passive:!0}),document.addEventListener("visibilitychange",b,{passive:!0}),setInterval(g,1e4))},47301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{camelCaseToSnakeCase:()=>_,default:()=>S,eagerCompleteSearch:()=>T,resetUserSearchCache:()=>b,skipSearch:()=>x});var r=n(51372),i=n(10425),s=n(3055),o=n(13680),a=n(20229),l=n(62617),c=n(34405),u=n(56111),d=n(12933);let p,h,m,g,f={};function b(){f={},p=null,h=null,m=null,g=null}function _(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1_").toLowerCase()}function y(e,t,n,r,i,l,c,u,d,p,b,y,w){let v=f[e];if(v)return void w(v);const k=T(e,t||n);if(""===e&&!k&&!b)return void w(o.CANCELLED_STATUS);let x={term:e,topic_id:t,category_id:n,include_groups:r,include_mentionable_groups:i,include_messageable_groups:l,groups:d,topic_allowed_users:u,include_staged_users:p,last_seen_users:b,limit:y};c&&Object.keys(c).forEach((e=>{x[_(e)]=c[e]})),g=(0,s.ajax)((0,a.userPath)("search/users"),{data:x});let S=o.CANCELLED_STATUS;g.then((function(t){const n=!!(t.users&&t.users.length||t.groups&&t.groups.length||t.emails&&t.emails.length);k&&!n&&(t=o.CANCELLED_STATUS),f[e]=t,h=new Date,e===m&&(S=t)})).finally((function(){g=null,w(S)}))}let w=function(e,t,n,r,i,s,o,a,l,c,d,p,h){(0,u.default)(this,y,e,t,n,r,i,s,o,a,l,c,d,p,h,300)};function v(e,t){return e&&t&&e.toLowerCase().includes(t.toLowerCase())}const k=/([\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*,\/:;<=>?\[\]^`{|}~])|\s\s|^\s$|^[^+]*\+[^@]*$/;function x(e,t){return!(arguments.length>2&&void 0!==arguments[2]&&arguments[2]||(!e.includes("@")||t)&&!e.match(k))}function T(e,t){return""===e&&!!t}function S(e){e.term&&e.term.length>0&&"@"===e.term[0]&&(e.term=e.term.substring(1));let t=e.term||"",n=e.includeGroups,s=e.includeMentionableGroups,a=e.includeMessageableGroups,u=e.customUserSearchOptions,b=e.allowedUsers,_=e.topicId,y=e.categoryId,k=e.groupMembersOf,T=e.includeStagedUsers,S=e.lastSeenUsers,C=e.limit||6;return g&&(g.abort(),g=null),m=t,new i.Promise((function(i){const m=`${_}-${y}`;let g;(new Date-h>3e4||p!==m)&&(f={}),p=m,(0,c.isTesting)()||(g=(0,d.default)((()=>i(o.CANCELLED_STATUS)),5e3)),x(t,e.allowEmails,e.lastSeenUsers)?i([]):w(t,_,y,n,s,a,u,b,k,T,S,C,(function(t){(0,r.cancel)(g),i(function(e,t){if(e===o.CANCELLED_STATUS)return e;const n=t.exclude||[],r=t.term?.trim()?.split(/\s/,1)?.[0],i=[],s=[],a=[];let c=0;e.users&&e.users.forEach((e=>{c<t.limit&&!n.includes(e.username)&&(e.isUser=!0,e.isMetadataMatch=!v(e.username,r)&&!v(e.name,r),i.push(e),c+=1)})),t.allowEmails&&(0,l.emailValid)(t.term)&&(s.push({username:t.term,isEmail:!0}),c+=1),e.groups&&e.groups.forEach((e=>{(t.term.toLowerCase()===e.name.toLowerCase()||c<t.limit)&&!n.includes(e.name)&&(e.isGroup=!0,a.push(e),c+=1)}));const u=[...i.filter((e=>!e.isMetadataMatch)),...s,...a,...i.filter((e=>e.isMetadataMatch))];return u.users=i,u.emails=s,u.groups=a,u}(t,{...e,limit:C}))}))}))}},38242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{UserStatusMessage:()=>w});var r,i,s,o,a,l,c=n(94664),u=n(49246),d=n(54001),p=n(72326),h=n(17579),m=n(70352),g=n(35193),f=n(62617),b=n(7223);function _(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function y(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let w=(s=new WeakSet,o=new WeakSet,a=new WeakSet,l=new WeakSet,r=class{constructor(e,t,n){_(this,l),_(this,a),_(this,o),_(this,s),(0,c.Z)(this,"tooltip",i,this),(0,u.Z)(this,"html",null),(0,u.Z)(this,"content",null),(0,p.setOwner)(this,e),this.html=y(this,o,k).call(this,t,n),this.content=y(this,a,x).call(this,t),this.tooltipInstance=this.tooltip.register(this.html,{content:this.content})}destroy(){this.tooltipInstance.destroy()}},i=(0,d.Z)(r.prototype,"tooltip",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);function v(e){const t=(0,f.escapeExpression)(`:${e}:`);return(0,g.emojiUnescape)(t,{skipTitle:!0})}function k(e,t){const n=document.createElement("span");if(n.classList.add("user-status-message"),t?.class&&n.classList.add(t.class),n.innerHTML=y(this,s,v).call(this,e.emoji),t?.showDescription){const t=document.createElement("span");t.classList.add("user-status-message-description"),t.innerText=e.description,n.appendChild(t)}return n}function x(e){const t=document.createElement("div");t.classList.add("user-status-message-tooltip"),t.innerHTML=y(this,s,v).call(this,e.emoji);const n=document.createElement("span");if(n.classList.add("user-status-tooltip-description"),n.innerText=e.description,t.appendChild(n),e.ends_at){const n=document.createElement("div");n.classList.add("user-status-tooltip-until"),n.innerText=y(this,l,T).call(this,e.ends_at),t.appendChild(n)}return t}function T(e){const t=b.default.current(),n=t?t.user_option?.timezone:moment.tz.guess();return(0,m.until)(e,n,t?.locale)}},55566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{destroyUserStatuses:()=>a,initUserStatusHtml:()=>s,renderUserStatusHtml:()=>o});var r=n(38242);let i=[];function s(e,t){(t||[]).forEach(((t,n)=>{if(t.status){t.index=n;const s=new r.UserStatusMessage(e,t.status,{showDescription:!0});t.statusHtml=s.html,i.push(s)}}))}function o(e){document.querySelectorAll(".autocomplete.ac-user li").forEach((t=>{const n=t.dataset.index,r=e.find((function(e){return e.index===parseInt(n,10)}))?.statusHtml;r&&t.querySelector(".user-status").replaceWith(r)}))}function a(){i.forEach((e=>{e.destroy()})),i=[]}},62617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{allowOnlyNumericInput:()=>fe,areCookiesEnabled:()=>ee,arrayToTable:()=>he,avatarImg:()=>w,avatarUrl:()=>y,caretPosition:()=>z,caretRowCol:()=>N,cleanNullQueryParams:()=>be,clipboardCopy:()=>le,clipboardCopyAsync:()=>ce,clipboardHelpers:()=>V,defaultHomepage:()=>U,determinePostReplaceSelection:()=>B,emailValid:()=>D,escapeExpression:()=>x,extractDomainFromUrl:()=>j,fillMissingDates:()=>X,findTableRegex:()=>me,formatUsername:()=>C,getCaretPosition:()=>pe,getRawAvatarSize:()=>_,getRawSize:()=>b,highlightPost:()=>E,hostnameValid:()=>I,inCodeBlock:()=>se,initializeDefaultHomepage:()=>F,isAppleDevice:()=>$,isNumeric:()=>J,isiPad:()=>q,mergeSortedLists:()=>de,modKeysPressed:()=>oe,postRNWebviewMessage:()=>ne,postUrl:()=>O,prefersReducedMotion:()=>te,replaceFormatter:()=>P,safariHacksDisabled:()=>H,selectedNode:()=>A,selectedRange:()=>M,selectedText:()=>Z,setCaretPosition:()=>L,setDefaultHomepage:()=>R,slugify:()=>Y,splitString:()=>k,tinyAvatar:()=>v,toAsciiPrintable:()=>G,toNumber:()=>Q,tokenRange:()=>ge,translateModKey:()=>ae,translateSize:()=>f});var r=n(31706),i=n.n(r),s=n(71466),o=n.n(s),a=n(7179),l=n(10591),c=n(80709),u=n(54736),d=n(53134),p=n(47582),h=n(82099);let m;function g(e){return function(){return(0,u.default)(`${e} should be imported from discourse-common/lib/avatar-utils instead of discourse/lib/utilities`,{id:"discourse.avatar-utils"}),c[e](...arguments)}}const f=g("translateSize"),b=g("getRawSize"),_=g("getRawAvatarSize"),y=g("avatarUrl"),w=g("avatarImg"),v=g("tinyAvatar");function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return"string"==typeof e?e.split(t).filter(Boolean):[]}function x(e){return e?e instanceof i().SafeString?e.toString():(0,d.default)(e):""}let T,S=e=>e;function C(e){return S(e||"")}function P(e){S=e}function O(e,t,n){let r=(0,p.default)("/t/");return r+=e?e+"/":"topic/",r+=t,n>1&&(r+="/"+n),r}function E(e){const t=document.querySelector(`#post_${e}`);if(!t)return;const n=t.querySelector(".topic-body, .small-action-desc");if(!n||n.classList.contains("highlighted"))return;n.classList.add("highlighted"),e>1&&(n.setAttribute("tabindex","0"),n.focus());const r=function(){n.classList.remove("highlighted"),n.removeAttribute("tabindex"),n.removeEventListener("animationend",r)};n.addEventListener("animationend",r)}function D(e){return/^[a-zA-Z0-9!#$%&'*+\/=?\^_`{|}~\-]+(?:\.[a-zA-Z0-9!#$%&'\*+\/=?\^_`{|}~\-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/.test(e)}function I(e){return e&&/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)+([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/.test(e)}function j(e){return(e=e.includes("://")?e.split("/")[2]:e.split("/")[0]).split(":")[0]}function Z(){const e=window.getSelection();if(e.isCollapsed)return"";const t=document.createElement("div");for(let n=0;n<e.rangeCount;n++){const r=e.getRangeAt(n),i=r.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?r.commonAncestorContainer:r.commonAncestorContainer.parentElement,s=i.querySelector(".post-menu-area");s&&r.setEndBefore(s);const o=i.closest("aside.onebox[data-onebox-src]");if(i.closest("pre")){const e=document.createElement("code");if(e.append(r.cloneContents()),/\n/.test(e.innerText)){const n=document.createElement("pre");n.append(e),t.append(n)}else t.append(e)}else if(o){const e=o.dataset.oneboxSrc;t.append(e)}else t.append(r.cloneContents())}return t.querySelectorAll("aside.onebox[data-onebox-src]").forEach((e=>{const t=e.dataset.oneboxSrc;e.replaceWith(t)})),(0,a.default)(t.outerHTML)}function A(){return M()?.commonAncestorContainer}function M(){const e=window.getSelection();if(e.rangeCount>0)return e.getRangeAt(0)}function N(e){let t=z(e),n=e.value.slice(0,t).split("\n"),r=n.length;return{rowNum:r,colNum:t-n.splice(0,r-1).reduce((function(e,t){return e+t.length+1}),0)}}function z(e){return e?.selectionStart||0}function L(e,t){let n;return e.setSelectionRange?(e.focus(),void e.setSelectionRange(t,t)):e.createTextRange?(n=e.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()):void 0}function F(e){const t=document.querySelector("meta[name='discourse_current_homepage']");R(t?.getAttribute("content")||e.top_menu.split("|")[0].split(",")[0])}function U(){return m}function R(e){m=e}function B(e){let{selection:t,needle:n,replacement:r}=e;const i=r.end-r.start-(n.end-n.start);return t.end<=n.start?{start:t.start,end:t.end}:t.start<=n.start?t.end<n.end?{start:t.start,end:n.start}:{start:t.start,end:t.end+i}:t.start<n.end?t.end<=n.end?{start:r.end,end:r.end}:{start:r.end,end:t.end+i}:{start:t.start+i,end:t.end+i}}function $(){return l.capabilities.isIOS&&!window.navigator.userAgent.match(/Trident/g)}function q(){return void 0===T&&(T=window.navigator.userAgent.match(/iPad/g)&&!window.navigator.userAgent.match(/Trident/g)),T}function H(){return(0,u.default)("`safariHacksDisabled()` is deprecated, it now always returns `false`",{since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",id:"discourse.safari-hacks-disabled"}),!1}const W=e=>(e=e||[],Array.isArray(e)?e:Array.from(e)),K=e=>1===e.files.length&&"image/png"===e.files[0].type&&e.types.every((e=>["text/html","Files"].includes(e)))&&/<img.*src=.*\.gif/.test(e.getData("text/html"));function V(e,t){const n=e.clipboardData||e.originalEvent.clipboardData||e.delegatedEvent.originalEvent.clipboardData,r=W(n.types);let i=W(n.files);r.includes("Files")&&0===i.length&&(i=W(n.items).filter((e=>"file"===e.kind)));let s=i&&t.canUpload&&r.includes("Files");const o=s&&i.filter((e=>e.type.match("^image/")))[0]&&!K(n),a=t.siteSettings.enable_rich_text_paste&&r.includes("text/html")&&!o;return{clipboard:n,types:r,canUpload:s,canPasteHtml:a}}function G(e,t){return"function"==typeof e.normalize&&(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),/^[\040-\176]*$/.test(e)?e:t}function Y(e){return e.trim().toLowerCase().replace(/\s|_+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function Q(e){return"number"==typeof e?e:parseFloat(e)}function J(e){return!isNaN(Q(e))&&isFinite(e)}function X(e,t,n){const r=moment(t,"YYYY-MM-DD"),i=moment(n,"YYYY-MM-DD").diff(r,"days");let s=r;for(let t=0;t<=i;t++){let n=e[t]?moment(e[t].x,"YYYY-MM-DD"):null;0!==t||n&&!n.isAfter(r)?n&&!n.isAfter(moment(s))||e.splice(t,0,{x:s,y:0}):e.splice(t,0,{x:r.format("YYYY-MM-DD"),y:0}),s=moment(s).add(1,"day").format("YYYY-MM-DD")}return e}function ee(){try{document.cookie="cookietest=1";let e=document.cookie.includes("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}}function te(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ne(e,t){void 0!==window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(JSON.stringify({[e]:t}))}const re=/^(  |\t).*|`[^`]+`|^```[^]*?^```|\[code\][^]*?\[\/code\]/gm,ie=/^(  |\t).*|`[^`]+|^```[^]*?|\[code\][^]*?/gm;function se(e,t){let n=0;for(const r of e.matchAll(re))if(n=r.index+r[0].length,r.index<=t&&t<=n)return!0;const r=e.slice(n).search(ie);return-1!==r&&t>=n+r}function oe(e){return["alt","shift","meta","ctrl"].filter((t=>e[`${t}Key`]))}function ae(e){const{isApple:t}=l.capabilities;return t?e.toLowerCase().replace("shift","⇧").replace("meta","⌘").replace("alt","⌥").replace(/\+/g,""):e.toLowerCase().replace("shift",h.default.t("shortcut_modifier_key.shift")).replace("ctrl",h.default.t("shortcut_modifier_key.ctrl")).replace("meta",h.default.t("shortcut_modifier_key.ctrl")).replace("alt",h.default.t("shortcut_modifier_key.alt"))}function le(e){return window.navigator.clipboard?window.navigator.clipboard.writeText(e).catch((function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")})):ue(e)?Promise.resolve():Promise.reject()}function ce(e){return window.navigator.clipboard?window.ClipboardItem?window.navigator.clipboard.write([new window.ClipboardItem({"text/plain":e()})]).catch((function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")})):e().then((e=>e.text().then((e=>le(e))))):e().then((e=>{e.text().then((e=>ue(e)))}))}function ue(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);const n=window.getSelection(),r=window.document.createRange();n.removeAllRanges(),r.selectNode(t),n.addRange(r);let i=!1;try{i=window.document.execCommand("copy")}catch(e){console.log("error",e)}return n.removeAllRanges(),window.document.body.removeChild(t),i}function de(e,t,n){let r=0,i=0;const s=[];for(;r<e.length||i<t.length;)r===e.length||i<t.length&&n(e[r],t[i])?(s.push(t[i]),i++):(s.push(e[r]),r++);return s}function pe(e,t){const n=o()(e).caretPosition(t),r=e.getBoundingClientRect();return{x:n.left+r.left,y:n.top+r.top}}function he(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"col",r="";return r+="|",r+=t.join(" | "),r+="|\r\n|",r+=t.map((function(){return"---"})).join(" | "),r+="|\r\n",e.forEach((function(e){r+="|",r+=t.map((function(t,r){return String(e[`${n}${r}`]||"").replace(/\r?\n|\r/g," ")})).join(" | ")+"|\r\n"})),r}function me(){return/((\r?){2}|^)(^\|[^\r\n]*(\r?\n)?)+(?=(\r?\n){2}|$)/gm}function ge(e,t,n){const r=[];let i=!1,s=[];return e.forEach((e=>{e.type===t&&(i=!0),e.type===n&&(r.push(s),s=[],i=!1),i&&s.push(e)})),r}function fe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!["Enter","Backspace","Tab","Delete","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9"].includes(e.key)){if(t&&"-"===e.key)return;e.preventDefault()}}function be(e){for(const[t,n]of Object.entries(e))"undefined"!==n&&"null"!==n||(e[t]=null);return e}},22519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class r{constructor(){this.updateRect()}updateRect(){const e=document.getSelection();if(this.range=e&&e.rangeCount&&e.getRangeAt(0),this.range)return this.rect=this.range.getBoundingClientRect(),this.rect}getBoundingClientRect(){return this.rect}getClientRects(){return this.range.getClientRects()}get clientWidth(){return this.rect.width}get clientHeight(){return this.rect.height}}function i(){return new r}},19086:(e,t,n)=>{"use strict";n.r(t),n.d(t,{wavingHandURL:()=>o});var r=n(9387),i=n(47582),s=n(61369);function o(){const e=(0,s.helperContext)().siteSettings.emoji_set,t=Math.floor(5*Math.random()+2);return(0,i.default)(`${(0,r.emojiBasePath)()}/${e}/wave/${t}.png`)}},78580:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WebauthnAbortHandler:()=>c,bufferToBase64:()=>a,getPasskeyCredential:()=>d,getWebauthnCredential:()=>u,isWebauthnSupported:()=>l,stringToBuffer:()=>o});var r=n(49246),i=n(3055),s=n(82099);function o(e){let t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return t}function a(e){return btoa(String.fromCharCode(...new Uint8Array(e)))}function l(){return"undefined"!=typeof PublicKeyCredential}const c=new class{constructor(){(0,r.Z)(this,"controller",void 0)}signal(){if(this.controller){const e=new Error("Cancelling pending webauthn call");e.name="AbortError",this.controller.abort(e)}return this.controller=new AbortController,this.controller.signal}};function u(e,t,n,r){if(!l())return r(s.default.t("login.security_key_support_missing_error"));let i=o(e),u=t.map((e=>({id:o(atob(e)),type:"public-key"})));navigator.credentials.get({publicKey:{challenge:i,allowCredentials:u,timeout:6e4,userVerification:"discouraged"},signal:c.signal()}).then((e=>{if(!(e.response instanceof AuthenticatorAssertionResponse))return r(s.default.t("login.security_key_invalid_response_error"));if(!t.some((t=>a(e.rawId)===t)))return r(s.default.t("login.security_key_no_matching_credential_error"));const i={signature:a(e.response.signature),clientData:a(e.response.clientDataJSON),authenticatorData:a(e.response.authenticatorData),credentialId:a(e.rawId)};n(i)})).catch((e=>{if("NotAllowedError"===e.name)return r(s.default.t("login.security_key_not_allowed_error"));r(e)}))}async function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"optional",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!l())return e(s.default.t("login.security_key_support_missing_error"));if("conditional"!==t||!n||await PublicKeyCredential.isConditionalMediationAvailable())try{const e=await(0,i.ajax)("/session/passkey/challenge.json"),n=await navigator.credentials.get({publicKey:{challenge:o(e.challenge),userVerification:"required"},signal:c.signal(),mediation:t});return{signature:a(n.response.signature),clientData:a(n.response.clientDataJSON),authenticatorData:a(n.response.authenticatorData),credentialId:a(n.rawId),userHandle:a(n.response.userHandle)}}catch(n){return"AbortError"===n.name?null:"conditional"===t?(console.error(n),null):"NotAllowedError"===n.name?e(s.default.t("login.security_key_not_allowed_error")):"SecurityError"===n.name?e(s.default.t("login.passkey_security_error",{message:n.message})):e(n.message)}}},20608:(e,t,n)=>{"use strict";n.r(t);var r=n(543),i=n(91649);(0,r.default)("@discourse/itsatrap",(()=>(0,i.Z)(n(54712)))),(0,r.default)("@ember-compat/tracked-built-ins",(()=>(0,i.Z)(n(57959)))),(0,r.default)("@popperjs/core",(()=>(0,i.Z)(n(33765)))),(0,r.default)("@floating-ui/dom",(()=>(0,i.Z)(n(24193)))),(0,r.default)("@uppy/aws-s3",(()=>(0,i.Z)(n(18797)))),(0,r.default)("@uppy/aws-s3-multipart",(()=>(0,i.Z)(n(63825)))),(0,r.default)("@uppy/core",(()=>(0,i.Z)(n(79338)))),(0,r.default)("@uppy/drop-target",(()=>(0,i.Z)(n(35305)))),(0,r.default)("@uppy/utils/lib/AbortController",(()=>(0,i.Z)(n(24350)))),(0,r.default)("@uppy/utils/lib/delay",(()=>(0,i.Z)(n(20987)))),(0,r.default)("@uppy/utils/lib/EventTracker",(()=>(0,i.Z)(n(1784)))),(0,r.default)("@uppy/xhr-upload",(()=>(0,i.Z)(n(72603)))),(0,r.default)("a11y-dialog",(()=>(0,i.Z)(n(19311)))),(0,r.default)("discourse-i18n",(()=>(0,i.Z)(n(82099)))),(0,r.default)("ember-modifier",(()=>(0,i.Z)(n(42465)))),(0,r.default)("ember-route-template",(()=>(0,i.Z)(n(89135)))),(0,r.default)("handlebars",(()=>(0,i.Z)(n(31706)))),(0,r.default)("jquery",(()=>(0,i.Z)(n(71466)))),(0,r.default)("js-yaml",(()=>(0,i.Z)(n(69805)))),(0,r.default)("message-bus-client",(()=>(0,i.Z)(n(42480)))),(0,r.default)("virtual-dom",(()=>(0,i.Z)(n(41221)))),(0,r.default)("xss",(()=>(0,i.Z)(n(11281))))},31459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mapRoutes:()=>m});var r=n(49246),i=n(98958),s=n.n(i);let o;{const e=(0,n(15099).buildWaiter)("@embroider/router:lazy-route-waiter");class t extends(s()){lazyBundle(e){let t=this._engineInfoByRoute,n=window,r=t[e];if(r&&n._embroiderEngineBundles_){let e=r.name;return n._embroiderEngineBundles_.find((t=>-1!==t.names.indexOf(e)))}return!!n._embroiderRouteBundles_&&n._embroiderRouteBundles_.find((t=>-1!==t.names.indexOf(e)))}_getQPMeta(e){let t=this.lazyBundle(e.name);if(!t||t.loaded){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return super._getQPMeta(e,...r)}}setupRouter(){let e=super.setupRouter(...arguments),t=this._routerMicrolib;return t.getRoute=this._handlerResolver(t.getRoute.bind(t)),e}_handlerResolver(t){return n=>{const r=this.lazyBundle(n);if(!r||r.loaded)return t(n);let i=e.beginAsync();return r.load().then((()=>(e.endAsync(i),r.loaded=!0,t(n))),(t=>{throw e.endAsync(i),t}))}}}o=t}var a=o,l=n(19990),c=n(34405),u=n(47582),d=n(53574);class p extends a{constructor(){super(...arguments),(0,r.Z)(this,"location",(0,c.isTesting)()?"none":"history")}setupRouter(){const e=super.setupRouter(...arguments);return e&&(0,d.default)(this),e}}class h{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.name=e,this.opts=t,this.depth=n,this.children=[],this.childrenByName={},this.paths={},this.site=l.default.current(),t.path||(t.path=e),this.paths[t.path]=!0}route(e,t,n){"function"==typeof t?(n=t,t={}):t=t||{};const r=this.childrenByName[e];if(r)t.path&&(r.paths[t.path]=!0),r.extract(n);else{const r=new h(e,t,this.depth+1);r.extract(n),this.childrenByName[e]=r,this.children.push(r)}}extract(e){e&&e.call(this)}mapRoutes(e){const t=this.children;if("root"===this.name)t.forEach((t=>t.mapRoutes(e)));else{const n=0===t.length?void 0:function(){t.forEach((e=>e.mapRoutes(this)))};e.route(this.name,this.opts,n)}}findSegment(e){if(e&&e.length){const t=e.shift(),n=this.childrenByName[t];if(n)return 0===e.length?n:n.findSegment(e)}}findPath(e){if(e)return this.findSegment(e.split("."))}}function m(){const e=new h("root"),t=[];return Object.keys(requirejs.entries).forEach((function(n){if(/route-map$/.test(n)){let r=requirejs(n,null,null,!0);if(!r||!r.default)throw new Error(n+" must export a route map.");const i=r.default;"function"==typeof i?e.extract(i):t.push(i)}})),t.forEach((t=>{let n=e.findPath(t.resource);n&&n.extract(t.map)})),p.extend({rootURL:(0,u.default)("/")}).map((function(){e.mapRoutes(this),this.route("unknown",{path:"*path"})}))}},53909:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i,s,o=n(54001),a=n(57555);const l=(r=(0,a.observes)("archetype"),i=(0,a.on)("init"),s={_cleanUp(){document.body.classList.forEach((e=>{/\barchetype-\S+/g.test(e)&&document.body.classList.remove(e)}))},_archetypeChanged(){this._cleanUp(),this.archetype&&document.body.classList.add(`archetype-${this.archetype}`)},willDestroyElement(){this._super(...arguments),this._cleanUp()}},(0,o.Z)(s,"_archetypeChanged",[r,i],Object.getOwnPropertyDescriptor(s,"_archetypeChanged"),s),s)},20003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bufferedProperty:()=>a,default:()=>l});var r=n(48163),i=n(39791),s=n.n(i),o=n(33488);function a(e){const t={buffered:(0,r.computed)(e,(function(){return o.default.create({content:this.get(e)})})),rollbackBuffer(){this.buffered.discardBufferedChanges()},commitBuffer(){this.buffered.applyBufferedChanges()},property:null};return s().create(t)}const l=a("content")},83470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(6264),i=n(39791),s=n.n(i),o=n(63319);const a=s().create({isCurrentUser:(0,o.propertyEqual)("model.id","currentUser.id"),showEmailOnProfile:(0,o.setting)("moderators_view_emails"),canStaffCheckEmails:(0,r.and)("showEmailOnProfile","currentUser.staff"),canAdminCheckEmails:(0,r.alias)("currentUser.admin"),canCheckEmails:(0,r.or)("isCurrentUser","canStaffCheckEmails","canAdminCheckEmails")})},80471:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addCardClickListenerSelector:()=>w,default:()=>k,resetCardClickListenerSelector:()=>v});var r,i=n(54001),s=n(6264),o=n(39791),a=n.n(o),l=n(51372),c=n(17579),u=n(71466),d=n.n(u),p=n(77559),h=n(31310),m=n(20229),g=n(62617),f=n(12933),b=n(57555);const _="#main-outlet";let y=[_];function w(e){y.push(e)}function v(){y=[_]}const k=a().create((r={router:(0,c.inject)(),menu:(0,c.inject)(),elementId:null,triggeringLinkClass:null,_showCallback:null,postStream:(0,s.alias)("topic.postStream"),viewingTopic:(0,s.match)("router.currentRouteName",/^topic\./),visible:!1,username:null,loading:null,cardTarget:null,post:null,isDocked:!1,_menuInstance:null,_show(e,t,n){if(this.siteSettings.hide_user_profiles_from_public&&!this.currentUser)return!1;if(e=(0,g.escapeExpression)(e.toString()),t.closest(".card-content"))return this._close(),m.default.routeTo(t.href),!1;this.appEvents.trigger("card:show",e,t,n);const r=t.closest("article"),i=r?.dataset?.postId||null,s=this.visible,o=this.cardTarget;if(s&&(this._close(),t===o))return;const a=this.viewingTopic&&i?this.postStream.findLoadedPost(i):null;return this.setProperties({username:e,loading:e,cardTarget:t,post:a}),document.querySelector(".card-cloak")?.classList.remove("hidden"),this.appEvents.trigger("user-card:show",{username:e}),this._showCallback(e,d()(t)).then((e=>{this.appEvents.trigger("user-card:after-show",{user:e})})),this.site.mobileView&&this._bindMobileScroll(),!1},didInsertElement(){this._super(...arguments);const e=this.elementId,t=`click.discourse-preview-${e}-${this.triggeringLinkClass}`;this.setProperties({boundCardClickHandler:this._cardClickHandler,previewClickEvent:t,mobileScrollEvent:"scroll.mobile-card-cloak"}),document.addEventListener("mousedown",this._clickOutsideHandler),document.addEventListener("keyup",this._escListener),y.forEach((e=>{document.querySelector(e).addEventListener("click",this.boundCardClickHandler)})),this.appEvents.on(t,this,"_previewClick"),this.appEvents.on(`topic-header:trigger-${e}`,this,"_topicHeaderTrigger"),this.appEvents.on("card:close",this,"_close")},_cardClickHandler(e){this.avatarSelector&&this._showCardOnClick(e,this.avatarSelector,(e=>e.dataset[this.avatarDataAttrKey]))||this._showCardOnClick(e,this.mentionSelector,(e=>e.innerText.replace(/^@/,"")))},_showCardOnClick(e,t,n){let r=e.target.closest(t);return!!r&&(!!(0,p.wantsNewWindow)(e)||(e.preventDefault(),e.stopPropagation(),this._show(n(r),r,e)))},_topicHeaderTrigger(e,t){return this.setProperties({isDocked:!0}),this._show(e,t)},_bindMobileScroll(){const e=this.mobileScrollEvent;d()(window).on(e,(()=>{(0,l.throttle)(this,this._close,1e3)}))},_unbindMobileScroll(){const e=this.mobileScrollEvent;d()(window).off(e)},_previewClick(e){return this._show(e.text().replace(/^@/,""),e)},_positionCard(e){(0,l.schedule)("afterRender",(async()=>{e&&(this.site.desktopView?this._menuInstance=await this.menu.show(e[0],{content:this.element,autoUpdate:!1,identifier:"card",padding:{top:54+(0,h.headerOffset)(),right:10,bottom:10,left:10}}):this._menuInstance=await this.menu.show(e[0],{content:this.element,strategy:"fixed",identifier:"card",computePosition:e=>{e.style.left="10px",e.style.right="10px",e.style.top="54px"}}),this.element.classList.toggle("docked-card",this.isDocked),-1===event?.pointerId&&(0,f.default)((()=>{this.element.querySelector("a")?.focus()}),350))}))},_hide(){this.visible||this.site.mobileView&&d()(".card-cloak").addClass("hidden"),this._menuInstance?.destroy()},_close(){this.setProperties({visible:!1,username:null,loading:null,cardTarget:null,post:null,isDocked:!1}),this.site.mobileView&&this._unbindMobileScroll(),this._hide(),this.appEvents.trigger("card:hide")},willDestroyElement(){this._super(...arguments),document.removeEventListener("mousedown",this._clickOutsideHandler),document.removeEventListener("keyup",this._escListener),y.forEach((e=>{document.querySelector(e).removeEventListener("click",this.boundCardClickHandler)}));const e=this.previewClickEvent;this.appEvents.off(e,this,"_previewClick"),this.appEvents.off(`topic-header:trigger-${this.elementId}`,this,"_topicHeaderTrigger"),this.appEvents.off("card:close",this,"_close"),this._hide()},_clickOutsideHandler(e){if(this.visible){if(e.target.closest(`[data-${this.elementId}]`)?.getAttribute(`data-${this.elementId}`)||e.target.closest(`a.${this.triggeringLinkClass}`)||e.target.closest(`#${this.elementId}`))return;this._close()}return!0},_escListener(e){if(this.visible&&"Escape"===e.key)return this.cardTarget?.focus(),void this._close()}},(0,i.Z)(r,"_cardClickHandler",[b.bind],Object.getOwnPropertyDescriptor(r,"_cardClickHandler"),r),(0,i.Z)(r,"_hide",[b.bind],Object.getOwnPropertyDescriptor(r,"_hide"),r),(0,i.Z)(r,"_clickOutsideHandler",[b.bind],Object.getOwnPropertyDescriptor(r,"_clickOutsideHandler"),r),(0,i.Z)(r,"_escListener",[b.bind],Object.getOwnPropertyDescriptor(r,"_escListener"),r),r))},10158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(40375),i=n(39791);const s=n.n(i)().create({_initializeChooser:(0,r.on)("didInsertElement",(function(){this.appEvents.on("dom:clean",this,"cleanUp")})),_clearChooser:(0,r.on)("willDestroyElement",(function(){this.appEvents.off("dom:clean",this,"cleanUp")}))})},45737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>D});var r,i,s,o=n(54001),a=n(72326),l=(n(95793),n(48163)),c=n.n(l),u=n(39791),d=n.n(u),p=n(51372),h=n(17579),m=n(79338),g=n(35305),f=n(72603),b=n(24705),_=n(3055),y=n(29966),w=n(71249),v=n(62617),k=n(93934),x=n(214),T=n(62284),S=n(47582),C=n(12757),P=n(57555),O=n(98233),E=n(82099);const D=d().create(x.default,T.default,(r=(0,P.observes)("composerModel.uploadCancelled"),i=(0,P.on)("willDestroyElement"),s={dialog:(0,h.inject)(),session:(0,h.inject)(),uploadRootPath:"/uploads",uploadTargetBound:!1,useUploadPlaceholders:!0,_cancelSingleUpload(e){this._uppyInstance.removeFile(e.fileId)},_cancelUpload(){this.get("composerModel.uploadCancelled")&&(this.set("composerModel.uploadCancelled",!1),this.set("userCancelled",!0),this._uppyInstance.cancelAll())},_unbindUploadTarget(){this.uploadTargetBound&&(this.fileInputEl?.removeEventListener("change",this.fileInputEventListener),this.editorEl?.removeEventListener("paste",this.pasteEventListener),this.appEvents.off(`${this.composerEventPrefix}:add-files`,this._addFiles),this.appEvents.off(`${this.composerEventPrefix}:cancel-upload`,this._cancelSingleUpload),this._reset(),this._uppyInstance&&(this._uppyInstance.close(),this._uppyInstance=null),this.uploadTargetBound=!1)},_abortAndReset(){return this.appEvents.trigger(`${this.composerEventPrefix}:uploads-aborted`),this._reset(),!1},_bindUploadTarget(){this.set("inProgressUploads",[]),this.set("bufferedUploadErrors",[]),this.placeholders={},this._preProcessorStatus={},this.editorEl=this.element.querySelector(this.editorClass),this.fileInputEl=document.getElementById(this.fileUploadElementId);const e=this.get("composerModel.privateMessage");this.appEvents.on(`${this.composerEventPrefix}:add-files`,this._addFiles),this.appEvents.on(`${this.composerEventPrefix}:cancel-upload`,this._cancelSingleUpload),this._unbindUploadTarget(),this.fileInputEventListener=(0,y.bindFileInputChangeListener)(this.fileInputEl,this._addFiles),this.editorEl.addEventListener("paste",this.pasteEventListener),this._uppyInstance=new m.default({id:this.uppyId,autoProceed:!0,meta:(0,C.deepMerge)({upload_type:this.uploadType},this.data||{}),onBeforeFileAdded:t=>{const n={user:this.currentUser,siteSettings:this.siteSettings,isPrivateMessage:e,allowStaffToUploadAnyFileInPm:this.siteSettings.allow_staff_to_upload_any_file_in_pm},r=(0,y.validateUploadedFile)(t,n);return this.setProperties({uploadProgress:0,isUploading:r,isCancellable:r}),r||this.appEvents.trigger(`${this.composerEventPrefix}:uploads-aborted`),r},onBeforeUpload:e=>{const t=this.siteSettings.simultaneous_uploads,n={},r={};for(const[t,i]of Object.entries(e)){const s=this._findMatchingUploadHandler(i.name);s?r[s.method]?r[s.method].files.push(i):r[s.method]={fn:s.method,files:[i.data]}:n[t]={...e[t]}}for(const e of Object.values(r))if(!e.fn(e.files,this))return this._abortAndReset();const i=Object.keys(n).length;return t>0&&i>t?(this.dialog.alert(E.default.t("post.errors.too_many_dragged_and_dropped_files",{count:t})),this._abortAndReset()):n}}),this.siteSettings.enable_upload_debug_mode&&this._instrumentUploadTimings(),this.siteSettings.enable_direct_s3_uploads?this._useS3MultipartUploads():this._useXHRUploads(),this._uppyInstance.on("file-added",(t=>{(0,p.run)((()=>{e&&(t.meta.for_private_message=!0)}))})),this._uppyInstance.on("progress",(e=>{(0,p.run)((()=>{this.isDestroying||this.isDestroyed||this.set("uploadProgress",e)}))})),this._uppyInstance.on("file-removed",((e,t)=>{(0,p.run)((()=>{"cancel-all"!==t&&(this.appEvents.trigger(`${this.composerEventPrefix}:upload-cancelled`,e.id),e.meta.cancelled=!0,this._removeInProgressUpload(e.id),this._resetUpload(e,{removePlaceholder:!0}),0===this.inProgressUploads.length&&(this.set("userCancelled",!0),this._uppyInstance.cancelAll()))}))})),this._uppyInstance.on("upload-progress",((e,t)=>{(0,p.run)((()=>{if(this.isDestroying||this.isDestroyed)return;const n=this.inProgressUploads.find((t=>t.id===e.id));if(n){const e=Math.round(t.bytesUploaded/t.bytesTotal*100);n.set("progress",e)}}))})),this._uppyInstance.on("upload",(e=>{(0,p.run)((()=>{this._addNeedProcessing(e.fileIDs.length);const t=e.fileIDs.map((e=>this._uppyInstance.getFile(e)));this.setProperties({isProcessingUpload:!0,isCancellable:!1}),t.forEach((e=>{this.inProgressUploads.pushObject(c().create({fileName:e.name,id:e.id,progress:0,extension:e.extension}));const t=this._uploadPlaceholder(e);this.placeholders[e.id]={uploadPlaceholder:t},this.useUploadPlaceholders&&this.appEvents.trigger(`${this.composerEventPrefix}:insert-text`,t),this.appEvents.trigger(`${this.composerEventPrefix}:upload-started`,e.name)}))}))})),this._uppyInstance.on("upload-success",((e,t)=>{(0,p.run)((()=>{if(!this._uppyInstance)return;this._removeInProgressUpload(e.id);let n=t.body;const r=this.uploadMarkdownResolvers.reduce(((e,t)=>t(n)||e),(0,y.getUploadMarkdown)(n));(0,b.cacheShortUploadUrl)(n.short_url,n),new k.default((0,a.getOwner)(this)).generateVideoThumbnail(e,n.url,(()=>{this.useUploadPlaceholders&&this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,this.placeholders[e.id].uploadPlaceholder.trim(),r),this._resetUpload(e,{removePlaceholder:!1}),this.appEvents.trigger(`${this.composerEventPrefix}:upload-success`,e.name,n),0===this.inProgressUploads.length&&(this.appEvents.trigger(`${this.composerEventPrefix}:all-uploads-complete`),this._displayBufferedErrors(),this._reset())}))}))})),this._uppyInstance.on("upload-error",this._handleUploadError),this._uppyInstance.on("cancel-all",(()=>{this.userCancelled&&(Object.values(this.placeholders).forEach((e=>{(0,p.run)((()=>{this.useUploadPlaceholders&&this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,e.uploadPlaceholder,"")}))})),this.set("userCancelled",!1),this._reset(),this.appEvents.trigger(`${this.composerEventPrefix}:uploads-cancelled`))})),this._setupPreProcessors(),this._setupUIPlugins(),this.uploadTargetBound=!0,this._uppyReady()},_uppyReady(){},_handleUploadError(e,t,n){this._removeInProgressUpload(e.id),this._resetUpload(e,{removePlaceholder:!0}),e.meta.error=t,this.userCancelled||(this._bufferUploadError(n||t,e.name),this.appEvents.trigger(`${this.composerEventPrefix}:upload-error`,e)),0===this.inProgressUploads.length&&(this._displayBufferedErrors(),this._reset())},_removeInProgressUpload(e){this.set("inProgressUploads",this.inProgressUploads.filter((t=>t.id!==e)))},_displayBufferedErrors(){0!==this.bufferedUploadErrors.length&&(1===this.bufferedUploadErrors.length?(0,y.displayErrorForUpload)(this.bufferedUploadErrors[0].data,this.siteSettings,this.bufferedUploadErrors[0].fileName):(0,y.displayErrorForBulkUpload)(this.bufferedUploadErrors))},_bufferUploadError(e,t){this.bufferedUploadErrors.push({data:e,fileName:t})},_setupPreProcessors(){const e={pluginClass:w.default,optionsResolverFn:e=>{let{capabilities:t}=e;return{capabilities:t}}};[this.uploadPreProcessors,e].flat().forEach((e=>{let{pluginClass:t,optionsResolverFn:n}=e;this._useUploadPlugin(t,n({composerModel:this.composerModel,composerElement:this.composerElement,capabilities:this.capabilities,isMobileDevice:this.site.isMobileDevice}))})),this._onPreProcessProgress((e=>{let t=this.placeholders[e.id];t.processingPlaceholder=`[${E.default.t("processing_filename",{filename:e.name})}]()\n`,this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,t.uploadPlaceholder,t.processingPlaceholder),this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,t.uploadPlaceholder.replace("...","…"),t.processingPlaceholder)})),this._onPreProcessComplete((e=>{(0,p.run)((()=>{let t=this.placeholders[e.id];this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,t.processingPlaceholder,t.uploadPlaceholder)}))}),(()=>{(0,p.run)((()=>{this.setProperties({isProcessingUpload:!1,isCancellable:!0}),this.appEvents.trigger(`${this.composerEventPrefix}:uploads-preprocessing-complete`)}))}))},_setupUIPlugins(){this._uppyInstance.use(g.default,this._uploadDropTargetOptions())},_uploadFilenamePlaceholder(e){const t=this._filenamePlaceholder(e),n=(0,O.default)(t),r=`\\[${E.default.t("uploading_filename",{filename:n+"(?:\\()?([0-9])?(?:\\))?"})}\\]\\(\\)`,i=new RegExp(r,"g"),s=this.get(`composerModel.${this.composerModelContentKey}`).match(i);if(s){const e=s[s.length-1],n=new RegExp(r);return`${t}(${n.exec(e)[1]?parseInt(n.exec(e)[1],10)+1:1})`}return t},_uploadPlaceholder(e){const t=E.default.t("clipboard"),n=this._uploadFilenamePlaceholder(e)||t;let r=`[${E.default.t("uploading_filename",{filename:n})}]()\n`;return this._cursorIsOnEmptyLine()||(r=`\n${r}`),r},_useXHRUploads(){this._uppyInstance.use(f.default,{endpoint:(0,S.default)(`/uploads.json?client_id=${this.messageBus.clientId}`),headers:()=>({"X-CSRF-Token":this.session.csrfToken})})},_reset(){this._uppyInstance?.cancelAll(),this.setProperties({uploadProgress:0,isUploading:!1,isProcessingUpload:!1,isCancellable:!1,inProgressUploads:[],bufferedUploadErrors:[]}),this._resetPreProcessors(),this.fileInputEl.value=""},_resetUpload(e,t){t.removePlaceholder&&this.appEvents.trigger(`${this.composerEventPrefix}:replace-text`,this.placeholders[e.id].uploadPlaceholder,"")},pasteEventListener(e){if(document.activeElement!==document.querySelector(this.editorInputClass))return;const{canUpload:t,canPasteHtml:n,types:r}=(0,v.clipboardHelpers)(e,{siteSettings:this.siteSettings,canUpload:!0});!t||n||r.includes("text/plain")||e&&e.clipboardData&&e.clipboardData.files&&this._addFiles([...e.clipboardData.files],{pasted:!0})},async _addFiles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.session.csrfToken||await(0,_.updateCsrfToken)(),e=Array.isArray(e)?e:[e];try{this._uppyInstance.addFiles(e.map((e=>({source:this.uppyId,name:e.name,type:e.type,data:e,meta:{pasted:t.pasted}}))))}catch(e){}},showUploadSelector(e){this.send("showUploadSelector",e)},_bindMobileUploadButton(){this.site.mobileView&&(this.mobileUploadButton=document.getElementById(this.mobileFileUploaderId),this.mobileUploadButton?.addEventListener("click",this._mobileUploadButtonEventListener,!1))},_mobileUploadButtonEventListener(){document.getElementById(this.fileUploadElementId).click()},_unbindMobileUploadButton(){this.mobileUploadButton?.removeEventListener("click",this._mobileUploadButtonEventListener)},_filenamePlaceholder:e=>e.name.replace(/\u200B-\u200D\uFEFF]/g,""),_resetUploadFilenamePlaceholder(){this.set("uploadFilenamePlaceholder",null)},_uploadDropTargetOptions(){return{target:this.element}}},(0,o.Z)(s,"_cancelSingleUpload",[P.bind],Object.getOwnPropertyDescriptor(s,"_cancelSingleUpload"),s),(0,o.Z)(s,"_cancelUpload",[r],Object.getOwnPropertyDescriptor(s,"_cancelUpload"),s),(0,o.Z)(s,"_unbindUploadTarget",[i],Object.getOwnPropertyDescriptor(s,"_unbindUploadTarget"),s),(0,o.Z)(s,"_handleUploadError",[P.bind],Object.getOwnPropertyDescriptor(s,"_handleUploadError"),s),(0,o.Z)(s,"pasteEventListener",[P.bind],Object.getOwnPropertyDescriptor(s,"pasteEventListener"),s),(0,o.Z)(s,"_addFiles",[P.bind],Object.getOwnPropertyDescriptor(s,"_addFiles"),s),(0,o.Z)(s,"_mobileUploadButtonEventListener",[P.bind],Object.getOwnPropertyDescriptor(s,"_mobileUploadButtonEventListener"),s),s))},93934:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a,l=n(94664),c=n(49246),u=n(54001),d=n(23183),p=n(72326),h=(n(95793),n(48163)),m=n.n(h),g=n(17579),f=n(79338),b=n(29966),_=n(88548),y=n(82099);let w=(r=class extends(m().extend(_.default)){constructor(e){super(...arguments),(0,l.Z)(this,"dialog",i,this),(0,l.Z)(this,"siteSettings",s,this),(0,l.Z)(this,"session",o,this),(0,l.Z)(this,"uploading",a,this),(0,c.Z)(this,"uploadRootPath","/uploads"),(0,c.Z)(this,"uploadTargetBound",!1),(0,c.Z)(this,"useUploadPlaceholders",!0),(0,p.setOwner)(this,e)}generateVideoThumbnail(e,t,n){if(!this.siteSettings.video_thumbnails_enabled)return n();if(!(0,b.isVideo)(e.name))return n();const r=document.createElement("video");r.src=URL.createObjectURL(e.data),r.autoplay=!0,r.muted=!0,r.playsinline=!0;let i=t.substring(t.lastIndexOf("/")+1).split(".")[0];r.onloadedmetadata=()=>{const e=document.createElement("canvas"),t=e.getContext("2d");e.width=r.videoWidth,e.height=r.videoHeight,setTimeout((()=>{t.drawImage(r,0,0,r.videoWidth,r.videoHeight),e.toBlob((e=>{this._uppyInstance=new f.default({id:"video-thumbnail",meta:{videoSha1:i,upload_type:"thumbnail"},autoProceed:!0}),this.siteSettings.enable_upload_debug_mode&&this._instrumentUploadTimings(),this.siteSettings.enable_direct_s3_uploads?this._useS3MultipartUploads():this._useXHRUploads(),this._uppyInstance.on("upload",(()=>{this.uploading=!0})),this._uppyInstance.on("upload-success",(()=>{this.uploading=!1,n()})),this._uppyInstance.on("upload-error",((e,t,r)=>{let i=y.default.t("wizard.upload_error");r.body.errors&&(i=r.body.errors.join("\n")),console.error(i),this.uploading=!1,n()}));try{this._uppyInstance.addFile({source:`${this.id}-video-thumbnail`,name:`${i}`,type:e.type,data:e})}catch(e){}}))}),100)}}},i=(0,u.Z)(r.prototype,"dialog",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.Z)(r.prototype,"siteSettings",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,u.Z)(r.prototype,"session",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.Z)(r.prototype,"uploading",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},75637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(39791);const i=n.n(r)().create({activate(){this.controllerFor("application").setProperties({sidebarDisabledRouteOverride:!0})},deactivate(){this.controllerFor("application").setProperties({sidebarDisabledRouteOverride:!1})}})},21101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(54001),s=n(39791),o=n.n(s),a=n(51372),l=n(56111),c=n(12933),u=n(57555);const d=o().create((r={_initialTimer:null,_queuedTimer:null,didInsertElement(){this._super(...arguments),window.addEventListener("scroll",this.queueDockCheck,{passive:!0}),document.addEventListener("touchmove",this.queueDockCheck,{passive:!0}),this._initialTimer=(0,c.default)(this,this.safeDockCheck,50)},willDestroyElement(){this._super(...arguments),this._queuedTimer&&(0,a.cancel)(this._queuedTimer),(0,a.cancel)(this._initialTimer),window.removeEventListener("scroll",this.queueDockCheck),document.removeEventListener("touchmove",this.queueDockCheck)},queueDockCheck(){this._queuedTimer=(0,l.default)(this,this.safeDockCheck,5)},safeDockCheck(){this.isDestroyed||this.isDestroying||this.dockCheck()}},(0,i.Z)(r,"queueDockCheck",[u.bind],Object.getOwnPropertyDescriptor(r,"queueDockCheck"),r),(0,i.Z)(r,"safeDockCheck",[u.bind],Object.getOwnPropertyDescriptor(r,"safeDockCheck"),r),r))},214:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(39791),i=n.n(r),s=n(18794);const o=i().create(s.default,{_useUploadPlugin(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._uppyInstance){if(!e.pluginId)throw new Error("The uppy plugin should have a static pluginId that is used to uniquely identify it.");if(!e.pluginType||!["preprocessor","uploader"].includes(e.pluginType))throw new Error(`The uppy plugin ${e.pluginId} should have a static pluginType that should be preprocessor or uploader`);this._uppyInstance.use(e,Object.assign(t,{id:e.pluginId,type:e.pluginType})),"preprocessor"===e.pluginType&&this._trackPreProcessorStatus(e.pluginId)}},_onPreProcessProgress(e){this._uppyInstance.on("preprocess-progress",((t,n,r)=>{this._consoleDebug(`[${r}] processing file ${t.name} (${t.id})`),this._preProcessorStatus[r].activeProcessing++,e(t)}))},_onPreProcessComplete(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._uppyInstance.on("preprocess-complete",((n,r,i)=>{this._consoleDebug(`[${i}] ${r?"skipped":"completed"} processing file ${n.name} (${n.id})`),e(n),this._completePreProcessing(i,(e=>{e&&(this._consoleDebug("[uppy] All upload preprocessors complete!"),t&&t())}))}))},_resetPreProcessors(){this._eachPreProcessor((e=>{this._preProcessorStatus[e]={needProcessing:0,activeProcessing:0,completeProcessing:0,allComplete:!1}}))},_trackPreProcessorStatus(e){this._preProcessorStatus||(this._preProcessorStatus={}),this._preProcessorStatus[e]={needProcessing:0,activeProcessing:0,completeProcessing:0,allComplete:!1}},_addNeedProcessing(e){this._eachPreProcessor(((t,n)=>{n.needProcessing+=e,n.allComplete=!1}))},_eachPreProcessor(e){for(const[t,n]of Object.entries(this._preProcessorStatus))e(t,n)},_allPreprocessorsComplete(){let e=[];return this._eachPreProcessor(((t,n)=>{e.push(n.allComplete)})),e.every(Boolean)},_completePreProcessing(e,t){const n=this._preProcessorStatus[e];n.activeProcessing--,n.completeProcessing++,n.completeProcessing===n.needProcessing&&(n.allComplete=!0,n.needProcessing=0,n.completeProcessing=0,this._allPreprocessorsComplete()?t(!0):t(!1))}})},48078:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(62617);const i={keyDown(e){if(!document.body.classList.contains("modal-open"))return 27===e.which?(this.cancelled(),!1):13===e.which&&(e.ctrlKey||e.metaKey||(0,r.isiPad)()&&e.altKey)?(this.save(void 0,e),!1):void 0}}},81533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o=n(54001),a=n(39791),l=n.n(a),c=n(51930),u=n(63374),d=n(57555);const p=l().create(u.default,(r=(0,d.on)("didInsertElement"),i=(0,d.on)("willDestroyElement"),s={scrolled(){return this.eyeline?.update()},loadMoreUnlessFull(){this.screenNotFull()&&this.send("loadMore")},_bindEyeline(){const e=c.default.create({selector:`${this.eyelineSelector}:last`});this.set("eyeline",e),e.on("sawBottom",(()=>this.send("loadMore"))),e.update(),this.bindScrolling()},_removeEyeline(){this.unbindScrolling()}},(0,o.Z)(s,"_bindEyeline",[r],Object.getOwnPropertyDescriptor(s,"_bindEyeline"),s),(0,o.Z)(s,"_removeEyeline",[i],Object.getOwnPropertyDescriptor(s,"_removeEyeline"),s),s))},38101:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(39791),i=n.n(r),s=n(71466),o=n.n(s),a=n(56111);const l=i().create({_lastScroll:null,_bottomHit:0,calculateDirection(e){const t=Math.floor(e-this._lastScroll);if(t<=5&&t>=-5)return;if(0===e)return;const n=this.mobileScrollDirection,r=t>0?"down":null,i=Math.floor(o()("body").height()-e-o()(window).height());e<0?this.set("mobileScrollDirection",null):r!==n&&i>0&&this.set("mobileScrollDirection",r),this._lastScroll=Math.floor(e),i>0?this._bottomHit=0:((0,a.default)(this,this._setBottomHit,1e3),1===this._bottomHit&&this.set("mobileScrollDirection",null))},_setBottomHit(){this._bottomHit=1}})},77946:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(39791),i=n.n(r),s=n(2223);const o=i().create({flash(e,t){this.appEvents.trigger("modal-body:flash",{text:e,messageClass:t})},clearFlash(){this.appEvents.trigger("modal-body:clearFlash")},showModal(){return(0,s.default)(...arguments)},actions:{closeModal(){this.modal.close()}}})},55648:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(54001),a=n(48163),l=n.n(a),c=n(39791),u=n.n(c),d=n(33217),p=n(57555),h=n(82099);const m=u().create((r=(0,p.default)(),i=(0,p.default)("accountName","forceValidationReason"),s={nameInstructions(){return h.default.t(this.siteSettings.full_name_required?"user.name.instructions_required":"user.name.instructions")},nameValidation(e,t){return this.siteSettings.full_name_required&&(0,d.isEmpty)(e)?l().create({failed:!0,ok:!1,message:h.default.t("user.name.required"),reason:t?h.default.t("user.name.required"):null,element:document.querySelector("#new-account-name")}):l().create({ok:!0})}},(0,o.Z)(s,"nameInstructions",[r],Object.getOwnPropertyDescriptor(s,"nameInstructions"),s),(0,o.Z)(s,"nameValidation",[i],Object.getOwnPropertyDescriptor(s,"nameValidation"),s),s))},56045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a=n(54001),l=n(48163),c=n.n(l),u=n(39791),d=n.n(u),p=n(33217),h=n(57555),m=n(82099);const g=d().create((r=(0,h.default)("passwordMinLength"),i=(0,h.default)("isDeveloper","admin"),s=(0,h.default)("accountPassword","passwordRequired","rejectedPasswords.[]","accountUsername","accountEmail","passwordMinLength","forceValidationReason"),o={rejectedPasswords:null,init(){this._super(...arguments),this.set("rejectedPasswords",[]),this.set("rejectedPasswordsMessages",new Map)},passwordInstructions(){return m.default.t("user.password.instructions",{count:this.passwordMinLength})},passwordMinLength(e,t){return e||t?this.siteSettings.min_admin_password_length:this.siteSettings.min_password_length},passwordValidation(e,t,n,r,i,s,o){const a={failed:!0,ok:!1,element:document.querySelector("#new-account-password")};return t?n.includes(e)?c().create(Object.assign(a,{reason:this.rejectedPasswordsMessages.get(e)||m.default.t("user.password.common")})):(0,p.isEmpty)(e)?c().create(Object.assign(a,{message:m.default.t("user.password.required"),reason:o?m.default.t("user.password.required"):null})):e.length<s?c().create(Object.assign(a,{reason:m.default.t("user.password.too_short")})):(0,p.isEmpty)(r)||e!==r?(0,p.isEmpty)(i)||e!==i?c().create({ok:!0,reason:m.default.t("user.password.ok")}):c().create(Object.assign(a,{reason:m.default.t("user.password.same_as_email")})):c().create(Object.assign(a,{reason:m.default.t("user.password.same_as_username")})):c().create({ok:!0})}},(0,a.Z)(o,"passwordInstructions",[r],Object.getOwnPropertyDescriptor(o,"passwordInstructions"),o),(0,a.Z)(o,"passwordMinLength",[i],Object.getOwnPropertyDescriptor(o,"passwordMinLength"),o),(0,a.Z)(o,"passwordValidation",[s],Object.getOwnPropertyDescriptor(o,"passwordValidation"),o),o))},44821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(39791),i=n.n(r),s=n(51372),o=n(34405),a=n(12933);const l=i().create({_listenToDoNotDisturbLoop:null,listenForDoNotDisturbChanges(){this.currentUser&&!this.currentUser.isInDoNotDisturb()?this.queueRerender():((0,s.cancel)(this._listenToDoNotDisturbLoop),this._listenToDoNotDisturbLoop=(0,a.default)(this,(()=>{this.listenForDoNotDisturbChanges()}),1e4))},didInsertElement(){this._super(...arguments),this.appEvents.on("do-not-disturb:changed",(()=>this.queueRerender())),(0,o.isTesting)()||this.listenForDoNotDisturbChanges()},willDestroyElement(){this._super(...arguments),(0,s.cancel)(this._listenToDoNotDisturbLoop)}})},23683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{scrollTop:()=>a});var r=n(51372),i=n(20229),s=n(34405);const o={_scrollTop(){(0,s.isTesting)()||(document.documentElement.scrollTop=0)}};function a(){i.default.isJumpScheduled()||(0,r.scheduleOnce)("afterRender",o,o._scrollTop)}},63374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ScrollingDOMMethods:()=>a,default:()=>l});var r=n(39791),i=n.n(r),s=n(51372),o=n(17579);const a={bindOnScroll(e){document.addEventListener("touchmove",e,{passive:!0}),window.addEventListener("scroll",e,{passive:!0})},unbindOnScroll(e){document.removeEventListener("touchmove",e),window.removeEventListener("scroll",e)},screenNotFull:()=>window.height>document.querySelector(".ember-application").offsetHeight},l=i().create({router:(0,o.inject)(),bindScrolling(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.throttle||(e.throttle=100);const t=this.router._router._routerMicrolib;let n,r=()=>{if(!t.activeTransition)return(0,s.scheduleOnce)("afterRender",this,"scrolled")};n=e.throttle?()=>(0,s.throttle)(this,r,e.throttle,!1):r,this._scrollingMixinOnScrollMethod=n,a.bindOnScroll(n)},screenNotFull:()=>a.screenNotFull(),unbindScrolling(){a.unbindOnScroll(this._scrollingMixinOnScrollMethod)}})},95716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(39791);const i=n.n(r)().create({current(){return this._current||(this._current=this.createCurrent()),this._current},createCurrent(){return this.create({})},currentProp(e,t){let n=this.current();if(n)return void 0!==t?(n.set(e,t),t):n.get(e)},resetCurrent(e){return this._current=e,e}})},32270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,getHead:()=>_});var r,i=n(54001),s=n(48163),o=n(39791),a=n.n(o),l=n(51372),c=n(33217),u=n(35193),d=n(7179),p=n(62617),h=n(34405),m=n(57555),g=n(82099);const f="left",b="right";function _(e,t){return"string"==typeof e?[e,e.length]:_(e(t))}const y=a().create((r={init(){this._super(...arguments),this.composerEventPrefix||(this.composerEventPrefix="composer"),(0,u.generateLinkifyFunction)(this.markdownOptions||{}).then((e=>{this._cachedLinkify=e}))},focusTextArea(){!this.element||this.isDestroying||this.isDestroyed||this._textarea&&(this._textarea.blur(),this._textarea.focus())},insertBlock(e){this._addBlock(this.getSelected(),e)},insertText(e,t){this.addText(this.getSelected(),e,t)},getSelected(e,t){if(!this.ready||!this.element)return;const n=this._textarea.value;let r=this._textarea.selectionStart,i=this._textarea.selectionEnd;for(;i>r&&/\s/.test(n.charAt(i-1));)i--;if(e)for(;i>r&&/\s/.test(n.charAt(r));)r++;const s=n.substring(r,i),o=n.slice(0,r),a=n.slice(i);return t&&t.lineVal?{start:r,end:i,value:s,pre:o,post:a,lineVal:n.split("\n")[n.slice(0,this._textarea.selectionStart).split("\n").length-1]}:{start:r,end:i,value:s,pre:o,post:a}},selectText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{scroll:!0};(0,l.next)((()=>{if(this.element&&(this._textarea.selectionStart=e,this._textarea.selectionEnd=e+t,n.scroll)){const e=this._textarea.scrollTop;this.capabilities.isIOS||this._textarea.focus(),this._textarea.scrollTop=e}}))},replaceText(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.value,i=r.indexOf(e);if(-1===i)return;const s=(0,p.determinePostReplaceSelection)({selection:{start:this._textarea.selectionStart,end:this._textarea.selectionEnd},needle:{start:i,end:i+e.length},replacement:{start:i,end:i+t.length}});if(n.index&&n.regex){let e=-1;const i=r.replace(n.regex,(r=>(e++,e===n.index?t:r)));this.set("value",i)}else this.set("value",r.replace(e,t));!n.forceFocus&&!this._$textarea.is(":focus")||n.skipNewSelection||this.selectText(s.start,s.end-s.start)},applySurround(e,t,n,r,i){const s=e.pre,o=e.post,a=n.length;if(e.start===e.end){if(0===a)return;const[i,o]=_(t),l=g.default.t(`composer.${r}`);this._insertAt(e.start,e.end,`${i}${l}${n}`),this.selectText(s.length+o,l.length)}else if(i&&!i.multiline){let[r,a]=_(t);i.useBlockMode&&e.value.split("\n").length>1&&(r+="\n",a+=1,n=`\n${n}`),s.slice(-a)===r&&o.slice(0,n.length)===n?(this._insertAt(e.start-a,e.end+n.length,e.value),this.selectText(e.start-a,e.value.length)):(this._insertAt(e.start,e.end,`${r}${e.value}${n}`),this.selectText(e.start+a,e.value.length))}else{const r=e.value.split("\n");let[l,c]=_(t);if(1===r.length&&s.slice(-a)===n&&o.slice(0,c)===l)this._insertAt(e.start-c,e.end+a,e.value),this.selectText(e.start-c,e.value.length);else{const s=this._getMultilineContents(r,t,l,c,n,a,i);this._insertAt(e.start,e.end,s),1===r.length&&a>0?this.selectText(e.start+c,e.value.length):this.selectText(e.start,s.length)}}},_getMultilineContents(e,t,n,r,i,s,o){let a=0;const l=o&&o.applyEmptyLines;return e.map((e=>{if(!l&&0===e.length)return e;if(2!==a&&(e.slice(0,r)===n&&0===s||i.length&&e.slice(-s)===i)){if(a=1,0===s){const i=e.slice(r);return[n,r]=_(t,n),i}if(e.slice(-s)===i){const i=e.slice(r,-s);return[n,r]=_(t,n),i}}else if(0===a)a=2;else if(1===a)return e;const o=`${n}${e}${i}`;return[n,r]=_(t,n),o})).join("\n")},_addBlock(e,t){if(0===(t=(t||"").trim()).length)return;let n=e.start,r=e.end;const i=e.pre?.match(/\n*$/)?.[0]?.length;i&&(n-=i),e.pre.length>0&&(t=`\n\n${t}`);const s=e.post?.match(/^\n*/)?.[0]?.length;s&&(r+=s),t=e.post.length>0?`${t}\n\n`:`${t}\n`,this._insertAt(n,r,t),this._textarea.setSelectionRange(n+t.length,n+t.length),(0,l.schedule)("afterRender",this,this.focusTextArea)},addText(e,t,n){n&&n.ensureSpace&&((e.pre+"").length>0&&(e.pre.match(/\s$/)||(t=" "+t)),(e.post+"").length>0&&(e.post.match(/^\s/)||(t+=" "))),this._insertAt(e.start,e.end,t),this.focusTextArea()},_insertAt(e,t,n){this._textarea.setSelectionRange(e,t),this._textarea.focus(),document.execCommand("insertText",!1,n)},extractTable(e){e.endsWith("\n")&&(e=e.substring(0,e.length-1)),e=e.split("");let t=!1;e.forEach(((n,r)=>{"\n"===n&&t&&(e[r]="\r"),'"'===n&&(e[r]="",t=!t)}));let n=e.join("").replace(/\r/g,"<br>").split("\n");if(n.length>1){const e=n.map((e=>e.split("\t").length));if(e.reduce(((t,n)=>t&&e[0]===n&&n>1))&&(2!==e[0]||!n[0].split("\t")[0].match(/^•$|^\d+.$/))){const t=[...Array(e[0])].map((()=>"---")).join("\t");return n.splice(1,0,t),"|"+n.map((e=>e.split("\t").join("|"))).join("|\n|")+"|\n"}}return null},isInside(e,t){const n=e.match(t);return n&&n.length%2},paste(e){const t=document.querySelector(this.composerFocusSelector)===e.target;if(!t&&!(0,h.isTesting)())return;let{clipboard:n,canPasteHtml:r,canUpload:i}=(0,p.clipboardHelpers)(e,{siteSettings:this.siteSettings,canUpload:t}),s=n.getData("text/plain"),o=n.getData("text/html"),a=!1;const l=this.getSelected(null,{lineVal:!0}),{pre:c,value:u,lineVal:m}=l,g=c.match(/[^\n]$/),f=this.isInside(c,/(^|\n)```/g);if(s&&this.siteSettings.enable_rich_text_paste&&!g&&!f){s=s.replace(/\r/g,"");const e=this.extractTable(s);e&&(this.composerEventPrefix?this.appEvents.trigger(`${this.composerEventPrefix}:insert-text`,e):this.insertText(e),a=!0)}if(r&&s&&(r=g?!(m.match(/^```/)||this.isInside(c,/`/g)||m.match(/^    /)):!f),this._cachedLinkify&&s&&!a&&l.end>l.start&&!this._cachedLinkify.test(u)&&!u.match(/\[\/?[a-z =]+?\]/g)&&this._cachedLinkify.test(s)){const e=this._cachedLinkify.match(s)[0];e&&0===e.index&&e.lastIndex===e.raw.length&&(this.addText(l,`[${u}](${e.url})`),a=!0)}if(r&&!a){let e=(0,d.default)(o);(!s||s.length<e.length)&&(g&&(e=e.replace(/^#+/,"").trim(),e=c.match(/\S$/)?` ${e}`:e),t&&(this.composerEventPrefix?this.appEvents.trigger(`${this.composerEventPrefix}:insert-text`,e):this.insertText(e),a=!0))}(a||i&&!s)&&e.preventDefault()},_deindentLine(e,t,n){let r=0;for(let i=0;i<e.length;i++){if(!(r<n&&e[i]===t))return e.slice(r);r+=1}return e},indentSelection(e){if(![f,b].includes(e))return;const t=this.getSelected(null,{lineVal:!0}),{lineVal:n}=t;let r,i,s=t.value;(s.match(/^\t/gm)?.length||0)>(s.match(/^ /gm)?.length||0)?(r=1,i="\t"):(i=" ",r=2);const o=new RegExp(`^${i}+`),a=n.match(o),l=s.match(o);if(a){const e=l?l[0]:"";s=a[0].replace(e,"")+s}const c=s.split("\n").map((t=>e===f?this._deindentLine(t,i,r):`${Array(r+1).join(i)}${t}`)).join("\n");""!==c.trim()&&(this.replaceText(s,c,{skipNewSelection:!0}),this.selectText(this.value.indexOf(c),c.length))},emojiSelected(e){let t=this.getSelected();const n=t.pre.match(/\B:(\w*)$/);if((0,c.isEmpty)(n))t.pre.match(/\S$/)?this.addText(t,` :${e}:`):this.addText(t,`:${e}:`);else{let r=n[1].length;this._insertAt(t.start-r,t.end,`${e}:`)}}},(0,i.Z)(r,"paste",[m.bind],Object.getOwnPropertyDescriptor(r,"paste"),r),(0,i.Z)(r,"indentSelection",[m.bind],Object.getOwnPropertyDescriptor(r,"indentSelection"),r),(0,i.Z)(r,"emojiSelected",[s.action],Object.getOwnPropertyDescriptor(r,"emojiSelected"),r),r))},18794:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n(95793);var r=n(39791);const i=n.n(r)().create({_consoleDebug(e){this.siteSettings.enable_upload_debug_mode&&console.log(e)},_consolePerformanceTiming(e){if(!e)return;const t=Math.floor(e.duration/6e4),n=(e.duration%6e4/1e3).toFixed(0),r=t+":"+(n<10?"0":"")+n;this._consoleDebug(`${e.name}:\n duration: ${r} (${e.duration}ms)`)},_performanceApiSupport(){return this._performanceMark("testing support 1"),this._performanceMark("testing support 2"),this._performanceMeasure("performance api support","testing support 1","testing support 2")},_performanceMark:e=>performance.mark(e),_performanceMeasure(e,t,n){let r;try{r=performance.measure(e,t,n)}catch(r){r.message.includes("Failed to execute 'measure' on 'Performance'")&&console.warn(`Uppy performance measure failed: ${e}, ${t}, ${n}`)}return r},_instrumentUploadTimings(){this._performanceApiSupport()&&(this._uppyInstance.on("upload",(e=>{e.fileIDs.forEach((e=>this._performanceMark(`upload-${e}-start`)))})),this._uppyInstance.on("create-multipart",(e=>{this._performanceMark(`upload-${e}-create-multipart`)})),this._uppyInstance.on("create-multipart-success",(e=>{this._performanceMark(`upload-${e}-create-multipart-success`)})),this._uppyInstance.on("complete-multipart",(e=>{this._performanceMark(`upload-${e}-complete-multipart`),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-all-parts-complete`,`upload-${e}-create-multipart-success`,`upload-${e}-complete-multipart`))})),this._uppyInstance.on("complete-multipart-success",(e=>{this._performanceMark(`upload-${e}-complete-multipart-success`),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-total-network-exclusive-complete-multipart`,`upload-${e}-create-multipart`,`upload-${e}-complete-multipart`)),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-total-network-inclusive-complete-multipart`,`upload-${e}-create-multipart`,`upload-${e}-complete-multipart-success`)),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e}-multipart-complete-convert-to-upload`,`upload-${e}-complete-multipart`,`upload-${e}-complete-multipart-success`))})),this._uppyInstance.on("upload-success",(e=>{this._performanceMark(`upload-${e.id}-end`),this._consolePerformanceTiming(this._performanceMeasure(`upload-${e.id}-multipart-total-inclusive-preprocessing`,`upload-${e.id}-start`,`upload-${e.id}-end`))})))}})},62284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i=n(54001),s=n(39791),o=n.n(s),a=n(63825),l=n(10425),c=n(3055),u=n(57555);const d=[0,1e3,3e3,5e3],p=1048576,h=o().create((r={_useS3MultipartUploads(){this.set("usingS3MultipartUploads",!0),this._uppyInstance.use(a.default,{limit:10,retryDelays:d,getChunkSize:e=>e.size>=500*p?20*p:e.size>=100*p?10*p:5*p,createMultipartUpload:this._createMultipartUpload,prepareUploadParts:this._prepareUploadParts,completeMultipartUpload:this._completeMultipartUpload,abortMultipartUpload:this._abortMultipartUpload})},_createMultipartUpload(e){this._uppyInstance.emit("create-multipart",e.id);const t={file_name:e.name,file_size:e.size,upload_type:e.meta.upload_type,metadata:e.meta};return e.meta.sha1_checksum&&(t.metadata={"sha1-checksum":e.meta.sha1_checksum}),(0,c.ajax)(`${this.uploadRootPath}/create-multipart.json`,{type:"POST",data:t}).then((t=>(this._uppyInstance.emit("create-multipart-success",e.id),e.meta.unique_identifier=t.unique_identifier,{uploadId:t.external_upload_identifier,key:t.key})))},_prepareUploadParts(e,t){return void 0===e.preparePartsRetryAttempts&&(e.preparePartsRetryAttempts=0),(0,c.ajax)(`${this.uploadRootPath}/batch-presign-multipart-parts.json`,{type:"POST",data:{part_numbers:t.parts.map((e=>e.number)),unique_identifier:e.meta.unique_identifier}}).then((t=>(e.preparePartsRetryAttempts&&(delete e.preparePartsRetryAttempts,this._consoleDebug(`[uppy] Retrying batch fetch for ${e.id} was successful, continuing.`)),{presignedUrls:t.presigned_urls}))).catch((t=>{const n=t.jqXHR.status;if(e.preparePartsRetryAttempts<d.length){e.preparePartsRetryAttempts+=1;const t=d.length-e.preparePartsRetryAttempts+1;return this._consoleDebug(`[uppy] Fetching a batch of upload part URLs for ${e.id} failed with status ${n}, retrying ${t} more times...`),l.Promise.reject({source:{status:n}})}this._consoleDebug(`[uppy] Fetching a batch of upload part URLs for ${e.id} failed too many times, throwing error.`),this._handleUploadError(e,t)}))},_completeMultipartUpload(e,t){if(e.meta.cancelled)return;this._uppyInstance.emit("complete-multipart",e.id);const n=t.parts.map((e=>({part_number:e.PartNumber,etag:e.ETag})));return(0,c.ajax)(`${this.uploadRootPath}/complete-multipart.json`,{type:"POST",contentType:"application/json",data:JSON.stringify({parts:n,unique_identifier:e.meta.unique_identifier,pasted:e.meta.pasted,for_private_message:e.meta.for_private_message})}).then((t=>(this._uppyInstance.emit("complete-multipart-success",e.id),t)))},_abortMultipartUpload(e,t){let{key:n,uploadId:r}=t;if(n&&r&&(!e.meta.error||!this.siteSettings.enable_upload_debug_mode))return e.meta.cancelled=!0,(0,c.ajax)(`${this.uploadRootPath}/abort-multipart.json`,{type:"POST",data:{external_upload_identifier:r}}).catch((t=>{this._handleUploadError(e,t)}))}},(0,i.Z)(r,"_createMultipartUpload",[u.bind],Object.getOwnPropertyDescriptor(r,"_createMultipartUpload"),r),(0,i.Z)(r,"_prepareUploadParts",[u.bind],Object.getOwnPropertyDescriptor(r,"_prepareUploadParts"),r),(0,i.Z)(r,"_completeMultipartUpload",[u.bind],Object.getOwnPropertyDescriptor(r,"_completeMultipartUpload"),r),(0,i.Z)(r,"_abortMultipartUpload",[u.bind],Object.getOwnPropertyDescriptor(r,"_abortMultipartUpload"),r),r))},88548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HUGE_FILE_THRESHOLD_BYTES:()=>O,default:()=>E});var r,i,s,o=n(54001),a=(n(95793),n(48163)),l=n.n(a),c=n(6264),u=n(39791),d=n.n(u),p=n(51372),h=n(17579),m=n(18797),g=n(79338),f=n(35305),b=n(72603),_=n(3055),y=n(29966),w=n(71249),v=n(60683),k=n(214),x=n(62284),T=n(47582),S=n(12757),C=n(57555),P=n(82099);const O=104857600,E=d().create(x.default,k.default,(r=(0,C.on)("willDestroyElement"),i=(0,C.on)("didInsertElement"),s={dialog:(0,h.inject)(),uploading:!1,uploadProgress:0,_uppyInstance:null,autoStartUploads:!0,inProgressUploads:null,id:null,uploadRootPath:"/uploads",fileInputSelector:".hidden-upload-field",autoFindInput:!0,uploadDone(){},validateUploadedFilesOptions:()=>({}),isUploadedFileAllowed:()=>!0,uploadingOrProcessing:(0,c.or)("uploading","processing"),_destroy(){this.messageBus&&this.messageBus.unsubscribe(`/uploads/${this.type}`),this.fileInputEl?.removeEventListener("change",this.fileInputEventListener),this.appEvents.off(`upload-mixin:${this.id}:add-files`,this._addFiles),this.appEvents.off(`upload-mixin:${this.id}:cancel-upload`,this._cancelSingleUpload),this._uppyInstance?.close(),this._uppyInstance=null},_initialize(){if(this.autoFindInput)this.setProperties({fileInputEl:this.element.querySelector(this.fileInputSelector)});else if(!this.fileInputEl)return;this.set("allowMultipleFiles",this.fileInputEl.multiple),this.set("inProgressUploads",[]),this._bindFileInputChange(),this.id,this._uppyInstance=new g.default({id:this.id,autoProceed:this.autoStartUploads,meta:(0,S.deepMerge)({upload_type:this.type},this.additionalParams||{},this.data||{}),onBeforeFileAdded:e=>{const t=(0,S.deepMerge)({bypassNewUserRestriction:!0,user:this.currentUser,siteSettings:this.siteSettings,validateSize:!0},this.validateUploadedFilesOptions()),n=(0,y.validateUploadedFile)(e,t)&&this.isUploadedFileAllowed(e);return this.setProperties({uploadProgress:0,uploading:n&&this.autoStartUploads,filesAwaitingUpload:!this.autoStartUploads,cancellable:n&&this.autoStartUploads}),n},onBeforeUpload:e=>{let t=!1;const n=Object.keys(e).length,r=this.maxFiles||this.siteSettings.simultaneous_uploads;if(t=this.allowMultipleFiles?r>0&&n>r:n>1,t)return this.dialog.alert(P.default.t("post.errors.too_many_dragged_and_dropped_files",{count:this.allowMultipleFiles?r:1})),this._reset(),!1;this._perFileData&&Object.values(e).forEach((e=>{(0,S.deepMerge)(e.meta,this._perFileData())}))}}),this._uppyInstance.use(f.default,this._uploadDropTargetOptions()),this._uppyInstance.on("progress",(e=>{this.isDestroying||this.isDestroyed||this.set("uploadProgress",e)})),this._uppyInstance.on("upload",(e=>{if(this.isDestroying||this.isDestroyed)return;this._addNeedProcessing(e.fileIDs.length);const t=e.fileIDs.map((e=>this._uppyInstance.getFile(e)));this.setProperties({processing:!0,cancellable:!1}),t.forEach((e=>{this.inProgressUploads.pushObject(l().create({fileName:e.name,id:e.id,progress:0,extension:e.extension,processing:!1})),this._triggerInProgressUploadsEvent()}))})),this._uppyInstance.on("upload-progress",((e,t)=>{(0,p.run)((()=>{if(this.isDestroying||this.isDestroyed)return;const n=this.inProgressUploads.find((t=>t.id===e.id));if(n){const e=Math.round(t.bytesUploaded/t.bytesTotal*100);n.set("progress",e)}}))})),this._uppyInstance.on("upload-success",((e,t)=>{if(this.usingS3Uploads)this.setProperties({uploading:!1,processing:!0}),this._completeExternalUpload(e).then((t=>{this._removeInProgressUpload(e.id),this.appEvents.trigger(`upload-mixin:${this.id}:upload-success`,e.name,t),this.uploadDone((0,S.deepMerge)(t,{file_name:e.name})),this._triggerInProgressUploadsEvent(),0===this.inProgressUploads.length&&this._allUploadsComplete()})).catch((t=>{(0,y.displayErrorForUpload)(t,this.siteSettings,e.name),this._triggerInProgressUploadsEvent()}));else{this._removeInProgressUpload(e.id);const n=t?.body||{};this.appEvents.trigger(`upload-mixin:${this.id}:upload-success`,e.name,n),this.uploadDone((0,S.deepMerge)(n,{file_name:e.name})),this._triggerInProgressUploadsEvent(),0===this.inProgressUploads.length&&this._allUploadsComplete()}})),this._uppyInstance.on("upload-error",((e,t,n)=>{this._removeInProgressUpload(e.id),(0,y.displayErrorForUpload)(n||t,this.siteSettings,e.name),this._reset()})),this._uppyInstance.on("file-removed",((e,t)=>{(0,p.run)((()=>{"cancel-all"!==t&&this.appEvents.trigger(`upload-mixin:${this.id}:upload-cancelled`,e.id)}))})),this.siteSettings.enable_upload_debug_mode&&this._instrumentUploadTimings(),!this.siteSettings.enable_direct_s3_uploads||this.preventDirectS3Uploads||this.useChunkedUploads?this.useChunkedUploads?this._useChunkedUploads():this._useXHRUploads():this.useMultipartUploadsIfAvailable?this._useS3MultipartUploads():this._useS3Uploads(),this._uppyInstance.on("cancel-all",(()=>{this.appEvents.trigger(`upload-mixin:${this.id}:uploads-cancelled`),this.isDestroyed||this.isDestroying||this.inProgressUploads.length&&(this.set("inProgressUploads",[]),this._triggerInProgressUploadsEvent())})),this.appEvents.on(`upload-mixin:${this.id}:add-files`,this._addFiles),this.appEvents.on(`upload-mixin:${this.id}:cancel-upload`,this._cancelSingleUpload),this._uppyReady(),this._useUploadPlugin(w.default,{capabilities:this.capabilities})},_triggerInProgressUploadsEvent(){this.onProgressUploadsChanged?.(this.inProgressUploads),this.appEvents.trigger(`upload-mixin:${this.id}:in-progress-uploads`,this.inProgressUploads)},_uppyReady(){},_startUpload(){if(this.filesAwaitingUpload&&this._uppyInstance?.getFiles().length)return this.set("uploading",!0),this._uppyInstance?.upload()},_useXHRUploads(){this._uppyInstance.use(b.default,{endpoint:this._xhrUploadUrl(),headers:()=>({"X-CSRF-Token":this.session.csrfToken})})},_useChunkedUploads(){this.set("usingChunkedUploads",!0),this._uppyInstance.use(v.default,{url:this._xhrUploadUrl(),headers:{"X-CSRF-Token":this.session.csrfToken}})},_useS3Uploads(){this.set("usingS3Uploads",!0),this._uppyInstance.use(m.default,{getUploadParameters:e=>{const t={file_name:e.name,file_size:e.size,type:this.type};return e.meta.sha1_checksum&&(t.metadata={"sha1-checksum":e.meta.sha1_checksum}),(0,_.ajax)(`${this.uploadRootPath}/generate-presigned-put`,{type:"POST",data:t}).then((t=>(this._uppyInstance.setFileMeta(e.id,{uniqueUploadIdentifier:t.unique_identifier}),{method:"put",url:t.url,headers:{...t.signed_headers,"Content-Type":e.type}}))).catch((t=>{(0,y.displayErrorForUpload)(t,this.siteSettings,e.name),this._reset()}))}})},_xhrUploadUrl(){const e=this.uploadUrl||this.uploadRootPath;return(0,T.default)(e)+".json?client_id="+this.messageBus?.clientId},_bindFileInputChange(){this.fileInputEventListener=(0,y.bindFileInputChangeListener)(this.fileInputEl,this._addFiles)},_cancelSingleUpload(e){this._uppyInstance.removeFile(e.fileId),this._removeInProgressUpload(e.fileId)},async _addFiles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.session.csrfToken||await(0,_.updateCsrfToken)(),e=Array.isArray(e)?e:[e];try{this._uppyInstance.addFiles(e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{pasted:t.pasted}}))))}catch(e){}},_completeExternalUpload(e){return(0,_.ajax)(`${this.uploadRootPath}/complete-external-upload`,{type:"POST",data:(0,S.deepMerge)({unique_identifier:e.meta.uniqueUploadIdentifier},this.additionalParams||{})})},_reset(){this._uppyInstance?.cancelAll(),this.setProperties({uploading:!1,processing:!1,cancellable:!1,uploadProgress:0,filesAwaitingUpload:!1}),this.fileInputEl.value=""},_removeInProgressUpload(e){this.isDestroyed||this.isDestroying||(this.set("inProgressUploads",this.inProgressUploads.filter((t=>t.id!==e))),this._triggerInProgressUploadsEvent())},_uploadDropTargetOptions(){return{target:this.element}},_allUploadsComplete(){this.isDestroying||this.isDestroyed||(this.appEvents.trigger(`upload-mixin:${this.id}:all-uploads-complete`),this._reset())}},(0,o.Z)(s,"_destroy",[r],Object.getOwnPropertyDescriptor(s,"_destroy"),s),(0,o.Z)(s,"_initialize",[i],Object.getOwnPropertyDescriptor(s,"_initialize"),s),(0,o.Z)(s,"_cancelSingleUpload",[C.bind],Object.getOwnPropertyDescriptor(s,"_cancelSingleUpload"),s),(0,o.Z)(s,"_addFiles",[C.bind],Object.getOwnPropertyDescriptor(s,"_addFiles"),s),s))},48992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(54001),a=n(48163),l=n.n(a),c=n(39791),u=n.n(c),d=n(33217),p=n(57555),h=n(82099);const m=u().create((r=(0,p.on)("init"),i=(0,p.default)("userFields.@each.value"),s={_createUserFields(){if(!this.site)return;let e=this.site.get("user_fields");e&&(e=e.sortBy("position").map((e=>l().create({value:null,field:e})))),this.set("userFields",e)},userFieldsValidation(){if(!this.userFields)return l().create({ok:!0});this.userFields.forEach((e=>{let t=l().create({ok:!0});!e.field.required||e.value&&!(0,d.isEmpty)(e.value)?this.accountPassword&&"text"===e.field.field_type&&e.value&&e.value.toLowerCase().includes(this.accountPassword.toLowerCase())&&(t=l().create({failed:!0,reason:h.default.t("user_fields.same_as_password"),element:e.field.element})):t=l().create({failed:!0,reason:h.default.t("user_fields.required",{name:e.field.name}),element:e.field.element}),e.set("validation",t)}));const e=this.userFields.find((e=>e.validation.failed));return e?e.validation:l().create({ok:!0})}},(0,o.Z)(s,"_createUserFields",[r],Object.getOwnPropertyDescriptor(s,"_createUserFields"),s),(0,o.Z)(s,"userFieldsValidation",[i],Object.getOwnPropertyDescriptor(s,"userFieldsValidation"),s),s))},53456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s=n(54001),o=n(48163),a=n.n(o),l=n(39791),c=n.n(l),u=n(33217),d=n(63319),p=n(7223),h=n(56111),m=n(57555),g=n(82099);function f(e){return a().create({shouldCheck:!1,failed:!0,ok:!1,element:document.querySelector("#new-account-username"),...e})}function b(e){return a().create({ok:!0,...e})}const _=c().create((r=(0,m.default)("usernameValidationResult","accountUsername","forceValidationReason"),i={checkedUsername:null,usernameValidationResult:null,uniqueUsernameValidation:null,maxUsernameLength:(0,d.setting)("max_username_length"),minUsernameLength:(0,d.setting)("min_username_length"),async fetchExistingUsername(){const e=await p.default.checkUsername(null,this.accountEmail);e.suggestion&&((0,u.isEmpty)(this.accountUsername)||this.accountUsername===this.get("authOptions.username"))&&this.setProperties({accountUsername:e.suggestion,prefilledUsername:e.suggestion})},usernameValidation(){if(this.usernameValidationResult&&this.checkedUsername===this.accountUsername)return this.usernameValidationResult;const e=this.basicUsernameValidation(this.accountUsername);return e.shouldCheck&&(0,h.default)(this,this.checkUsernameAvailability,500),e},basicUsernameValidation(e){return e&&e===this.prefilledUsername?b({reason:g.default.t("user.username.prefilled")}):(0,u.isEmpty)(e)?f({message:g.default.t("user.username.required"),reason:this.forceValidationReason?g.default.t("user.username.required"):null}):e.length<this.siteSettings.min_username_length?f({reason:g.default.t("user.username.too_short")}):e.length>this.maxUsernameLength?f({reason:g.default.t("user.username.too_long")}):f({shouldCheck:!0,reason:g.default.t("user.username.checking")})},async checkUsernameAvailability(){const e=await p.default.checkUsername(this.accountUsername,this.accountEmail);this.isDestroying||this.isDestroyed||(this.set("checkedUsername",this.accountUsername),this.set("isDeveloper",!!e.is_developer),e.available?this.set("usernameValidationResult",b({reason:g.default.t("user.username.available")})):e.suggestion?this.set("usernameValidationResult",f({reason:g.default.t("user.username.not_available",e)})):this.set("usernameValidationResult",f({reason:e.errors?e.errors.join(" "):g.default.t("user.username.not_available_no_suggestion")})))}},(0,s.Z)(i,"usernameValidation",[r],Object.getOwnPropertyDescriptor(i,"usernameValidation"),i),i))},90836:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={viewingActionType(e){this.controllerFor("user").set("userActionType",e),this.controllerFor("user-activity").set("userActionType",e)}}},99779:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(6264),i=n(3055),s=n(38864);const o=n(12652).default.extend({canToggle:(0,r.or)("can_undo","can_act"),removeAction(){this.setProperties({acted:!1,count:this.count-1,can_act:!0,can_undo:!1})},togglePromise(e){return this.acted?this.undo(e):this.act(e)},toggle(e){return this.acted?(this.undo(e),!1):(this.act(e),!0)},act(e,t){return t||(t={}),this.setProperties({acted:!0,count:this.count+1,can_act:!1,can_undo:!0}),(0,i.ajax)("/post_actions",{type:"POST",data:{id:this.flagTopic?this.get("flagTopic.id"):e.get("id"),post_action_type_id:this.id,message:t.message,is_warning:t.isWarning,take_action:t.takeAction,queue_for_review:t.queue_for_review,flag_topic:!!this.flagTopic},returnXHR:!0}).then((t=>(this.flagTopic||e.updateActionsSummary(t.result),{acted:!0,remaining:parseInt(t.xhr.getResponseHeader("Discourse-Actions-Remaining")||0,10),max:parseInt(t.xhr.getResponseHeader("Discourse-Actions-Max")||0,10)}))).catch((t=>{(0,s.popupAjaxError)(t),this.removeAction(e)}))},undo(e){return this.removeAction(e),(0,i.ajax)("/post_actions/"+e.get("id"),{type:"DELETE",data:{post_action_type_id:this.id}}).then((t=>(e.updateActionsSummary(t),{acted:!1})))}})},52504:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(6264),i=n(63319);const s=n(12652).default.extend({hasOptions:(0,r.gt)("options.length",0),isDefault:(0,i.propertyEqual)("id","site.default_archetype"),notDefault:(0,r.not)("isDefault")})},14601:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(48163),i=n.n(r),s=n(3055),o=n(38864);const a=i().extend();a.reopenClass({list:()=>(0,s.ajax)("/associated_groups").then((e=>e.associated_groups.map((e=>a.create(e))))).catch(o.popupAjaxError)});const l=a},23765:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s,o=n(54001),a=n(12652),l=n(57555),c=n(82099);const u=a.default.extend((r=(0,l.default)("name"),i=(0,l.default)("name"),s={i18nNameKey(){return this.name.toLowerCase().replace(/\s/g,"_")},displayName(){const e=`badges.badge_grouping.${this.i18nNameKey}.name`;return c.default.t(e,{defaultValue:this.name})}},(0,o.Z)(s,"i18nNameKey",[r],Object.getOwnPropertyDescriptor(s,"i18nNameKey"),s),(0,o.Z)(s,"displayName",[i],Object.getOwnPropertyDescriptor(s,"displayName"),s),s))},47774:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s=n(54001),o=n(48163),a=n.n(o),l=n(6264),c=n(10425),u=n(3055),d=n(23765),p=n(12652),h=n(47582),m=n(57555);const g=p.default.extend((r=(0,m.default)("badge_type.name"),i={newBadge:(0,l.none)("id"),image:(0,l.alias)("image_url"),url(){return(0,h.default)(`/badges/${this.id}/${this.slug}`)},updateFromJson(e){e.badge&&Object.keys(e.badge).forEach((t=>this.set(t,e.badge[t]))),e.badge_types&&e.badge_types.forEach((e=>{e.id===this.badge_type_id&&this.set("badge_type",Object.create(e))}))},badgeTypeClassName:e=>`badge-type-${(e=e||"").toLowerCase()}`,save(e){let t="/admin/badges",n="POST";return this.id&&(t+=`/${this.id}`,n="PUT"),(0,u.ajax)(t,{type:n,data:e}).then((e=>(this.updateFromJson(e),this)))},destroy(){return this.newBadge?c.Promise.resolve():(0,u.ajax)(`/admin/badges/${this.id}`,{type:"DELETE"})}},(0,s.Z)(i,"url",[m.default],Object.getOwnPropertyDescriptor(i,"url"),i),(0,s.Z)(i,"badgeTypeClassName",[r],Object.getOwnPropertyDescriptor(i,"badgeTypeClassName"),i),i));g.reopenClass({createFromJson(e){const t={};"badge_types"in e&&e.badge_types.forEach((e=>t[e.id]=a().create(e)));const n={};"badge_groupings"in e&&e.badge_groupings.forEach((e=>n[e.id]=d.default.create(e)));let r=[];return"badge"in e?r=[e.badge]:e.badges&&(r=e.badges),r=r.map((e=>{const r=g.create(e);return r.setProperties({badge_type:t[r.badge_type_id],badge_grouping:n[r.badge_grouping_id]}),r})),"badge"in e?r[0]:r},findAll(e){let t="";return e&&e.onlyListable&&(t="?only_listable=true"),(0,u.ajax)(`/badges.json${t}`,{data:e}).then((e=>g.createFromJson(e)))},findById:e=>(0,u.ajax)(`/badges/${e}`).then((e=>g.createFromJson(e)))});const f=g},87521:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AUTO_DELETE_PREFERENCES:()=>j,NO_REMINDER_ICON:()=>Z,WITH_REMINDER_ICON:()=>A,default:()=>N});var r,i,s,o,a,l,c,u,d,p,h,m,g=n(54001),f=n(48163),b=n(6264),_=n(16572),y=n(33217),w=n(10425),v=n(3055),k=n(64390),x=n(70352),T=n(82331),S=n(12652),C=n(92635),P=n(7223),O=n(47582),E=n(57555),D=n(82099),I=n(56746);const j={NEVER:0,CLEAR_REMINDER:3,WHEN_REMINDER_SENT:1,ON_OWNER_REPLY:2},Z="bookmark",A="discourse-bookmark-clock",M=S.default.extend((r=(0,E.default)("highest_post_number","url"),i=(0,E.default)("bumped_at","createdAt"),s=(0,E.default)("bumpedAt","createdAt"),o=(0,E.default)("name","reminder_at"),a=(0,E.default)("created_at"),l=(0,E.default)("tags"),c=(0,f.computed)("category_id"),u=(0,E.default)("reminder_at","currentUser"),d=(0,E.default)("reminder_at"),p=(0,E.default)(),h=(0,E.default)("bookmarkable_type"),m={newBookmark:(0,b.none)("id"),get url(){return(0,O.default)(`/bookmarks/${this.id}`)},destroy(){return this.newBookmark?w.Promise.resolve():(0,v.ajax)(this.url,{type:"DELETE"})},attachedTo(){return{target:this.bookmarkable_type.toLowerCase(),targetId:this.bookmarkable_id}},togglePin(){return this.newBookmark?w.Promise.resolve():(0,v.ajax)(this.url+"/toggle_pin",{type:"PUT"})},pinAction(){return this.pinned?"unpin":"pin"},lastPostUrl(e){return this.urlForPostNumber(e)},urlForPostNumber(e){let t=(0,O.default)(`/t/${this.topic_id}`);return e>0&&(t+=`/${e}`),t},bumpedAt:(e,t)=>e?new Date(e):t,bumpedAtTitle(e,t){const n="YYYY-MM-DDTHH:mm:ss";if(moment(e).isValid()&&moment(t).isValid())return moment(e).format(n)!==moment(t).format(n)?`${D.default.t("topic.created_at",{date:(0,x.longDate)(t)})}\n${D.default.t("topic.bumped_at",{date:(0,x.longDate)(e)})}`:D.default.t("topic.created_at",{date:(0,x.longDate)(t)})},reminderTitle(e,t){return(0,y.isEmpty)(t)?D.default.t("bookmarks.created_generic",{name:e||""}):D.default.t("bookmarks.created_with_reminder_generic",{date:(0,k.formattedReminderTime)(t,this.currentUser?.user_option?.timezone||moment.tz.guess()),name:e||""})},createdAt:e=>new Date(e),visibleListTags(e){if(!e||!this.siteSettings.suppress_overlapping_tags_in_list)return e;const t=this.title,n=[];return e.forEach((function(e){t.toLowerCase().includes(e)||n.push(e)})),n},get category(){return I.default.findById(this.category_id)},formattedReminder:(e,t)=>(0,_.capitalize)((0,k.formattedReminderTime)(e,t?.user_option?.timezone||moment.tz.guess())),reminderAtExpired:e=>moment(e)<moment(),topicForList(){const e="Topic"===this.bookmarkable_type?null:this.linked_post_number;return C.default.create({id:this.topic_id,fancy_title:this.fancy_title,linked_post_number:e,last_read_post_number:this.last_read_post_number,highest_post_number:this.highest_post_number})},bookmarkableTopicAlike:e=>["Topic","Post"].includes(e)},(0,g.Z)(m,"url",[f.computed],Object.getOwnPropertyDescriptor(m,"url"),m),(0,g.Z)(m,"lastPostUrl",[r],Object.getOwnPropertyDescriptor(m,"lastPostUrl"),m),(0,g.Z)(m,"bumpedAt",[i],Object.getOwnPropertyDescriptor(m,"bumpedAt"),m),(0,g.Z)(m,"bumpedAtTitle",[s],Object.getOwnPropertyDescriptor(m,"bumpedAtTitle"),m),(0,g.Z)(m,"reminderTitle",[o],Object.getOwnPropertyDescriptor(m,"reminderTitle"),m),(0,g.Z)(m,"createdAt",[a],Object.getOwnPropertyDescriptor(m,"createdAt"),m),(0,g.Z)(m,"visibleListTags",[l],Object.getOwnPropertyDescriptor(m,"visibleListTags"),m),(0,g.Z)(m,"category",[c],Object.getOwnPropertyDescriptor(m,"category"),m),(0,g.Z)(m,"formattedReminder",[u],Object.getOwnPropertyDescriptor(m,"formattedReminder"),m),(0,g.Z)(m,"reminderAtExpired",[d],Object.getOwnPropertyDescriptor(m,"reminderAtExpired"),m),(0,g.Z)(m,"topicForList",[p],Object.getOwnPropertyDescriptor(m,"topicForList"),m),(0,g.Z)(m,"bookmarkableTopicAlike",[h],Object.getOwnPropertyDescriptor(m,"bookmarkableTopicAlike"),m),m));M.reopenClass({create(e){return(e=e||{}).currentUser=e.currentUser||P.default.current(),e.user=P.default.create(e.user),this._super(e)},createFor:(e,t,n)=>M.create({bookmarkable_type:t,bookmarkable_id:n,user_id:e.id,auto_delete_preference:e.user_option.bookmark_auto_delete_preference}),async applyTransformations(e){await(0,T.applyModelTransformations)("bookmark",e)}});const N=M},61917:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i=n(54001),s=n(51512),o=n.n(s),a=n(3055),l=n(70352),c=n(13369),u=n(56746),d=n(19990),p=n(92635),h=n(57555),m=n(82099);const g=o().extend((r={init(){this.set("content",this.categories||[]),this._super(...arguments),this.set("page",1),this.set("fetchedLastPage",!1)},async loadMore(){if(this.isLoading||this.fetchedLastPage)return;this.set("isLoading",!0);const e={page:this.page+1},t=await(0,a.ajax)("/categories.json",{data:e});this.set("page",e.page),0===t.category_list.categories.length&&this.set("fetchedLastPage",!0),this.set("isLoading",!1),g.categoriesFrom(this.store,t).forEach((e=>this.categories.pushObject(e)))}},(0,i.Z)(r,"loadMore",[h.bind],Object.getOwnPropertyDescriptor(r,"loadMore"),r),r));g.reopenClass({categoriesFrom(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=["week","month"].find((e=>t.category_list.categories.filter((t=>t[`topics_${e}`]>0)).length>=.66*t.category_list.categories.length))||"all";t.category_list.categories.forEach((e=>d.default.current().updateCategory(e)));const i=g.create({store:e});return t.category_list.categories.forEach((e=>{(e=this._buildCategoryResult(e,r)).parent_category_id&&e.parent_category_id!==n?.id||i.pushObject(e)})),i},_buildCategoryResult(e,t){e.parent_category_id&&(e.parentCategory=u.default.findById(e.parent_category_id)),e.subcategory_list?e.subcategories=e.subcategory_list.map((e=>this._buildCategoryResult(e,t))):e.subcategory_ids&&(e.subcategories=e.subcategory_ids.map((e=>u.default.findById(parseInt(e,10))))),e.subcategories&&(e.subcategories=e.subcategories?.filter(Boolean)),e.topics&&(e.topics=e.topics.map((e=>p.default.create(e))));const n=e[`topics_${t}`];if(("week"===t||"month"===t)&&n>0){const r=m.default.t(`categories.topic_stat_unit.${t}`);e.stat=m.default.t("categories.topic_stat",{count:n,number:`<span class="value">${(0,l.number)(n)}</span>`,unit:`<span class="unit">${r}</span>`}),e.statTitle=m.default.t(`categories.topic_stat_sentence_${t}`,{count:n}),e.pickAll=!1}else e.stat=`<span class="value">${(0,l.number)(e.topics_all_time)}</span>`,e.statTitle=m.default.t("categories.topic_sentence",{count:e.topics_all_time}),e.pickAll=!0;d.default.current().mobileView&&(e.statTotal=m.default.t("categories.topic_stat_all_time",{count:e.topics_all_time,number:`<span class="value">${(0,l.number)(e.topics_all_time)}</span>`}));const r=d.default.current().updateCategory(e);return r.setupGroupsAndPermissions(),r},listForParent(e,t){return(0,a.ajax)(`/categories.json?parent_category_id=${t.get("id")}`).then((n=>g.create({store:e,categories:this.categoriesFrom(e,n,t),parentCategory:t})))},list(e){return c.default.getAndRemove("categories_list",(()=>(0,a.ajax)("/categories.json"))).then((t=>g.create({store:e,categories:this.categoriesFrom(e,t),can_create_category:t.category_list.can_create_category,can_create_topic:t.category_list.can_create_topic})))}});const f=g},56746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>B});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T,S,C,P,O=n(54001),E=n(48163),D=n(3055),I=n(35814),j=n(12506),Z=n(12652),A=n(19990),M=n(7223),N=n(37080),z=n(47582),L=n(57555);const F={},U=Z.default.extend((r=(0,L.on)("init"),i=(0,L.default)("required_tag_groups","minimum_required_tags"),s=(0,L.default)("id"),o=(0,L.default)("parentCategory.ancestors"),a=(0,L.default)("parentCategory.level"),l=(0,L.default)("has_children","subcategories"),c=(0,L.default)("subcategories"),u=(0,L.default)("notification_level"),d=(0,L.default)("isMuted","subcategories"),p=(0,L.default)("isMuted","subcategories"),h=(0,L.default)("notification_level"),m=(0,L.default)("name"),g=(0,L.default)("path"),f=(0,L.default)("name"),b=(0,L.default)("url"),_=(0,L.default)("url"),y=(0,L.default)("color","text_color"),w=(0,L.default)("topic_count"),v=(0,L.default)("topic_count","subcategories.[]"),k=(0,L.default)("default_slow_mode_seconds"),x=(0,L.default)("notification_level"),T=(0,L.default)("topics"),S=(0,L.default)("topics"),C=(0,L.default)("id"),P={permissions:null,setupGroupsAndPermissions(){const e=this.available_groups;if(!e)return;this.set("availableGroups",e);const t=this.group_permissions;t&&this.set("permissions",t.map((t=>(e.removeObject(t.group_name),t))))},minimumRequiredTags(){return this.required_tag_groups?.length>0?Math.max(this.required_tag_groups.reduce(((e,t)=>e+t.min_count),0),this.minimum_required_tags||0):this.minimum_required_tags>0?this.minimum_required_tags:null},availablePermissions:()=>[j.default.create({id:j.default.FULL}),j.default.create({id:j.default.CREATE_POST}),j.default.create({id:j.default.READONLY})],searchContext(e){return{type:"category",id:e,category:this}},ancestors(e){return[...e||[],this]},level:e=>e?e+1:0===e?1:0,isParent:(e,t)=>e||t&&t.length>0,isGrandParent:e=>e&&e.some((e=>e.subcategories&&e.subcategories.length>0)),isMuted:e=>e===I.NotificationLevels.MUTED,isHidden:(e,t)=>!(!e||t&&t.some((e=>!e.isHidden))),hasMuted:(e,t)=>!!e||!!t&&!!t.some((e=>e.hasMuted)),notificationLevelString(e){const t=Object.keys(I.NotificationLevels).find((t=>I.NotificationLevels[t]===e));if(t)return t.toLowerCase()},path(){return`/c/${U.slugFor(this)}/${this.id}`},url:e=>(0,z.default)(e),fullSlug(){return U.slugFor(this).replace(/\//g,"-")},nameLower:e=>e.toLowerCase(),unreadUrl:e=>`${e}/l/unread`,newUrl:e=>`${e}/l/new`,style:(e,t)=>`background-color: #${e}; color: #${t}`,moreTopics(e){return e>(this.num_featured_topics||2)},totalTopicCount:(e,t)=>(t&&t.forEach((t=>{e+=t.topic_count})),e),defaultSlowModeMinutes:e=>e?e/60:null,isTracked:e=>e>=I.NotificationLevels.TRACKING,get unreadTopicsCount(){return this.topicTrackingState.countUnread({categoryId:this.id})},get newTopicsCount(){return this.topicTrackingState.countNew({categoryId:this.id})},save(){const e=this.id,t=e?`/categories/${e}`:"/categories";return(0,D.ajax)(t,{contentType:"application/json",data:JSON.stringify({name:this.name,slug:this.slug,color:this.color,text_color:this.text_color,secure:this.secure,permissions:this._permissionsForUpdate(),auto_close_hours:this.auto_close_hours,auto_close_based_on_last_post:this.get("auto_close_based_on_last_post"),default_slow_mode_seconds:this.default_slow_mode_seconds,position:this.position,email_in:this.email_in,email_in_allow_strangers:this.email_in_allow_strangers,mailinglist_mirror:this.mailinglist_mirror,parent_category_id:this.parent_category_id,uploaded_logo_id:this.get("uploaded_logo.id"),uploaded_logo_dark_id:this.get("uploaded_logo_dark.id"),uploaded_background_id:this.get("uploaded_background.id"),uploaded_background_dark_id:this.get("uploaded_background_dark.id"),allow_badges:this.allow_badges,category_setting_attributes:this.category_setting,custom_fields:this.custom_fields,topic_template:this.topic_template,form_template_ids:this.form_template_ids,all_topics_wiki:this.all_topics_wiki,allow_unlimited_owner_edits_on_first_post:this.allow_unlimited_owner_edits_on_first_post,allowed_tags:this.allowed_tags,allowed_tag_groups:this.allowed_tag_groups,allow_global_tags:this.allow_global_tags,required_tag_groups:this.required_tag_groups,sort_order:this.sort_order,sort_ascending:this.sort_ascending,topic_featured_link_allowed:this.topic_featured_link_allowed,show_subcategory_list:this.show_subcategory_list,num_featured_topics:this.num_featured_topics,default_view:this.default_view,subcategory_list_style:this.subcategory_list_style,default_top_period:this.default_top_period,minimum_required_tags:this.minimum_required_tags,navigate_to_first_post_after_read:this.get("navigate_to_first_post_after_read"),search_priority:this.search_priority,reviewable_by_group_name:this.reviewable_by_group_name,read_only_banner:this.read_only_banner,default_list_filter:this.default_list_filter}),type:e?"PUT":"POST"})},_permissionsForUpdate(){const e=this.permissions;let t={};return e.length?e.forEach((e=>t[e.group_name]=e.permission_type)):t.staff=j.default.FULL,t},destroy(){return(0,D.ajax)(`/categories/${this.id||this.slug}`,{type:"DELETE"})},addPermission(e){this.permissions.addObject(e),this.availableGroups.removeObject(e.group_name)},removePermission(e){const t=this.permissions.findBy("group_name",e);t&&(this.permissions.removeObject(t),this.availableGroups.addObject(e))},updatePermission(e,t){this.permissions.forEach(((n,r)=>{n.group_name===e&&this.set(`permissions.${r}.permission_type`,t)}))},latestTopic(e){if(e&&e.length)return e[0]},featuredTopics(e){if(e&&e.length)return e.slice(0,this.num_featured_topics||2)},setNotification(e){M.default.currentProp("muted_category_ids",M.default.current().calculateMutedIds(e,this.id,"muted_category_ids"));const t=`/category/${this.id}/notifications`;return(0,D.ajax)(t,{data:{notification_level:e},type:"POST"}).then((t=>{M.default.current().set("indirectly_muted_category_ids",t.indirectly_muted_category_ids),this.set("notification_level",e),this.notifyPropertyChange("notification_level")}))},isUncategorizedCategory:e=>U.isUncategorized(e),get canCreateTopic(){return this.permission===j.default.FULL},get subcategoryWithCreateTopicPermission(){return this.subcategories?.find((e=>e.canCreateTopic))}},(0,O.Z)(P,"setupGroupsAndPermissions",[r],Object.getOwnPropertyDescriptor(P,"setupGroupsAndPermissions"),P),(0,O.Z)(P,"minimumRequiredTags",[i],Object.getOwnPropertyDescriptor(P,"minimumRequiredTags"),P),(0,O.Z)(P,"availablePermissions",[L.default],Object.getOwnPropertyDescriptor(P,"availablePermissions"),P),(0,O.Z)(P,"searchContext",[s],Object.getOwnPropertyDescriptor(P,"searchContext"),P),(0,O.Z)(P,"ancestors",[o],Object.getOwnPropertyDescriptor(P,"ancestors"),P),(0,O.Z)(P,"level",[a],Object.getOwnPropertyDescriptor(P,"level"),P),(0,O.Z)(P,"isParent",[l],Object.getOwnPropertyDescriptor(P,"isParent"),P),(0,O.Z)(P,"isGrandParent",[c],Object.getOwnPropertyDescriptor(P,"isGrandParent"),P),(0,O.Z)(P,"isMuted",[u],Object.getOwnPropertyDescriptor(P,"isMuted"),P),(0,O.Z)(P,"isHidden",[d],Object.getOwnPropertyDescriptor(P,"isHidden"),P),(0,O.Z)(P,"hasMuted",[p],Object.getOwnPropertyDescriptor(P,"hasMuted"),P),(0,O.Z)(P,"notificationLevelString",[h],Object.getOwnPropertyDescriptor(P,"notificationLevelString"),P),(0,O.Z)(P,"path",[m],Object.getOwnPropertyDescriptor(P,"path"),P),(0,O.Z)(P,"url",[g],Object.getOwnPropertyDescriptor(P,"url"),P),(0,O.Z)(P,"fullSlug",[L.default],Object.getOwnPropertyDescriptor(P,"fullSlug"),P),(0,O.Z)(P,"nameLower",[f],Object.getOwnPropertyDescriptor(P,"nameLower"),P),(0,O.Z)(P,"unreadUrl",[b],Object.getOwnPropertyDescriptor(P,"unreadUrl"),P),(0,O.Z)(P,"newUrl",[_],Object.getOwnPropertyDescriptor(P,"newUrl"),P),(0,O.Z)(P,"style",[y],Object.getOwnPropertyDescriptor(P,"style"),P),(0,O.Z)(P,"moreTopics",[w],Object.getOwnPropertyDescriptor(P,"moreTopics"),P),(0,O.Z)(P,"totalTopicCount",[v],Object.getOwnPropertyDescriptor(P,"totalTopicCount"),P),(0,O.Z)(P,"defaultSlowModeMinutes",[k],Object.getOwnPropertyDescriptor(P,"defaultSlowModeMinutes"),P),(0,O.Z)(P,"isTracked",[x],Object.getOwnPropertyDescriptor(P,"isTracked"),P),(0,O.Z)(P,"latestTopic",[T],Object.getOwnPropertyDescriptor(P,"latestTopic"),P),(0,O.Z)(P,"featuredTopics",[S],Object.getOwnPropertyDescriptor(P,"featuredTopics"),P),(0,O.Z)(P,"isUncategorizedCategory",[C],Object.getOwnPropertyDescriptor(P,"isUncategorizedCategory"),P),P));let R;U.reopenClass({sortCategories(e){const t=new Map;e.forEach((e=>{const n=parseInt(e.parent_category_id,10)||-1,r=t.get(n)||[];r.pushObject(e),t.set(n,r)}));const n=e=>e.flatMap((e=>[e,n(t.get(e.id)||[])])).flat();return n(t.get(-1)||[])},isUncategorized:e=>e===A.default.currentProp("uncategorized_category_id"),slugEncoded(){return"encoded"===(0,N.getOwnerWithFallback)(this).lookup("service:site-settings").slug_generation_method},findUncategorized:()=>(R=R||U.list().findBy("id",A.default.currentProp("uncategorized_category_id")),R),slugFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;if(!e)return"";const r=(0,E.get)(e,"parentCategory");let i="";r&&n>1&&(i=U.slugFor(r,t,n-1)+t);const s=(0,E.get)(e,"id"),o=(0,E.get)(e,"slug");return o&&0!==o.trim().length?i+o:`${i}${s}-category`},list:()=>A.default.currentProp("categoriesList"),listByActivity:()=>A.default.currentProp("sortedCategories"),_idMap:()=>A.default.currentProp("categoriesById"),findSingleBySlug(e){return this.slugEncoded()?U.list().find((t=>U.slugFor(t)===encodeURI(e))):U.list().find((t=>U.slugFor(t)===e))},findById(e){if(e)return U._idMap()[e]},findByIds(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=U.findById(t);n&&e.push(n)})),e},hasAsyncFoundAll(e){const t=A.default.current().loadedCategoryIds||new Set;return e.every((e=>t.has(e)))},async asyncFindByIds(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=(await(0,D.ajax)("/categories/find",{data:{ids:e}})).categories.map((e=>A.default.current().updateCategory(e))),n=A.default.current().loadedCategoryIds||new Set;return e.forEach((e=>n.add(e))),A.default.current().set("loadedCategoryIds",n),t},findBySlugAndParent(e,t){return this.slugEncoded()&&(e=encodeURI(e)),U.list().find((n=>n.slug===e&&(n.parentCategory||null)===t))},findBySlugPath(e){let t=null;for(const n of e)if(t=this.findBySlugAndParent(n,t),!t)return null;return t},async asyncFindBySlugPathWithID(e){const t=(await(0,D.ajax)("/categories/find",{data:{slug_path_with_id:e}})).categories.map((e=>A.default.current().updateCategory(e)));return t[t.length-1]},findBySlugPathWithID(e){let t=e.split("/").filter(Boolean);this.slugEncoded()&&(t=t.map((e=>decodeURI(e))));let n=null;if(t.length>0&&t[t.length-1].match(/^\d+$/)){const e=parseInt(t.pop(),10);n=U.findById(e)}else if(n=U.findBySlugPath(t),!n&&t.length>0&&t[t.length-1].match(/^\d+-category/)){const e=parseInt(t.pop(),10);n=U.findById(e)}return n},findBySlug(e,t){const n=U.list();let r;if(t){const i=U.findSingleBySlug(t);if(i){if("none"===e)return i;r=n.find((n=>n&&n.get("parentCategory")===i&&(!this.slugEncoded()&&U.slugFor(n)===t+"/"+e||this.slugEncoded()&&U.slugFor(n)===encodeURI(t)+"/"+encodeURI(e))))}}else if(r=U.findSingleBySlug(e),r&&r.get("parentCategory"))return;return r||(r=n.findBy("id",parseInt(e,10))),r},fetchVisibleGroups:e=>(0,D.ajax)(`/c/${e}/visible_groups.json`),reloadById:e=>(0,D.ajax)(`/c/${e}/show.json`),reloadBySlugPath:e=>(0,D.ajax)(`/c/${e}/find_by_slug.json`),reloadCategoryWithPermissions(e,t,n){return this.reloadBySlugPath(e.slug).then((e=>this._includePermissions(e.category,t,n)))},_includePermissions(e,t,n){const r=t.createRecord("category",e);return r.setupGroupsAndPermissions(),n.updateCategory(r),r},search(e,t){let n,r=5;if(t){if(0===t.limit)return[];t.limit&&(r=t.limit),t.parentCategoryId&&(n=t.parentCategoryId)}const i=""===e;let s=e;i||(s=e=e.toLowerCase(),e=e.replace(/-/g," "));const o=U.listByActivity(),a=o.length;let l,c=[];const u=()=>c.length===r,d=e=>!n||e.get("parent_category_id")===n;for(l=0;l<a&&!u();l++){const t=o[l];(i&&!t.get("parent_category_id")||!i&&(t.get("name").toLowerCase().startsWith(e)||t.get("slug").toLowerCase().startsWith(s)))&&d(t)&&c.push(t)}if(!u())for(l=0;l<a&&!u();l++){const t=o[l];(!i&&t.get("name").toLowerCase().indexOf(e)>0||t.get("slug").toLowerCase().indexOf(s)>0)&&d(t)&&(c.includes(t)||c.push(t))}return c.sortBy("read_restricted")},async asyncSearch(e,t){t||={};const n={term:e,parent_category_id:t.parentCategoryId,include_uncategorized:t.includeUncategorized,select_category_ids:t.selectCategoryIds,reject_category_ids:t.rejectCategoryIds,include_subcategories:t.includeSubcategories,prioritized_category_id:t.prioritizedCategoryId,limit:t.limit};return(F[JSON.stringify(n)]||=await(0,D.ajax)("/categories/search",{data:n})).categories.map((e=>A.default.current().updateCategory(e)))}});const B=U},21859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CREATE_SHARED_DRAFT:()=>se,CREATE_TOPIC:()=>ie,EDIT:()=>ce,EDIT_SHARED_DRAFT:()=>oe,NEW_PRIVATE_MESSAGE_KEY:()=>ue,NEW_TOPIC_KEY:()=>de,PRIVATE_MESSAGE:()=>ae,REPLY:()=>le,SAVE_ICONS:()=>Te,SAVE_LABELS:()=>xe,default:()=>Ce,registerCustomizationCallback:()=>ne,resetComposerCustomizations:()=>re});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T,S,C,P,O,E,D,I,j,Z=n(54001),A=n(48163),M=n.n(A),N=n(6264),z=n(51372),L=n(17579),F=n(33217),U=n(10425),R=n(38864),B=n(63319),$=n(18272),q=n(9387),H=n(62617),W=n(37135),K=n(12652),V=n(19990),G=n(92635),Y=n(7223),Q=n(80709),J=n(54736),X=n(57555),ee=n(82099);let te=[];function ne(e){te.push(e)}function re(){te=[]}const ie="createTopic",se="createSharedDraft",oe="editSharedDraft",ae="privateMessage",le="reply",ce="edit",ue="new_private_message",de="new_topic";function pe(e){return e===ce||e===oe}const he="closed",me="saving",ge="open",fe="draft",be="fullscreen",_e={raw:"reply",title:"title",unlist_topic:"unlistTopic",category:"categoryId",topic_id:"topic.id",is_warning:"isWarning",whisper:"whisper",archetype:"archetypeId",target_recipients:"targetRecipients",typing_duration_msecs:"typingTime",composer_open_duration_msecs:"composerTime",tags:"tags",featured_link:"featuredLink",shared_draft:"sharedDraft",no_bump:"noBump",draft_key:"draftKey"},ye={raw:"reply",topic_id:"topic.id",raw_old:"rawOld"},we={title:"topic.title",categoryId:"topic.category.id",tags:"topic.tags",featuredLink:"topic.featured_link"},ve={reply:"reply",action:"action",title:"title",categoryId:"categoryId",tags:"tags",archetypeId:"archetypeId",whisper:"whisper",metaData:"metaData",composerTime:"composerTime",typingTime:"typingTime",postId:"post.id",recipients:"targetRecipients"},ke={},xe={[ce]:"composer.save_edit",[le]:"composer.reply",[ie]:"composer.create_topic",[ae]:"composer.create_pm",[se]:"composer.create_shared_draft",[oe]:"composer.save_edit"},Te={[ce]:"pencil-alt",[oe]:"far-clipboard",[le]:"reply",[ie]:"plus",[ae]:"envelope",[se]:"far-clipboard"},Se=K.default.extend((r=(0,X.default)("categoryId"),i=(0,X.default)("category.minimumRequiredTags"),s=(0,X.default)("editingPost","topic.details.can_edit"),o=(0,X.default)("privateMessage","archetype.hasOptions"),a=(0,X.default)("creatingPrivateMessage","topic"),l=(0,X.default)("action"),c=(0,X.observes)("composeState"),u=(0,X.default)("archetypeId"),d=(0,X.observes)("archetype"),p=(0,X.default)("canEditTitle","creatingPrivateMessage","categoryId","user.trust_level"),h=(0,X.default)("canEditTopicFeaturedLink"),m=(0,X.default)("action","post","topic","topic.title"),g=(0,X.default)("targetRecipients"),f=(0,X.default)("loading","canEditTitle","titleLength","targetRecipients","targetRecipientsArray","replyLength","categoryId","missingReplyCharacters","tags","topicFirstPost","minimumRequiredTags","user.staff"),b=(0,X.default)("canCategorize","categoryId"),_=(0,X.default)("minimumTitleLength","titleLength","post.static_doc"),y=(0,X.default)("metaData"),w=(0,X.default)("minimumTitleLength","titleLength"),v=(0,X.default)("privateMessage"),k=(0,X.default)("minimumPostLength","replyLength","canEditTopicFeaturedLink"),x=(0,X.default)("privateMessage","topicFirstPost","topic.pm_with_non_human_user"),T=(0,X.default)("title"),S=(0,X.default)("reply"),C=(0,X.on)("init"),P=(0,X.default)("editConflict","originalText"),O=(0,X.default)("draftSaving","disableDrafts","canEditTitle","title","reply","titleLengthValid","replyLength","minimumPostLength"),E={dialog:(0,L.inject)(),_categoryId:null,unlistTopic:!1,noBump:!1,draftSaving:!1,draftForceSave:!1,showFullScreenExitPrompt:!1,archetypes:(0,N.reads)("site.archetypes"),sharedDraft:(0,N.equal)("action",se),categoryId:{get(){return this._categoryId},set(e){const t=this._categoryId;if(this.privateMessage)e=null;else if((0,F.isEmpty)(e)){const t=parseInt(this.siteSettings.default_composer_category,10);e=t&&t>0?t:null}return this._categoryId=e,t!==e&&this.applyTopicTemplate(t,e),e}},category(e){return e?this.site.categories.findBy("id",e):null},minimumRequiredTags:e=>e||0,creatingTopic:(0,N.equal)("action",ie),creatingSharedDraft:(0,N.equal)("action",se),creatingPrivateMessage:(0,N.equal)("action",ae),notCreatingPrivateMessage:(0,N.not)("creatingPrivateMessage"),notPrivateMessage:(0,N.not)("privateMessage"),disableTitleInput:(e,t)=>e&&!t,showCategoryChooser(e,t){const n=this.site.categories.length>1;return!e&&(t||n)},privateMessage:(e,t)=>e||t&&"private_message"===t.archetype,topicFirstPost:(0,N.or)("creatingTopic","editingFirstPost"),editingPost:pe,replyingToTopic:(0,N.equal)("action",le),viewOpen:(0,N.equal)("composeState",ge),viewDraft:(0,N.equal)("composeState",fe),viewFullscreen:(0,N.equal)("composeState",be),viewOpenOrFullscreen:(0,N.or)("viewOpen","viewFullscreen"),composeStateChanged(){const e=this.composerOpened,t=document.querySelector("html");if(this.composeState===be?t.classList.add("fullscreen-composer"):t.classList.remove("fullscreen-composer"),this.composeState===ge)this.set("composerOpened",e||new Date),t.classList.add("composer-open");else{if(e){const t=this.composerTotalOpened||0;this.set("composerTotalOpened",t+(new Date-e))}this.set("composerOpened",null),t.classList.remove("composer-open")}},composerTime:{get(){let e=this.composerTotalOpened||0;const t=this.composerOpened;return t&&(e+=new Date-t),e}},archetype(e){return this.archetypes.findBy("id",e)},archetypeChanged(){return this.set("metaData",M().create())},typing(){(0,z.throttle)(this,(function(){const e=this.typingTime||0;this.set("typingTime",e+100)}),100,!1)},editingFirstPost:(0,N.and)("editingPost","post.firstPost"),canEditTitle:(0,N.or)("creatingTopic","creatingPrivateMessage","editingFirstPost","creatingSharedDraft"),canCategorize:(0,N.and)("canEditTitle","notCreatingPrivateMessage","notPrivateMessage"),canEditTopicFeaturedLink(e,t,n,r){if(0===r)return!1;if(!this.siteSettings.topic_featured_link_enabled||!e||t)return!1;const i=this.site.topic_featured_link_allowed_category_ids;return!(n||!i||!i.includes(this.site.uncategorized_category_id)&&this.siteSettings.allow_uncategorized_topics)||void 0===i||!i.length||i.includes(n)},titlePlaceholder:e=>e?"composer.title_or_link_placeholder":"composer.title_placeholder",replyOptions(e,t,n,r){const i={userLink:null,topicLink:null,postLink:null,userAvatar:null,originalUser:null};if(n&&(i.topicLink={href:n.url,anchor:n.fancyTitle||(0,H.escapeExpression)(r)}),t&&(i.label=ee.default.t(`post.${e}`),i.userAvatar=(0,Q.tinyAvatar)(t.avatar_template),!this.site.mobileView)){const n=t.get("reply_to_user.username"),r=t.get("reply_to_user.avatar_template");n&&r&&pe(e)&&(i.originalUser={username:n,avatar:(0,Q.tinyAvatar)(r)})}if(n&&t){const e=t.post_number;i.postLink={href:`${n.url}/${e}`,anchor:ee.default.t("post.post_number",{number:e})};const r=(0,q.prioritizeNameFallback)(t.name,t.username);i.userLink={href:`${n.url}/${e}`,anchor:r}}return i},targetRecipientsArray(e){const t=e?e.split(","):[],n=new Set(this.site.groups.map((e=>e.name)));return t.map((e=>n.has(e)?{type:"group",name:e}:(0,H.emailValid)(e)?{type:"email",name:e}:{type:"user",name:e}))},cantSubmitPost(e,t,n,r,i,s,o,a,l,c,u,d){if(e)return!0;if(t&&!this.titleLengthValid)return!0;if(a>0)return!0;if(this.site.can_tag_topics&&!d&&c&&u&&(l||[]).length<u)return!0;if(c){const e=this.category;if(e&&e.topic_template&&this.reply.trim()===e.topic_template.trim())return this.dialog.alert(ee.default.t("composer.error.topic_template_not_modified")),!0}return this.privateMessage?r&&0===i.length:this.requiredCategoryMissing},requiredCategoryMissing(e,t){return e&&!t&&!this.siteSettings.allow_uncategorized_topics&&!!this._hasTopicTemplates},titleLengthValid(e,t,n){return!!(this.user.admin&&n&&t>0)||!(t<e)&&t<=this.siteSettings.max_topic_title_length},hasMetaData:e=>!!e&&(0,F.isEmpty)(Object.keys(e)),replyDirty:(0,B.propertyNotEqual)("reply","originalText"),titleDirty:(0,B.propertyNotEqual)("title","originalTitle"),missingTitleCharacters:(e,t)=>e-t,minimumTitleLength(e){return e?this.siteSettings.min_personal_message_title_length:this.siteSettings.min_topic_title_length},missingReplyCharacters(e,t,n){return this.get("post.post_type")===this.site.get("post_types.small_action")||n&&this.featuredLink?0:e-t},minimumPostLength(e,t,n){return n?1:e?this.siteSettings.min_personal_message_post_length:t?this.siteSettings.min_first_post_length:this.siteSettings.min_post_length},titleLength:e=>(e=e||"").replace(/\s+/gim," ").trim().length,replyLength(e){if((e=e||"").length>1e4)return e.length;const t=/<!--(.*?)-->/gm;for(;t.test(e);)e=e.replace(t,"");for(;$.QUOTE_REGEXP.test(e);){const t=new RegExp($.QUOTE_REGEXP.source,"img");e=e.replace(t,"")}let n=0,r=!0;for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);let s=!1;if(i>=8192&&i<=8202)s=!0;else switch(i){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:s=!0}s?r||(n++,r=!0):(n++,r=!1)}return n>0&&r&&n--,n},_setupComposer(){this.set("archetypeId",this.site.default_archetype)},appendText(e,t,n){const r=this.reply||"";t="number"==typeof t?t:r.length;let i,s,o=r.slice(0,t)||"",a=r.slice(t)||"";if(n&&n.block){if(""!==o.trim())for(i=o.replace(/\r/g,""),s=0;s<2;s++)"\n"!==i[i.length-1-s]&&(o+="\n",t++);if(""!==a.trim())for(i=a.replace(/\r/g,""),s=0;s<2;s++)"\n"!==i[s]&&(a="\n"+a)}return n&&n.space&&(o.length>0&&!o[o.length-1].match(/\s/)&&(o+=" "),a.length>0&&!a[0].match(/\s/)&&(a=" "+a)),n&&n.new_line&&(e=o.length>0?"\n\n"+e.trim():e.trim()),this.set("reply",o+e+a),o.length+e.length},prependText(e,t){const n=this.reply||"";t&&t.new_line&&n.length>0&&(e=e.trim()+"\n\n"),this.set("reply",e+n)},applyTopicTemplate(e,t){if(this.action!==ie)return;let n=this.reply;if(e){const t=this.site.categories.findBy("id",e);t&&t.topic_template===n&&(n="")}if(!(0,F.isEmpty)(n))return;const r=this.site.categories.findBy("id",t);r&&this.set("reply",r.topic_template||"")},open(e){let t=U.Promise.resolve();if(e||(e={}),this.set("loading",!0),!(0,F.isEmpty)(this.reply)&&(e.reply||pe(e.action))&&this.replyDirty)return t;if(e.action===le&&pe(this.action)&&this.set("reply",""),!e.draftKey)throw new Error("draft key is required");if(null===e.draftSequence)throw new Error("draft sequence is required");if(e.usernames&&(0,J.default)("`usernames` is deprecated, use `recipients` instead.",{id:"discourse.composer.usernames"}),this.setProperties({draftKey:e.draftKey,draftSequence:e.draftSequence,composeState:e.composerState||ge,action:e.action,topic:e.topic,targetRecipients:e.usernames||e.recipients,composerTotalOpened:e.composerTime,typingTime:e.typingTime,whisper:e.whisper,tags:e.tags||[],noBump:e.noBump}),e.post?(this.setProperties({post:e.post,whisper:e.post.post_type===this.site.post_types.whisper}),this.topic||this.set("topic",e.post.topic)):e.postId?t=t.then((()=>this.store.find("post",e.postId).then((e=>{this.set("post",e),e&&this.set("topic",e.topic)})))):this.set("post",null),this.setProperties({archetypeId:e.archetypeId||this.site.default_archetype,metaData:e.metaData?M().create(e.metaData):null,reply:e.reply||this.reply||""}),this.set("categoryId",e.topicCategoryId||e.categoryId||this.get("topic.category.id")),!this.categoryId&&this.creatingTopic){const e=this.site.categories;1===e.length&&this.set("categoryId",e[0].id)}if(this._hasTopicTemplates=this.site.categories.some((e=>e.topic_template)),pe(e.action)&&this.post){const n=this.serialize(we);n.loading=!0,e.action===oe&&e.destinationCategoryId&&(n.categoryId=e.destinationCategoryId),this.setProperties(n),t=t.then((()=>{let t=this.store.find("post",e.post.id).then((e=>{this.setProperties({post:e,reply:e.raw,originalText:e.raw})}));return this.topic&&this.topic.id===this.post.topic_id||(t=this.store.find("topic",this.post.topic_id).then((e=>{this.set("topic",e)}))),t.then((()=>{this.appEvents.trigger("composer:reply-reloaded",this)}))}))}else e.action===le&&e.quote&&this.setProperties({reply:e.quote,originalText:e.quote});e.title&&this.set("title",e.title);const n=e.draft||e.skipDraftCheck;return this.set("originalText",n?"":this.reply),this.canEditTitle&&((0,F.isEmpty)(this.title)&&""!==this.title&&this.set("title",""),this.set("originalTitle",this.title)),pe(e.action)&&e.post||(t=t.then((()=>this.appEvents.trigger("composer:reply-reloaded",this)))),Object.keys(ke).forEach((t=>{this.set(ke[t],e[t])})),t.finally((()=>{this.set("loading",!1)}))},beforeSave:()=>U.Promise.resolve(),save(e){return this.beforeSave().then((()=>{if(!this.cantSubmitPost)return this.canEditTopicFeaturedLink||this.set("featuredLink",null),this.editingPost?this.editPost(e):this.createPost(e)}))},clearState(){this.setProperties({originalText:null,reply:null,post:null,title:null,unlistTopic:!1,editReason:null,stagedPost:!1,typingTime:0,composerOpened:null,composerTotalOpened:0,featuredLink:null,noBump:!1,editConflict:!1})},rawOld:(e,t)=>e?null:t,editPost(e){const t=this.post,n=t.cooked;let r=U.Promise.resolve();if(this.title&&1===t.post_number){const e=this.topic;if(e.details.can_edit){const t=this.getProperties(Object.keys(we));if(t.featuredLink&&(t.featured_link=t.featuredLink,delete t.featuredLink),this.action===oe){const n=t.categoryId;r=r.then((()=>e.updateDestinationCategory(n))),t.categoryId=e.get("category.id")}r=r.then((()=>G.default.update(e,t)))}else e.details.can_edit_tags&&(r=r.then((()=>e.updateTags(this.tags))))}const i={edit_reason:e.editReason,image_sizes:e.imageSizes,cooked:this.getCookedHtml()};this.serialize(ye,i),this.set("composeState",me);const s=(0,R.throwAjaxError)((e=>{t.setProperties("cooked",n),this.set("composeState",ge),e.jqXHR&&409===e.jqXHR.status&&this.set("editConflict",!0)}));return t.setProperties({cooked:i.cooked,staged:!0}),this.appEvents.trigger("post-stream:refresh",{id:t.id}),r.then((()=>t.save(i).then((e=>(this.clearState(),e))))).catch(s).finally((()=>{t.set("staged",!1),this.appEvents.trigger("post-stream:refresh",{id:t.id})}))},serialize(e,t){return t=t||{},Object.keys(e).forEach((n=>{const r=this.get(e[n]);void 0!==r&&(0,A.set)(t,n,r)})),t},async createPost(e){ie!==this.action&&ae!==this.action||this.set("topic",null);const t=this.post,n=this.topic,r=this.user,i=this.get("topic.postStream"),s=this.site.post_types,o=this.whisper?s.whisper:s.regular,a=this.store.createRecord("post",{imageSizes:e.imageSizes,cooked:this.getCookedHtml(),reply_count:0,name:r.name,display_username:r.name,username:r.username,user_id:r.id,user_title:r.title,avatar_template:r.avatar_template,user_custom_fields:r.custom_fields,post_type:o,actions_summary:[],moderator:r.moderator,admin:r.admin,yours:!0,read:!0,wiki:!1,typingTime:this.typingTime,composerTime:this.composerTime,metaData:this.metaData});this.serialize(_e,a),t&&a.setProperties({reply_to_post_number:t.post_number,reply_to_user:t.getProperties("username","avatar_template")});let l=null;if(!i||(t?.setProperties({reply_count:(t.reply_count||0)+1,replies:[]}),(0,F.isEmpty)(a.cooked)||(l=i.stagePost(a,r),"alreadyStaging"!==l))){this.setProperties({composeState:me,stagedPost:"staged"===l&&a});try{const e=await a.save();let t=!0;if("enqueued"===e.responseJson.action)return i?.undoPost(a),e;e.responseJson.post&&!e.responseJson.post.reply_to_user&&a.set("reply_to_user",null);let r=!1;if(n)n.set("draft_sequence",e.target.draft_sequence),i.commitPost(a),r=!0;else{this.set("composeState",he),t=!1;const e=parseInt(a.category,10)||1,n=this.site.categories.find((t=>t.id===e));n?.incrementProperty("topic_count")}return this.clearState(),this.set("createdPost",a),this.replyingToTopic?this.appEvents.trigger("post:created",a):this.appEvents.trigger("topic:created",a,this),r?this.set("composeState",he):t&&this.set("composeState",me),e}catch(e){throw i&&(i.undoPost(a),t?.set("reply_count",t.reply_count-1)),(0,z.next)((()=>this.set("composeState",ge))),(0,R.extractError)(e)}}},getCookedHtml(){const e=document.querySelector("#reply-control .d-editor-preview");return e?e.innerHTML.replace(/<span class="marker"><\/span>/g,""):""},canSaveDraft(){if(this.draftSaving)return!1;if(this.disableDrafts)return!1;if(this.canEditTitle){if((0,F.isEmpty)(this.title)&&(0,F.isEmpty)(this.reply))return!1;if(!this.titleLengthValid&&this.replyLength<this.minimumPostLength)return!1}else if((0,F.isEmpty)(this.reply))return!1;return!0},saveDraft(e){if(!this.canSaveDraft)return U.Promise.resolve();this.setProperties({draftSaving:!0,draftConflictUser:null});let t=this.serialize(ve);t.postId&&!(0,F.isEmpty)(this.originalText)&&(t.originalText=this.originalText);const n=this.draftSequence;return this.set("draftSequence",this.draftSequence+1),W.default.save(this.draftKey,n,t,this.messageBus.clientId,{forceSave:this.draftForceSave}).then((t=>{"draft_sequence"in t&&this.set("draftSequence",t.draft_sequence),t.conflict_user?this.setProperties({draftStatus:ee.default.t("composer.edit_conflict"),draftConflictUser:t.conflict_user}):(this.draftKey===de&&e&&e.set("has_topic_draft",!0),this.setProperties({draftStatus:null,draftConflictUser:null,draftForceSave:!1}))})).catch((e=>{let t;const n=e&&e.jqXHR;if(n&&409===n.status&&n.responseJSON&&n.responseJSON.errors&&n.responseJSON.errors.length){const n=e.jqXHR.responseJSON;t=n.errors[0],n.extras?.description&&this.dialog.alert({message:n.extras.description,buttons:[{label:ee.default.t("composer.reload"),class:"btn-primary",action:()=>window.location.reload()},{label:ee.default.t("composer.ignore"),class:"btn",action:()=>this.set("draftForceSave",!0)}]})}this.setProperties({draftStatus:t||ee.default.t("composer.drafts_offline"),draftConflictUser:null})})).finally((()=>{this.set("draftSaving",!1)}))},customizationFor(e){for(let t=0;t<te.length;t++){let n=te[t][e];if(n){let e=n(this);if(e)return e}}}},(0,Z.Z)(E,"categoryId",[X.default],(D=(D=Object.getOwnPropertyDescriptor(E,"categoryId"))?D.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return D}}),E),(0,Z.Z)(E,"category",[r],Object.getOwnPropertyDescriptor(E,"category"),E),(0,Z.Z)(E,"minimumRequiredTags",[i],Object.getOwnPropertyDescriptor(E,"minimumRequiredTags"),E),(0,Z.Z)(E,"disableTitleInput",[s],Object.getOwnPropertyDescriptor(E,"disableTitleInput"),E),(0,Z.Z)(E,"showCategoryChooser",[o],Object.getOwnPropertyDescriptor(E,"showCategoryChooser"),E),(0,Z.Z)(E,"privateMessage",[a],Object.getOwnPropertyDescriptor(E,"privateMessage"),E),(0,Z.Z)(E,"editingPost",[l],(I=(I=Object.getOwnPropertyDescriptor(E,"editingPost"))?I.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return I}}),E),(0,Z.Z)(E,"composeStateChanged",[c],Object.getOwnPropertyDescriptor(E,"composeStateChanged"),E),(0,Z.Z)(E,"composerTime",[X.default],(j=(j=Object.getOwnPropertyDescriptor(E,"composerTime"))?j.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return j}}),E),(0,Z.Z)(E,"archetype",[u],Object.getOwnPropertyDescriptor(E,"archetype"),E),(0,Z.Z)(E,"archetypeChanged",[d],Object.getOwnPropertyDescriptor(E,"archetypeChanged"),E),(0,Z.Z)(E,"canEditTopicFeaturedLink",[p],Object.getOwnPropertyDescriptor(E,"canEditTopicFeaturedLink"),E),(0,Z.Z)(E,"titlePlaceholder",[h],Object.getOwnPropertyDescriptor(E,"titlePlaceholder"),E),(0,Z.Z)(E,"replyOptions",[m],Object.getOwnPropertyDescriptor(E,"replyOptions"),E),(0,Z.Z)(E,"targetRecipientsArray",[g],Object.getOwnPropertyDescriptor(E,"targetRecipientsArray"),E),(0,Z.Z)(E,"cantSubmitPost",[f],Object.getOwnPropertyDescriptor(E,"cantSubmitPost"),E),(0,Z.Z)(E,"requiredCategoryMissing",[b],Object.getOwnPropertyDescriptor(E,"requiredCategoryMissing"),E),(0,Z.Z)(E,"titleLengthValid",[_],Object.getOwnPropertyDescriptor(E,"titleLengthValid"),E),(0,Z.Z)(E,"hasMetaData",[y],Object.getOwnPropertyDescriptor(E,"hasMetaData"),E),(0,Z.Z)(E,"missingTitleCharacters",[w],Object.getOwnPropertyDescriptor(E,"missingTitleCharacters"),E),(0,Z.Z)(E,"minimumTitleLength",[v],Object.getOwnPropertyDescriptor(E,"minimumTitleLength"),E),(0,Z.Z)(E,"missingReplyCharacters",[k],Object.getOwnPropertyDescriptor(E,"missingReplyCharacters"),E),(0,Z.Z)(E,"minimumPostLength",[x],Object.getOwnPropertyDescriptor(E,"minimumPostLength"),E),(0,Z.Z)(E,"titleLength",[T],Object.getOwnPropertyDescriptor(E,"titleLength"),E),(0,Z.Z)(E,"replyLength",[S],Object.getOwnPropertyDescriptor(E,"replyLength"),E),(0,Z.Z)(E,"_setupComposer",[C],Object.getOwnPropertyDescriptor(E,"_setupComposer"),E),(0,Z.Z)(E,"rawOld",[P],Object.getOwnPropertyDescriptor(E,"rawOld"),E),(0,Z.Z)(E,"canSaveDraft",[O],Object.getOwnPropertyDescriptor(E,"canSaveDraft"),E),E));Se.reopenClass({create(e){return(e=e||{}).user=e.user||Y.default.current(),e.site=e.site||V.default.current(),this._super(e)},serializeToTopic(e,t){t||(t=e),we[e]=t},serializeOnCreate(e,t){t||(t=e),_e[e]=t},serializedFieldsForCreate:()=>Object.keys(_e),serializeOnUpdate(e,t){t||(t=e),ye[e]=t},serializedFieldsForUpdate:()=>Object.keys(ye),serializeToDraft(e,t){t||(t=e),ve[e]=t,ke[e]=t},serializedFieldsForDraft:()=>Object.keys(ve),CLOSED:he,SAVING:me,OPEN:ge,DRAFT:fe,FULLSCREEN:be,CREATE_TOPIC:ie,CREATE_SHARED_DRAFT:se,EDIT_SHARED_DRAFT:oe,PRIVATE_MESSAGE:ae,REPLY:le,EDIT:ce,NEW_PRIVATE_MESSAGE_KEY:ue,NEW_TOPIC_KEY:de});const Ce=Se},37135:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n.n(r),s=n(3055);const o=i().extend();o.reopenClass({clear:(e,t)=>(0,s.ajax)(`/drafts/${e}.json`,{type:"DELETE",data:{draft_key:e,sequence:t}}),get:e=>(0,s.ajax)(`/drafts/${e}.json`),getLocal:(e,t)=>t,save(e,t,n,r){let{forceSave:i=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return n="string"==typeof n?n:JSON.stringify(n),(0,s.ajax)("/drafts.json",{type:"POST",data:{draft_key:e,sequence:t,data:n,owner:r,force_save:i},ignoreUnsent:!1})}});const a=o},93264:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(3055),i=n(12652);class s extends i.default{static async findAll(){return(await(0,r.ajax)("/form-templates.json")).form_templates}static async findById(e){return await(0,r.ajax)(`/form-templates/${e}.json`)}}},25387:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(12652),a=n(57555),l=n(82099);const c=o.default.extend((r=(0,a.default)("action"),i={actionTitle:e=>l.default.t(`group_histories.actions.${e}`)},(0,s.Z)(i,"actionTitle",[r],Object.getOwnPropertyDescriptor(i,"actionTitle"),i),i))},5751:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r,i,s,o,a,l,c,u,d,p=n(54001),h=n(48163),m=n.n(h),g=n(39840),f=n(6264),b=n(33217),_=n(10425),y=n(3055),w=n(56746),v=n(25387),k=n(12652),x=n(92635),T=n(7223),S=n(57555);const C=k.default.extend((r=(0,S.default)("automatic_membership_email_domains"),i=(0,S.default)("associated_group_ids"),s=(0,S.default)("automatic"),o=(0,S.default)("display_name","name"),a=(0,S.default)("flair_bg_color"),l=(0,S.default)("flair_color"),c=(0,S.default)("visibility_level"),u=(0,S.observes)("isPrivate","canEveryoneMention"),d={user_count:0,limit:null,offset:null,request_count:0,requestersLimit:null,requestersOffset:null,init(){this._super(...arguments),this.setProperties({members:[],requesters:[]})},emailDomains:e=>(0,b.isEmpty)(e)?"":e,associatedGroupIds:e=>(0,b.isEmpty)(e)?[]:e,type:e=>e?"automatic":"custom",async reloadMembers(e,t){if((0,b.isEmpty)(this.name)||!this.can_see_members)return;t&&this.setProperties({limit:null,offset:null}),e=Object.assign({offset:(this.offset||0)+(this.limit||0)},e);const n=await C.loadMembers(this.name,e),r=new Set;n.owners.forEach((e=>r.add(e.id)));const i=t?[]:this.members;i.pushObjects(n.members.map((e=>(e.owner=r.has(e.id),e.primary=e.primary_group_name===this.name,T.default.create(e))))),this.setProperties({members:i,user_count:n.meta.total,limit:n.meta.limit,offset:n.meta.offset})},findRequesters(e,t){return(0,b.isEmpty)(this.name)||!this.can_see_members?_.Promise.reject():(t&&this.setProperties({requestersOffset:null,requestersLimit:null}),e=Object.assign({offset:(this.requestersOffset||0)+(this.requestersLimit||0),requesters:!0},e),C.loadMembers(this.name,e).then((e=>{const n=t?[]:this.requesters;n.pushObjects(e.members.map((e=>T.default.create(e)))),this.setProperties({requesters:n,request_count:e.meta.total,requestersLimit:e.meta.limit,requestersOffset:e.meta.offset})})))},async removeOwner(e){await(0,y.ajax)(`/admin/groups/${this.id}/owners.json`,{type:"DELETE",data:{user_id:e.id}}),await this.reloadMembers({},!0)},async removeMember(e,t){await(0,y.ajax)(`/groups/${this.id}/members.json`,{type:"DELETE",data:{user_id:e.id}}),await this.reloadMembers(t,!0)},async leave(){await(0,y.ajax)(`/groups/${this.id}/leave.json`,{type:"DELETE"}),this.set("can_see_members",this.members_visibility_level<2),await this.reloadMembers({},!0)},async addMembers(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const i=await(0,y.ajax)(`/groups/${this.id}/members.json`,{type:"PUT",data:{usernames:e,emails:r,notify_users:n}});t?await this._filterMembers(i.usernames):await this.reloadMembers()},async join(){await(0,y.ajax)(`/groups/${this.id}/join.json`,{type:"PUT"}),await this.reloadMembers({},!0)},async addOwners(e,t,n){const r=await(0,y.ajax)(`/groups/${this.id}/owners.json`,{type:"PUT",data:{usernames:e,notify_users:n}});t?await this._filterMembers(r.usernames):await this.reloadMembers({},!0)},_filterMembers(e){return this.reloadMembers({filter:e.join(",")})},displayName:(e,t)=>e||t,flairBackgroundHexColor:e=>e?e.replace(new RegExp("[^0-9a-fA-F]","g"),""):null,flairHexColor:e=>e?e.replace(new RegExp("[^0-9a-fA-F]","g"),""):null,canEveryoneMention:(0,f.equal)("mentionable_level",99),isPrivate:e=>e>1,_updateAllowMembershipRequests(){!this.isPrivate&&this.canEveryoneMention||this.set("allow_membership_requests",!1)},get watchingCategories(){return this.site.lazy_load_categories&&!w.default.hasAsyncFoundAll(this.watching_category_ids)&&w.default.asyncFindByIds(this.watching_category_ids).then((()=>this.notifyPropertyChange("watching_category_ids"))),w.default.findByIds(this.get("watching_category_ids"))},set watchingCategories(e){this.set("watching_category_ids",e.map((e=>e.id)))},get trackingCategories(){return this.site.lazy_load_categories&&!w.default.hasAsyncFoundAll(this.tracking_category_ids)&&w.default.asyncFindByIds(this.tracking_category_ids).then((()=>this.notifyPropertyChange("tracking_category_ids"))),w.default.findByIds(this.get("tracking_category_ids"))},set trackingCategories(e){this.set("tracking_category_ids",e.map((e=>e.id)))},get watchingFirstPostCategories(){return this.site.lazy_load_categories&&!w.default.hasAsyncFoundAll(this.watching_first_post_category_ids)&&w.default.asyncFindByIds(this.watching_first_post_category_ids).then((()=>this.notifyPropertyChange("watching_first_post_category_ids"))),w.default.findByIds(this.get("watching_first_post_category_ids"))},set watchingFirstPostCategories(e){this.set("watching_first_post_category_ids",e.map((e=>e.id)))},get regularCategories(){return this.site.lazy_load_categories&&!w.default.hasAsyncFoundAll(this.regular_category_ids)&&w.default.asyncFindByIds(this.regular_category_ids).then((()=>this.notifyPropertyChange("regular_category_ids"))),w.default.findByIds(this.get("regular_category_ids"))},set regularCategories(e){this.set("regular_category_ids",e.map((e=>e.id)))},get mutedCategories(){return this.site.lazy_load_categories&&!w.default.hasAsyncFoundAll(this.muted_category_ids)&&w.default.asyncFindByIds(this.muted_category_ids).then((()=>this.notifyPropertyChange("muted_category_ids"))),w.default.findByIds(this.get("muted_category_ids"))},set mutedCategories(e){this.set("muted_category_ids",e.map((e=>e.id)))},asJSON(){const e={name:this.name,mentionable_level:this.mentionable_level,messageable_level:this.messageable_level,visibility_level:this.visibility_level,members_visibility_level:this.members_visibility_level,automatic_membership_email_domains:this.emailDomains,title:this.title,primary_group:!!this.primary_group,grant_trust_level:this.grant_trust_level,incoming_email:this.incoming_email,smtp_server:this.smtp_server,smtp_port:this.smtp_port,smtp_ssl:this.smtp_ssl,smtp_enabled:this.smtp_enabled,imap_server:this.imap_server,imap_port:this.imap_port,imap_ssl:this.imap_ssl,imap_mailbox_name:this.imap_mailbox_name,imap_enabled:this.imap_enabled,email_username:this.email_username,email_from_alias:this.email_from_alias,email_password:this.email_password,flair_icon:null,flair_upload_id:null,flair_bg_color:this.flairBackgroundHexColor,flair_color:this.flairHexColor,bio_raw:this.bio_raw,public_admission:this.public_admission,public_exit:this.public_exit,allow_membership_requests:this.allow_membership_requests,full_name:this.full_name,default_notification_level:this.default_notification_level,membership_request_template:this.membership_request_template,publish_read_state:this.publish_read_state,allow_unknown_sender_topic_replies:this.allow_unknown_sender_topic_replies};["muted","regular","watching","tracking","watching_first_post"].forEach((t=>{let n="watching_first_post"===t?"watchingFirstPostCategories":t+"Categories",r=this.get(n);r&&(e[t+"_category_ids"]=r.length>0?r.map((e=>e.get("id"))):[-1]);let i=this.get(t+"_tags");i&&(e[t+"_tags"]=i.length>0?i:[""])}));let t=this.associated_group_ids;return t&&(e.associated_group_ids=t.length?t:[null]),"icon"===this.flair_type?e.flair_icon=this.flair_icon:"image"===this.flair_type&&(e.flair_upload_id=this.flair_upload_id),this.id||(e.usernames=this.usernames,e.owner_usernames=this.ownerUsernames),e},async create(){const e=await(0,y.ajax)("/admin/groups",{type:"POST",data:{group:this.asJSON()}});this.setProperties({id:e.basic_group.id,usernames:null,ownerUsernames:null}),await this.reloadMembers()},save(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,y.ajax)(`/groups/${this.id}`,{type:"PUT",data:Object.assign({group:this.asJSON()},e)})},destroy(){if(this.id)return(0,y.ajax)(`/admin/groups/${this.id}`,{type:"DELETE"})},findLogs(e,t){return(0,y.ajax)(`/groups/${this.name}/logs.json`,{data:{offset:e,filters:t}}).then((e=>m().create({logs:e.logs.map((e=>v.default.create(e))),all_loaded:e.all_loaded})))},findPosts(e){const t=(e=e||{}).type||"posts",n={};return e.before&&(n.before=e.before),e.categoryId&&(n.category_id=parseInt(e.categoryId,10)),(0,y.ajax)(`/groups/${this.name}/${t}.json`,{data:n}).then((e=>e.map((e=>(e.user=T.default.create(e.user),e.topic=x.default.create(e.topic),e.category=w.default.findById(e.category_id),m().create(e))))))},setNotification(e,t){return this.set("group_user.notification_level",e),(0,y.ajax)(`/groups/${this.name}/notifications`,{data:{notification_level:e,user_id:t},type:"POST"})},requestMembership(e){return(0,y.ajax)(`/groups/${this.name}/request_membership.json`,{type:"POST",data:{reason:e}})}},(0,p.Z)(d,"emailDomains",[r],Object.getOwnPropertyDescriptor(d,"emailDomains"),d),(0,p.Z)(d,"associatedGroupIds",[i],Object.getOwnPropertyDescriptor(d,"associatedGroupIds"),d),(0,p.Z)(d,"type",[s],Object.getOwnPropertyDescriptor(d,"type"),d),(0,p.Z)(d,"displayName",[o],Object.getOwnPropertyDescriptor(d,"displayName"),d),(0,p.Z)(d,"flairBackgroundHexColor",[a],Object.getOwnPropertyDescriptor(d,"flairBackgroundHexColor"),d),(0,p.Z)(d,"flairHexColor",[l],Object.getOwnPropertyDescriptor(d,"flairHexColor"),d),(0,p.Z)(d,"isPrivate",[c],Object.getOwnPropertyDescriptor(d,"isPrivate"),d),(0,p.Z)(d,"_updateAllowMembershipRequests",[u],Object.getOwnPropertyDescriptor(d,"_updateAllowMembershipRequests"),d),(0,p.Z)(d,"watchingCategories",[g.dependentKeyCompat],Object.getOwnPropertyDescriptor(d,"watchingCategories"),d),(0,p.Z)(d,"trackingCategories",[g.dependentKeyCompat],Object.getOwnPropertyDescriptor(d,"trackingCategories"),d),(0,p.Z)(d,"watchingFirstPostCategories",[g.dependentKeyCompat],Object.getOwnPropertyDescriptor(d,"watchingFirstPostCategories"),d),(0,p.Z)(d,"regularCategories",[g.dependentKeyCompat],Object.getOwnPropertyDescriptor(d,"regularCategories"),d),(0,p.Z)(d,"mutedCategories",[g.dependentKeyCompat],Object.getOwnPropertyDescriptor(d,"mutedCategories"),d),d));C.reopenClass({findAll:e=>(0,y.ajax)("/groups/search.json",{data:e}).then((e=>e.map((e=>C.create(e))))),loadMembers:(e,t)=>(0,y.ajax)(`/groups/${e}/members.json`,{data:t}),mentionable:e=>(0,y.ajax)(`/groups/${e}/mentionable`),messageable:e=>(0,y.ajax)(`/groups/${e}/messageable`),checkName:e=>(0,y.ajax)("/groups/check-name",{data:{group_name:e}})});const P=C},88802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o,a,l=n(54001),c=n(48163),u=n.n(c),d=n(6264),p=n(33217),h=n(10425),m=n(3055),g=n(38864),f=n(20229),b=n(92635),_=n(7223),y=n(57555);const w=u().extend((r=(0,y.default)("invite_key"),i=(0,y.default)("groups"),s=(0,y.default)("topics.firstObject"),o=(0,y.default)("email","domain"),a={save(e){return(this.id?(0,m.ajax)(`/invites/${this.id}`,{type:"PUT",data:e}):(0,m.ajax)("/invites",{type:"POST",data:e})).then((e=>this.setProperties(e)))},destroy(){return(0,m.ajax)("/invites",{type:"DELETE",data:{id:this.id}}).then((()=>this.set("destroyed",!0)))},reinvite(){return(0,m.ajax)("/invites/reinvite",{type:"POST",data:{email:this.email}}).then((()=>this.set("reinvited",!0))).catch(g.popupAjaxError)},shortKey:e=>e.slice(0,4)+"...",groupIds:e=>e?e.map((e=>e.id)):[],topic:e=>e?b.default.create(e):null,emailOrDomain:(e,t)=>e||t,topicId:(0,d.alias)("topics.firstObject.id"),topicTitle:(0,d.alias)("topics.firstObject.title")},(0,l.Z)(a,"shortKey",[r],Object.getOwnPropertyDescriptor(a,"shortKey"),a),(0,l.Z)(a,"groupIds",[i],Object.getOwnPropertyDescriptor(a,"groupIds"),a),(0,l.Z)(a,"topic",[s],Object.getOwnPropertyDescriptor(a,"topic"),a),(0,l.Z)(a,"emailOrDomain",[o],Object.getOwnPropertyDescriptor(a,"emailOrDomain"),a),a));w.reopenClass({create(){const e=this._super.apply(this,arguments);return e.user&&(e.user=_.default.create(e.user)),e},findInvitedBy(e,t,n,r){e||h.Promise.resolve();const i={};return(0,p.isNone)(t)||(i.filter=t),(0,p.isNone)(n)||(i.search=n),i.offset=r||0,(0,m.ajax)((0,f.userPath)(`${e.username_lower}/invited.json`),{data:i}).then((e=>(e.invites=e.invites.map((e=>w.create(e))),u().create(e))))},reinviteAll:()=>(0,m.ajax)("/invites/reinvite-all",{type:"POST"}),destroyAllExpired:()=>(0,m.ajax)("/invites/destroy-all-expired",{type:"POST"})});const v=w},25776:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n.n(r),s=n(3055);const o=i().extend({});o.reopenClass({find:()=>(0,s.ajax)("/about/live_post_counts.json").then((e=>o.create(e)))});const a=o},34287:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearAuthMethods:()=>b,default:()=>_,findAll:()=>f});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(10425),l=n(3055),c=n(31311),u=n(19990),d=n(47582),p=n(57555),h=n(82099);const m=o().extend((r={title(){return this.title_override||h.default.t(`login.${this.name}.title`)},screenReaderTitle(){return this.title_override||h.default.t(`login.${this.name}.sr_title`,{defaultValue:this.title})},prettyName(){return this.pretty_name_override||h.default.t(`login.${this.name}.name`)},doLogin(){let{reconnect:e=!1,signup:t=!1,params:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.customLogin)return this.customLogin(),a.Promise.resolve();if(this.custom_url)return window.location=this.custom_url,a.Promise.resolve();let r=(0,d.default)(`/auth/${this.name}`);e&&(n.reconnect=!0),t&&(n.signup=!0);const i=Object.keys(n);return i.length>0&&(r+="?",r+=i.map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&")),m.buildPostForm(r).then((e=>e.submit()))}},(0,i.Z)(r,"title",[p.default],Object.getOwnPropertyDescriptor(r,"title"),r),(0,i.Z)(r,"screenReaderTitle",[p.default],Object.getOwnPropertyDescriptor(r,"screenReaderTitle"),r),(0,i.Z)(r,"prettyName",[p.default],Object.getOwnPropertyDescriptor(r,"prettyName"),r),r));let g;function f(){return g||(g=u.default.currentProp("auth_providers").map((e=>m.create(e))),g.forEach((e=>e.set("isGoogle","google_oauth2"===e.name))),g)}function b(){g=void 0}m.reopenClass({buildPostForm:e=>(0,l.updateCsrfToken)().then((()=>{const t=document.createElement("form");t.setAttribute("style","display:none;"),t.setAttribute("method","post"),t.setAttribute("action",e);const n=document.createElement("input");return n.setAttribute("name","authenticity_token"),n.setAttribute("value",c.default.currentProp("csrfToken")),t.appendChild(n),document.body.appendChild(t),t}))});const _=m},62047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addNavItem:()=>Z,clearNavItems:()=>j,customNavItemHref:()=>I,default:()=>E,extraNavItemProperties:()=>D});var r,i,s,o,a,l,c,u,d=n(54001),p=n(48163),h=n.n(p),m=n(6264),g=n(17579),f=n(35193),b=n(79461),_=n(56746),y=n(19990),w=n(7223),v=n(54736),k=n(37080),x=n(47582),T=n(12757),S=n(57555),C=n(82099);const P=h().extend((r=(0,S.default)("name"),i=(0,S.default)("name","count"),s=(0,S.default)("filterType","category","noSubcategories","tagId"),o=(0,S.default)("name","category","noSubcategories"),a=(0,S.default)("name","category","tagId","noSubcategories","currentRouteQueryParams","topicTrackingState.messageCount"),l={topicTrackingState:(0,g.inject)(),title:{get(e){return this._title?this._title:C.default.t("filters."+e.replace("/",".")+".help",{})},set(e){return this.set("_title",e)}},displayName:{get(e,t){if(this._displayName)return this._displayName;t=t||0,"latest"!==e||y.default.currentProp("mobileView")&&void 0===this.tagId||(t=0);let n={count:t};const r=0===t?".title":".title_with_count";return(0,f.emojiUnescape)(C.default.t(`filters.${e.replace("/",".")+r}`,n))},set(e){return this.set("_displayName",e)}},href(e,t,n,r){let i=null;if(P.customNavItemHrefs.forEach((function(e){if(i=e.call(this,this),i)return!1}),this),i)return(0,x.default)(i);const s={category:t,noSubcategories:n,tagId:r};return P.pathFor(e,s)},filterType:(0,m.reads)("name"),filterMode(e,t,n){let r="";return t&&(r+="c/",r+=_.default.slugFor(t),n&&(r+="/none"),r+="/l/"),r+e.replace(" ","-")},count(e,t,n,r,i){const s=this.topicTrackingState;if(s)return s.lookupCount({type:e,category:t,tagId:n,noSubcategories:r,customFilterFn:(0,b.hasTrackedFilter)(i)?b.isTrackedTopic:void 0})}},(0,d.Z)(l,"title",[r],(c=(c=Object.getOwnPropertyDescriptor(l,"title"))?c.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return c}}),l),(0,d.Z)(l,"displayName",[i],(u=(u=Object.getOwnPropertyDescriptor(l,"displayName"))?u.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return u}}),l),(0,d.Z)(l,"href",[s],Object.getOwnPropertyDescriptor(l,"href"),l),(0,d.Z)(l,"filterMode",[o],Object.getOwnPropertyDescriptor(l,"filterMode"),l),(0,d.Z)(l,"count",[a],Object.getOwnPropertyDescriptor(l,"count"),l),l)),O=P.extend({href:(0,S.default)("href",{get(){return this._href?this._href:this.href},set(e,t){return this._href=t}}),count:0,customFilter:null});P.reopenClass({extraArgsCallbacks:[],customNavItemHrefs:[],extraNavItemDescriptors:[],pathFor(e,t){let n=(0,x.default)(""),r=!1,i=!1;return"categories"===e?(n+="/categories",n):(t.tagId&&y.default.currentProp("filters").includes(e)&&(i=!0,t.category?n+="/tags":n+="/tag"),t.category&&(r=!0,n+=`/c/${_.default.slugFor(t.category)}/${t.category.id}`,t.noSubcategories&&(n+="/none")),i&&(n+=`/${t.tagId}`),(i||r)&&(n+="/l"),n+=`/${e}`,n)},fromText(e,t){const n=!w.default.current();if(t=t||{},n){const t=y.default.currentProp("anonymous_top_menu_items");if(!t||!t.includes(e))return null}if(!_.default.list()&&"categories"===e)return null;if(!y.default.currentProp("top_menu_items").includes(e))return null;let r={name:e,hasIcon:"unread"===e};return t.category&&(r.category=t.category),t.tagId&&(r.tagId=t.tagId),t.currentRouteQueryParams&&(r.currentRouteQueryParams=t.currentRouteQueryParams),t.noSubcategories&&(r.noSubcategories=!0),P.extraArgsCallbacks.forEach((n=>(0,T.deepMerge)(r,n.call(this,e,t)))),(0,k.getOwnerWithFallback)(this).lookup("service:store").createRecord("nav-item",r)},buildList(e,t){t=t||{},e&&(t.category=e),t.siteSettings||((0,v.default)("You must supply `buildList` with a `siteSettings` object",{since:"2.6.0",dropFrom:"2.7.0",id:"discourse.nav-item.built-list-site-settings"}),t.siteSettings=(0,k.getOwnerWithFallback)(this).lookup("service:site-settings"));let n=t.siteSettings.top_menu.split("|");const r=(0,k.getOwnerWithFallback)(this).lookup("service:current-user");r?.new_new_view_enabled&&(n=n.reject((e=>"unread"===e)));const i=(t.filterMode||"").split("/").pop();n.some((e=>i===e))||n.push(i),n=n.map((e=>P.fromText(e,t))).filter((n=>null!==n&&(!e&&!t.skipCategoriesNavItem||!n.name.startsWith("categor"))));const s={category:t.category,tagId:t.tagId,noSubcategories:t.noSubcategories},o=P.extraNavItemDescriptors.map((e=>O.create((0,T.deepMerge)({},s,e)))).filter((n=>!n.customFilter||n.customFilter(e,t)));let a=!1;return o.forEach((r=>{r.init&&r.init(r,e,t),r.href&&(r.href=(0,x.default)(r.href));const i=r.before;if(i){let e=0;for(e=0;e<n.length&&n[e].name!==i;e++);n.splice(e,0,r)}else n.push(r);r.customHref&&r.set("href",r.customHref(e,t)),r.forceActive&&r.forceActive(e,t)?(r.active=!0,a=!0):r.active=void 0})),a&&n.forEach((e=>{void 0===e.active&&(e.active=!1)})),n}});const E=P;function D(e){P.extraArgsCallbacks.push(e)}function I(e){P.customNavItemHrefs.push(e)}function j(){P.customNavItemHrefs.clear(),P.extraArgsCallbacks.clear(),P.extraNavItemDescriptors.clear()}function Z(e){P.extraNavItemDescriptors.push(e)}},83649:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(82331),c=n(12652);let u=(r=class extends c.default{constructor(){super(...arguments),(0,s.Z)(this,"read",i,this)}static async applyTransformations(e){await(0,l.applyModelTransformations)("notification",e)}static async initializeNotifications(e){const t=e.map((e=>this.create(e)));return await this.applyTransformations(t),t}},i=(0,o.Z)(r.prototype,"read",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},92207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(54001),a=n(6264),l=n(35193),c=n(20229),u=n(12652),d=n(57555),p=n(56746);const h=u.default.extend((r=(0,d.default)("username"),i=(0,d.default)("category_id"),s={expandedExcerpt:null,postUrl:(0,a.reads)("topic_url"),truncated:!1,init(){this._super(...arguments),(0,l.cook)(this.raw_text).then((e=>{this.set("expandedExcerpt",e)}))},userUrl:e=>(0,c.userPath)(e.toLowerCase()),category(){return p.default.findById(this.category_id)}},(0,o.Z)(s,"userUrl",[r],Object.getOwnPropertyDescriptor(s,"userUrl"),s),(0,o.Z)(s,"category",[i],Object.getOwnPropertyDescriptor(s,"category"),s),s))},12506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildPermissionDescription:()=>u,default:()=>p});var r,i,s=n(54001),o=n(48163),a=n.n(o),l=n(57555),c=n(82099);function u(e){return c.default.t("permission_types."+d.DESCRIPTION_KEYS[e])}const d=a().extend((r=(0,l.default)("id"),i={description:e=>u(e)},(0,s.Z)(i,"description",[r],Object.getOwnPropertyDescriptor(i,"description"),i),i));d.FULL=1,d.CREATE_POST=2,d.READONLY=3,d.DESCRIPTION_KEYS={1:"full",2:"create_post",3:"readonly"};const p=d},77348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_MESSAGE_LENGTH:()=>s,default:()=>o});var r=n(6264),i=n(12652);const s=500,o=i.default.extend({notCustomFlag:(0,r.not)("is_custom_flag")})},4993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M,resetLastEditNotificationClick:()=>A,setLastEditNotificationClick:()=>Z});var r,i,s,o,a,l,c,u,d,p,h,m=n(54001),g=n(48163),f=n(6264),b=n(51372),_=n(33217),y=n(10425),w=n(3055),v=n(75157),k=n(71012),x=n(20229),T=n(62617),S=n(12652),C=n(92635),P=n(7223),O=n(54736),E=n(12757),D=n(57555),I=n(82099);let j=null;function Z(e,t,n){j={topicId:e,postNumber:t,revisionNumber:n}}function A(){j=null}const M=S.default.extend((r=(0,D.default)("isMegaTopic","stream.length","topic.highest_post_number"),i=(0,D.default)("posts.[]"),s=(0,D.default)("hasPosts","filteredPostsCount"),o=(0,D.default)("hasLoadedData","posts.[]"),a=(0,D.default)("isMegaTopic","stream.lastObject","lastId"),l=(0,D.default)("hasLoadedData","lastPostId","posts.@each.id"),c=(0,D.default)("filter","userFilters.[]","filterRepliesToPostNumber","filterUpwardsPostID"),u=(0,D.default)("streamFilters.[]","topic.posts_count","posts.length"),d=(0,D.default)("posts.[]","stream.[]"),p=(0,D.default)("posts.lastObject","stream.[]"),h={_identityMap:null,posts:null,stream:null,userFilters:null,loaded:null,loadingAbove:null,loadingBelow:null,loadingFilter:null,loadingNearPost:null,stagingPost:null,postsWithPlaceholders:null,timelineLookup:null,filterRepliesToPostNumber:null,filterUpwardsPostID:null,filter:null,topicSummary:null,init(){this._identityMap={};const e=[],t=v.default.create({posts:e,store:this.store});this.setProperties({posts:e,postsWithPlaceholders:t,stream:[],userFilters:[],filterRepliesToPostNumber:parseInt(this.get("topic.replies_to_post_number"),10)||!1,filterUpwardsPostID:!1,loaded:!1,loadingAbove:!1,loadingBelow:!1,loadingFilter:!1,stagingPost:!1,timelineLookup:[],topicSummary:new k.default})},loading:(0,f.or)("loadingAbove","loadingBelow","loadingFilter","stagingPost"),notLoading:(0,f.not)("loading"),summary:(0,f.equal)("filter","summary"),filteredPostsCount:(e,t,n)=>e?n:t,hasPosts(){return this.get("posts.length")>0},hasLoadedData:(e,t)=>e&&t>0,canAppendMore:(0,f.and)("notLoading","hasPosts","lastPostNotLoaded"),canPrependMore:(0,f.and)("notLoading","hasPosts","firstPostNotLoaded"),firstPostPresent(e){return!!e&&!!this.posts.findBy("post_number",1)},firstPostNotLoaded:(0,f.not)("firstPostPresent"),lastId:null,lastPostId:(e,t,n)=>e?n:t,loadedAllPosts(e,t){return!(!e||-1!==t&&!this.posts.findBy("id",t))},lastPostNotLoaded:(0,f.not)("loadedAllPosts"),streamFilters(){const e={};this.filter&&(e.filter=this.filter);const t=this.userFilters;return(0,_.isEmpty)(t)||(e.username_filters=t.join(",")),this.filterRepliesToPostNumber&&(e.replies_to_post_number=this.filterRepliesToPostNumber),this.filterUpwardsPostID&&(e.filter_upwards_post_id=this.filterUpwardsPostID),e},hasNoFilters(){const e=this.streamFilters;return!(e&&("summary"===e.filter||e.username_filters))},previousWindow(){if(!this.posts)return[];const e=this.posts[0];if(!e)return[];const t=this.stream,n=this.indexOf(e);if(-1===n)return[];let r=n-this.get("topic.chunk_size");return r<0&&(r=0),t.slice(r,n)},nextWindow(e){if(!e)return[];const t=this.stream,n=this.indexOf(e);return-1===n||n+1>=this.highest_post_number?[]:t.slice(n+1,n+this.get("topic.chunk_size")+1)},cancelFilter(){this.setProperties({userFilters:[],filterRepliesToPostNumber:!1,filterUpwardsPostID:!1,mixedHiddenPosts:!1,filter:null})},refreshAndJumpToSecondVisible(){return this.refresh({}).then((()=>{this.posts&&this.posts.length>1&&x.default.jumpToPost(this.posts[1].get("post_number"))}))},showTopReplies(){return this.cancelFilter(),this.set("filter","summary"),this.refreshAndJumpToSecondVisible()},filterParticipant(e){return this.cancelFilter(),this.userFilters.addObject(e),this.refreshAndJumpToSecondVisible()},filterReplies(e,t){return this.cancelFilter(),this.set("filterRepliesToPostNumber",e),this.appEvents.trigger("post-stream:filter-replies",{topic_id:this.get("topic.id"),post_number:e,post_id:t}),this.refresh({refreshInPlace:!0}).then((()=>{const t=document.querySelector(`#post_${e}`),n=t?t.getBoundingClientRect().top:null;this.appEvents.trigger("post-stream:refresh"),x.default.jumpToPost(e,{originalTopOffset:n}),(0,b.schedule)("afterRender",(()=>{(0,T.highlightPost)(e)}))}))},filterUpwards(e){return this.cancelFilter(),this.set("filterUpwardsPostID",e),this.appEvents.trigger("post-stream:filter-upwards",{topic_id:this.get("topic.id"),post_id:e}),this.refresh({refreshInPlace:!0}).then((()=>{if(this.appEvents.trigger("post-stream:refresh"),this.posts&&this.posts.length>1){const e=this.posts[1].get("post_number");x.default.jumpToPost(e,{skipIfOnScreen:!0}),(0,b.schedule)("afterRender",(()=>{(0,T.highlightPost)(e)}))}}))},refresh(e){(e=e||{}).nearPost=parseInt(e.nearPost,10),e.cancelFilter&&(this.cancelFilter(),delete e.cancelFilter);const t=this.topic;if(e.forceLoad)this.set("loaded",!1);else if(this.posts.findBy("post_number",e.nearPost))return y.Promise.resolve().then((()=>this._checkIfShouldShowRevisions()));return e.refreshInPlace||this.set("loadingFilter",!0),this.set("loadingNearPost",e.nearPost),e=(0,E.deepMerge)(e,this.streamFilters),(0,C.loadTopicView)(t,e).then((e=>{this.updateFromJson(e.post_stream),this.setProperties({loadingFilter:!1,timelineLookup:e.timeline_lookup,loaded:!0}),this._checkIfShouldShowRevisions(),t.setProperties({errorLoading:!1,errorTitle:null,errorHtml:null,errorMessage:null,noRetry:!1})})).catch((e=>{throw this.errorLoading(e),new Error(e)})).finally((()=>{this.set("loadingNearPost",null)}))},fillGapBefore(e,t){const n=e.get("id"),r=this.stream,i=r.indexOf(n),s=this.posts;if(-1!==i){let o=s.indexOf(e),a=t.slice(0,this.topic.chunk_size),l=t.slice(this.topic.chunk_size);if(r.splice.apply(r,[i,0].concat(a)),-1!==o)return this.findPostsByIds(a).then((t=>{t.forEach((e=>{this._initUserModels(e);const t=this.storePost(e);if(!s.includes(t)){const e=o++;this.postsWithPlaceholders.insertPost(e,(()=>{s.insertAt(e,t)}))}})),l.length>0?this.get("gaps.before")[n]=l:delete this.get("gaps.before")[n],e.set("hasGap",!1),this.gapExpanded()}))}return y.Promise.resolve()},fillGapAfter(e,t){const n=e.get("id"),r=this.stream;return-1!==r.indexOf(n)?(r.pushObjects(t),this.appendMore().then((()=>{delete this.get("gaps.after")[n],this.gapExpanded()}))):y.Promise.resolve()},gapExpanded(){this.appEvents.trigger("post-stream:refresh"),this.streamFilters&&this.streamFilters.replies_to_post_number&&this.set("streamFilters.mixedHiddenPosts",!0)},appendMore(){if(!this.canAppendMore)return y.Promise.resolve();const e=this.postsWithPlaceholders;if(this.isMegaTopic){this.set("loadingBelow",!0);const t=[...Array(this.get("topic.chunk_size")-1).keys()].map((e=>-e-1));return e.appending(t),this.fetchNextWindow(this.get("posts.lastObject.post_number"),!0,(e=>{this.appendPost(e)})).finally((()=>{e.finishedAppending(t),this.set("loadingBelow",!1)}))}{const t=this.nextWindow;return(0,_.isEmpty)(t)?y.Promise.resolve():(this.set("loadingBelow",!0),e.appending(t),this.findPostsByIds(t).then((e=>(e.forEach((e=>this.appendPost(e))),e))).finally((()=>{e.finishedAppending(t),this.set("loadingBelow",!1)})))}},prependMore(){if(!this.canPrependMore)return y.Promise.resolve();if(this.isMegaTopic){this.set("loadingAbove",!0);let e=[];return this.fetchNextWindow(this.get("posts.firstObject.post_number"),!1,(t=>{this.prependPost(t),e.push(t.get("id"))})).finally((()=>{this.postsWithPlaceholders.finishedPrepending(e),this.set("loadingAbove",!1)}))}{const e=this.previousWindow;return(0,_.isEmpty)(e)?y.Promise.resolve():(this.set("loadingAbove",!0),this.findPostsByIds(e.reverse()).then((e=>{e.forEach((e=>this.prependPost(e)))})).finally((()=>{this.postsWithPlaceholders.finishedPrepending(e),this.set("loadingAbove",!1)})))}},stagePost(e,t){if(this.stagingPost)return"alreadyStaging";this.set("stagingPost",!0);const n=this.topic;return n.setProperties({posts_count:(n.get("posts_count")||0)+1,last_posted_at:new Date,"details.last_poster":t,highest_post_number:(n.get("highest_post_number")||0)+1}),e.setProperties({post_number:n.get("highest_post_number"),topic:n,created_at:new Date,id:-1}),this.loadedAllPosts?(this.appendPost(e),this.stream.addObject(e.get("id")),"staged"):"offScreen"},commitPost(e){this.get("topic.id")===e.get("topic_id")&&this.loadedAllPosts&&(this.appendPost(e),this.stream.addObject(e.get("id"))),this.stream.removeObject(-1),this._identityMap[-1]=null,this.set("stagingPost",!1)},undoPost(e){this.stream.removeObject(-1),this.postsWithPlaceholders.removePost((()=>this.posts.removeObject(e))),this._identityMap[-1]=null;const t=this.topic;this.set("stagingPost",!1),t.setProperties({highest_post_number:(t.get("highest_post_number")||0)-1,posts_count:(t.get("posts_count")||0)-1})},prependPost(e){this._initUserModels(e);const t=this.storePost(e);return t&&this.posts.unshiftObject(t),e},appendPost(e){this._initUserModels(e);const t=this.storePost(e);if(t){const e=this.posts;e.includes(t)||(this.loadingBelow?e.pushObject(t):this.postsWithPlaceholders.appendPost((()=>e.pushObject(t)))),-1!==t.get("id")&&this.set("lastAppended",t)}return e},removePosts(e){(0,_.isEmpty)(e)||this.postsWithPlaceholders.refreshAll((()=>{const t=this.posts,n=e.map((e=>e.get("id"))),r=this._identityMap;this.stream.removeObjects(n),t.removeObjects(e),n.forEach((e=>delete r[e]))}))},findLoadedPost(e){return this._identityMap[e]},loadPostByPostNumber(e){const t=`/posts/by_number/${this.get("topic.id")}/${e}`,n=this.store;return(0,w.ajax)(t).then((e=>this.storePost(n.createRecord("post",e))))},loadNearestPostToDate(e){const t=`/posts/by-date/${this.get("topic.id")}/${e}`,n=this.store;return(0,w.ajax)(t).then((e=>this.storePost(n.createRecord("post",e))))},loadPost(e){const t="/posts/"+e,n=this.store,r=this._identityMap[e];return(0,w.ajax)(t).then((e=>(r&&(e.cooked=r.cooked),this.storePost(n.createRecord("post",e)))))},triggerNewPostInStream(e,t){return(0,O.default)("Please use triggerNewPostsInStream, this method will be removed July 2021",{id:"discourse.post-stream.trigger-new-post"}),this.triggerNewPostsInStream([e],t)},triggerNewPostsInStream(e,t){const n=y.Promise.resolve();if(!e||0===e.length)return n;if(!this.hasNoFilters)return n;const r=this.loadedAllPosts;this._loadingPostIds=this._loadingPostIds||[];let i=[];return e.forEach((e=>{e&&!this.stream.includes(e)&&i.push(e)})),0===i.length?n:r?(i.forEach((e=>{this._loadingPostIds.includes(e)||this._loadingPostIds.push(e)})),this.set("loadingLastPost",!0),this.findPostsByIds(this._loadingPostIds,t).then((e=>{this._loadingPostIds=null;const t=P.default.current()&&P.default.current().get("ignored_users");e.forEach((e=>{t&&t.includes(e.username)?this.stream.removeObject(e.id):(this.stream.addObject(e.id),this.appendPost(e))}))})).finally((()=>{this.set("loadingLastPost",!1)}))):(i.forEach((e=>this.stream.addObject(e))),n)},triggerRecoveredPost(e){if(this._identityMap[e])return this.triggerChangedPost(e,new Date);{const t=`/posts/${e}`,n=this.store;return(0,w.ajax)(t).then((e=>{const t=n.createRecord("post",e),r=this.stream,i=this.posts;this.storePost(t);let s=0;r.forEach((t=>{t<e.id&&(s+=1)})),r.insertAt(s,e.id),s=0,i.forEach((t=>{t.id<e.id&&(s+=1)})),s<i.length?this.postsWithPlaceholders.refreshAll((()=>{i.insertAt(s,t)})):t.post_number<i[i.length-1].post_number+5&&this.appendMore()}))}},triggerDeletedPost(e){const t=this._identityMap[e];if(t&&!t.deleted_at){const n="/posts/"+e,r=this.store;return(0,w.ajax)(n).then((e=>{this.storePost(r.createRecord("post",e))})).catch((()=>{this.removePosts([t])}))}return y.Promise.resolve()},triggerDestroyedPost(e){const t=this._identityMap[e];return this.removePosts([t]),y.Promise.resolve()},triggerChangedPost(e,t,n){n=n||{};const r=y.Promise.resolve();if(!e)return r;const i=this._identityMap[e];if(i&&i.updated_at!==t){const t="/posts/"+e,r=this.store;return(0,w.ajax)(t).then((e=>{n.preserveCooked&&(e.cooked=i.get("cooked")),this.storePost(r.createRecord("post",e))}))}return r},triggerLikedPost(e,t,n,r){const i=y.Promise.resolve(),s=this.findLoadedPost(e);return s&&(s.updateLikeCount(t,n,r),this.storePost(s)),i},triggerReadPost(e,t){const n=y.Promise.resolve();return n.then((()=>{const n=this.findLoadedPost(e);n&&t>n.readers_count&&(n.set("readers_count",t),this.storePost(n))})),n},triggerChangedTopicStats(){return this.firstPostNotLoaded?y.Promise.reject():y.Promise.resolve().then((()=>this.posts.findBy("post_number",1).id))},postForPostNumber(e){if(this.hasPosts)return this.posts.find((t=>t.get("post_number")===e))},closestPostForPostNumber(e){if(!this.hasPosts)return;let t=null;return this.posts.forEach((n=>{t?Math.abs(e-n.get("post_number"))<Math.abs(t.get("post_number")-e)&&(t=n):t=n})),t},progressIndexOfPost(e){return this.progressIndexOfPostId(e)},progressIndexOfPostId(e){const t=e.get("id");return this.isMegaTopic?e.get("post_number"):this.stream.indexOf(t)+1},closestPostNumberFor(e){if(!this.hasPosts)return;let t=null;return this.posts.forEach((n=>{t!==e&&(t||(t=n.get("post_number")),Math.abs(e-n.get("post_number"))<Math.abs(t-e)&&(t=n.get("post_number")))})),t},closestDaysAgoFor(e){const t=this.timelineLookup||[];let n=0,r=t.length-1;for(;n<=r;){const i=Math.floor(n+(r-n)/2),s=t[i][0];if(s>e)r=i-1;else{if(!(s<e))return t[i][1];n=i+1}}const i=t[r]||t[n];if(i)return i[1]},findPostIdForPostNumber(e){const t=this.stream,n=this.get("gaps.before"),r=t.length;let i=1;for(let s=0;s<r;s++){const r=t[s];if(n){const t=n[r];if(t)for(let n=0;n<t.length;n++){if(i===e)return r;i++}}if(i===e)return r;i++}},updateFromJson(e){const t=this.posts;if(this.postsWithPlaceholders.clear((()=>t.clear())),this.set("gaps",null),e){const t=this.store;e.posts.forEach((e=>this.appendPost(t.createRecord("post",e)))),delete e.posts,this.setProperties(e)}},storePost(e){if(e){if((0,g.get)(e,"id")){const t=this._identityMap[e.get("id")],n=e.get("post_number");if(n&&n>(this.get("topic.highest_post_number")||0)&&(this.set("topic.highest_post_number",n),this.set("topic.last_posted_at",e.get("created_at"))),t)return t.updateFromPost(e),t;e.set("topic",this.topic),this._identityMap[e.get("id")]=e}return e}},fetchNextWindow(e,t,n){let r=!this.get("topic.suggested_topics");const i=`/t/${this.get("topic.id")}/posts.json`;let s={post_number:e,asc:t,include_suggested:r};s=(0,E.deepMerge)(s,this.streamFilters);const o=this.store;return(0,w.ajax)(i,{data:s}).then((e=>{this._setSuggestedTopics(e);const t=(0,g.get)(e,"post_stream.posts");t&&t.forEach((e=>{e=this.storePost(o.createRecord("post",e)),n&&n.call(this,e)}))}))},findPostsByIds(e,t){const n=this._identityMap,r=e.filter((e=>!n[e]));return this.loadIntoIdentityMap(r,t).then((()=>e.map((e=>n[e])).compact()))},loadIntoIdentityMap(e,t){if((0,_.isEmpty)(e))return y.Promise.resolve([]);let n=!this.get("topic.suggested_topics");const r="/t/"+this.get("topic.id")+"/posts.json",i={post_ids:e,include_suggested:n},s=this.store;let o={};return t&&t.background&&(o["Discourse-Background"]="true"),(0,w.ajax)(r,{data:i,headers:o}).then((e=>{this._setSuggestedTopics(e);const t=(0,g.get)(e,"post_stream.posts");t&&t.forEach((e=>this.storePost(s.createRecord("post",e))))}))},backfillExcerpts(e){this._excerpts=this._excerpts||[];const t=this.stream;if(this._excerpts.loadNext=e,this._excerpts.loading)return this._excerpts.loading.then((()=>{if(!this._excerpts[t[e]]&&this._excerpts.loadNext===e)return this.backfillExcerpts(e)}));let n=t.slice(Math.max(e-20,0),e+20);for(let e=n.length-1;e>=0;e--)this._excerpts[n[e]]&&n.splice(e,1);let r={post_ids:n};return this._excerpts.loading=(0,w.ajax)("/t/"+this.get("topic.id")+"/excerpts.json",{data:r}).then((e=>{e.forEach((e=>{this._excerpts[e.post_id]=e}))})).finally((()=>{this._excerpts.loading=null})),this._excerpts.loading},excerpt(e){if(this.isMegaTopic)return new y.Promise((e=>e("")));const t=this.stream;return new y.Promise(((n,r)=>{let i=this._excerpts&&this._excerpts[t[e]];i?n(i):this.backfillExcerpts(e).then((()=>{n(this._excerpts[t[e]])})).catch((e=>r(e)))}))},indexOf(e){return this.stream.indexOf(e.get("id"))},errorLoading(e){const t=this.topic;if(this.set("loadingFilter",!1),t.set("errorLoading",!0),!e.jqXHR)throw e;const n=e.jqXHR.responseJSON;n&&n.extras&&n.extras.html?(t.set("errorTitle",n.extras.title),t.set("errorHtml",n.extras.html)):(t.set("errorMessage",I.default.t("topic.server_error.description")),t.set("noRetry",403===e.jqXHR.status))},collapseSummary(){this.topicSummary.collapse()},showSummary(e){this.topicSummary.generateSummary(e,this.get("topic.id"))},processSummaryUpdate(e){this.topicSummary.processUpdate(e)},_initUserModels(e){e.user=P.default.create({id:e.user_id,username:e.username}),e.user_status&&(e.user.status=e.user_status),e.mentioned_users&&(e.mentioned_users=e.mentioned_users.map((e=>P.default.create(e))))},_checkIfShouldShowRevisions(){if(j){const e=j;A();const t=this.posts.mapBy("post_number");e.topicId===this.topic.id&&t.includes(e.postNumber)&&(0,b.schedule)("afterRender",(()=>{this.appEvents.trigger("post:show-revision",e.postNumber,e.revisionNumber)}))}},_setSuggestedTopics(e){e.suggested_topics&&(this.topic.setProperties({suggested_topics:e.suggested_topics,suggested_group_name:e.suggested_group_name}),this.topic.isPrivateMessage&&this.pmTopicTrackingState.startTracking())}},(0,m.Z)(h,"filteredPostsCount",[r],Object.getOwnPropertyDescriptor(h,"filteredPostsCount"),h),(0,m.Z)(h,"hasPosts",[i],Object.getOwnPropertyDescriptor(h,"hasPosts"),h),(0,m.Z)(h,"hasLoadedData",[s],Object.getOwnPropertyDescriptor(h,"hasLoadedData"),h),(0,m.Z)(h,"firstPostPresent",[o],Object.getOwnPropertyDescriptor(h,"firstPostPresent"),h),(0,m.Z)(h,"lastPostId",[a],Object.getOwnPropertyDescriptor(h,"lastPostId"),h),(0,m.Z)(h,"loadedAllPosts",[l],Object.getOwnPropertyDescriptor(h,"loadedAllPosts"),h),(0,m.Z)(h,"streamFilters",[c],Object.getOwnPropertyDescriptor(h,"streamFilters"),h),(0,m.Z)(h,"hasNoFilters",[u],Object.getOwnPropertyDescriptor(h,"hasNoFilters"),h),(0,m.Z)(h,"previousWindow",[d],Object.getOwnPropertyDescriptor(h,"previousWindow"),h),(0,m.Z)(h,"nextWindow",[p],Object.getOwnPropertyDescriptor(h,"nextWindow"),h),h))},97245:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>L});var r,i,s,o,a,l,c,u,d,p,h,m,g,f=n(54001),b=n(48163),_=n.n(b),y=n(6264),w=n(33217),v=n(10425),k=n(40960),x=n(3055),T=n(38864),S=n(63319),C=n(35193),P=n(58988),O=n(20229),E=n(62617),D=n(99779),I=n(21859),j=n(12652),Z=n(19990),A=n(7223),M=n(57555),N=n(82099);const z=j.default.extend((r=(0,M.default)("url","customShare"),i=(0,M.default)("name","username"),s=(0,M.default)("firstPost","deleted_by","topic.deleted_by"),o=(0,M.default)("firstPost","deleted_at","topic.deleted_at"),a=(0,M.default)("post_number","topic_id","topic.slug"),l=(0,M.default)("post_number","url"),c=(0,M.default)("username"),u=(0,M.default)("link_counts.@each.internal"),d=(0,M.default)("actions_summary.@each.can_act"),p=(0,M.default)("siteSettings.use_pg_headlines_for_excerpt","topic_title_headline"),h=(0,M.default)("topic_title_headline"),m={customShare:null,shareUrl(e){if(this.customShare)return this.customShare;const t=A.default.current();return(0,k.resolveShareUrl)(e,t)},new_user:(0,y.equal)("trust_level",0),firstPost:(0,y.equal)("post_number",1),deletedViaTopic:(0,y.and)("firstPost","topic.deleted_at"),deleted:(0,y.or)("deleted_at","deletedViaTopic"),notDeleted:(0,y.not)("deleted"),showName(e,t){return e&&e!==t&&this.siteSettings.display_name_on_posts},postDeletedBy:(e,t,n)=>e?n:t,postDeletedAt:(e,t,n)=>e?n:t,url(e,t,n){return(0,E.postUrl)(n||this.topic_slug,t||this.get("topic.id"),e)},urlWithNumber:(e,t)=>1===e?`${t}/1`:t,usernameUrl:O.userPath,topicOwner:(0,S.propertyEqual)("topic.details.created_by.id","user_id"),updatePostField(e,t){const n={};return n[e]=t,(0,x.ajax)(`/posts/${this.id}/${e}`,{type:"PUT",data:n}).then((()=>this.set(e,t))).catch(T.popupAjaxError)},internalLinks(){return(0,w.isEmpty)(this.link_counts)?null:this.link_counts.filterBy("internal").filterBy("title")},flagsAvailable(){return this.site?this.site.flagTypes.filter((e=>this.get(`actionByName.${e.name_key}.can_act`))):[]},useTopicTitleHeadline:(e,t)=>e&&t,topicTitleHeadline(e){return(0,P.fancyTitle)(e,this.siteSettings.support_mixed_text_direction)},afterUpdate(e){e.category&&this.site.updateCategory(e.category)},updateProperties(){return{post:{raw:this.raw,edit_reason:this.editReason},image_sizes:this.imageSizes}},createProperties(){const e=this.getProperties(I.default.serializedFieldsForCreate());e.reply_to_post_number=this.reply_to_post_number,e.image_sizes=this.imageSizes;const t=this.metaData;return t&&(e.meta_data={},Object.keys(t).forEach((n=>e.meta_data[n]=t[n]))),e},expand(){return(0,x.ajax)(`/posts/${this.id}/expand-embed`).then((e=>{this.set("cooked",`<section class="expanded-embed">${e.cooked}</section>`)}))},recover(){const e=this.getProperties("deleted_at","deleted_by","user_deleted","can_delete");return this.setProperties({deleted_at:null,deleted_by:null,user_deleted:!1,can_delete:!1}),(0,x.ajax)(`/posts/${this.id}/recover`,{type:"PUT"}).then((e=>{this.setProperties({cooked:e.cooked,raw:e.raw,user_deleted:!1,can_delete:!0,version:e.version})})).catch((t=>{(0,T.popupAjaxError)(t),this.setProperties(e)}))},setDeletedState(e){let t;if(this.set("oldCooked",this.cooked),e.staff||0===this.siteSettings.delete_removed_posts_after)this.setProperties({deleted_at:new Date,deleted_by:e,can_delete:!1,can_permanently_delete:this.siteSettings.can_permanently_delete&&e.admin,can_recover:!0});else{const e=1===this.post_number?"topic.deleted_by_author_simple":"post.deleted_by_author_simple";t=(0,C.cook)(N.default.t(e)).then((e=>{this.setProperties({cooked:e,can_delete:!1,can_permanently_delete:!1,version:this.version+1,can_recover:!0,can_edit:!1,user_deleted:!0})}))}return t||v.Promise.resolve()},undoDeleteState(){this.oldCooked&&this.setProperties({deleted_at:null,deleted_by:null,cooked:this.oldCooked,version:this.version-1,can_recover:!1,can_delete:!0,user_deleted:!1})},destroy(e,t){return this.setDeletedState(e).then((()=>(0,x.ajax)("/posts/"+this.id,{data:{context:window.location.pathname,...t},type:"DELETE"})))},updateFromPost(e){Object.keys(e).forEach((t=>{let n=e[t],r=this[t];n||(n=null),r||(r=null);let i=!1;"function"!=typeof n&&r!==n&&("reply_to_user"===t&&n&&r&&(i=n.username===r.username||(0,b.get)(n,"username")===(0,b.get)(r,"username")),i||this.set(t,n))}))},expandHidden(){return(0,x.ajax)(`/posts/${this.id}/cooked.json`).then((e=>{this.setProperties({cooked:e.cooked,cooked_hidden:!1})}))},rebake(){return(0,x.ajax)(`/posts/${this.id}/rebake`,{type:"PUT"}).catch(T.popupAjaxError)},unhide(){return(0,x.ajax)(`/posts/${this.id}/unhide`,{type:"PUT"})},createBookmark(e){this.setProperties({"topic.bookmarked":!0,bookmarked:!0,bookmark_reminder_at:e.reminder_at,bookmark_auto_delete_preference:e.auto_delete_preference,bookmark_name:e.name,bookmark_id:e.id}),this.topic.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",e,{target:"post",targetId:this.id}),this.appEvents.trigger("post-stream:refresh",{id:this.id})},deleteBookmark(e){this.set("topic.bookmarked",e),this.clearBookmark()},clearBookmark(){this.setProperties({bookmark_reminder_at:null,bookmark_name:null,bookmark_id:null,bookmarked:!1,bookmark_auto_delete_preference:null}),this.topic.incrementProperty("bookmarksWereChanged"),this.appEvents.trigger("bookmarks:changed",null,{target:"post",targetId:this.id})},updateActionsSummary(e){e&&e.id===this.id&&(e=z.munge(e),this.set("actions_summary",e.actions_summary))},updateLikeCount(e,t,n){let r=A.default.current()?.id===t,i=r&&"liked"===n,s=this.get("actions_summary"),o=Z.default.current().post_action_types.find((e=>"like"===e.name_key)).id;const a={id:o,count:e,acted:i};if(this.actions_summary.find((e=>e.id===o)))a.acted=(i||this.likeAction.acted)&&!("unliked"===n&&r),Object.assign(this.actions_summary.find((e=>e.id===o)),a),Object.assign(this.actionByName.like,a),Object.assign(this.likeAction,a);else{let e=z.munge({id:this.id,actions_summary:[a]});this.set("actions_summary",Object.assign(s,e.actions_summary)),this.set("actionByName",e.actionByName),this.set("likeAction",e.likeAction)}},revertToRevision(e){return(0,x.ajax)(`/posts/${this.id}/revisions/${e}/revert`,{type:"PUT"})},get topicNotificationLevel(){return this.topic.details.notification_level}},(0,f.Z)(m,"shareUrl",[r],Object.getOwnPropertyDescriptor(m,"shareUrl"),m),(0,f.Z)(m,"showName",[i],Object.getOwnPropertyDescriptor(m,"showName"),m),(0,f.Z)(m,"postDeletedBy",[s],Object.getOwnPropertyDescriptor(m,"postDeletedBy"),m),(0,f.Z)(m,"postDeletedAt",[o],Object.getOwnPropertyDescriptor(m,"postDeletedAt"),m),(0,f.Z)(m,"url",[a],Object.getOwnPropertyDescriptor(m,"url"),m),(0,f.Z)(m,"urlWithNumber",[l],Object.getOwnPropertyDescriptor(m,"urlWithNumber"),m),(0,f.Z)(m,"usernameUrl",[c],(g=(g=Object.getOwnPropertyDescriptor(m,"usernameUrl"))?g.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return g}}),m),(0,f.Z)(m,"internalLinks",[u],Object.getOwnPropertyDescriptor(m,"internalLinks"),m),(0,f.Z)(m,"flagsAvailable",[d],Object.getOwnPropertyDescriptor(m,"flagsAvailable"),m),(0,f.Z)(m,"useTopicTitleHeadline",[p],Object.getOwnPropertyDescriptor(m,"useTopicTitleHeadline"),m),(0,f.Z)(m,"topicTitleHeadline",[h],Object.getOwnPropertyDescriptor(m,"topicTitleHeadline"),m),m));z.reopenClass({munge(e){if(e.actions_summary){const t=_().create();e.actions_summary=e.actions_summary.map((n=>{n.actionType=Z.default.current().postActionTypeById(n.id),n.count=n.count||0;const r=D.default.create(n);return t[n.actionType.name_key]=r,"like"===n.actionType.name_key&&(e.likeAction=r),r})),e.actionByName=t}return e&&e.reply_to_user&&(e.reply_to_user=A.default.create(e.reply_to_user)),e},updateBookmark:(e,t)=>(0,x.ajax)(`/posts/${e}/bookmark`,{type:"PUT",data:{bookmarked:t}}),destroyBookmark:e=>(0,x.ajax)(`/posts/${e}/bookmark`,{type:"DELETE"}),deleteMany(e){let{agreeWithFirstReplyFlag:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,x.ajax)("/posts/destroy_many",{type:"DELETE",data:{post_ids:e,agree_with_first_reply_flag:t}})},mergePosts:e=>(0,x.ajax)("/posts/merge_posts",{type:"PUT",data:{post_ids:e}}).catch(T.popupAjaxError),loadRevision:(e,t)=>(0,x.ajax)(`/posts/${e}/revisions/${t}.json`).then((e=>_().create(e))),hideRevision:(e,t)=>(0,x.ajax)(`/posts/${e}/revisions/${t}/hide`,{type:"PUT"}),permanentlyDeleteRevisions:e=>(0,x.ajax)(`/posts/${e}/revisions/permanently_delete`,{type:"DELETE"}),showRevision:(e,t)=>(0,x.ajax)(`/posts/${e}/revisions/${t}/show`,{type:"PUT"}),loadRawEmail:e=>(0,x.ajax)(`/posts/${e}/raw-email.json`)});const L=z},35816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(48163),i=n(12652),s=n(47582);const o=i.default.extend({url:(0,r.computed)("slug",(function(){return(0,s.getAbsoluteURL)(`/pub/${this.slug}`)}))})},12652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(72326),i=(n(95793),n(48163)),s=n.n(i),o=n(6264),a=n(10425),l=n(37080);const c=s().extend({isNew:(0,o.equal)("__state","new"),isCreated:(0,o.equal)("__state","created"),isSaving:!1,beforeCreate(){},afterCreate(){},beforeUpdate(){},afterUpdate(){},update(e){return this.isSaving?a.Promise.reject():(e=e||this.updateProperties(),this.beforeUpdate(e),this.set("isSaving",!0),this.store.update(this.__type,this.id,e).then((t=>{const n=this.__munge(t.payload||t.responseJson);return"OK"===n.success&&(t=e),this.setProperties(n),this.afterUpdate(t),t.target=this,t})).finally((()=>this.set("isSaving",!1))))},_saveNew(e){if(this.isSaving)return a.Promise.reject();e=e||this.createProperties(),this.beforeCreate(e);const t=this.store.adapterFor(this.__type);return this.set("isSaving",!0),t.createRecord(this.store,this.__type,e).then((e=>{if(!e)throw new Error("Received no data back from createRecord");return e.payload&&(this.setProperties(this.__munge(e.payload)),this.set("__state","created")),this.afterCreate(e),e.target=this,e})).finally((()=>this.set("isSaving",!1)))},createProperties(){throw new Error("You must overwrite `createProperties()` before saving a record")},save(e){return this.isNew?this._saveNew(e):this.update(e)},destroyRecord(){return this.store.destroyRecord(this.__type,this)}});c.reopenClass({munge:e=>e,create(e){(e=e||{}).__munge=this.munge;const t=this.munge(e,e.store),n=(0,r.getOwner)(t);return n&&!n.isDestroyed||(0,r.setOwner)(t,(0,l.getOwnerWithFallback)()),this._super(t)}});const u=c},88144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(54001),o=n(51512),a=n.n(o),l=n(10425),c=n(57555);const u=a().extend((r=(0,c.default)("totalRows","length"),i={loading:!1,loadingMore:!1,totalRows:0,refreshing:!1,content:null,loadMoreUrl:null,refreshUrl:null,findArgs:null,store:null,__type:null,resultSetMeta:null,canLoadMore:(e,t)=>t<e,loadMore(){const e=this.loadMoreUrl;if(!e)return;const t=this.totalRows;return this.length<t&&!this.loadingMore?(this.set("loadingMore",!0),this.store.appendResults(this,this.__type,e).finally((()=>this.set("loadingMore",!1)))):l.Promise.resolve()},refresh(){if(this.refreshing)return;const e=this.refreshUrl;return e?(this.set("refreshing",!0),this.store.refreshResults(this,this.__type,e).finally((()=>this.set("refreshing",!1)))):void 0}},(0,s.Z)(i,"canLoadMore",[r],Object.getOwnPropertyDescriptor(i,"canLoadMore"),i),i))},11619:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CREATED:()=>s,EDITED:()=>a,TRANSITIONED_TO:()=>o,default:()=>l});var r=n(6264),i=n(12652);const s=0,o=1,a=2,l=i.default.extend({created:(0,r.equal)("reviewable_history_type",s)})},30145:(e,t,n)=>{"use strict";n.r(t),n.d(t,{APPROVED:()=>y,DELETED:()=>k,IGNORED:()=>v,PENDING:()=>_,REJECTED:()=>w,default:()=>T});var r,i,s,o,a,l,c,u=n(54001),d=n(16572),p=n(10425),h=n(3055),m=n(12652),g=n(57555),f=n(82099),b=n(56746);const _=0,y=1,w=2,v=3,k=4,x=m.default.extend((r=(0,g.default)("type","topic"),i=(0,g.default)("resolvedType"),s=(0,g.default)("humanType"),o=(0,g.default)("resolvedType"),a=(0,g.default)("humanNoun"),l=(0,g.default)("category_id"),c={resolvedType:(e,t)=>"ReviewableQueuedPost"!==e||t?e:"ReviewableQueuedTopic",humanType:e=>f.default.t(`review.types.${(0,d.underscore)(e)}.title`,{defaultValue:""}),humanTypeCssClass:e=>"-"+(0,d.dasherize)(e),humanNoun:e=>f.default.t(`review.types.${(0,d.underscore)(e)}.noun`,{defaultValue:"reviewable"}),flaggedReviewableContextQuestion(e){const t=this.reviewable_scores.uniqBy("score_type.type");if(1===t.length&&"notify_moderators"===t[0].score_type.type)return f.default.t("review.context_question.something_else_wrong",{reviewable_type:e});const n=f.default.listJoiner(t.map((e=>e.score_type.title.toLowerCase())).uniq(),f.default.t("review.context_question.delimiter"));return f.default.t("review.context_question.is_this_post",{reviewable_human_score_types:n,reviewable_type:e})},category(){return b.default.findById(this.category_id)},update(e){if(0===Object.keys(e).length)return p.Promise.resolve();let t=this.store.adapterFor("reviewable");return(0,h.ajax)(`/review/${this.id}?version=${this.version}`,t.getPayload("PUT",{reviewable:e})).then((e=>{e.payload=Object.assign({},this.payload||{},e.payload||{}),this.setProperties(e)}))}},(0,u.Z)(c,"resolvedType",[r],Object.getOwnPropertyDescriptor(c,"resolvedType"),c),(0,u.Z)(c,"humanType",[i],Object.getOwnPropertyDescriptor(c,"humanType"),c),(0,u.Z)(c,"humanTypeCssClass",[s],Object.getOwnPropertyDescriptor(c,"humanTypeCssClass"),c),(0,u.Z)(c,"humanNoun",[o],Object.getOwnPropertyDescriptor(c,"humanNoun"),c),(0,u.Z)(c,"flaggedReviewableContextQuestion",[a],Object.getOwnPropertyDescriptor(c,"flaggedReviewableContextQuestion"),c),(0,u.Z)(c,"category",[l],Object.getOwnPropertyDescriptor(c,"category"),c),c));x.reopenClass({munge:e=>(delete e.category,e)});const T=x},31311:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(95716);const i=n(12652).default.extend({hasFocus:null,init(){this.set("highestSeenByTopic",{})}});i.reopenClass(r.default);const s=i},19990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r,i,s,o,a,l,c=n(54001),u=n(48163),d=n.n(u),p=n(6264),h=n(24434),m=n(33217),g=n(13369),f=n(95716),b=n(52504),_=n(56746),y=n(77348),w=n(12652),v=n(99457),k=n(54736),x=n(37080),T=n(57555);const S=w.default.extend((r=(0,T.default)("notification_types"),i=(0,T.default)("post_action_types.[]"),s=(0,T.default)("categoriesByCount","categories.[]"),o=(0,T.default)("categories.[]"),a=(0,T.default)("categories.[]","categories.@each.notification_level"),l={isReadOnly:(0,p.alias)("is_readonly"),init(){this._super(...arguments),this.topicCountDesc=["topic_count:desc"],this.categories=this.categories||[]},notificationLookup(e){const t=[];return Object.keys(e).forEach((n=>t[e[n]]=n)),t},flagTypes(){const e=this.post_action_types;return e?e.filterBy("is_flag",!0):[]},categoriesByCount:(0,p.sort)("categories","topicCountDesc"),collectUserFields(e){e=e||{};let t=this.user_fields;return(0,m.isEmpty)(t)?[]:t.map((t=>{let n=e?e[t.id.toString()]:null;return n=n||(0,h.htmlSafe)("&mdash;"),{name:t.name,value:n}}))},sortedCategories:e=>_.default.sortCategories(e),categoriesList(e){return this.siteSettings.fixed_category_positions?e:this.sortedCategories},trackedCategoriesList(e){const t=[];for(const n of e)n.isTracked&&(!this.siteSettings.allow_uncategorized_topics&&n.isUncategorizedCategory||t.push(n));return t},postActionTypeById(e){return this.get("postActionByIdLookup.action"+e)},topicFlagTypeById(e){return this.get("topicFlagByIdLookup.action"+e)},removeCategory(e){const t=this.categories,n=t.findBy("id",e);n&&(t.removeObject(n),delete this.categoriesById.categoryId)},updateCategory(e){const t=this.categories,n=(0,u.get)(e,"id"),r=t.findBy("id",n);return null===e.permission&&delete e.permission,r?(r.setProperties(e),r):(e=this.store.createRecord("category",e),t.pushObject(e),this.categoriesById[n]=e,e.set("parentCategory",this.categoriesById[e.parent_category_id]),e.set("subcategories",this.categories.filterBy("parent_category_id",n)),e.parentCategory&&(e.parentCategory.subcategories||e.parentCategory.set("subcategories",[]),e.parentCategory.subcategories.pushObject(e)),e)}},(0,c.Z)(l,"notificationLookup",[r],Object.getOwnPropertyDescriptor(l,"notificationLookup"),l),(0,c.Z)(l,"flagTypes",[i],Object.getOwnPropertyDescriptor(l,"flagTypes"),l),(0,c.Z)(l,"sortedCategories",[s],Object.getOwnPropertyDescriptor(l,"sortedCategories"),l),(0,c.Z)(l,"categoriesList",[o],Object.getOwnPropertyDescriptor(l,"categoriesList"),l),(0,c.Z)(l,"trackedCategoriesList",[a],Object.getOwnPropertyDescriptor(l,"trackedCategoriesList"),l),l));if(S.reopenClass(f.default,{createCurrent(){const e=(0,x.getOwnerWithFallback)(this).lookup("service:store"),t=g.default.get("site");return t.isReadOnly=g.default.get("isReadOnly"),t.isStaffWritesOnly=g.default.get("isStaffWritesOnly"),e.createRecord("site",t)},create(){const e=this._super.apply(this,arguments),t=e.store;if(e.categories){let n={};e.categoriesById=new Map,e.categories=e.categories.map((r=>(r.parent_category_id&&(n[r.parent_category_id]=n[r.parent_category_id]||[],n[r.parent_category_id].push(r.id)),e.categoriesById[r.id]=t.createRecord("category",r)))),e.categories.forEach((t=>{let r=n[t.get("id")];r&&t.set("subcategories",r.map((t=>e.categoriesById[t]))),t.get("parent_category_id")&&t.set("parentCategory",e.categoriesById[t.get("parent_category_id")])}))}return e.trust_levels&&(e.trustLevels=Object.entries(e.trust_levels).map((e=>{let[t,n]=e;return new v.default(n,t)})),delete e.trust_levels),e.post_action_types&&(e.postActionByIdLookup=d().create(),e.post_action_types=e.post_action_types.map((t=>{const n=y.default.create(t);return e.postActionByIdLookup.set("action"+t.id,n),n}))),e.topic_flag_types&&(e.topicFlagByIdLookup=d().create(),e.topic_flag_types=e.topic_flag_types.map((t=>{const n=y.default.create(t);return e.topicFlagByIdLookup.set("action"+t.id,n),n}))),e.archetypes&&(e.archetypes=e.archetypes.map((t=>(t.site=e,b.default.create(t))))),e.user_fields&&(e.user_fields=e.user_fields.map((e=>d().create(e)))),e}}),"undefined"!=typeof Discourse){let e=!1;Object.defineProperty(Discourse,"Site",{get:()=>(e||((0,k.default)("Import the Site class instead of using Discourse.Site",{since:"2.4.0",id:"discourse.globals.site"}),e=!0),S)})}const C=S},43260:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(48163),i=n.n(r),s=n(71466),o=n.n(s),a=n(10425),l=n(3055);const c=i().extend();c.reopenClass({find:e=>new a.Promise((t=>{const n=o()('noscript[data-path="/'+e+'"]');if(n.length){let r=n.text();r=r.match(/<!-- preload-content: -->((?:.|[\n\r])*)<!-- :preload-content -->/)[1],t(c.create({path:e,html:r}))}else(0,l.ajax)(`/${e}.html`,{dataType:"html"}).then((n=>t(c.create({path:e,html:n}))))}))});const u=c},66329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default,flushMap:()=>i.flushMap});var r=n(54736),i=n(44416);(0,r.default)('"discourse/models/store" import is deprecated, use "discourse/services/store" instead',{since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",id:"discourse.models-store"})},53396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(12506),a=n(12652),l=n(57555);const c=a.default.extend((r=(0,l.default)("permissions"),i={permissionName:e=>e?e.everyone===o.default.FULL?"public":e.everyone===o.default.READONLY?"visible":"private":"public"},(0,s.Z)(i,"permissionName",[r],Object.getOwnPropertyDescriptor(i,"permissionName"),i),i))},12932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s,o=n(54001),a=n(6264),l=n(12652),c=n(57555);const u=l.default.extend((r=(0,c.default)("count","pm_count"),i=(0,c.default)("id"),s={pmOnly:(0,a.readOnly)("pm_only"),totalCount:(e,t)=>t?e+t:e,searchContext(e){return{type:"tag",id:e,tag:this,name:e}}},(0,o.Z)(s,"totalCount",[r],Object.getOwnPropertyDescriptor(s,"totalCount"),s),(0,o.Z)(s,"searchContext",[i],Object.getOwnPropertyDescriptor(s,"searchContext"),s),s))},1793:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n.n(r),s=n(17579),o=n(3055);const a=n(12652).default.extend({store:(0,s.inject)(),loaded:!1,updateFromJson(e){const t=this.topic;e.allowed_users&&(e.allowed_users=e.allowed_users.map((e=>this.store.createRecord("user",e)))),e.participants&&(e.participants=e.participants.map((e=>(e.topic=t,i().create(e))))),this.setProperties(e),this.set("loaded",!0)},updateNotifications(e){return(0,o.ajax)(`/t/${this.get("topic.id")}/notifications`,{type:"POST",data:{notification_level:e}}).then((()=>{this.setProperties({notification_level:e,notifications_reason_id:null})}))},removeAllowedGroup(e){const t=this.allowed_groups,n=e.name;return(0,o.ajax)("/t/"+this.get("topic.id")+"/remove-allowed-group",{type:"PUT",data:{name:n}}).then((()=>{t.removeObject(t.findBy("name",n))}))},removeAllowedUser(e){const t=this.allowed_users,n=e.get("username");return(0,o.ajax)("/t/"+this.get("topic.id")+"/remove-allowed-user",{type:"PUT",data:{username:n}}).then((()=>{t.removeObject(t.findBy("username",n))}))}})},11152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(48163),i=n.n(r),s=n(6264),o=n(17579),a=n(33217),l=n(10425),c=n(3055),u=n(12652),d=n(19990),p=n(7223),h=n(54736),m=n(37080);function g(e,t){const n={};return(0,a.isEmpty)(e)||e.forEach((function(e){n[e.id]=t.create(e)})),n}const f=u.default.extend({session:(0,o.inject)(),canLoadMore:(0,s.notEmpty)("more_topics_url"),forEachNew(e,t){const n=new Set;this.topics.forEach((e=>n.add(e.id))),e.forEach((e=>{n.has(e.id)||t(e)}))},updateSortParams(e,t){let n={...this.params||{}};n.q?n={q:n.q}:(n.order=e||n.order,n.ascending=t),this.set("params",n)},updateNewListSubsetParam(e){let t={...this.params||{}};t.q?t={q:t.q}:t.subset=e,this.set("params",t)},loadMore(){if(this.loadingMore)return l.Promise.resolve();let e=this.more_topics_url;if(e){let[t,n]=e.split("?");return t.match(/\.json$/)||(t+=".json"),e=t,n&&(e+="?"+n),this.set("loadingMore",!0),(0,c.ajax)({url:e}).then((e=>{let t=0;if(e){const n=f.topicsFrom(this.store,e);return this.forEachNew(n,(e=>{e.set("highlight",0==t++),this.topics.pushObject(e)})),this.setProperties({loadingMore:!1,more_topics_url:e.topic_list.more_topics_url}),this.session.set("topicList",this),{moreTopicsUrl:this.more_topics_url,newTopics:n}}}))}return l.Promise.resolve()},loadBefore(e,t){this.topics.removeObjects(this.topics.filter((t=>e.includes(t.id))));const n=`/${this.filter}.json?topic_ids=${e.join(",")}`;return(0,c.ajax)({url:n,data:this.params}).then((e=>{let n=0;this.forEachNew(f.topicsFrom(this.store,e),(e=>{e.set("highlight",!0),this.topics.insertAt(n,e),n++})),t&&this.session.set("topicList",this)}))}});f.reopenClass({topicsFrom(e,t,n){if(!t)return;let r=(n=n||{}).listKey||"topics";const s=g(t.users,p.default),o=g(t.primary_groups,i());return t.topic_list.categories&&t.topic_list.categories.forEach((e=>{d.default.current().updateCategory(e)})),t.topic_list[r].map((t=>(t.posters.forEach((e=>{e.user=s[e.user_id],e.extraClasses=e.extras,e.primary_group_id&&(e.primary_group=o[e.primary_group_id],e.primary_group&&(e.extraClasses=`${e.extraClasses||""} group-${e.primary_group.name}`))})),t.participants&&t.participants.forEach((e=>e.user=s[e.user_id])),e.createRecord("topic",t))))},munge(e,t){return e.inserted=e.inserted||[],e.can_create_topic=e.topic_list.can_create_topic,e.more_topics_url=e.topic_list.more_topics_url,e.for_period=e.topic_list.for_period,e.loaded=!0,e.per_page=e.topic_list.per_page,e.topics=this.topicsFrom(t,e),e.topic_list.shared_drafts&&(e.sharedDrafts=this.topicsFrom(t,e,{listKey:"shared_drafts"})),e},find(e,t){return(0,h.default)('TopicList.find is deprecated. Use `findFiltered("topicList")` on the `store` service instead.',{id:"topic-list-find",since:"3.1.0.beta5",dropFrom:"3.2.0.beta1"}),(0,m.getOwnerWithFallback)(this).lookup("service:store").findFiltered("topicList",{filter:e,params:t})},hideUniformCategory(e,t){e.set("hideCategory",!function(e,t){if(t){if(t.has_children)return!0;const n=e.shared_drafts_category_id;return!(!n||t.id!==n)}return!0}(e.site,t))}});const b=f},35284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(3055);const i=n(12652).default.extend({});i.reopenClass({update(e,t,n,i,s,o){let a={time:t,status_type:i};return n&&(a.based_on_last_post=n),s&&(a.category_id=s),o&&(a.duration_minutes=o),(0,r.ajax)({url:`/t/${e}/timer`,type:"POST",data:a})}});const s=i},40388:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,startTracking:()=>v});var r,i,s=n(54001),o=n(48163),a=n.n(o),l=n(33217),c=n(35814),u=n(13369),d=n(20229),p=n(56746),h=n(19990),m=n(7223),g=n(12757),f=n(57555);function b(e){return null===e.last_read_post_number&&(0!==e.notification_level&&!e.notification_level||e.notification_level>=c.NotificationLevels.TRACKING)&&e.created_in_new_period&&w(e)}function _(e){return null!==e.last_read_post_number&&e.last_read_post_number<e.highest_post_number&&e.notification_level>=c.NotificationLevels.TRACKING}function y(e){return _(e)||b(e)}function w(e){return!e.is_seen}function v(e){u.default.getAndRemove("topicTrackingStates").then((t=>e.loadStates(t))),u.default.getAndRemove("topicTrackingStateMeta").then((t=>e.establishChannels(t)))}const k=a().extend((r=(0,f.default)("incomingCount"),i={messageCount:0,init(){this._super(...arguments),this.states=new Map,this.stateChangeCallbacks={},this._trackedTopicLimit=4e3},willDestroy(){this._super(...arguments),this.messageBus.unsubscribe("/latest",this._processChannelPayload),this.currentUser&&(this.messageBus.unsubscribe("/new",this._processChannelPayload),this.messageBus.unsubscribe("/unread",this._processChannelPayload),this.messageBus.unsubscribe(`/unread/${this.currentUser.id}`,this._processChannelPayload)),this.messageBus.unsubscribe("/delete",this.onDeleteMessage),this.messageBus.unsubscribe("/recover",this.onRecoverMessage),this.messageBus.unsubscribe("/destroy",this.onDestroyMessage)},establishChannels(e){e??={};const t=-1;this.messageBus.subscribe("/latest",this._processChannelPayload,e["/latest"]??t),this.currentUser&&(this.messageBus.subscribe("/new",this._processChannelPayload,e["/new"]??t),this.messageBus.subscribe("/unread",this._processChannelPayload,e["/unread"]??t),this.messageBus.subscribe(`/unread/${this.currentUser.id}`,this._processChannelPayload,e[`/unread/${this.currentUser.id}`]??t)),this.messageBus.subscribe("/delete",this.onDeleteMessage,e["/delete"]??t),this.messageBus.subscribe("/recover",this.onRecoverMessage,e["/recover"]??t),this.messageBus.subscribe("/destroy",this.onDestroyMessage,e["/destroy"]??t)},onDeleteMessage(e){this.modifyStateProp(e,"deleted",!0),this.incrementMessageCount()},onRecoverMessage(e){this.modifyStateProp(e,"deleted",!1),this.incrementMessageCount()},onDestroyMessage(e){this.incrementMessageCount();const t=d.default.router.currentRoute.parent;"topic"===t.name&&parseInt(t.params.id,10)===e.topic_id&&d.default.redirectTo("/")},mutedTopics(){return this.currentUser&&this.currentUser.muted_topics||[]},unmutedTopics(){return this.currentUser&&this.currentUser.unmuted_topics||[]},trackMutedOrUnmutedTopic(e){let t,n;"muted"===e.message_type?(n="muted_topics",t=this.mutedTopics()):(n="unmuted_topics",t=this.unmutedTopics()),t=t.concat({topicId:e.topic_id,createdAt:Date.now()}),this.currentUser&&this.currentUser.set(n,t)},pruneOldMutedAndUnmutedTopics(){const e=Date.now();let t=this.mutedTopics().filter((t=>e-t.createdAt<6e4)),n=this.unmutedTopics().filter((t=>e-t.createdAt<6e4));this.currentUser&&this.currentUser.set("muted_topics",t)&&this.currentUser.set("unmuted_topics",n)},isMutedTopic(e){return!!this.mutedTopics().findBy("topicId",e)},isUnmutedTopic(e){return!!this.unmutedTopics().findBy("topicId",e)},updateSeen(e,t){if(!e||!t)return;const n=this.findState(e);n&&(!n.last_read_post_number||n.last_read_post_number<t)&&(this.modifyStateProp(e,"last_read_post_number",t),this.incrementMessageCount())},notifyIncoming(e){if(!this.newIncoming)return;const t=this.filter,n=this.filterCategory,r=this.filterTag,i=e.payload&&e.payload.category_id;if(n&&n.get("id")!==i){const e=i&&p.default.findById(i);if(!e||e.get("parentCategory.id")!==n.get("id"))return}if(r&&!e.payload.tags?.includes(r))return;["all","latest","new","unseen"].includes(t)&&"new_topic"===e.message_type&&this._addIncoming(e.topic_id);const s=["all","unread","unseen"];if(this.currentUser?.new_new_view_enabled&&s.push("new"),s.includes(t)&&"unread"===e.message_type){const t=this.findState(e);t&&t.highest_post_number!==t.last_read_post_number||this._addIncoming(e.topic_id)}"latest"===t&&"latest"===e.message_type&&this._addIncoming(e.topic_id),"categories"!==t||"latest"!==e.message_type||h.default.current().mobileView||"categories_and_latest_topics"!==this.siteSettings.desktop_category_page_style&&"categories_and_latest_topics_created_date"!==this.siteSettings.desktop_category_page_style||this._addIncoming(e.topic_id),this.set("incomingCount",this.newIncoming.length)},resetTracking(){this.newIncoming=[],this.set("incomingCount",0)},trackIncoming(e){let t,n;if(this.newIncoming=[],e.startsWith("c/")||e.startsWith("tags/c/")){const r=e.match(/\/(\d*)\//);t=p.default.findById(parseInt(r[1],10));const i=e.split("/");e.startsWith("tags/c/")&&(n=i[i.indexOf(r[1])+1]),i.length>=4&&(e=i[i.length-1])}else if(e.startsWith("tag/")){const t=e.split("/");e=t[t.length-1],n=t[1]}this.set("filterCategory",t),this.set("filterTag",n),this.set("filter",e),this.set("incomingCount",0)},hasIncoming:e=>e&&e>0,removeTopic(e){this.states.delete(this._stateKey(e))&&this._afterStateChange()},removeTopics(e){e.forEach((e=>this.removeTopic(e))),this.incrementMessageCount(),this._afterStateChange()},updateTopics(e){(0,l.isEmpty)(e)||e.forEach((e=>{const t=this.findState(e.get("id"));if(!t)return;const n=e.get("last_read_post_number"),r=e.get("is_seen");if(n!==t.last_read_post_number||r!==t.is_seen){const n=e.get("posts_count");let r;r=t.last_read_post_number?n-t.last_read_post_number:0,r<0&&(r=0),e.setProperties({highest_post_number:t.highest_post_number,last_read_post_number:t.last_read_post_number,unread_posts:r,is_seen:t.is_seen,unseen:!t.last_read_post_number&&w(t)})}}))},sync(e,t,n){if(!e||!e.topics)return;this._fixDelayedServerState(e,t);const r=[];for(const t of e.topics){const e=this._newStateFromListTopic(t);e&&r.push(e)}this.loadStates(r),this._shouldCompensateState(e,t,n)&&this._correctMissingState(e,t),this.incrementMessageCount()},incrementMessageCount(){this.incrementProperty("messageCount")},_generateCallbackId:()=>Math.random().toString(12).slice(2,11),onStateChange(e){let t=this._generateCallbackId();return this.stateChangeCallbacks[t]=e,t},offStateChange(e){delete this.stateChangeCallbacks[e]},getSubCategoryIds(e){const t=[e],n=p.default.list();for(let e=0;e<t.length;++e)for(let r=0;r<n.length;++r)t[e]===n[r].parent_category_id&&(t[t.length]=n[r].id);return new Set(t)},countCategoryByState(e){let{type:t,categoryId:n,tagId:r,noSubcategories:i,customFilterFn:s}=e;const o=i?new Set([n]):this.getSubCategoryIds(n),a=this.currentUser?.muted_category_ids?.concat(this.currentUser.indirectly_muted_category_ids);let l;switch(t){case"new":l=b;break;case"unread":l=_;break;case"new_and_unread":case"unread_and_new":l=y;break;default:throw new Error(`Unkown filter type ${t}`)}return Array.from(this.states.values()).filter((e=>!(!l(e)||n&&!o.has(e.category_id)||n&&e.is_category_topic&&n!==e.category_id||r&&!e.tags?.includes(r)||"new"===t&&a?.includes(e.category_id)||s&&!s.call(this,e)))).length},countNew(){let{categoryId:e,tagId:t,noSubcategories:n,customFilterFn:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.countCategoryByState({type:"new",categoryId:e,tagId:t,noSubcategories:n,customFilterFn:r})},countUnread(){let{categoryId:e,tagId:t,noSubcategories:n,customFilterFn:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.countCategoryByState({type:"unread",categoryId:e,tagId:t,noSubcategories:n,customFilterFn:r})},countNewAndUnread(){let{categoryId:e,tagId:t,noSubcategories:n,customFilterFn:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.countCategoryByState({type:"new_and_unread",categoryId:e,tagId:t,noSubcategories:n,customFilterFn:r})},forEachTracked(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._trackedTopics(t).forEach((t=>{e(t.topic,t.newTopic,t.unreadTopic)}))},countTags(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return e.forEach((e=>{n[e]={unreadCount:0,newCount:0},t.includeTotal&&(n[e].totalCount=0)})),this.forEachTracked(((r,i,s)=>{r.tags&&r.tags.length>0&&e.forEach((e=>{r.tags.includes(e)&&(s&&n[e].unreadCount++,i&&n[e].newCount++,t.includeTotal&&n[e].totalCount++)}))}),{includeAll:t.includeTotal}),n},countCategory(e,t){let n=0;for(let r of this.states.values())r.category_id!==e||r.deleted||t&&!r.tags?.includes(t)||(n+=null===r.last_read_post_number||r.last_read_post_number<r.highest_post_number?1:0);return n},lookupCount(){let{type:e,category:t,tagId:n,noSubcategories:r,customFilterFn:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("latest"===e){let e=this.lookupCount({type:"new",category:t,tagId:n,noSubcategories:r,customFilterFn:i});return this.currentUser?.new_new_view_enabled||(e+=this.lookupCount({type:"unread",category:t,tagId:n,noSubcategories:r,customFilterFn:i})),e}let s=t?(0,o.get)(t,"id"):null;if("new"===e){let e=this.countNew({categoryId:s,tagId:n,noSubcategories:r,customFilterFn:i});return this.currentUser?.new_new_view_enabled&&(e+=this.countUnread({categoryId:s,tagId:n,noSubcategories:r,customFilterFn:i})),e}return"unread"===e?this.countUnread({categoryId:s,tagId:n,noSubcategories:r,customFilterFn:i}):e.split("/")[1]?this.countCategory(s,n):void 0},loadStates(e){e&&0!==e.length&&e.every((e=>this._setState({topic:e,data:e,skipAfterStateChange:!0})))&&this._afterStateChange()},_setState(e){let{topic:t,data:n,skipAfterStateChange:r}=e;const i=this._stateKey(t),s=this.states.get(i);return!(s&&JSON.stringify(s)===JSON.stringify(n)||(this.states.set(i,n),r||this._afterStateChange(),0))},modifyState(e,t){this._setState({topic:e,data:t})},modifyStateProp(e,t,n){const r=this.findState(e);r&&(r[t]=n,this._afterStateChange())},findState(e){return this.states.get(this._stateKey(e))},_fixDelayedServerState(e,t){for(let n=e.topics.length-1;n>=0;n--){const r=e.topics[n],i=this.findState(r.id);i&&i.last_read_post_number>0&&(0===r.last_read_post_number||!this.currentUser?.new_new_view_enabled)&&("new"===t?e.topics.splice(n,1):(e.topics[n].set("unseen",!1),e.topics[n].set("prevent_sync",!0)))}},_newStateFromListTopic(e){const t={...this.findState(e.id)||{}};if(e.unseen)t.last_read_post_number=null;else{if(!e.unread_posts)return void(!e.prevent_sync&&this._maxStateSizeReached()&&this.removeTopic(e.id));t.last_read_post_number=e.highest_post_number-(e.unread_posts||0)}return t.topic_id=e.id,e.notification_level&&(t.notification_level=e.notification_level),e.highest_post_number&&(t.highest_post_number=e.highest_post_number),e.category&&(t.category_id=e.category.id),e.tags&&(t.tags=e.tags),t},_shouldCompensateState(e,t,n){let r=("new"===t||"unread"===t)&&!e.more_topics_url;return r&&n&&Object.keys(n).forEach((e=>{"ascending"!==e&&"order"!==e&&(r=!1)})),r},_correctMissingState(e,t){const n={};e.topics.forEach((e=>n[this._stateKey(e.id)]=!0));for(let e of this.states.keys()){if(n[e])return;const r={...this.findState(e)};"unread"===t&&_(r)&&(r.last_read_post_number=r.highest_post_number),"new"===t&&b(r)&&(r.last_read_post_number=1),this.modifyState(e,r)}},_processChannelPayload(e){if(["muted","unmuted"].includes(e.message_type))return void this.trackMutedOrUnmutedTopic(e);if(this.pruneOldMutedAndUnmutedTopics(),this.isMutedTopic(e.topic_id))return;if(this.siteSettings.mute_all_categories_by_default&&!this.isUnmutedTopic(e.topic_id))return;if(["new_topic","latest"].includes(e.message_type)){const t=m.default.currentProp("muted_category_ids")?.concat(m.default.currentProp("indirectly_muted_category_ids"));if(t&&t.includes(e.payload.category_id)&&!this.isUnmutedTopic(e.topic_id))return}if(["new_topic","latest"].includes(e.message_type)){const t=m.default.currentProp("muted_tags");if(function(e,t,n){return!(!t||!e)&&("always"===n.remove_muted_tags_from_latest&&e.any((e=>t.includes(e)))||"only_muted"===n.remove_muted_tags_from_latest&&e.every((e=>t.includes(e))))}(e.payload.tags,t,this.siteSettings))return}const t={...this.findState(e)};if("latest"===e.message_type&&(this.notifyIncoming(e),t.tags!==e.payload.tags&&(this.modifyStateProp(e,"tags",e.payload.tags),this.incrementMessageCount())),"dismiss_new"===e.message_type&&this._dismissNewTopics(e.payload.topic_ids),"dismiss_new_posts"===e.message_type&&this._dismissNewPosts(e.payload.topic_ids),["new_topic","unread","read"].includes(e.message_type)&&(this.notifyIncoming(e),!(0,g.deepEqual)(t,e.payload))){let n=e.payload;t&&(n=(0,g.deepMerge)(t,e.payload)),"unread"===e.message_type&&(void 0===n.last_read_post_number&&(n.last_read_post_number=n.highest_post_number-1),void 0===n.notification_level&&(n.notification_level=c.NotificationLevels.TRACKING)),this.modifyState(e,n),this.incrementMessageCount()}},_dismissNewTopics(e){e.forEach((e=>{this.modifyStateProp(e,"is_seen",!0)})),this.incrementMessageCount()},_dismissNewPosts(e){e.forEach((e=>{const t=this.findState(e);t&&this.modifyStateProp(e,"last_read_post_number",t.highest_post_number)})),this.incrementMessageCount()},_addIncoming(e){this.newIncoming.includes(e)||this.newIncoming.push(e)},_trackedTopics(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.from(this.states.values()).map((t=>{let n=b(t),r=_(t);if(n||r||e.includeAll)return{topic:t,newTopic:n,unreadTopic:r}})).compact()},_stateKey:e=>"number"==typeof e?`t${e}`:"string"==typeof e&&e.includes("t")?e:`t${e.topic_id}`,_afterStateChange(){this.notifyPropertyChange("states"),Object.values(this.stateChangeCallbacks).forEach((e=>e()))},_maxStateSizeReached(){return this.states.size>=this._trackedTopicLimit}},(0,s.Z)(i,"onDeleteMessage",[f.bind],Object.getOwnPropertyDescriptor(i,"onDeleteMessage"),i),(0,s.Z)(i,"onRecoverMessage",[f.bind],Object.getOwnPropertyDescriptor(i,"onRecoverMessage"),i),(0,s.Z)(i,"onDestroyMessage",[f.bind],Object.getOwnPropertyDescriptor(i,"onDestroyMessage"),i),(0,s.Z)(i,"hasIncoming",[r],Object.getOwnPropertyDescriptor(i,"hasIncoming"),i),(0,s.Z)(i,"_newStateFromListTopic",[f.bind],Object.getOwnPropertyDescriptor(i,"_newStateFromListTopic"),i),(0,s.Z)(i,"_processChannelPayload",[f.bind],Object.getOwnPropertyDescriptor(i,"_processChannelPayload"),i),i))},92635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ID_CONSTRAINT:()=>ae,clearCustomLastUnreadUrlCallbacks:()=>me,default:()=>ge,loadTopicView:()=>oe,mergeTopic:()=>pe,movePosts:()=>de,registerCustomLastUnreadUrlCallback:()=>he});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T,S,C,P,O,E,D,I,j,Z=n(54001),A=n(48163),M=n.n(A),N=n(6264),z=n(10425),L=n(40960),F=n(3055),U=n(38864),R=n(63319),B=n(70352),$=n(82331),q=n(13369),H=n(35193),W=n(58988),K=n(20229),V=n(99779),G=n(87521),Y=n(12652),Q=n(19990),J=n(7223),X=n(44416),ee=n(54736),te=n(47582),ne=n(12757),re=n(57555),ie=n(82099),se=n(56746);function oe(e,t){const n=(0,ne.deepMerge)({},t),r=`/t/${e.id}`,i=(n.nearPost?`${r}/${n.nearPost}`:r)+".json";return delete n.nearPost,delete n.__type,delete n.store,q.default.getAndRemove(`topic_${e.id}`,(()=>(0,F.ajax)(i,{data:n}))).then((t=>(t.categories?.forEach((t=>e.site.updateCategory(t))),e.updateFromJson(t),t)))}const ae=/^\d+$/;let le=[];const ce=Y.default.extend((r=(0,re.default)("last_read_post_number","highest_post_number"),i=(0,re.default)("posters.firstObject"),s=(0,re.default)("posters.[]"),o=(0,re.default)("posters.[]","participants.[]","allowed_user_count"),a=(0,re.default)("fancy_title"),l=(0,re.default)("bumped_at","createdAt"),c=(0,re.default)("bumpedAt","createdAt"),u=(0,re.default)("created_at"),d=(0,re.default)("tags"),p=(0,re.default)("related_messages"),h=(0,re.default)("suggested_topics"),m=(0,re.default)("posts_count"),g=(0,re.default)("visible"),f=(0,re.default)("id"),b=(0,A.computed)("category_id"),_=(0,re.default)("url"),y=(0,re.default)("id","slug"),w=(0,re.default)("unread_posts","new_posts"),v=(0,re.default)("unread_posts","new_posts"),k=(0,re.default)("last_read_post_number","url"),x=(0,re.default)("last_read_post_number","highest_post_number","url"),T=(0,re.default)("highest_post_number","url"),S=(0,re.default)("url"),C=(0,re.default)("url"),P=(0,re.default)("last_poster.username"),O=(0,re.default)("views"),E=(0,re.default)("archetype"),D=(0,re.default)("excerpt"),I=(0,re.default)("excerpt"),j={message:null,errorLoading:!1,visited:(e,t)=>e>=t,creator:e=>e&&e.user,lastPoster(e){if(e&&e.length>0)return e.filter((e=>e.extras?.includes("latest")))[0]||e.firstObject},lastPosterUser:(0,N.alias)("lastPoster.user"),lastPosterGroup:(0,N.alias)("lastPoster.primary_group"),allowedGroups:(0,N.alias)("details.allowed_groups"),featuredUsers(e,t,n){let r=e;const i=r.length;if(this.isPrivateMessage&&t&&i<5){let n=0;if(i>1){const e=r[i-1];e.extras&&e.extras.includes("latest")&&(n=1)}const s=e.map((e=>e.user&&e.user.id)).filter((e=>e));t.some((e=>!s.includes(e.user_id)&&(r.splice(r.length-n,0,e),5===r.length)))}return this.isPrivateMessage&&n>5&&(r.splice(3,1),r.push({moreCount:"+"+(n-5+1)})),r},fancyTitle(e){return(0,W.fancyTitle)(e,this.siteSettings.support_mixed_text_direction)},bumpedAt:(e,t)=>e?new Date(e):t,bumpedAtTitle(e,t){const n="YYYY-MM-DDTHH:mm:ss";if(moment(e).isValid()&&moment(t).isValid())return moment(e).format(n)!==moment(t).format(n)?`${ie.default.t("topic.created_at",{date:(0,B.longDate)(t)})}\n${ie.default.t("topic.bumped_at",{date:(0,B.longDate)(e)})}`:ie.default.t("topic.created_at",{date:(0,B.longDate)(t)})},createdAt:e=>new Date(e),postStream(){return this.store.createRecord("postStream",{id:this.id,topic:this})},visibleListTags(e){if(!e||!this.siteSettings.suppress_overlapping_tags_in_list)return e;const t=this.title.toLowerCase(),n=[];return e.forEach((function(e){t.includes(e.toLowerCase())||n.push(e)})),n},relatedMessages(e){if(e)return e.map((e=>this.store.createRecord("topic",e)))},suggestedTopics(e){if(e)return e.map((e=>this.store.createRecord("topic",e)))},replyCount:e=>e-1,get details(){return this._details??=this.store.createRecord("topicDetails",{id:this.id,topic:this})},set details(e){this._details=e},invisible:e=>void 0!==e?!e:void 0,deleted:(0,N.notEmpty)("deleted_at"),searchContext:e=>({type:"topic",id:e}),get category(){return se.default.findById(this.category_id)},set category(e){this.set("category_id",e?.id)},shareUrl(e){const t=J.default.current();return(0,L.resolveShareUrl)(e,t)},printUrl:(0,R.fmt)("url","%@/print"),url:(e,t)=>(0===(t=t||"").trim().length&&(t="topic"),`${(0,te.default)("/t/")}${t}/${e}`),urlForPostNumber(e){let t=this.url;return e>0&&(t+=`/${e}`),t},totalUnread:(e,t)=>((0,ee.default)("The totalUnread property of the topic model is deprecated",{id:"discourse.topic.totalUnread"}),e||t),displayNewPosts:(e,t)=>((0,ee.default)("The displayNewPosts property of the topic model is deprecated",{id:"discourse.topic.totalUnread"}),e||t),lastReadUrl(e){return this.urlForPostNumber(e)},lastUnreadUrl(e,t){let n=null;if(le.some((e=>{const t=e(this);if(t)return n=t,!0})),n)return n;if(e>=t&&this.get("category.navigate_to_first_post_after_read"))return this.urlForPostNumber(1);let r=e+1;return r>t&&(r=t),this.urlForPostNumber(r)},lastPostUrl(e){return this.urlForPostNumber(e)},firstPostUrl(){return this.urlForPostNumber(1)},summaryUrl(){const e=this.has_summary?"?filter=summary":"";return`${this.urlForPostNumber(1)}${e}`},lastPosterUrl:e=>(0,K.userPath)(e),viewsHeat(e){return e>=this.siteSettings.topic_views_heat_high?"heatmap-high":e>=this.siteSettings.topic_views_heat_medium?"heatmap-med":e>=this.siteSettings.topic_views_heat_low?"heatmap-low":null},archetypeObject:e=>Q.default.currentProp("archetypes").findBy("id",e),isPrivateMessage:(0,N.equal)("archetype","private_message"),isBanner:(0,N.equal)("archetype","banner"),toggleStatus(e){return this.toggleProperty(e),this.saveStatus(e,!!this.get(e))},saveStatus(e,t,n){return"closed"===e&&this.incrementProperty("posts_count"),(0,F.ajax)(`${this.url}/status`,{type:"PUT",data:{status:e,enabled:!!t,until:n}})},makeBanner(){return(0,F.ajax)(`/t/${this.id}/make-banner`,{type:"PUT"}).then((()=>this.set("archetype","banner")))},removeBanner(){return(0,F.ajax)(`/t/${this.id}/remove-banner`,{type:"PUT"}).then((()=>this.set("archetype","regular")))},afterPostBookmarked(e){e.set("bookmarked",!0)},firstPost(){const e=this.postStream;let t=e.get("posts.firstObject");if(t&&1===t.post_number)return z.Promise.resolve(t);const n=e.findPostIdForPostNumber(1);return n?this.postById(n):this.postStream.loadPostByPostNumber(1)},postById(e){const t=this.postStream.findLoadedPost(e);return t?z.Promise.resolve(t):this.postStream.loadPost(e)},deleteBookmarks(){return(0,F.ajax)(`/t/${this.id}/remove_bookmarks`,{type:"PUT"})},bookmarkCount:(0,N.alias)("bookmarks.length"),removeBookmark(e){this.bookmarks||this.set("bookmarks",[]),this.set("bookmarks",this.bookmarks.filter((t=>(t.id===e&&"Topic"===t.bookmarkable_type&&this.appEvents.trigger("bookmarks:changed",null,t.attachedTo()),t.id!==e)))),this.set("bookmarked",this.bookmarks.length),this.incrementProperty("bookmarksWereChanged")},clearBookmarks(){this.toggleProperty("bookmarked");const e=this.bookmarks.filterBy("bookmarkable_type","Post").mapBy("bookmarkable_id");return e.forEach((e=>{const t=this.postStream.findLoadedPost(e);t&&t.clearBookmark()})),this.set("bookmarks",[]),e},createGroupInvite(e){return(0,F.ajax)(`/t/${this.id}/invite-group`,{type:"POST",data:{group:e}})},createInvite(e,t,n){return(0,F.ajax)(`/t/${this.id}/invite`,{type:"POST",data:{user:e,group_ids:t,custom_message:n}})},generateInviteLink:(e,t,n)=>(0,F.ajax)("/invites",{type:"POST",data:{email:e,skip_email:!0,group_ids:t,topic_id:n}}),destroy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,F.ajax)(`/t/${this.id}`,{data:{context:window.location.pathname,...t},type:"DELETE"}).then((()=>{this.setProperties({deleted_at:new Date,deleted_by:e,"details.can_delete":!1,"details.can_recover":!0,"details.can_permanently_delete":this.siteSettings.can_permanently_delete&&e.admin}),!t.force_destroy&&(e.staff||e.groups.some((e=>e.name===this.category?.reviewable_by_group_name))||this.siteSettings.delete_all_posts_and_topics_allowed_groups&&e.isInAnyGroups(this.siteSettings.delete_all_posts_and_topics_allowed_groups))||K.default.redirectTo("/")})).catch(U.popupAjaxError)},recover(){return this.setProperties({deleted_at:null,deleted_by:null,"details.can_delete":!0,"details.can_recover":!1}),(0,F.ajax)(`/t/${this.id}/recover`,{data:{context:window.location.pathname},type:"PUT"})},updateFromJson(e){const t=Object.keys(e);return e.view_hidden||(this.details.updateFromJson(e.details),t.removeObjects(["details","post_stream"]),e.published_page&&this.set("publishedPage",this.store.createRecord("published-page",e.published_page))),t.forEach((t=>this.set(t,e[t]))),this.bookmarks.length&&this.set("bookmarks",this.bookmarks.map((e=>G.default.create(e)))),this},reload(){return(0,F.ajax)(`/t/${this.id}`,{type:"GET"}).then((e=>this.updateFromJson(e)))},isPinnedUncategorized:(0,N.and)("pinned","category.isUncategorizedCategory"),clearPin(){this.setProperties({pinned:!1,unpinned:!0}),(0,F.ajax)(`/t/${this.id}/clear-pin`,{type:"PUT"}).then(null,(()=>{this.setProperties({pinned:!0,unpinned:!1})}))},togglePinnedForUser(){this.pinned?this.clearPin():this.rePin()},rePin(){this.setProperties({pinned:!0,unpinned:!1}),(0,F.ajax)(`/t/${this.id}/re-pin`,{type:"PUT"}).then(null,(()=>{this.setProperties({pinned:!0,unpinned:!1})}))},escapedExcerpt:e=>(0,H.emojiUnescape)(e),hasExcerpt:(0,N.notEmpty)("excerpt"),excerptTruncated:e=>e&&"&hellip;"===e.slice(-8),readLastPost:(0,R.propertyEqual)("last_read_post_number","highest_post_number"),canClearPin:(0,N.and)("pinned","readLastPost"),canEditTags:(0,N.or)("details.can_edit","details.can_edit_tags"),archiveMessage(){this.set("archiving",!0);const e=(0,F.ajax)(`/t/${this.id}/archive-message`,{type:"PUT"});return e.then((e=>{this.set("message_archived",!0),e&&e.group_name&&this.set("inboxGroupName",e.group_name)})).finally((()=>this.set("archiving",!1))),e},moveToInbox(){this.set("archiving",!0);const e=(0,F.ajax)(`/t/${this.id}/move-to-inbox`,{type:"PUT"});return e.then((e=>{this.set("message_archived",!1),e&&e.group_name&&this.set("inboxGroupName",e.group_name)})).finally((()=>this.set("archiving",!1))),e},publish(){return(0,F.ajax)(`/t/${this.id}/publish`,{type:"PUT",data:this.getProperties("destination_category_id")}).then((()=>this.set("destination_category_id",null))).catch(U.popupAjaxError)},updateDestinationCategory(e){return this.set("destination_category_id",e),(0,F.ajax)(`/t/${this.id}/shared-draft`,{type:"PUT",data:{category_id:e}})},convertTopic(e,t){let n={type:"PUT"};return t&&t.categoryId&&(n.data={category_id:t.categoryId}),(0,F.ajax)(`/t/${this.id}/convert-topic/${e}`,n)},resetBumpDate(){return(0,F.ajax)(`/t/${this.id}/reset-bump-date`,{type:"PUT"}).catch(U.popupAjaxError)},updateTags(e){return e&&0!==e.length||(e=[""]),(0,F.ajax)(`/t/${this.id}/tags`,{type:"PUT",data:{tags:e}})}},(0,Z.Z)(j,"visited",[r],Object.getOwnPropertyDescriptor(j,"visited"),j),(0,Z.Z)(j,"creator",[i],Object.getOwnPropertyDescriptor(j,"creator"),j),(0,Z.Z)(j,"lastPoster",[s],Object.getOwnPropertyDescriptor(j,"lastPoster"),j),(0,Z.Z)(j,"featuredUsers",[o],Object.getOwnPropertyDescriptor(j,"featuredUsers"),j),(0,Z.Z)(j,"fancyTitle",[a],Object.getOwnPropertyDescriptor(j,"fancyTitle"),j),(0,Z.Z)(j,"bumpedAt",[l],Object.getOwnPropertyDescriptor(j,"bumpedAt"),j),(0,Z.Z)(j,"bumpedAtTitle",[c],Object.getOwnPropertyDescriptor(j,"bumpedAtTitle"),j),(0,Z.Z)(j,"createdAt",[u],Object.getOwnPropertyDescriptor(j,"createdAt"),j),(0,Z.Z)(j,"postStream",[re.default],Object.getOwnPropertyDescriptor(j,"postStream"),j),(0,Z.Z)(j,"visibleListTags",[d],Object.getOwnPropertyDescriptor(j,"visibleListTags"),j),(0,Z.Z)(j,"relatedMessages",[p],Object.getOwnPropertyDescriptor(j,"relatedMessages"),j),(0,Z.Z)(j,"suggestedTopics",[h],Object.getOwnPropertyDescriptor(j,"suggestedTopics"),j),(0,Z.Z)(j,"replyCount",[m],Object.getOwnPropertyDescriptor(j,"replyCount"),j),(0,Z.Z)(j,"invisible",[g],Object.getOwnPropertyDescriptor(j,"invisible"),j),(0,Z.Z)(j,"searchContext",[f],Object.getOwnPropertyDescriptor(j,"searchContext"),j),(0,Z.Z)(j,"category",[b],Object.getOwnPropertyDescriptor(j,"category"),j),(0,Z.Z)(j,"shareUrl",[_],Object.getOwnPropertyDescriptor(j,"shareUrl"),j),(0,Z.Z)(j,"url",[y],Object.getOwnPropertyDescriptor(j,"url"),j),(0,Z.Z)(j,"totalUnread",[w],Object.getOwnPropertyDescriptor(j,"totalUnread"),j),(0,Z.Z)(j,"displayNewPosts",[v],Object.getOwnPropertyDescriptor(j,"displayNewPosts"),j),(0,Z.Z)(j,"lastReadUrl",[k],Object.getOwnPropertyDescriptor(j,"lastReadUrl"),j),(0,Z.Z)(j,"lastUnreadUrl",[x],Object.getOwnPropertyDescriptor(j,"lastUnreadUrl"),j),(0,Z.Z)(j,"lastPostUrl",[T],Object.getOwnPropertyDescriptor(j,"lastPostUrl"),j),(0,Z.Z)(j,"firstPostUrl",[S],Object.getOwnPropertyDescriptor(j,"firstPostUrl"),j),(0,Z.Z)(j,"summaryUrl",[C],Object.getOwnPropertyDescriptor(j,"summaryUrl"),j),(0,Z.Z)(j,"lastPosterUrl",[P],Object.getOwnPropertyDescriptor(j,"lastPosterUrl"),j),(0,Z.Z)(j,"viewsHeat",[O],Object.getOwnPropertyDescriptor(j,"viewsHeat"),j),(0,Z.Z)(j,"archetypeObject",[E],Object.getOwnPropertyDescriptor(j,"archetypeObject"),j),(0,Z.Z)(j,"escapedExcerpt",[D],Object.getOwnPropertyDescriptor(j,"escapedExcerpt"),j),(0,Z.Z)(j,"excerptTruncated",[I],Object.getOwnPropertyDescriptor(j,"excerptTruncated"),j),j));function ue(e){if(e.success)return(0,X.flushMap)(),e;throw new Error("error moving posts topic")}function de(e,t){return(0,F.ajax)(`/t/${e}/move-posts`,{type:"POST",data:t}).then(ue)}function pe(e,t){return(0,F.ajax)(`/t/${e}/merge-topic`,{type:"POST",data:t}).then(ue)}function he(e){le.push(e)}function me(){le.clear()}ce.reopenClass({NotificationLevel:{WATCHING:3,TRACKING:2,REGULAR:1,MUTED:0},munge:e=>(delete e.category,e.bookmarks=e.bookmarks||[],e),createActionSummary(e){if(e.actions_summary){const t=M().create();e.actions_summary=e.actions_summary.map((n=>{n.post=e,n.actionType=Q.default.current().postActionTypeById(n.id);const r=V.default.create(n);return t.set(n.actionType.get("name_key"),r),r})),e.set("actionByName",t)}},update(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};void 0!==t.categoryId&&(t.category_id=t.categoryId,delete t.categoryId),e.get("isPrivateMessage")&&delete t.category_id;const r={...t};return n.fastEdit&&(r.keep_existing_draft=!0),(0,F.ajax)(e.get("url"),{type:"PUT",data:JSON.stringify(r),contentType:"application/json"}).then((n=>{t.title=n.basic_topic.title,t.fancy_title=n.basic_topic.fancy_title,e.is_shared_draft&&(t.destination_category_id=t.category_id,delete t.category_id),e.setProperties(t)}))},create(){const e=this._super.apply(this,arguments);return this.createActionSummary(e),e},find(e,t){let n=(0,te.default)("/t/")+e;t.nearPost&&(n+=`/${t.nearPost}`);const r={};return t.postsAfter&&(r.posts_after=t.postsAfter),t.postsBefore&&(r.posts_before=t.postsBefore),t.trackVisit&&(r.track_visit=!0),t.userFilters&&t.userFilters.length>0&&(r.username_filters=[],t.userFilters.forEach((function(e){r.username_filters.push(e)}))),!0===t.summary&&(r.summary=!0),(0,F.ajax)(`${n}.json`,{data:r})},changeOwners(e,t){const n=(0,F.ajax)(`/t/${e}/change-owner`,{type:"POST",data:t}).then((e=>{if(e.success)return e;n.reject(new Error("error changing ownership of posts"))}));return n},changeTimestamp(e,t){const n=(0,F.ajax)(`/t/${e}/change-timestamp`,{type:"PUT",data:{timestamp:t}}).then((e=>{if(e.success)return e;n.reject(new Error("error updating timestamp of topic"))}));return n},bulkOperation(e,t,n,r){const i={topic_ids:e.mapBy("id"),operation:t,tracked:r};return n&&n.select&&(i.silent=!0),(0,F.ajax)("/topics/bulk",{type:"PUT",data:i})},bulkOperationByFilter(e,t,n,r){const i={filter:e,operation:t,tracked:r};return n&&(n.categoryId&&(i.category_id=n.categoryId),n.includeSubcategories&&(i.include_subcategories=!0),n.tagName&&(i.tag_name=n.tagName),n.private_message_inbox&&(i.private_message_inbox=n.private_message_inbox,n.group_name&&(i.group_name=n.group_name))),(0,F.ajax)("/topics/bulk",{type:"PUT",data:i})},resetNew(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{tracked:r,tag:i,topicIds:s}={tracked:!1,tag:null,topicIds:null,...n};const o={tracked:r};return e&&(o.category_id=e.id,o.include_subcategories=t),i&&(o.tag_id=i.id),s&&(o.topic_ids=s),n.dismissPosts&&(o.dismiss_posts=n.dismissPosts),n.dismissTopics&&(o.dismiss_topics=n.dismissTopics),n.untrack&&(o.untrack=n.untrack),(0,F.ajax)("/topics/reset-new",{type:"PUT",data:o})},pmResetNew(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};return e.topicIds&&(t.topic_ids=e.topicIds),e.inbox&&(t.inbox=e.inbox,e.groupName&&(t.group_name=e.groupName)),(0,F.ajax)("/topics/pm-reset-new",{type:"PUT",data:t})},idForSlug:e=>(0,F.ajax)(`/t/id_for/${e}`),setSlowMode(e,t,n){const r={seconds:t};return r.enabled_until=n,(0,F.ajax)(`/t/${e}/slow_mode`,{type:"PUT",data:r})},async applyTransformations(e){await(0,$.applyModelTransformations)("topic",e)}});const ge=ce},99457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r,i=n(54001),s=n(48163),o=n(82099);let a=(r=class{constructor(e,t){this.id=e,this._key=t}get name(){return o.default.t(`trust_levels.names.${this._key}`)}get detailedName(){return o.default.t("trust_levels.detailed_name",{level:this.id,name:this.name})}},(0,i.Z)(r.prototype,"name",[s.computed],Object.getOwnPropertyDescriptor(r.prototype,"name"),r.prototype),(0,i.Z)(r.prototype,"detailedName",[s.computed],Object.getOwnPropertyDescriptor(r.prototype,"detailedName"),r.prototype),r)},49026:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(48163);const i=n.n(r)().extend({push(e){return this.items||(this.items=[]),this.items.push(e)}})},32510:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s,o=n(54001),a=n(63319),l=n(12652),c=n(2437),u=n(57555);const d=l.default.extend((r=(0,u.default)("action_type"),i=(0,u.default)("action_type"),s={isPM:e=>e===c.default.TYPES.messages_sent||e===c.default.TYPES.messages_received,description:(0,a.i18n)("action_type","user_action_groups.%@"),isResponse:e=>e===c.default.TYPES.replies||e===c.default.TYPES.quotes},(0,o.Z)(s,"isPM",[r],Object.getOwnPropertyDescriptor(s,"isPM"),s),(0,o.Z)(s,"isResponse",[i],Object.getOwnPropertyDescriptor(s,"isResponse"),s),s))},2437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r,i,s,o,a,l,c,u,d,p,h,m=n(54001),g=n(6264),f=n(20229),b=n(62617),_=n(12652),y=n(7223),w=n(49026),v=n(57555),k=n(56746);const x={likes_given:1,likes_received:2,bookmarks:3,topics:4,posts:5,replies:6,mentions:7,quotes:9,edits:11,messages_sent:12,messages_received:13},T={};Object.keys(x).forEach((e=>T[e]=x[e]));const S=_.default.extend((r=(0,v.default)("category_id"),i=(0,v.default)("action_type"),s=(0,v.default)("username"),o=(0,v.default)("target_username"),a=(0,v.default)("target_username"),l=(0,v.default)("username"),c=(0,v.default)("usernameLower"),u=(0,v.default)(),d=(0,v.default)(),p=(0,v.default)("childGroups","childGroups.likes.items","childGroups.likes.items.[]","childGroups.stars.items","childGroups.stars.items.[]","childGroups.edits.items","childGroups.edits.items.[]","childGroups.bookmarks.items","childGroups.bookmarks.items.[]"),h={category(){return k.default.findById(this.category_id)},descriptionKey(e){return null===e||S.TO_SHOW.includes(e)?this.isPM?this.sameUser?"sent_by_you":"sent_by_user":this.sameUser?"posted_by_you":"posted_by_user":this.topicType?this.sameUser?"you_posted_topic":"user_posted_topic":this.postReplyType?this.reply_to_post_number?this.sameUser?"you_replied_to_post":"user_replied_to_post":this.sameUser?"you_replied_to_topic":"user_replied_to_topic":this.mentionType?this.sameUser?"you_mentioned_user":this.targetUser?"user_mentioned_you":"user_mentioned_user":void 0},sameUser:e=>e===y.default.currentProp("username"),targetUser:e=>e===y.default.currentProp("username"),presentName:(0,g.or)("name","username"),targetDisplayName:(0,g.or)("target_name","target_username"),actingDisplayName:(0,g.or)("acting_name","acting_username"),targetUserUrl:e=>(0,f.userPath)(e),usernameLower:e=>e.toLowerCase(),userUrl:e=>(0,f.userPath)(e),postUrl(){return(0,b.postUrl)(this.slug,this.topic_id,this.post_number)},replyUrl(){return(0,b.postUrl)(this.slug,this.topic_id,this.reply_to_post_number)},replyType:(0,g.equal)("action_type",x.replies),postType:(0,g.equal)("action_type",x.posts),topicType:(0,g.equal)("action_type",x.topics),bookmarkType:(0,g.equal)("action_type",x.bookmarks),messageSentType:(0,g.equal)("action_type",x.messages_sent),messageReceivedType:(0,g.equal)("action_type",x.messages_received),mentionType:(0,g.equal)("action_type",x.mentions),isPM:(0,g.or)("messageSentType","messageReceivedType"),postReplyType:(0,g.or)("postType","replyType"),addChild(e){let t=this.childGroups;t||(t={likes:w.default.create({icon:"heart"}),stars:w.default.create({icon:"star"}),edits:w.default.create({icon:"pencil-alt"}),bookmarks:w.default.create({icon:"bookmark"})}),this.set("childGroups",t);const n=t[function(){switch(e.action_type){case x.likes_given:case x.likes_received:return"likes";case x.edits:return"edits";case x.bookmarks:return"bookmarks"}}()];n&&n.push(e)},children(){const e=this.childGroups;let t=[];return e&&(t=[e.likes,e.stars,e.edits,e.bookmarks].filter((function(e){return e.get("items")&&e.get("items").length>0}))),t},switchToActing(){this.setProperties({username:this.acting_username,name:this.actingDisplayName})}},(0,m.Z)(h,"category",[r],Object.getOwnPropertyDescriptor(h,"category"),h),(0,m.Z)(h,"descriptionKey",[i],Object.getOwnPropertyDescriptor(h,"descriptionKey"),h),(0,m.Z)(h,"sameUser",[s],Object.getOwnPropertyDescriptor(h,"sameUser"),h),(0,m.Z)(h,"targetUser",[o],Object.getOwnPropertyDescriptor(h,"targetUser"),h),(0,m.Z)(h,"targetUserUrl",[a],Object.getOwnPropertyDescriptor(h,"targetUserUrl"),h),(0,m.Z)(h,"usernameLower",[l],Object.getOwnPropertyDescriptor(h,"usernameLower"),h),(0,m.Z)(h,"userUrl",[c],Object.getOwnPropertyDescriptor(h,"userUrl"),h),(0,m.Z)(h,"postUrl",[u],Object.getOwnPropertyDescriptor(h,"postUrl"),h),(0,m.Z)(h,"replyUrl",[d],Object.getOwnPropertyDescriptor(h,"replyUrl"),h),(0,m.Z)(h,"children",[p],Object.getOwnPropertyDescriptor(h,"children"),h),h));S.reopenClass({collapseStream(e){const t={},n=[];let r=0;return e.forEach((e=>{const i=e.topic_id+"-"+e.post_number,s=t[i];if(void 0===s){let s;S.TO_COLLAPSE.includes(e.action_type)?(s=S.create(e),e.switchToActing(),s.addChild(e)):s=e,t[i]=r,n[r]=s,r+=1}else S.TO_COLLAPSE.includes(e.action_type)?(e.switchToActing(),n[s].addChild(e)):n[s].setProperties(e.getProperties("action_type","description"))})),n},TYPES:x,TYPES_INVERTED:T,TO_COLLAPSE:[x.likes_given,x.likes_received,x.edits,x.bookmarks],TO_SHOW:[x.likes_given,x.likes_received,x.edits,x.bookmarks,x.messages_sent,x.messages_received]});const C=S},6566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(10425),l=n(3055),c=n(38864),u=n(47774),d=n(92635),p=n(7223),h=n(57555);const m=o().extend((r={postUrl(){if(this.topic_title)return"/t/-/"+this.topic_id+"/"+this.post_number},revoke(){return(0,l.ajax)("/user_badges/"+this.id,{type:"DELETE"})},favorite(){return this.toggleProperty("is_favorite"),(0,l.ajax)(`/user_badges/${this.id}/toggle_favorite`,{type:"PUT"}).catch((e=>{this.toggleProperty("is_favorite"),(0,c.popupAjaxError)(e)}))}},(0,i.Z)(r,"postUrl",[h.default],Object.getOwnPropertyDescriptor(r,"postUrl"),r),r));m.reopenClass({createFromJson(e){void 0===e.users&&(e.users=[]);let t={};e.users.forEach((function(e){t[e.id]=p.default.create(e)})),e.granted_bies=e.granted_bies??[],e.granted_bies.forEach((function(e){t[e.id]=p.default.create(e)})),void 0===e.topics&&(e.topics=[]);let n={};e.topics.forEach((function(e){n[e.id]=d.default.create(e)})),void 0===e.badges&&(e.badges=[]);let r={};u.default.createFromJson(e).forEach((function(e){r[e.get("id")]=e}));let i=[];return i="user_badge"in e?[e.user_badge]:e.user_badge_info&&e.user_badge_info.user_badges||e.user_badges,i=i.map((function(e){let i=m.create(e),s=Date.parse(i.get("granted_at"));return i.set("grantedAt",s),i.set("badge",r[i.get("badge_id")]),i.get("user_id")&&i.set("user",t[i.get("user_id")]),i.get("granted_by_id")&&i.set("granted_by",t[i.get("granted_by_id")]),i.get("topic_id")&&i.set("topic",n[i.get("topic_id")]),i})),"user_badge"in e?i[0]:(e.user_badge_info&&(i.grant_count=e.user_badge_info.grant_count,i.username=e.user_badge_info.username),i)},findByUsername(e,t){if(!e)return a.Promise.resolve([]);let n="/user-badges/"+e+".json";return t&&t.grouped&&(n+="?grouped=true"),(0,l.ajax)(n).then((function(e){return m.createFromJson(e)}))},findByBadgeId:(e,t)=>(t||(t={}),t.badge_id=e,(0,l.ajax)("/user_badges.json",{data:t}).then((function(e){return m.createFromJson(e)}))),grant:(e,t,n)=>(0,l.ajax)("/user_badges",{type:"POST",data:{username:t,badge_id:e,reason:n}}).then((function(e){return m.createFromJson(e)}))});const g=m},94456:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a,l=n(54001),c=n(20229),u=n(62617),d=n(21859),p=n(12652),h=n(7223),m=n(57555),g=n(82099);const f=p.default.extend((r=(0,m.default)("draft_username"),i=(0,m.default)("username_lower"),s=(0,m.default)("topic_id"),o=(0,m.default)("draft_key"),a={editableDraft:e=>e===h.default.currentProp("username"),userUrl:e=>(0,c.userPath)(e),postUrl(e){if(e)return(0,u.postUrl)(this.slug,this.topic_id,this.post_number)},draftType(e){switch(e){case d.NEW_TOPIC_KEY:return g.default.t("drafts.new_topic");case d.NEW_PRIVATE_MESSAGE_KEY:return g.default.t("drafts.new_private_message");default:return!1}}},(0,l.Z)(a,"editableDraft",[r],Object.getOwnPropertyDescriptor(a,"editableDraft"),a),(0,l.Z)(a,"userUrl",[i],Object.getOwnPropertyDescriptor(a,"userUrl"),a),(0,l.Z)(a,"postUrl",[s],Object.getOwnPropertyDescriptor(a,"postUrl"),a),(0,l.Z)(a,"draftType",[o],Object.getOwnPropertyDescriptor(a,"draftType"),a),a))},58297:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(54001),o=n(10425),a=n(3055),l=n(35193),c=n(62617),u=n(21859),d=n(12652),p=n(94456),h=n(57555);const m=d.default.extend((r=(0,h.default)("content.length","loading"),i={limit:30,loading:!1,hasMore:!1,content:null,init(){this._super(...arguments),this.reset()},reset(){this.setProperties({loading:!1,hasMore:!0,content:[]})},noContent:(e,t)=>0===e&&!t,remove(e){this.set("content",this.content.filter((t=>t.draft_key!==e.draft_key)))},findItems(e){if(e&&this.set("site",e),this.loading||!this.hasMore)return o.Promise.resolve();this.set("loading",!0);const t=`/drafts.json?offset=${this.content.length}&limit=${this.limit}`;return(0,a.ajax)(t).then((e=>{if(!e)return;if(!e.drafts)return;this.set("hasMore",e.drafts.size>=this.limit);const t=e.drafts.map((e=>(e.data=JSON.parse(e.data),(0,l.cook)(e.data.reply).then((t=>{e.excerpt=(0,l.excerpt)(t.toString(),300),e.post_number=e.data.postId||null,e.draft_key!==u.NEW_PRIVATE_MESSAGE_KEY&&e.draft_key!==u.NEW_TOPIC_KEY||(e.title=e.data.title),e.title=(0,l.emojiUnescape)((0,c.escapeExpression)(e.title)),e.data.categoryId&&(e.category=this.site.categories.findBy("id",e.data.categoryId)||null),this.content.push(p.default.create(e))})))));return o.Promise.all(t)})).finally((()=>{this.set("loading",!1)}))}},(0,s.Z)(i,"noContent",[r],Object.getOwnPropertyDescriptor(i,"noContent"),i),i))},91990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(12652);let c=(r=class extends l.default{constructor(){super(...arguments),(0,s.Z)(this,"pending",i,this)}},i=(0,o.Z)(r.prototype,"pending",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},42115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s=n(54001),o=n(48163),a=n.n(o),l=n(10425),c=n(3055),u=n(63319),d=n(2437),p=n(57555);const h=a().extend((r=(0,p.on)("init"),i={loaded:!1,_initialize(){this.setProperties({itemsLoaded:0,canLoadMore:!0,content:[]})},url:(0,u.url)("user.username_lower","filter","itemsLoaded","/posts/%@/%@?offset=%@"),filterBy(e){return this.loaded&&this.filter===e.filter?l.Promise.resolve():(this.setProperties(Object.assign({itemsLoaded:0,content:[],lastLoadedUrl:null},e)),this.findItems())},findItems(){return this.loading||!this.canLoadMore?l.Promise.reject():(this.set("loading",!0),(0,c.ajax)(this.url).then((e=>{if(e){const t=e.map((e=>d.default.create(e)));this.content.pushObjects(t),this.setProperties({loaded:!0,itemsLoaded:this.itemsLoaded+t.length,canLoadMore:t.length>0})}})).finally((()=>this.set("loading",!1))))}},(0,s.Z)(i,"_initialize",[r],Object.getOwnPropertyDescriptor(i,"_initialize"),i),i))},50334:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o,a,l,c=n(54001),u=n(38307),d=n(10425),p=n(3055),h=n(63319),m=n(35193),g=n(62617),f=n(12652),b=n(2437),_=n(57555);const y=f.default.extend((r=(0,_.on)("init"),i=(0,_.default)("filter"),s=(0,_.default)("baseUrl","filterParam","actingUsername"),o=(0,_.default)("loaded","content.[]"),a=(0,_.default)("nextFindUrl","lastLoadedUrl"),l={loaded:!1,_initialize(){this.setProperties({itemsLoaded:0,content:[]})},filterParam:e=>e===b.default.TYPES.replies?[b.default.TYPES.replies,b.default.TYPES.quotes].join(","):e||[b.default.TYPES.topics,b.default.TYPES.posts].join(","),baseUrl:(0,h.url)("itemsLoaded","user.username_lower","/user_actions.json?offset=%@&username=%@"),filterBy(e){return this.setProperties(Object.assign({itemsLoaded:0,content:[],lastLoadedUrl:null},e)),this.findItems()},nextFindUrl(){let e=this.baseUrl;return this.filterParam&&(e+=`&filter=${this.filterParam}`),this.actingUsername&&(e+=`&acting_username=${this.actingUsername}`),e},noContent:(e,t)=>e&&0===t.length,canLoadMore(){return this.nextFindUrl!==this.lastLoadedUrl},remove(e){this.content.forEach((t=>{["likes","stars","edits","bookmarks"].forEach((n=>{const r=t.get(`childGroups.${n}.items`);r&&r.removeObject(e)}))}));const t=this.content.filter((e=>["likes","stars","edits","bookmarks"].some((t=>e.get(`childGroups.${t}.items.length`)>0))));this.setProperties({content:t,itemsLoaded:t.length})},findItems(){if(!this.canLoadMore)return d.Promise.resolve();const e=this.nextFindUrl;return this.loading?d.Promise.resolve():(this.set("loading",!0),(0,p.ajax)(e).then((e=>{if(e&&e.user_actions){const t=(0,u.A)();e.user_actions.forEach((e=>{e.title=(0,m.emojiUnescape)((0,g.escapeExpression)(e.title)),t.pushObject(b.default.create(e))})),this.content.pushObjects(b.default.collapseStream(t)),this.setProperties({itemsLoaded:this.itemsLoaded+e.user_actions.length})}})).finally((()=>this.setProperties({loaded:!0,loading:!1,lastLoadedUrl:e}))))}},(0,c.Z)(l,"_initialize",[r],Object.getOwnPropertyDescriptor(l,"_initialize"),l),(0,c.Z)(l,"filterParam",[i],Object.getOwnPropertyDescriptor(l,"filterParam"),l),(0,c.Z)(l,"nextFindUrl",[s],Object.getOwnPropertyDescriptor(l,"nextFindUrl"),l),(0,c.Z)(l,"noContent",[o],Object.getOwnPropertyDescriptor(l,"noContent"),l),(0,c.Z)(l,"canLoadMore",[a],Object.getOwnPropertyDescriptor(l,"canLoadMore"),l),l))},7223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_SECOND_FACTOR_NAME_LENGTH:()=>De,SECOND_FACTOR_METHODS:()=>Ee,addSaveableUserField:()=>Ne,addSaveableUserOptionField:()=>Le,default:()=>Re,extendTextSizeCookie:()=>Ze});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T,S,C,P,O,E,D,I,j,Z,A,M,N,z,L,F,U=n(54001),R=n(38307),B=n(48163),$=n.n(B),q=n(39840),H=n(6264),W=n(40375),K=n.n(W),V=n(51372),G=n(17579),Y=n(16572),Q=n(24434),J=n(33217),X=n(10425),ee=n(3055),te=n(63319),ne=n(59469),re=n(70352),ie=n(35814),se=n(13369),oe=n(35193),ae=n(20229),le=n(62617),ce=n(95716),ue=n(47774),de=n(87521),pe=n(56746),he=n(5751),me=n(12652),ge=n(19990),fe=n(2437),be=n(32510),_e=n(6566),ye=n(58297),we=n(42115),ve=n(50334),ke=n(34405),xe=n(54736),Te=n(37080),Se=n(47582),Ce=n(12933),Pe=n(57555),Oe=n(82099);const Ee={TOTP:1,BACKUP_CODE:2,SECURITY_KEY:3},De=300,Ie="text_size",je=365;function Ze(){const e=(0,ne.default)(Ie);e&&(0,ne.default)(Ie,e,{path:"/",expires:je})}const Ae=e=>moment().diff(e,"years")<-100;let Me=["bio_raw","website","location","name","title","locale","custom_fields","user_fields","muted_usernames","ignored_usernames","allowed_pm_usernames","profile_background_upload_url","card_background_upload_url","muted_tags","tracked_tags","watched_tags","watching_first_post_tags","date_of_birth","primary_group_id","flair_group_id","user_notification_schedule","sidebar_category_ids","sidebar_tag_names","status"];function Ne(e){Me.push(e)}let ze=["mailing_list_mode","mailing_list_mode_frequency","external_links_in_new_tab","email_digests","email_in_reply_to","email_messages_level","email_level","email_previous_replies","color_scheme_id","dark_scheme_id","dynamic_favicon","enable_quoting","enable_defer","automatically_unpin_topics","digest_after_minutes","new_topic_duration_minutes","auto_track_topics_after_msecs","notification_level_when_replying","like_notification_frequency","include_tl0_in_digests","theme_ids","allow_private_messages","enable_allowed_pm_users","homepage_id","hide_profile_and_presence","text_size","title_count_mode","timezone","skip_new_user_tips","seen_popups","default_calendar","bookmark_auto_delete_preference","sidebar_link_to_filtered_list","sidebar_show_count_of_new_items","watched_precedence_over_muted"];function Le(e){ze.push(e)}function Fe(e){return(0,B.computed)(`user_option.${e}`,{get(e){return(0,xe.default)(`Getting ${e} property of user object is deprecated. Use user_option object instead`,{id:"discourse.user.userOptions",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.get(`user_option.${e}`)},set(e,t){return(0,xe.default)(`Setting ${e} property of user object is deprecated. Use user_option object instead`,{id:"discourse.user.userOptions",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.user_option||this.set("user_option",{}),this.set(`user_option.${e}`,t)}})}const Ue=me.default.extend((r=(0,Pe.default)("can_be_deleted","post_count"),i=(0,Pe.default)(),s=(0,Pe.default)(),o=(0,Pe.default)(),a=(0,Pe.default)(),l=(0,Pe.default)("username_lower"),c=(0,Pe.default)("username","name"),u=(0,Pe.default)("profile_background_upload_url"),d=(0,Pe.default)(),p=(0,Pe.default)(),h=(0,Pe.default)(),m=(0,Pe.default)(),g=(0,Pe.default)(),f=(0,Pe.default)("username"),b=(0,Pe.default)("trust_level"),_=(0,Pe.default)("previous_visit_at"),y=(0,Pe.default)("suspended_till"),w=(0,Pe.default)("suspended_till"),v=(0,Pe.default)("silenced_till"),k=(0,Pe.default)("suspended_till"),x=(0,Pe.default)("silenced_till"),T=(0,Pe.default)("sidebar_tags.[]"),S=(0,Pe.default)("groups.[]"),C=(0,Pe.default)("filteredGroups","numGroupsToDisplay"),P=(0,Pe.default)("statsExcludingPms.@each.count"),O=(0,Pe.default)("stats.@each.isPM"),E=(0,Pe.default)("can_delete_account"),D=(0,Pe.default)("groups.@each.title","badges.[]"),I=(0,Pe.default)("groups.[]"),j=(0,Pe.default)("user_option.text_size_seq","user_option.text_size"),Z=(0,Pe.default)("second_factor_enabled","staff"),A=(0,Pe.default)("tracked_tags.[]","watched_tags.[]","watching_first_post_tags.[]"),M={appEvents:(0,G.inject)(),userTips:(0,G.inject)(),mailing_list_mode:Fe("mailing_list_mode"),external_links_in_new_tab:Fe("external_links_in_new_tab"),enable_quoting:Fe("enable_quoting"),dynamic_favicon:Fe("dynamic_favicon"),automatically_unpin_topics:Fe("automatically_unpin_topics"),likes_notifications_disabled:Fe("likes_notifications_disabled"),hide_profile_and_presence:Fe("hide_profile_and_presence"),title_count_mode:Fe("title_count_mode"),enable_defer:Fe("enable_defer"),timezone:Fe("timezone"),skip_new_user_tips:Fe("skip_new_user_tips"),default_calendar:Fe("default_calendar"),bookmark_auto_delete_preference:Fe("bookmark_auto_delete_preference"),seen_popups:Fe("seen_popups"),should_be_redirected_to_top:Fe("should_be_redirected_to_top"),redirected_to_top:Fe("redirected_to_top"),treat_as_new_topic_start_date:Fe("treat_as_new_topic_start_date"),hasPMs:(0,H.gt)("private_messages_stats.all",0),hasStartedPMs:(0,H.gt)("private_messages_stats.mine",0),hasUnreadPMs:(0,H.gt)("private_messages_stats.unread",0),canBeDeleted(e,t){const n=this.siteSettings.delete_all_posts_max;return e&&t<=n},stream(){return ve.default.create({user:this})},bookmarks(){return de.default.create({user:this})},postsStream(){return we.default.create({user:this})},userDraftsStream(){return ye.default.create({user:this})},staff:(0,B.computed)("admin","moderator",{get(){return this.admin||this.moderator},set(){return this.admin||this.moderator}}),destroySession(){return(0,ee.ajax)(`/session/${this.username}`,{type:"DELETE"})},searchContext(e){return{type:"user",id:e,user:this}},displayName(e,t){return this.siteSettings.enable_names&&!(0,J.isEmpty)(t)?t:e},profileBackgroundUrl(e){return(0,J.isEmpty)(e)||!this.siteSettings.allow_profile_backgrounds?(0,Q.htmlSafe)(""):(0,Q.htmlSafe)("background-image: url("+(0,Se.getURLWithCDN)(e)+")")},path(){return(0,ae.userPath)(this.username_lower)},userApiKeys(){const e=this.user_api_keys;if(e)return e.map((e=>{let t=$().create(e);return t.revoke=()=>{this.revokeApiKey(t)},t.undoRevoke=()=>{this.undoRevokeApiKey(t)},t}))},revokeApiKey:e=>(0,ee.ajax)("/user-api-key/revoke",{type:"POST",data:{id:e.get("id")}}).then((()=>{e.set("revoked",!0)})),undoRevokeApiKey:e=>(0,ee.ajax)("/user-api-key/undo-revoke",{type:"POST",data:{id:e.get("id")}}).then((()=>{e.set("revoked",!1)})),pmPath(e){const t=this.id,n=this.username_lower,r=e&&e.get("details"),i=r&&r.get("allowed_users"),s=r&&r.get("allowed_groups");return!s||i&&i.findBy("id",t)?(0,ae.userPath)(`${n}/messages`):s&&s[0]?(0,ae.userPath)(`${n}/messages/group/${s[0].name}`):void 0},adminPath:(0,te.url)("id","username_lower","/admin/users/%@1/%@2"),mutedTopicsPath:()=>"latest"===(0,le.defaultHomepage)()?(0,Se.default)("/?state=muted"):(0,Se.default)("/latest?state=muted"),watchingTopicsPath:()=>"latest"===(0,le.defaultHomepage)()?(0,Se.default)("/?state=watching"):(0,Se.default)("/latest?state=watching"),trackingTopicsPath:()=>"latest"===(0,le.defaultHomepage)()?(0,Se.default)("/?state=tracking"):(0,Se.default)("/latest?state=tracking"),username_lower:e=>e.toLowerCase(),trustLevel:e=>ge.default.currentProp("trustLevels").findBy("id",parseInt(e,10)),isBasic:(0,H.equal)("trust_level",0),isRegular:(0,H.equal)("trust_level",3),isLeader:(0,H.equal)("trust_level",4),canManageTopic:(0,H.or)("staff","isLeader"),previousVisitAt:e=>new Date(e),suspended:e=>e&&moment(e).isAfter(),suspendedForever:Ae,silencedForever:Ae,suspendedTillDate:re.longDate,silencedTillDate:re.longDate,sidebarCategoryIds:(0,H.alias)("sidebar_category_ids"),sidebarTags:e=>e&&0!==e.length?e.sort(((e,t)=>e.name.localeCompare(t.name))):[],sidebarSections:(0,H.alias)("sidebar_sections"),sidebarTagNames:(0,H.mapBy)("sidebarTags","name"),changeUsername(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/preferences/username`),{type:"PUT",data:{new_username:e}})},addEmail(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/preferences/email`),{type:"POST",data:{email:e}}).then((()=>{this.unconfirmed_emails||this.set("unconfirmed_emails",[]),this.unconfirmed_emails.pushObject(e)}))},changeEmail(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/preferences/email`),{type:"PUT",data:{email:e}}).then((()=>{this.unconfirmed_emails||this.set("unconfirmed_emails",[]),this.unconfirmed_emails.pushObject(e)}))},save(e){const t=this.getProperties(Me.filter((t=>!e||e.includes(t))));(e?ze.filter((t=>e.includes(t))):ze).forEach((e=>{t[e]=this.get(`user_option.${e}`)}));const n={};return["muted","regular","watched","tracked","watched_first_post"].forEach((r=>{if(void 0===e||e.includes(`${r}_category_ids`)){const e=this.get(`${(0,Y.camelize)(r)}Categories`);if(e){const i=e.map((e=>e.get("id")));n[`${r}_category_ids`]=i,t[`${r}_category_ids`]=0===i.length?[-1]:i}}})),["muted_tags","tracked_tags","watched_tags","watching_first_post_tags"].forEach((n=>{(void 0===e||e.includes(n))&&(t[n]=this.get(n)?this.get(n).join(","):"")})),["sidebar_category_ids","sidebar_tag_names"].forEach((e=>{0===t[e]?.length&&(t[e]=null)})),this.set("isSaving",!0),(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}.json`),{data:t,type:"PUT"}).then((e=>(this.setProperties(n),this.setProperties((0,B.getProperties)(e.user,"bio_excerpt")),e))).finally((()=>{this.set("isSaving",!1)}))},setPrimaryEmail(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username}/preferences/primary-email.json`),{type:"PUT",data:{email:e}}).then((()=>{this.secondary_emails.removeObject(e),this.secondary_emails.pushObject(this.email),this.set("email",e)}))},destroyEmail(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username}/preferences/email.json`),{type:"DELETE",data:{email:e}}).then((()=>{this.unconfirmed_emails.includes(e)?this.unconfirmed_emails.removeObject(e):this.secondary_emails.removeObject(e)}))},changePassword(){return(0,ee.ajax)("/session/forgot_password",{dataType:"json",data:{login:this.email||this.username},type:"POST"})},loadSecondFactorCodes:()=>(0,ee.ajax)("/u/second_factors.json",{type:"POST"}),requestSecurityKeyChallenge:()=>(0,ee.ajax)("/u/create_second_factor_security_key.json",{type:"POST"}),registerSecurityKey:e=>(0,ee.ajax)("/u/register_second_factor_security_key.json",{data:e,type:"POST"}),trustedSession:()=>(0,ee.ajax)("/u/trusted-session.json"),createPasskey:()=>(0,ee.ajax)("/u/create_passkey.json",{type:"POST"}),registerPasskey:e=>(0,ee.ajax)("/u/register_passkey.json",{data:e,type:"POST"}),deletePasskey:e=>(0,ee.ajax)(`/u/delete_passkey/${e}`,{type:"DELETE"}),createSecondFactorTotp:()=>(0,ee.ajax)("/u/create_second_factor_totp.json",{type:"POST"}),enableSecondFactorTotp:(e,t)=>(0,ee.ajax)("/u/enable_second_factor_totp.json",{data:{second_factor_token:e,name:t},type:"POST"}),disableAllSecondFactors:()=>(0,ee.ajax)("/u/disable_second_factor.json",{type:"PUT"}),updateSecondFactor:(e,t,n,r)=>(0,ee.ajax)("/u/second_factor.json",{data:{second_factor_target:r,name:t,disable:n,id:e},type:"PUT"}),updateSecurityKey:(e,t,n)=>(0,ee.ajax)("/u/security_key.json",{data:{name:t,disable:n,id:e},type:"PUT"}),toggleSecondFactor:(e,t,n,r)=>(0,ee.ajax)("/u/second_factor.json",{data:{second_factor_token:e,second_factor_method:t,second_factor_target:n,enable:r},type:"PUT"}),generateSecondFactorCodes:()=>(0,ee.ajax)("/u/second_factors_backup.json",{type:"PUT"}),revokeAssociatedAccount(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username}/preferences/revoke-account`),{data:{provider_name:e},type:"POST"})},async loadUserAction(e){const t=await(0,ee.ajax)(`/user_actions/${e}.json`);if(!t?.user_action)return;const n=t.user_action;if((this.get("stream.filter")||n.action_type)!==n.action_type)return;if(!this.get("stream.filter")&&!this.inAllStream(n))return;n.title=(0,oe.emojiUnescape)((0,le.escapeExpression)(n.title));const r=fe.default.collapseStream([fe.default.create(n)]);this.stream.set("itemsLoaded",this.stream.get("itemsLoaded")+1),this.stream.get("content").insertAt(0,r[0])},inAllStream:e=>e.action_type===fe.default.TYPES.posts||e.action_type===fe.default.TYPES.topics,numGroupsToDisplay:2,filteredGroups(){return(this.groups||[]).filter((e=>!e.automatic||"moderators"===e.name))},groupsWithMessages:(0,H.filterBy)("groups","has_messages",!0),displayGroups(e,t){const n=e.slice(0,t);return 0===n.length?null:n},isInAnyGroups(e){if(this.groups)return e.includes(0)||this.groups.mapBy("id").some((t=>e.includes(t)))},statsCountNonPM(){if((0,J.isEmpty)(this.statsExcludingPms))return 0;let e=0;return this.statsExcludingPms.forEach((t=>{this.inAllStream(t)&&(e+=t.count)})),e},statsExcludingPms(){return(0,J.isEmpty)(this.stats)?[]:this.stats.rejectBy("isPM")},findDetails(e){const t=this;return se.default.getAndRemove(`user_${t.get("username")}`,(()=>{if(e&&e.existingRequest)return e.existingRequest;const n=e&&e.forCard;e&&delete e.forCard;const r=n?`${t.get("username")}/card.json`:`${t.get("username")}.json`;return(0,ee.ajax)((0,ae.userPath)(r),{data:e})})).then((e=>{if((0,J.isEmpty)(e.user.stats)||(e.user.stats=Ue.groupStats(e.user.stats.map((e=>(e.count&&(e.count=parseInt(e.count,10)),be.default.create(e)))))),!(0,J.isEmpty)(e.user.groups)&&!(0,J.isEmpty)(e.user.group_users)){const t=[];for(let n=0;n<e.user.groups.length;n++){const r=he.default.create(e.user.groups[n]);r.group_user=e.user.group_users[n],t.push(r)}e.user.groups=t}if(e.user.invited_by&&(e.user.invited_by=Ue.create(e.user.invited_by)),!(0,J.isEmpty)(e.user.featured_user_badge_ids)){const t={};_e.default.createFromJson(e).forEach((e=>{t[e.get("id")]=e})),e.user.featured_user_badges=e.user.featured_user_badge_ids.map((e=>t[e]))}return e.user.card_badge&&(e.user.card_badge=ue.default.create(e.user.card_badge)),t.setProperties(e.user),t}))},findStaffInfo(){return Ue.currentProp("staff")?(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/staff-info.json`)).then((e=>{this.setProperties(e)})):X.Promise.resolve(null)},pickAvatar(e,t){return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/preferences/avatar/pick`),{type:"PUT",data:{upload_id:e,type:t}})},selectAvatar(e){return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/preferences/avatar/select`),{type:"PUT",data:{url:e}})},isAllowedToUploadAFile(e){const t="image"===e?"embedded_media":"attachments";return this.staff||this.trust_level>0||this.siteSettings[`newuser_max_${t}`]>0},createInvite:(e,t,n)=>(0,ee.ajax)("/invites",{type:"POST",data:{email:e,group_ids:t,custom_message:n}}),generateInviteLink:(e,t,n)=>(0,ee.ajax)("/invites",{type:"POST",data:{email:e,skip_email:!0,group_ids:t,topic_id:n}}),get mutedCategories(){return this.site.lazy_load_categories&&!pe.default.hasAsyncFoundAll(this.muted_category_ids)&&pe.default.asyncFindByIds(this.muted_category_ids).then((()=>this.notifyPropertyChange("muted_category_ids"))),pe.default.findByIds(this.get("muted_category_ids"))},set mutedCategories(e){this.set("muted_category_ids",e.map((e=>e.id)))},get regularCategories(){return this.site.lazy_load_categories&&!pe.default.hasAsyncFoundAll(this.regular_category_ids)&&pe.default.asyncFindByIds(this.regular_category_ids).then((()=>this.notifyPropertyChange("regular_category_ids"))),pe.default.findByIds(this.get("regular_category_ids"))},set regularCategories(e){this.set("regular_category_ids",e.map((e=>e.id)))},get trackedCategories(){return this.site.lazy_load_categories&&!pe.default.hasAsyncFoundAll(this.tracked_category_ids)&&pe.default.asyncFindByIds(this.tracked_category_ids).then((()=>this.notifyPropertyChange("tracked_category_ids"))),pe.default.findByIds(this.get("tracked_category_ids"))},set trackedCategories(e){this.set("tracked_category_ids",e.map((e=>e.id)))},get watchedCategories(){return this.site.lazy_load_categories&&!pe.default.hasAsyncFoundAll(this.watched_category_ids)&&pe.default.asyncFindByIds(this.watched_category_ids).then((()=>this.notifyPropertyChange("watched_category_ids"))),pe.default.findByIds(this.get("watched_category_ids"))},set watchedCategories(e){this.set("watched_category_ids",e.map((e=>e.id)))},get watchedFirstPostCategories(){return this.site.lazy_load_categories&&!pe.default.hasAsyncFoundAll(this.watched_first_post_category_ids)&&pe.default.asyncFindByIds(this.watched_first_post_category_ids).then((()=>this.notifyPropertyChange("watched_first_post_category_ids"))),pe.default.findByIds(this.get("watched_first_post_category_ids"))},set watchedFirstPostCategories(e){this.set("watched_first_post_category_ids",e.map((e=>e.id)))},canDeleteAccount(e){return!this.siteSettings.enable_discourse_connect&&e},get sidebarLinkToFilteredList(){return this.get("user_option.sidebar_link_to_filtered_list")},get sidebarShowCountOfNewItems(){return this.get("user_option.sidebar_show_count_of_new_items")},delete(){return this.can_delete_account?(0,ee.ajax)((0,ae.userPath)(this.username+".json"),{type:"DELETE",data:{context:window.location.pathname}}):X.Promise.reject(Oe.default.t("user.delete_yourself_not_allowed"))},updateNotificationLevel(e){let{level:t,expiringAt:n=null,actingUser:r=null}=e;return r||(r=Ue.current()),(0,ee.ajax)(`${(0,ae.userPath)(this.username)}/notification_level.json`,{type:"PUT",data:{notification_level:t,expiring_at:n,acting_user_id:r.id}}).then((()=>{r.ignored_users||(r.ignored_users=[]),"normal"===t||"mute"===t?r.ignored_users.removeObject(this.username):"ignore"===t&&r.ignored_users.addObject(this.username)}))},dismissBanner(e){this.set("dismissed_banner_key",e),(0,ee.ajax)((0,ae.userPath)(this.username+".json"),{type:"PUT",data:{dismissed_banner_key:e}})},checkEmail(){return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/emails.json`),{data:{context:window.location.pathname}}).then((e=>{e&&this.setProperties({email:e.email,secondary_emails:e.secondary_emails,unconfirmed_emails:e.unconfirmed_emails,associated_accounts:e.associated_accounts})}))},summary(){const e=(0,Te.getOwnerWithFallback)(this).lookup("service:store");return(0,ee.ajax)((0,ae.userPath)(`${this.username_lower}/summary.json`)).then((t=>{const n=t.user_summary,r={},i={};return t.topics.forEach((t=>r[t.id]=e.createRecord("topic",t))),ue.default.createFromJson(t).forEach((e=>i[e.id]=e)),n.topics=n.topic_ids.map((e=>r[e])),n.replies.forEach((e=>{e.topic=r[e.topic_id],e.url=e.topic.urlForPostNumber(e.post_number),e.createdAt=new Date(e.created_at)})),n.links.forEach((e=>{e.topic=r[e.topic_id],e.post_url=e.topic.urlForPostNumber(e.post_number)})),n.badges&&(n.badges=n.badges.map((e=>{const t=i[e.badge_id];return t.count=e.count,t}))),n.top_categories&&n.top_categories.forEach((e=>{e.parent_category_id&&(e.parentCategory=pe.default.findById(e.parent_category_id))})),n}))},canManageGroup:e=>!e.get("automatic")&&(e.get("can_admin_group")||e.get("is_group_owner")),availableTitles(){const e=[];return(this.groups||[]).forEach((t=>{(0,B.get)(t,"title")&&e.push((0,B.get)(t,"title"))})),(this.badges||[]).forEach((t=>{(0,B.get)(t,"allow_title")&&e.push((0,B.get)(t,"name"))})),e.uniq().sort().map((e=>({name:(0,le.escapeExpression)(e),id:e})))},availableFlairs(){const e=[];return this.groups&&this.groups.forEach((t=>{t.flair_url&&e.push({id:t.id,name:t.name,url:t.flair_url,bgColor:t.flair_bg_color,color:t.flair_color})})),e},currentTextSize(e,t){if((0,ne.default)(Ie)){const[t,n]=(0,ne.default)(Ie).split("|");if(n>=e)return t}return t},updateTextSizeCookie(e){if(e){const t=this.get("user_option.text_size_seq");(0,ne.default)(Ie,`${e}|${t}`,{path:"/",expires:je})}else(0,ne.removeCookie)(Ie,{path:"/"})},enforcedSecondFactor(e,t){const n=this.siteSettings.enforce_second_factor;return!e&&("all"===n||"staff"===n&&t)},resolvedTimezone(){return(0,xe.default)("user.resolvedTimezone() has been deprecated. Use user.user_option.timezone instead",{id:"discourse.user.resolved-timezone",since:"2.9.0.beta12",dropFrom:"3.0.0.beta1"}),this.user_option.timezone},calculateMutedIds(e,t,n){const r=this.get(n);return e===ie.NotificationLevels.MUTED?r.concat(t).uniq():r.filter((e=>e!==t))},setPrimaryGroup(e){return(0,ee.ajax)(`/admin/users/${this.id}/primary_group`,{type:"PUT",data:{primary_group_id:e}})},enterDoNotDisturbFor(e){return(0,ee.ajax)({url:"/do-not-disturb.json",type:"POST",data:{duration:e}}).then((e=>this.updateDoNotDisturbStatus(e.ends_at)))},leaveDoNotDisturb(){return(0,ee.ajax)({url:"/do-not-disturb.json",type:"DELETE"}).then((()=>{this.updateDoNotDisturbStatus(null)}))},updateDoNotDisturbStatus(e){this.set("do_not_disturb_until",e),this.appEvents.trigger("do-not-disturb:changed",this.do_not_disturb_until)},updateDraftProperties(e){this.setProperties(e),this.appEvents.trigger("user-drafts:changed")},updateReviewableCount(e){this.set("reviewable_count",e),this.appEvents.trigger("user-reviewable-count:changed",e)},isInDoNotDisturb(){return this.do_not_disturb_until&&new Date(this.do_not_disturb_until)>=new Date},trackedTags:(e,t,n)=>[...e,...t,...n]},(0,U.Z)(M,"canBeDeleted",[r],Object.getOwnPropertyDescriptor(M,"canBeDeleted"),M),(0,U.Z)(M,"stream",[i],Object.getOwnPropertyDescriptor(M,"stream"),M),(0,U.Z)(M,"bookmarks",[s],Object.getOwnPropertyDescriptor(M,"bookmarks"),M),(0,U.Z)(M,"postsStream",[o],Object.getOwnPropertyDescriptor(M,"postsStream"),M),(0,U.Z)(M,"userDraftsStream",[a],Object.getOwnPropertyDescriptor(M,"userDraftsStream"),M),(0,U.Z)(M,"searchContext",[l],Object.getOwnPropertyDescriptor(M,"searchContext"),M),(0,U.Z)(M,"displayName",[c],Object.getOwnPropertyDescriptor(M,"displayName"),M),(0,U.Z)(M,"profileBackgroundUrl",[u],Object.getOwnPropertyDescriptor(M,"profileBackgroundUrl"),M),(0,U.Z)(M,"path",[d],Object.getOwnPropertyDescriptor(M,"path"),M),(0,U.Z)(M,"userApiKeys",[p],Object.getOwnPropertyDescriptor(M,"userApiKeys"),M),(0,U.Z)(M,"mutedTopicsPath",[h],Object.getOwnPropertyDescriptor(M,"mutedTopicsPath"),M),(0,U.Z)(M,"watchingTopicsPath",[m],Object.getOwnPropertyDescriptor(M,"watchingTopicsPath"),M),(0,U.Z)(M,"trackingTopicsPath",[g],Object.getOwnPropertyDescriptor(M,"trackingTopicsPath"),M),(0,U.Z)(M,"username_lower",[f],Object.getOwnPropertyDescriptor(M,"username_lower"),M),(0,U.Z)(M,"trustLevel",[b],Object.getOwnPropertyDescriptor(M,"trustLevel"),M),(0,U.Z)(M,"previousVisitAt",[_],Object.getOwnPropertyDescriptor(M,"previousVisitAt"),M),(0,U.Z)(M,"suspended",[y],Object.getOwnPropertyDescriptor(M,"suspended"),M),(0,U.Z)(M,"suspendedForever",[w],(N=(N=Object.getOwnPropertyDescriptor(M,"suspendedForever"))?N.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return N}}),M),(0,U.Z)(M,"silencedForever",[v],(z=(z=Object.getOwnPropertyDescriptor(M,"silencedForever"))?z.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return z}}),M),(0,U.Z)(M,"suspendedTillDate",[k],(L=(L=Object.getOwnPropertyDescriptor(M,"suspendedTillDate"))?L.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return L}}),M),(0,U.Z)(M,"silencedTillDate",[x],(F=(F=Object.getOwnPropertyDescriptor(M,"silencedTillDate"))?F.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return F}}),M),(0,U.Z)(M,"sidebarTags",[T],Object.getOwnPropertyDescriptor(M,"sidebarTags"),M),(0,U.Z)(M,"filteredGroups",[S],Object.getOwnPropertyDescriptor(M,"filteredGroups"),M),(0,U.Z)(M,"displayGroups",[C],Object.getOwnPropertyDescriptor(M,"displayGroups"),M),(0,U.Z)(M,"statsCountNonPM",[P],Object.getOwnPropertyDescriptor(M,"statsCountNonPM"),M),(0,U.Z)(M,"statsExcludingPms",[O],Object.getOwnPropertyDescriptor(M,"statsExcludingPms"),M),(0,U.Z)(M,"mutedCategories",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"mutedCategories"),M),(0,U.Z)(M,"regularCategories",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"regularCategories"),M),(0,U.Z)(M,"trackedCategories",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"trackedCategories"),M),(0,U.Z)(M,"watchedCategories",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"watchedCategories"),M),(0,U.Z)(M,"watchedFirstPostCategories",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"watchedFirstPostCategories"),M),(0,U.Z)(M,"canDeleteAccount",[E],Object.getOwnPropertyDescriptor(M,"canDeleteAccount"),M),(0,U.Z)(M,"sidebarLinkToFilteredList",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"sidebarLinkToFilteredList"),M),(0,U.Z)(M,"sidebarShowCountOfNewItems",[q.dependentKeyCompat],Object.getOwnPropertyDescriptor(M,"sidebarShowCountOfNewItems"),M),(0,U.Z)(M,"availableTitles",[D],Object.getOwnPropertyDescriptor(M,"availableTitles"),M),(0,U.Z)(M,"availableFlairs",[I],Object.getOwnPropertyDescriptor(M,"availableFlairs"),M),(0,U.Z)(M,"currentTextSize",[j],Object.getOwnPropertyDescriptor(M,"currentTextSize"),M),(0,U.Z)(M,"enforcedSecondFactor",[Z],Object.getOwnPropertyDescriptor(M,"enforcedSecondFactor"),M),(0,U.Z)(M,"trackedTags",[A],Object.getOwnPropertyDescriptor(M,"trackedTags"),M),M));if(Ue.reopenClass(ce.default,{findByUsername:(e,t)=>Ue.create({username:e}).findDetails(t),createCurrent(){const e=se.default.get("currentUser");if(e){if(e.isCurrent=!0,e.primary_group_id){const t=e.groups.find((t=>t.id===e.primary_group_id));t&&(e.primary_group_name=t.name)}e.user_option.timezone||(e.user_option.timezone=moment.tz.guess(),this._saveTimezone(e));const t=(0,Te.getOwnerWithFallback)(this).lookup("service:store").createRecord("user",e);return t.trackStatus(),t}return null},checkUsername:(e,t,n)=>(0,ee.ajax)((0,ae.userPath)("check_username"),{data:{username:e,email:t,for_user_id:n}}),checkEmail:e=>(0,ee.ajax)((0,ae.userPath)("check_email"),{data:{email:e}}),loadRecentSearches:()=>(0,ee.ajax)("/u/recent-searches"),resetRecentSearches:()=>(0,ee.ajax)("/u/recent-searches",{type:"DELETE"}),groupStats(e){const t=be.default.create({count:0,action_type:fe.default.TYPES.replies});e.filterBy("isResponse").forEach((e=>{t.set("count",t.get("count")+e.get("count"))}));const n=(0,R.A)();n.pushObjects(e.rejectBy("isResponse"));let r=0;return n.forEach(((e,t)=>{e.action_type!==fe.default.TYPES.topics&&e.action_type!==fe.default.TYPES.posts||(r=t+1)})),t.count>0&&n.insertAt(r,t),n},createAccount(e){let t={name:e.accountName,email:e.accountEmail,password:e.accountPassword,username:e.accountUsername,password_confirmation:e.accountPasswordConfirm,challenge:e.accountChallenge,user_fields:e.userFields,timezone:moment.tz.guess()};return e.inviteCode&&(t.invite_code=e.inviteCode),(0,ee.ajax)((0,ae.userPath)(),{data:t,type:"POST"})},_saveTimezone(e){(0,ee.ajax)((0,ae.userPath)(e.username+".json"),{type:"PUT",dataType:"json",data:{timezone:e.user_option.timezone}})},create(e){return e=e||{},this.deleteStatusTrackingFields(e),this._super(e)},deleteStatusTrackingFields(e){e.hasOwnProperty("_subscribersCount")&&delete e._subscribersCount,e.hasOwnProperty("_clearStatusTimerId")&&delete e._clearStatusTimerId}}),Ue.reopen(K(),{_subscribersCount:0,_clearStatusTimerId:null,trackStatus(){this.id||(0,ke.isTesting)()||console.warn("It's impossible to track user status on a user model that doesn't have id. This user model won't be receiving live user status updates."),0===this._subscribersCount&&(this.addObserver("status",this,"_statusChanged"),this.appEvents.on("user-status:changed",this,this._updateStatus),this.status&&this.status.ends_at&&this._scheduleStatusClearing(this.status.ends_at)),this._subscribersCount++},stopTrackingStatus(){0!==this._subscribersCount&&(1===this._subscribersCount&&(this.removeObserver("status",this,"_statusChanged"),this.appEvents.off("user-status:changed",this,this._updateStatus),this._unscheduleStatusClearing()),this._subscribersCount--)},isTrackingStatus(){return this._subscribersCount>0},_statusChanged(e,t){this.trigger("status-changed");const n=this.get(t);n&&n.ends_at?this._scheduleStatusClearing(n.ends_at):this._unscheduleStatusClearing()},_scheduleStatusClearing(e){if((0,ke.isTesting)())return;this._clearStatusTimerId&&this._unscheduleStatusClearing();const t=moment.utc(),n=moment.utc(e).diff(t,"milliseconds");this._clearStatusTimerId=(0,Ce.default)(this,"_autoClearStatus",n)},_unscheduleStatusClearing(){(0,V.cancel)(this._clearStatusTimerId),this._clearStatusTimerId=null},_autoClearStatus(){this.set("status",null)},_updateStatus(e){e.hasOwnProperty(this.id)&&this.set("status",e[this.id])}}),"undefined"!=typeof Discourse){let e=!1;Object.defineProperty(Discourse,"User",{get:()=>(e||((0,xe.default)("Import the User class instead of using Discourse.User",{since:"2.4.0",id:"discourse.globals.user"}),e=!0),Ue)})}const Re=Ue},67835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(42465);class s extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"didFocus",!1)}modify(e,t,n){let{selectText:r}=n;this.didFocus||(e.autofocus=!0,e.focus(),r&&e.select(),this.didFocus=!0)}}},71846:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(49246),s=n(54001),o=n(76786),a=n(42465),l=n(57555);let c=(r=class extends a.default{constructor(e,t){super(e,t),(0,i.Z)(this,"hasStarted",!1),(0,i.Z)(this,"element",void 0),(0,o.registerDestructor)(this,(e=>e.cleanup()))}modify(e,t,n){let{didStartDrag:r,didEndDrag:i,dragMove:s}=n;this.element=e,this.didStartDragCallback=r,this.didEndDragCallback=i,this.dragMoveCallback=s,this.element.addEventListener("touchstart",this.dragMove,{passive:!1}),this.element.addEventListener("mousedown",this.dragMove,{passive:!1}),this.element.addEventListener("dragenter",this.dragMove,{passive:!1})}dragMove(e){this.hasStarted||(this.hasStarted=!0,this.didStartDragCallback&&this.didStartDragCallback(e),document.addEventListener("touchmove",this.drag,{passive:!1}),document.addEventListener("mousemove",this.drag,{passive:!1}),document.addEventListener("dragover",this.drag,{passive:!1}),document.body.classList.add("dragging"),document.addEventListener("touchend",this.didEndDrag,{passive:!1}),document.addEventListener("mouseup",this.didEndDrag,{passive:!1}),document.addEventListener("drop",this.didEndDrag,{passive:!1}))}drag(e){this.hasStarted&&this.dragMoveCallback&&this.dragMoveCallback(e,this.element)}didEndDrag(e){this.hasStarted&&(this.didEndDragCallback(e,this.element),document.removeEventListener("touchmove",this.drag),document.removeEventListener("mousemove",this.drag),document.removeEventListener("dragover",this.drag),document.body.classList.remove("dragging"),this.hasStarted=!1)}cleanup(){document.removeEventListener("touchstart",this.dragMove),document.removeEventListener("mousedown",this.dragMove),document.removeEventListener("dragenter",this.dragMove),document.removeEventListener("touchend",this.didEndDrag),document.removeEventListener("mouseup",this.didEndDrag),document.removeEventListener("drop",this.didEndDrag),document.removeEventListener("mousemove",this.drag),document.removeEventListener("touchmove",this.drag),document.removeEventListener("dragover",this.drag),document.body.classList.remove("dragging")}},(0,s.Z)(r.prototype,"dragMove",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"dragMove"),r.prototype),(0,s.Z)(r.prototype,"drag",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"drag"),r.prototype),(0,s.Z)(r.prototype,"didEndDrag",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"didEndDrag"),r.prototype),r)},35599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o=n(94664),a=n(49246),l=n(54001),c=n(76786),u=n(51372),d=n(17579),p=n(42465),h=n(17238),m=n(31310),g=n(57555);const f="sticky-avatar",b=".post-stream .topic-post";let _=(r=class extends p.default{constructor(){super(...arguments),(0,o.Z)(this,"site",i,this),(0,o.Z)(this,"appEvents",s,this),(0,a.Z)(this,"element",void 0),(0,a.Z)(this,"intersectionObserver",void 0),(0,a.Z)(this,"direction","⬇️"),(0,a.Z)(this,"prevOffset",-1),(0,c.registerDestructor)(this,(e=>e.cleanup()))}modify(e){!this.site.mobileView&&"IntersectionObserver"in window&&(this.element=e,this.appEvents.on("topic:current-post-scrolled",this,this._handlePostNodes),this.appEvents.on("topic:scrolled",this,this._handleScroll),this.appEvents.on("page:topic-loaded",this,this._initIntersectionObserver),(0,h.addWidgetCleanCallback)("post-stream",this._clearIntersectionObserver))}cleanup(){!this.site.mobileView&&"IntersectionObserver"in window&&(this.appEvents.off("topic:current-post-scrolled",this,this._handlePostNodes),this.appEvents.off("topic:scrolled",this,this._handleScroll),this.appEvents.off("page:topic-loaded",this,this._initIntersectionObserver),(0,h.removeWidgetCleanCallback)("post-stream",this._clearIntersectionObserver))}_handleScroll(e){e<=0?(this.direction="⬇️",this.element.querySelectorAll(`${b}.${f}`).forEach((e=>e.classList.remove(f)))):e>this.prevOffset?this.direction="⬇️":this.direction="⬆️",this.prevOffset=e}_handlePostNodes(){this._clearIntersectionObserver(),this._initIntersectionObserver(),(0,u.schedule)("afterRender",(()=>{this.element.querySelectorAll(b).forEach((e=>{this.intersectionObserver.observe(e);const t=e.querySelector(".topic-avatar");if(!t||!e.querySelector("#post_1"))return;const n=e.querySelector(".topic-map");n&&(t.style.marginBottom=`${n.clientHeight}px`)}))}))}_initIntersectionObserver(){(0,u.schedule)("afterRender",(()=>{const e=(0,m.headerOffset)(),t=e<=0?"0px":`-${e}px`;this.intersectionObserver=new IntersectionObserver((t=>{t.forEach((t=>{if(!t.isIntersecting||1===t.intersectionRatio)return void t.target.classList.remove(f);const n=t.target.querySelector(".contents")?.clientHeight;("⬆️"===this.direction||n>window.innerHeight-e)&&t.target.classList.add(f)}))}),{threshold:[0,1],rootMargin:`${t} 0px 0px 0px`})}))}_clearIntersectionObserver(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}},i=(0,l.Z)(r.prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"appEvents",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.Z)(r.prototype,"_handleScroll",[g.bind],Object.getOwnPropertyDescriptor(r.prototype,"_handleScroll"),r.prototype),(0,l.Z)(r.prototype,"_handlePostNodes",[g.bind],Object.getOwnPropertyDescriptor(r.prototype,"_handlePostNodes"),r.prototype),(0,l.Z)(r.prototype,"_initIntersectionObserver",[g.bind],Object.getOwnPropertyDescriptor(r.prototype,"_initIntersectionObserver"),r.prototype),(0,l.Z)(r.prototype,"_clearIntersectionObserver",[g.bind],Object.getOwnPropertyDescriptor(r.prototype,"_clearIntersectionObserver"),r.prototype),r)},11589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(49246),s=n(54001),o=n(76786),a=n(42465),l=n(57555);const c='details:not(.is-disabled) summary, [autofocus], a, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])';let u=(r=class extends a.default{constructor(e,t){super(e,t),(0,i.Z)(this,"element",null),(0,o.registerDestructor)(this,(e=>e.cleanup()))}modify(e,t,n){let{preventScroll:r,autofocus:i}=n;i??=!0,this.preventScroll=r??!0,this.originalElement=e,this.element=e.querySelector(".modal-inner-container")||e,this.originalElement.addEventListener("keydown",this.trapTab);const s=this.element.querySelector("[autofocus]");!i||s&&document.activeElement===s||(s||this.element.querySelector(c+", button:not(.modal-close)")||this.element.querySelector(".modal-body"))?.focus({preventScroll:this.preventScroll})}trapTab(e){if("Tab"!==e.key)return;const t=c+", button:enabled",n=this.element.querySelector(t),r=this.element.querySelectorAll(t),i=r[r.length-1];e.shiftKey?document.activeElement===n&&(i?.focus(),e.preventDefault()):document.activeElement===i&&(e.preventDefault(),(this.element.querySelector(".modal-close")||n)?.focus({preventScroll:this.preventScroll}))}cleanup(){this.originalElement.removeEventListener("keydown",this.trapTab)}},(0,s.Z)(r.prototype,"trapTab",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"trapTab"),r.prototype),r)},36592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <li><a href>"+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:18},end:{line:4,column:33}}}))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete ac-badge'>\n  <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?s:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("badge-selector-autocomplete",s,{core:!0});const o=s},91861:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <li><a href>"+e.escapeExpression((s(n,"category-link")||t&&s(t,"category-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"option",{name:"category-link",hash:{link:"false",allowUncategorized:"true"},hashTypes:{link:"StringLiteral",allowUncategorized:"StringLiteral"},hashContexts:{link:t,allowUncategorized:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:18},end:{line:4,column:81}}}))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete ac-category'>\n  <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?s:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("category-selector-autocomplete",s,{core:!0});const o=s},34361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s;return"      <li>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"option.model",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:8},end:{line:9,column:15}}}))?s:"")+"      </li>\n"},2:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"          <a href>"+e.escapeExpression((s(n,"category-link")||t&&s(t,"category-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"option.model",{name:"category-link",hash:{link:"false",allowUncategorized:"true"},hashTypes:{link:"StringLiteral",allowUncategorized:"StringLiteral"},hashContexts:{link:t,allowUncategorized:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:18},end:{line:6,column:87}}}))+"</a>\n"},4:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"          <a href>"+o((a(n,"d-icon")||t&&a(t,"d-icon")||e.hooks.helperMissing).call(s,"tag",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:8,column:18},end:{line:8,column:34}}}))+o(a(n,"get").call(s,"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:34},end:{line:8,column:49}}}))+" x "+o(a(n,"get").call(s,"option.count",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:52},end:{line:8,column:68}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete ac-category-or-tag'>\n  <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:3,column:4},end:{line:11,column:13}}}))?s:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("category-tag-autocomplete",s,{core:!0});const o=s},65295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s;return"      <li>\n        <a href>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"option.src",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:10},end:{line:11,column:17}}}))?s:"")+"        </a>\n      </li>\n"},2:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"            <img src="+o(a(n,"get").call(s,"option.src",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:7,column:21},end:{line:7,column:35}}}))+" class='emoji'>\n            <span class='emoji-shortname'>"+o(a(n,"get").call(s,"option.code",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:42},end:{line:8,column:57}}}))+"</span>\n"},4:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"            "+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"option.label",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:10,column:12},end:{line:10,column:28}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete ac-emoji'>\n  <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:3,column:4},end:{line:14,column:13}}}))?s:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("emoji-selector-autocomplete",s,{core:!0});const o=s},52339:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<button class='btn-flat "+o(l(n,"get").call(s,"class",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:24},end:{line:1,column:33}}}))+"' title='"+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topics.bulk.toggle",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:1,column:42},end:{line:1,column:71}}}))+"'>\n  "+o((l(n,"d-icon")||t&&l(t,"d-icon")||a).call(s,"icon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:2},end:{line:2,column:17}}}))+"\n</button>\n"},useData:!0});(0,i.addRawTemplate)("flat-button",s,{core:!0});const o=s},68234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <li><a href>"+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"option.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:18},end:{line:4,column:33}}}))+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete ac-group'>\n  <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:3,column:4},end:{line:5,column:13}}}))?s:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("group-selector-autocomplete",s,{core:!0});const o=s},6683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'        <li class="hashtag-autocomplete__option">\n          <a class="hashtag-autocomplete__link" title="'+a(l(n,"get").call(o,"option.description",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:55},end:{line:6,column:77}}}))+'" href>'+(null!=(s=l(n,"get").call(o,"option.icon",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:84},end:{line:6,column:101}}}))?s:"")+'<span class="hashtag-autocomplete__text">'+a(l(n,"get").call(o,"option.text",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:142},end:{line:6,column:157}}}))+(null!=(s=l(n,"if").call(o,"option.secondary_text",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:157},end:{line:6,column:266}}}))?s:"")+"</span></span>\n          </a>\n        </li>\n"},2:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="hashtag-autocomplete__meta-text">('+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"option.secondary_text",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:233},end:{line:6,column:258}}}))+")"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete hashtag-autocomplete'>\n  <div class=\"hashtag-autocomplete__fadeout\">\n    <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"option","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:4,column:6},end:{line:9,column:15}}}))?s:"")+"    </ul>\n  </div>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("hashtag-autocomplete",s,{core:!0});const o=s},74076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<div class='post-actions "+a(l(n,"get").call(o,"className",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:25},end:{line:2,column:38}}}))+"'>\n  "+a((l(n,"d-icon")||t&&l(t,"d-icon")||e.hooks.helperMissing).call(o,"icon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:3,column:2},end:{line:3,column:17}}}))+"\n"+(null!=(s=l(n,"each").call(o,"postNumber","in","postNumbers",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:4,column:2},end:{line:6,column:11}}}))?s:"")+"</div>\n"},2:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"    <a href='"+o(a(n,"get").call(s,"topic.url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:13},end:{line:5,column:26}}}))+"/"+o(a(n,"get").call(s,"postNumber",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:27},end:{line:5,column:41}}}))+"'>#"+o(a(n,"get").call(s,"postNumber",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:44},end:{line:5,column:58}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"postNumbers",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:8,column:7}}}))?s:""},useData:!0});(0,i.addRawTemplate)("list/action-list",s,{core:!0});const o=s},88051:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<"+o(l(n,"get").call(s,"tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:1},end:{line:1,column:12}}}))+' class="'+o(l(n,"get").call(s,"class",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:20},end:{line:1,column:29}}}))+" "+o((l(n,"cold-age-class")||t&&l(t,"cold-age-class")||a).call(s,"topic.createdAt",{name:"cold-age-class",hash:{class:"",startDate:"topic.bumpedAt"},hashTypes:{class:"StringLiteral",startDate:"PathExpression"},hashContexts:{class:t,startDate:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:30},end:{line:1,column:98}}}))+' activity" title="'+o((l(n,"html-safe")||t&&l(t,"html-safe")||a).call(s,"topic.bumpedAtTitle",{name:"html-safe",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:116},end:{line:1,column:149}}}))+'">\n  <a class="post-activity" href="'+o(l(n,"get").call(s,"topic.lastPostUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:33},end:{line:2,column:54}}}))+'">'+o((l(n,"raw-plugin-outlet")||t&&l(t,"raw-plugin-outlet")||a).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-relative-date"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:3,column:4},end:{line:3,column:66}}}))+o((l(n,"format-date")||t&&l(t,"format-date")||a).call(s,"topic.bumpedAt",{name:"format-date",hash:{noTitle:"true",format:"tiny"},hashTypes:{noTitle:"StringLiteral",format:"StringLiteral"},hashContexts:{noTitle:t,format:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:4},end:{line:4,column:65}}}))+"</a>\n</"+o(l(n,"get").call(s,"tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:2},end:{line:6,column:13}}}))+">\n"},useData:!0});(0,i.addRawTemplate)("list/activity-column",s,{core:!0});const o=s},35712:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<td class='category topic-list-data'>"+e.escapeExpression((s(n,"category-link")||t&&s(t,"category-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"category",{name:"category-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:37},end:{line:1,column:63}}}))+"</td>\n"},useData:!0});(0,i.addRawTemplate)("list/category-column",s,{core:!0});const o=s},53593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <span class="static-label">'+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"view.staticLabel",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:29},end:{line:2,column:49}}}))+"</span>\n"},3:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <button class="topics-replies-toggle --all'+(null!=(s=l(n,"if").call(o,"view.allActive",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:44},end:{line:4,column:80}}}))?s:"")+'">\n    '+a((l(n,"i18n")||t&&l(t,"i18n")||e.hooks.helperMissing).call(o,"filters.new.all",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:5,column:4},end:{line:5,column:30}}}))+'\n  </button>\n  <button class="topics-replies-toggle --topics'+(null!=(s=l(n,"if").call(o,"view.topicsActive",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:7,column:47},end:{line:7,column:86}}}))?s:"")+'">\n    '+a(l(n,"get").call(o,"view.topicsButtonLabel",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:4},end:{line:8,column:30}}}))+'\n  </button>\n  <button class="topics-replies-toggle --replies'+(null!=(s=l(n,"if").call(o,"view.repliesActive",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:10,column:48},end:{line:10,column:88}}}))?s:"")+'">\n    '+a(l(n,"get").call(o,"view.repliesButtonLabel",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:11,column:4},end:{line:11,column:31}}}))+"\n  </button>\n"},4:function(e,t,n,r,i){return" active"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"view.staticLabel",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:13,column:7}}}))?s:""},useData:!0});(0,i.addRawTemplate)("list/new-list-header-controls",s,{core:!0});const o=s},78871:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <div class="participant-group">\n      <a\n        class="user-group trigger-group-card"\n        href="'+o(a(n,"get").call(s,"group.url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:10,column:14},end:{line:10,column:27}}}))+'"\n        data-group-card="'+o(a(n,"get").call(s,"group.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:11,column:25},end:{line:11,column:39}}}))+'"\n      >\n        '+o((a(n,"d-icon")||t&&a(t,"d-icon")||e.hooks.helperMissing).call(s,"users",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:13,column:8},end:{line:13,column:26}}}))+"\n        "+o(a(n,"get").call(s,"group.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:14,column:8},end:{line:14,column:22}}}))+"\n      </a>\n    </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div\n  class="participant-group-wrapper"\n  role="list"\n  aria-label="'+e.escapeExpression((a(n,"i18n")||t&&a(t,"i18n")||e.hooks.helperMissing).call(o,"topic.participant_groups",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:4,column:14},end:{line:4,column:49}}}))+'"\n>\n'+(null!=(s=a(n,"each").call(o,"group","in","groups",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:6,column:2},end:{line:17,column:11}}}))?s:"")+"</div>"},useData:!0});(0,i.addRawTemplate)("list/participant-groups",s,{core:!0});const o=s},90006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic-post-badges",{name:"raw",hash:{newDotText:"newDotText",url:"topic.lastUnreadUrl",unseen:"topic.unseen",unreadPosts:"topic.unread_posts"},hashTypes:{newDotText:"PathExpression",url:"PathExpression",unseen:"PathExpression",unreadPosts:"PathExpression"},hashContexts:{newDotText:t,url:t,unseen:t,unreadPosts:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:2,column:2},end:{line:2,column:126}}}))+"\n"},3:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.posts-count-column",{name:"raw",hash:{tagName:"div",topic:"topic"},hashTypes:{tagName:"StringLiteral",topic:"PathExpression"},hashContexts:{tagName:t,topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:4,column:2},end:{line:4,column:61}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"view.showBadges",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?s:""},useData:!0});(0,i.addRawTemplate)("list/post-count-or-badges",s,{core:!0});const o=s},93419:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"poster.moreCount",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:3,column:2},end:{line:7,column:9}}}))?s:""},2:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <a class="posters-more-count">'+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"poster.moreCount",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:34},end:{line:4,column:54}}}))+"</a>\n"},4:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <a href="'+o(a(n,"get").call(s,"poster.user.path",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:13},end:{line:6,column:33}}}))+'" data-user-card="'+o(a(n,"get").call(s,"poster.user.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:51},end:{line:6,column:75}}}))+'" class="'+o(a(n,"get").call(s,"poster.extraClasses",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:84},end:{line:6,column:107}}}))+'">'+o((a(n,"avatar")||t&&a(t,"avatar")||e.hooks.helperMissing).call(s,"poster",{name:"avatar",hash:{imageSize:"small",namePath:"user.name",usernamePath:"user.username",avatarTemplatePath:"user.avatar_template"},hashTypes:{imageSize:"StringLiteral",namePath:"StringLiteral",usernamePath:"StringLiteral",avatarTemplatePath:"StringLiteral"},hashContexts:{imageSize:t,namePath:t,usernamePath:t,avatarTemplatePath:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:109},end:{line:6,column:236}}}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<td class='posters topic-list-data'>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"poster","in","posters",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:2,column:0},end:{line:8,column:9}}}))?s:"")+"</td>\n"},useData:!0});(0,i.addRawTemplate)("list/posters-column",s,{core:!0});const o=s},7716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<"+o(l(n,"get").call(s,"view.tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:1},end:{line:1,column:17}}}))+" class='num posts-map posts "+o(l(n,"get").call(s,"view.likesHeat",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:45},end:{line:1,column:63}}}))+" topic-list-data' title='"+o(l(n,"get").call(s,"view.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:88},end:{line:1,column:102}}}))+"'>\n  <button class=\"btn-link posts-map badge-posts "+o(l(n,"get").call(s,"view.likesHeat",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:48},end:{line:2,column:66}}}))+'" aria-label="'+o(l(n,"get").call(s,"view.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:80},end:{line:2,column:94}}}))+'">\n    '+o((l(n,"raw-plugin-outlet")||t&&l(t,"raw-plugin-outlet")||a).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-reply-count"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:3,column:4},end:{line:3,column:62}}}))+"\n    "+o((l(n,"number")||t&&l(t,"number")||a).call(s,"topic.replyCount",{name:"number",hash:{noTitle:"true"},hashTypes:{noTitle:"StringLiteral"},hashContexts:{noTitle:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:4},end:{line:4,column:46}}}))+"\n  </button>\n</"+o(l(n,"get").call(s,"view.tagName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:2},end:{line:6,column:18}}}))+">\n"},useData:!0});(0,i.addRawTemplate)("list/posts-count-column",s,{core:!0});const o=s},95877:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <a href="'+a(l(n,"get").call(o,"topic.url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:11},end:{line:2,column:24}}}))+'" class="topic-excerpt">\n    '+a((l(n,"dir-span")||t&&l(t,"dir-span")||e.hooks.helperMissing).call(o,"topic.escapedExcerpt",{name:"dir-span",hash:{htmlSafe:"true"},hashTypes:{htmlSafe:"StringLiteral"},hashContexts:{htmlSafe:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:3,column:4},end:{line:3,column:53}}}))+"\n"+(null!=(s=l(n,"if").call(o,"topic.excerptTruncated",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:4},end:{line:6,column:11}}}))?s:"")+"  </a>\n"},2:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <span class="topic-excerpt-more">'+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"read_more",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:5,column:39},end:{line:5,column:59}}}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"topic.hasExcerpt",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:8,column:7}}}))?s:""},useData:!0});(0,i.addRawTemplate)("list/topic-excerpt",s,{core:!0});const o=s},86716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <td class="bulk-select topic-list-data">\n    <label for="bulk-select-'+o(a(n,"get").call(s,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:28},end:{line:5,column:40}}}))+'">\n      <input type="checkbox" class="bulk-select" id="bulk-select-'+o(a(n,"get").call(s,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:65},end:{line:6,column:77}}}))+'">\n    </label>\n  </td>\n'},3:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      &nbsp;"+e.escapeExpression((s(n,"topic-featured-link")||t&&s(t,"topic-featured-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic",{name:"topic-featured-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:25,column:12},end:{line:25,column:42}}}))},5:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic-post-badges",{name:"raw",hash:{newDotText:"newDotText",url:"topic.lastUnreadUrl",unseen:"topic.unseen",unreadPosts:"topic.unread_posts"},hashTypes:{newDotText:"PathExpression",url:"PathExpression",unseen:"PathExpression",unreadPosts:"PathExpression"},hashContexts:{newDotText:t,url:t,unseen:t,unreadPosts:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:32,column:6},end:{line:32,column:131}}}))},7:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"unless").call(null!=t?t:e.nullContext||{},"topic.isPinnedUncategorized",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(8,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:37,column:6},end:{line:40,column:17}}}))?s:""},8:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return a((l(n,"raw-plugin-outlet")||t&&l(t,"raw-plugin-outlet")||o).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-category"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:38,column:8},end:{line:38,column:64}}}))+"\n        "+a((l(n,"category-link")||t&&l(t,"category-link")||o).call(s,"topic.category",{name:"category-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:39,column:8},end:{line:39,column:40}}}))+"\n"},10:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.participant-groups",{name:"raw",hash:{groups:"participantGroups"},hashTypes:{groups:"PathExpression"},hashContexts:{groups:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:44,column:6},end:{line:44,column:64}}}))+"\n"},12:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"    "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.topic-excerpt",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:49,column:4},end:{line:49,column:44}}}))+"\n"},14:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.posters-column",{name:"raw",hash:{posters:"topic.featuredUsers"},hashTypes:{posters:"PathExpression"},hashContexts:{posters:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:58,column:2},end:{line:58,column:59}}}))+"\n"},16:function(e,t,n,r,i){var s;return'  <td class="num likes topic-list-data">\n'+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"hasLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(17,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:65,column:4},end:{line:69,column:11}}}))?s:"")+"  </td>\n"},17:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <a href='"+o(l(n,"get").call(s,"topic.summaryUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:66,column:15},end:{line:66,column:35}}}))+"'>\n        "+o((l(n,"number")||t&&l(t,"number")||a).call(s,"topic.like_count",{name:"number",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:67,column:8},end:{line:67,column:35}}}))+" "+o((l(n,"d-icon")||t&&l(t,"d-icon")||a).call(s,"heart",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:67,column:36},end:{line:67,column:54}}}))+"\n      </a>\n"},19:function(e,t,n,r,i){var s;return'  <td class="num likes">\n'+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"hasOpLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(20,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:75,column:4},end:{line:79,column:11}}}))?s:"")+"  </td>\n"},20:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <a href='"+o(l(n,"get").call(s,"topic.summaryUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:76,column:15},end:{line:76,column:35}}}))+"'>\n        "+o((l(n,"number")||t&&l(t,"number")||a).call(s,"topic.op_like_count",{name:"number",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:77,column:8},end:{line:77,column:38}}}))+" "+o((l(n,"d-icon")||t&&l(t,"d-icon")||a).call(s,"heart",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:77,column:39},end:{line:77,column:57}}}))+"\n      </a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-columns"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))+"\n\n"+(null!=(s=c(n,"if").call(o,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))?s:"")+"\n<td class='main-link clearfix topic-list-data' colspan=\"1\">"+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:19,column:2},end:{line:19,column:54}}}))+"\n  <span class='link-top-line'>"+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-status"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:21,column:4},end:{line:21,column:58}}}))+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"topic-status",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:22,column:4},end:{line:22,column:39}}}))+l((c(n,"topic-link")||t&&c(t,"topic-link")||a).call(o,"topic",{name:"topic-link",hash:{class:"raw-link raw-topic-link"},hashTypes:{class:"StringLiteral"},hashContexts:{class:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:23,column:4},end:{line:23,column:57}}}))+(null!=(s=c(n,"if").call(o,"topic.featured_link",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:24,column:4},end:{line:26,column:12}}}))?s:"")+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-title"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:27,column:4},end:{line:27,column:56}}}))+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"list.unread-indicator",{name:"raw",hash:{unreadClass:"unreadClass",topicId:"topic.id",includeUnreadIndicator:"includeUnreadIndicator"},hashTypes:{unreadClass:"PathExpression",topicId:"PathExpression",includeUnreadIndicator:"PathExpression"},hashContexts:{unreadClass:t,topicId:t,includeUnreadIndicator:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:28,column:4},end:{line:30,column:61}}}))+(null!=(s=c(n,"if").call(o,"showTopicPostBadges",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:31,column:4},end:{line:33,column:12}}}))?s:"")+'  </span>\n  <div class="link-bottom-line">\n'+(null!=(s=c(n,"unless").call(o,"hideCategory",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:36,column:4},end:{line:41,column:15}}}))?s:"")+"    "+l((c(n,"discourse-tags")||t&&c(t,"discourse-tags")||a).call(o,"topic",{name:"discourse-tags",hash:{tagsForUser:"tagsForUser",mode:"list"},hashTypes:{tagsForUser:"PathExpression",mode:"StringLiteral"},hashContexts:{tagsForUser:t,mode:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:42,column:4},end:{line:42,column:64}}}))+"\n"+(null!=(s=c(n,"if").call(o,"participantGroups",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(10,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:43,column:4},end:{line:45,column:11}}}))?s:"")+"    "+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"list.action-list",{name:"raw",hash:{icon:"heart",className:"likes",postNumbers:"topic.liked_post_numbers",topic:"topic"},hashTypes:{icon:"StringLiteral",className:"StringLiteral",postNumbers:"PathExpression",topic:"PathExpression"},hashContexts:{icon:t,className:t,postNumbers:t,topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:46,column:4},end:{line:46,column:110}}}))+"\n  </div>\n"+(null!=(s=c(n,"if").call(o,"expandPinned",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(12,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:48,column:2},end:{line:50,column:9}}}))?s:"")+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-main-link-bottom"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:52,column:2},end:{line:52,column:59}}}))+"\n</td>"+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-main-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:55,column:0},end:{line:55,column:56}}}))+"\n\n"+(null!=(s=c(n,"if").call(o,"showPosters",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(14,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:57,column:0},end:{line:59,column:7}}}))?s:"")+"\n"+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"list.posts-count-column",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:61,column:0},end:{line:61,column:45}}}))+"\n\n"+(null!=(s=c(n,"if").call(o,"showLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(16,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:63,column:0},end:{line:71,column:7}}}))?s:"")+"\n"+(null!=(s=c(n,"if").call(o,"showOpLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(19,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:73,column:0},end:{line:81,column:7}}}))?s:"")+'\n<td class="num views '+l(c(n,"get").call(o,"topic.viewsHeat",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:83,column:21},end:{line:83,column:40}}}))+' topic-list-data">\n  '+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-view-count"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:84,column:2},end:{line:84,column:59}}}))+"\n  "+l((c(n,"number")||t&&c(t,"number")||a).call(o,"topic.views",{name:"number",hash:{numberKey:"views_long"},hashTypes:{numberKey:"StringLiteral"},hashContexts:{numberKey:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:85,column:2},end:{line:85,column:47}}}))+"\n</td>\n\n"+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"list.activity-column",{name:"raw",hash:{tagName:"td",class:"num topic-list-data",topic:"topic"},hashTypes:{tagName:"StringLiteral",class:"StringLiteral",topic:"PathExpression"},hashContexts:{tagName:t,class:t,topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:88,column:0},end:{line:88,column:83}}}))+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-columns"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:90,column:0},end:{line:90,column:54}}}))+"\n"},useData:!0});(0,i.addRawTemplate)("list/topic-list-item",s,{core:!0});const o=s},97814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"&nbsp;<span class='badge badge-notification unread-indicator indicator-topic-"+o(l(n,"get").call(s,"topicId",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:79},end:{line:2,column:90}}}))+" "+o(l(n,"get").call(s,"unreadClass",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:91},end:{line:2,column:106}}}))+"' title='"+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.unread_indicator",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:2,column:115},end:{line:2,column:148}}}))+"'>"+o((l(n,"d-icon")||t&&l(t,"d-icon")||a).call(s,"asterisk",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:3,column:4},end:{line:3,column:26}}}))+"\n  </span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"includeUnreadIndicator",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:5,column:8}}}))?s:""},useData:!0});(0,i.addRawTemplate)("list/unread-indicator",s,{core:!0});const o=s},33846:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'  <tr class=\'topic-list-item-separator\'>\n    <td class="topic-list-data" colspan="6">\n      <span>\n        '+e.escapeExpression((s(n,"i18n")||t&&s(t,"i18n")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topics.new_messages_marker",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:5,column:8},end:{line:5,column:45}}}))+"\n      </span>\n    </td>\n  </tr>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"view.isLastVisited",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:9,column:7}}}))?s:""},useData:!0});(0,i.addRawTemplate)("list/visited-line",s,{core:!0});const o=s},60636:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'      <label for="bulk-select-'+o(a(n,"get").call(s,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:30},end:{line:5,column:42}}}))+'">\n        <input type="checkbox" class="bulk-select" id="bulk-select-'+o(a(n,"get").call(s,"topic.id",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:67},end:{line:6,column:79}}}))+'">\n      </label>\n'},3:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'    <a href="'+o(l(n,"get").call(s,"topic.lastPostUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:9,column:13},end:{line:9,column:34}}}))+'" aria-label="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"latest_poster_link",{name:"i18n",hash:{username:"topic.lastPosterUser.username"},hashTypes:{username:"PathExpression"},hashContexts:{username:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:9,column:48},end:{line:9,column:116}}}))+'" data-user-card="'+o(l(n,"get").call(s,"topic.lastPosterUser.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:9,column:134},end:{line:9,column:167}}}))+'">'+o((l(n,"avatar")||t&&l(t,"avatar")||a).call(s,"topic.lastPosterUser",{name:"avatar",hash:{imageSize:"large"},hashTypes:{imageSize:"StringLiteral"},hashContexts:{imageSize:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:9,column:169},end:{line:9,column:218}}}))+"</a>\n"},5:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"topic-featured-link")||t&&s(t,"topic-featured-link")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"topic",{name:"topic-featured-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:26,column:6},end:{line:26,column:37}}}))},7:function(e,t,n,r,i){return'<span class="topic-post-badges">&nbsp;<span class="badge-notification new-topic"></span></span>'},9:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.topic-excerpt",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:33,column:6},end:{line:33,column:48}}}))},11:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return a((l(n,"raw-plugin-outlet")||t&&l(t,"raw-plugin-outlet")||o).call(s,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-category"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:43,column:10},end:{line:43,column:66}}}))+"\n          "+a((l(n,"category-link")||t&&l(t,"category-link")||o).call(s,"topic.category",{name:"category-link",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:44,column:10},end:{line:44,column:43}}}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<td class="topic-list-data">'+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-columns"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:2,column:2},end:{line:2,column:57}}}))+"\n  <div class='pull-left'>\n"+(null!=(s=c(n,"if").call(o,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:4},end:{line:10,column:11}}}))?s:"")+"  </div>\n  <div class='topic-item-metadata right'>\n"+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:20,column:4},end:{line:20,column:56}}}))+"\n    <div class='main-link'>"+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-before-status"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:22,column:6},end:{line:22,column:60}}}))+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"topic-status",{name:"raw",hash:{topic:"topic"},hashTypes:{topic:"PathExpression"},hashContexts:{topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:23,column:6},end:{line:23,column:42}}}))+l((c(n,"topic-link")||t&&c(t,"topic-link")||a).call(o,"topic",{name:"topic-link",hash:{class:"raw-link raw-topic-link"},hashTypes:{class:"StringLiteral"},hashContexts:{class:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:24,column:6},end:{line:24,column:59}}}))+(null!=(s=c(n,"if").call(o,"topic.featured_link",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:25,column:6},end:{line:27,column:15}}}))?s:"")+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-after-title"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:28,column:6},end:{line:28,column:58}}}))+(null!=(s=c(n,"if").call(o,"topic.unseen",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:29,column:6},end:{line:31,column:15}}}))?s:"")+(null!=(s=c(n,"if").call(o,"expandPinned",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(9,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:32,column:6},end:{line:34,column:15}}}))?s:"")+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-main-link-bottom"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:35,column:7},end:{line:35,column:64}}}))+"\n    </div>\n    <div class='pull-right'>\n      "+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"list.post-count-or-badges",{name:"raw",hash:{postBadgesEnabled:"showTopicPostBadges",topic:"topic"},hashTypes:{postBadgesEnabled:"PathExpression",topic:"PathExpression"},hashContexts:{postBadgesEnabled:t,topic:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:38,column:6},end:{line:38,column:91}}}))+'\n    </div>\n    <div class="topic-item-stats clearfix">\n      <span class="topic-item-stats__category-tags">\n'+(null!=(s=c(n,"unless").call(o,"hideCategory",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(11,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:42,column:8},end:{line:45,column:20}}}))?s:"")+l((c(n,"discourse-tags")||t&&c(t,"discourse-tags")||a).call(o,"topic",{name:"discourse-tags",hash:{mode:"list"},hashTypes:{mode:"StringLiteral"},hashContexts:{mode:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:46,column:8},end:{line:46,column:45}}}))+'\n      </span>\n      <div class=\'num activity last\'>\n        <span class="age activity" title="'+l(c(n,"get").call(o,"topic.bumpedAtTitle",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:49,column:42},end:{line:49,column:65}}}))+'"><a\n            href="'+l(c(n,"get").call(o,"topic.lastPostUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:50,column:18},end:{line:50,column:39}}}))+'">'+l((c(n,"format-date")||t&&c(t,"format-date")||a).call(o,"topic.bumpedAt",{name:"format-date",hash:{noTitle:"true",format:"tiny"},hashTypes:{noTitle:"StringLiteral",format:"StringLiteral"},hashContexts:{noTitle:t,format:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:50,column:41},end:{line:50,column:100}}}))+"</a>\n        </span>\n      </div>\n  </div>\n</td>\n"},useData:!0});(0,i.addRawTemplate)("mobile/list/topic-list-item",s,{core:!0});const o=s},62218:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a href="'+o(a(n,"get").call(s,"post.usernameUrl",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:9},end:{line:1,column:29}}}))+'" classNames="trigger-user-card '+o(a(n,"get").call(s,"classNames",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:61},end:{line:1,column:75}}}))+'" data-user-card="'+o(a(n,"get").call(s,"post.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:93},end:{line:1,column:110}}}))+'">'+o((a(n,"avatar")||t&&a(t,"avatar")||e.hooks.helperMissing).call(s,"post",{name:"avatar",hash:{imageSize:"large"},hashTypes:{imageSize:"StringLiteral"},hashContexts:{imageSize:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:112},end:{line:1,column:145}}}))+"</a>\n"},useData:!0});(0,i.addRawTemplate)("post/poster-avatar",s,{core:!0});const o=s},79910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"get").call(null!=t?t:e.nullContext||{},"view.html",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:1,column:15}}}))?s:""},useData:!0});(0,i.addRawTemplate)("topic-bulk-select-dropdown",s,{core:!0});const o=s},54217:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"aria-label='"+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"ariaLabel",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:116},end:{line:1,column:129}}}))+"'"},3:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'tabindex="0" role="button" aria-pressed=\''+e.escapeExpression(a(n,"get").call(o,"view.ariaPressed",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:195},end:{line:1,column:215}}}))+"' "+(null!=(s=a(n,"if").call(o,"view.ariaSort",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:217},end:{line:1,column:274}}}))?s:"")+" "},4:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"aria-sort='"+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"view.ariaSort",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:249},end:{line:1,column:266}}}))+"'"},6:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(s=a(n,"if").call(o,"showBulkToggle",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))?s:"")+(null!=(s=a(n,"if").call(o,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(12,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:10,column:4},end:{line:24,column:13}}}))?s:"")},7:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"experimentalTopicBulkActionsEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(8,i,0),inverse:e.program(10,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:6},end:{line:8,column:15}}}))?s:""},8:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"flat-button",{name:"raw",hash:{title:"topics.bulk.toggle",icon:"tasks",class:"bulk-select"},hashTypes:{title:"StringLiteral",icon:"StringLiteral",class:"StringLiteral"},hashContexts:{title:t,icon:t,class:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:5,column:8},end:{line:5,column:89}}}))+"\n"},10:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"flat-button",{name:"raw",hash:{title:"topics.bulk.toggle",icon:"list",class:"bulk-select"},hashTypes:{title:"StringLiteral",icon:"StringLiteral",class:"StringLiteral"},hashContexts:{title:t,icon:t,class:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:7,column:8},end:{line:7,column:88}}}))+"\n"},12:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <span class='bulk-select-topics'>"+(null!=(s=c(n,"if").call(o,"canDoBulkActions",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(13,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:12,column:8},end:{line:20,column:17}}}))?s:"")+"<button class='btn btn-default bulk-select-all'>"+l((c(n,"i18n")||t&&c(t,"i18n")||a).call(o,"topics.bulk.select_all",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:21,column:56},end:{line:21,column:89}}}))+"</button>\n        <button class='btn btn-default bulk-clear-all'>"+l((c(n,"i18n")||t&&c(t,"i18n")||a).call(o,"topics.bulk.clear_all",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:22,column:55},end:{line:22,column:87}}}))+"</button>\n      </span>\n"},13:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"experimentalTopicBulkActionsEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(14,i,0),inverse:e.program(16,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:13,column:10},end:{line:19,column:19}}}))?s:""},14:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"            "+a((l(n,"raw")||t&&l(t,"raw")||o).call(s,"topic-bulk-select-dropdown",{name:"raw",hash:{bulkSelectHelper:"bulkSelectHelper"},hashTypes:{bulkSelectHelper:"PathExpression"},hashContexts:{bulkSelectHelper:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:14,column:12},end:{line:14,column:82}}}))+"\n            <button class='btn btn-icon no-text bulk-select-actions'>"+a((l(n,"d-icon")||t&&l(t,"d-icon")||o).call(s,"cog",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:16,column:69},end:{line:16,column:85}}}))+"&#8203;</button>\n"},16:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"            <button class='btn btn-icon no-text bulk-select-actions'>"+e.escapeExpression((s(n,"d-icon")||t&&s(t,"d-icon")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"cog",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:18,column:69},end:{line:18,column:85}}}))+"&#8203;</button>\n"},18:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"view.showTopicsAndRepliesToggle",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(19,i,0),inverse:e.program(21,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:27,column:4},end:{line:31,column:13}}}))?s:""},19:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"list.new-list-header-controls",{name:"raw",hash:{newTopicsCount:"newTopicsCount",newRepliesCount:"newRepliesCount",current:"newListSubset"},hashTypes:{newTopicsCount:"PathExpression",newRepliesCount:"PathExpression",current:"PathExpression"},hashContexts:{newTopicsCount:t,newRepliesCount:t,current:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:28,column:6},end:{line:28,column:129}}}))+"\n"},21:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"      <span>"+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"view.localizedName",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:30,column:12},end:{line:30,column:34}}}))+"</span>\n"},23:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"    "+e.escapeExpression((s(n,"d-icon")||t&&s(t,"d-icon")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"view.sortIcon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:34,column:4},end:{line:34,column:28}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<th data-sort-order='"+a(l(n,"get").call(o,"order",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:21},end:{line:1,column:30}}}))+"' class='"+a(l(n,"get").call(o,"view.className",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:39},end:{line:1,column:57}}}))+' topic-list-data\' scope="col" '+(null!=(s=l(n,"if").call(o,"ariaLabel",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:87},end:{line:1,column:137}}}))?s:"")+" "+(null!=(s=l(n,"if").call(o,"sortable",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:138},end:{line:1,column:282}}}))?s:"")+">"+(null!=(s=l(n,"if").call(o,"canBulkSelect",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(6,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:2},end:{line:25,column:11}}}))?s:"")+(null!=(s=l(n,"unless").call(o,"bulkSelectEnabled",{name:"unless",hash:{},hashTypes:{},hashContexts:{},fn:e.program(18,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:26,column:2},end:{line:32,column:15}}}))?s:"")+(null!=(s=l(n,"if").call(o,"view.isSorting",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(23,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:33,column:2},end:{line:35,column:11}}}))?s:"")+"</th>\n"},useData:!0});(0,i.addRawTemplate)("topic-list-header-column",s,{core:!0});const o=s},34995:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s;return'  <th class="bulk-select topic-list-data">\n'+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"canBulkSelect",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:4},end:{line:10,column:11}}}))?s:"")+"  </th>\n"},2:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"experimentalTopicBulkActionsEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,i,0),inverse:e.program(5,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:6},end:{line:9,column:13}}}))?s:""},3:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"flat-button",{name:"raw",hash:{title:"topics.bulk.toggle",icon:"tasks",class:"bulk-select"},hashTypes:{title:"StringLiteral",icon:"StringLiteral",class:"StringLiteral"},hashContexts:{title:t,icon:t,class:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:6,column:8},end:{line:6,column:89}}}))+"\n"},5:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        "+e.escapeExpression((s(n,"raw")||t&&s(t,"raw")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"flat-button",{name:"raw",hash:{title:"topics.bulk.toggle",icon:"list",class:"bulk-select"},hashTypes:{title:"StringLiteral",icon:"StringLiteral",class:"StringLiteral"},hashContexts:{title:t,icon:t,class:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:8,column:8},end:{line:8,column:88}}}))+"\n"},7:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  "+e.escapeExpression((a(n,"raw")||t&&a(t,"raw")||o).call(s,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(a(n,"i18n")||t&&a(t,"i18n")||o).call(s,"category.sort_options.posters",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:16,column:61},end:{line:16,column:99}}}),order:"posters"},hashTypes:{ariaLabel:"SubExpression",order:"StringLiteral"},hashContexts:{ariaLabel:t,order:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:16,column:2},end:{line:16,column:101}}}))+"\n"},9:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  "+e.escapeExpression((a(n,"raw")||t&&a(t,"raw")||o).call(s,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(a(n,"i18n")||t&&a(t,"i18n")||o).call(s,"sr_likes",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:20,column:104},end:{line:20,column:121}}}),name:"likes",order:"likes",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:20,column:2},end:{line:20,column:123}}}))+"\n"},11:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"  "+e.escapeExpression((a(n,"raw")||t&&a(t,"raw")||o).call(s,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(a(n,"i18n")||t&&a(t,"i18n")||o).call(s,"sr_op_likes",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:23,column:107},end:{line:23,column:127}}}),name:"likes",order:"op_likes",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:23,column:2},end:{line:23,column:129}}}))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-header-before"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))+(null!=(s=c(n,"if").call(o,"bulkSelectEnabled",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:0},end:{line:12,column:7}}}))?s:"")+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"topic-list-header-column",{name:"raw",hash:{bulkSelectHelper:"bulkSelectHelper",experimentalTopicBulkActionsEnabled:"experimentalTopicBulkActionsEnabled",newTopicsCount:"newTopicsCount",newRepliesCount:"newRepliesCount",newListSubset:"newListSubset",showTopicsAndRepliesToggle:"showTopicsAndRepliesToggle",canDoBulkActions:"canDoBulkActions",canBulkSelect:"canBulkSelect",showBulkToggle:"toggleInTitle",bulkSelectEnabled:"bulkSelectEnabled",name:"listTitle",order:"default"},hashTypes:{bulkSelectHelper:"PathExpression",experimentalTopicBulkActionsEnabled:"PathExpression",newTopicsCount:"PathExpression",newRepliesCount:"PathExpression",newListSubset:"PathExpression",showTopicsAndRepliesToggle:"PathExpression",canDoBulkActions:"PathExpression",canBulkSelect:"PathExpression",showBulkToggle:"PathExpression",bulkSelectEnabled:"PathExpression",name:"PathExpression",order:"StringLiteral"},hashContexts:{bulkSelectHelper:t,experimentalTopicBulkActionsEnabled:t,newTopicsCount:t,newRepliesCount:t,newListSubset:t,showTopicsAndRepliesToggle:t,canDoBulkActions:t,canBulkSelect:t,showBulkToggle:t,bulkSelectEnabled:t,name:t,order:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:13,column:0},end:{line:13,column:443}}}))+"\n"+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-header-after-main-link"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:14,column:0},end:{line:14,column:62}}}))+"\n"+(null!=(s=c(n,"if").call(o,"showPosters",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:15,column:0},end:{line:17,column:7}}}))?s:"")+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(c(n,"i18n")||t&&c(t,"i18n")||a).call(o,"sr_replies",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:18,column:104},end:{line:18,column:123}}}),name:"replies",order:"posts",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:18,column:0},end:{line:18,column:125}}}))+"\n"+(null!=(s=c(n,"if").call(o,"showLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(9,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:19,column:0},end:{line:21,column:7}}}))?s:"")+(null!=(s=c(n,"if").call(o,"showOpLikes",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(11,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:22,column:0},end:{line:24,column:7}}}))?s:"")+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(c(n,"i18n")||t&&c(t,"i18n")||a).call(o,"sr_views",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:25,column:102},end:{line:25,column:119}}}),name:"views",order:"views",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:25,column:0},end:{line:25,column:121}}}))+"\n"+l((c(n,"raw")||t&&c(t,"raw")||a).call(o,"topic-list-header-column",{name:"raw",hash:{ariaLabel:(c(n,"i18n")||t&&c(t,"i18n")||a).call(o,"sr_activity",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:26,column:108},end:{line:26,column:128}}}),name:"activity",order:"activity",number:"true",sortable:"sortable"},hashTypes:{ariaLabel:"SubExpression",name:"StringLiteral",order:"StringLiteral",number:"StringLiteral",sortable:"PathExpression"},hashContexts:{ariaLabel:t,name:t,order:t,number:t,sortable:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:26,column:0},end:{line:26,column:130}}}))+l((c(n,"raw-plugin-outlet")||t&&c(t,"raw-plugin-outlet")||a).call(o,{name:"raw-plugin-outlet",hash:{name:"topic-list-header-after"},hashTypes:{name:"StringLiteral"},hashContexts:{name:t},types:[],contexts:[],data:i,loc:{start:{line:27,column:0},end:{line:27,column:54}}}))},useData:!0});(0,i.addRawTemplate)("topic-list-header",s,{core:!0});const o=s},62203:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'&nbsp;<a\n      href="'+o(l(n,"get").call(s,"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:12},end:{line:4,column:19}}}))+'"\n      class="badge badge-notification unread-posts"\n      title="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.unread_posts",{name:"i18n",hash:{count:"newPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:6,column:13},end:{line:6,column:57}}}))+'"\n      aria-label="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.unread_posts",{name:"i18n",hash:{count:"newPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:7,column:18},end:{line:7,column:62}}}))+'"\n    >'+o(l(n,"get").call(s,"newPosts",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:5},end:{line:8,column:17}}}))+"</a>"},3:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'&nbsp;<a\n      href="'+o(l(n,"get").call(s,"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:12,column:12},end:{line:12,column:19}}}))+'"\n      class="badge badge-notification unread-posts"\n      title="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.unread_posts",{name:"i18n",hash:{count:"unreadPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:14,column:13},end:{line:14,column:60}}}))+'"\n      aria-label="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.unread_posts",{name:"i18n",hash:{count:"unreadPosts"},hashTypes:{count:"PathExpression"},hashContexts:{count:t},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:15,column:18},end:{line:15,column:65}}}))+'"\n    >'+o(l(n,"get").call(s,"unreadPosts",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:16,column:5},end:{line:16,column:20}}}))+"</a>"},5:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'&nbsp;<a\n      href="'+o(l(n,"get").call(s,"url",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:20,column:12},end:{line:20,column:19}}}))+'"\n      class="badge badge-notification new-topic"\n      title="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.new",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:22,column:13},end:{line:22,column:33}}}))+'"\n      aria-label="'+o((l(n,"i18n")||t&&l(t,"i18n")||a).call(s,"topic.new",{name:"i18n",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:23,column:18},end:{line:23,column:38}}}))+'"\n    >'+o(l(n,"get").call(s,"newDotText",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:24,column:5},end:{line:24,column:19}}}))+"</a>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<span class="topic-post-badges">'+(null!=(s=a(n,"if").call(o,"newPosts",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:2,column:2},end:{line:9,column:10}}}))?s:"")+(null!=(s=a(n,"if").call(o,"unreadPosts",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:10,column:2},end:{line:17,column:10}}}))?s:"")+(null!=(s=a(n,"if").call(o,"unseen",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:18,column:2},end:{line:25,column:10}}}))?s:"")+"</span>\n"},useData:!0});(0,i.addRawTemplate)("topic-post-badges",s,{core:!0});const o=s},98170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){return"<div class='topic-statuses'>\n"},3:function(e,t,n,r,i){var s;return null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"if").call(null!=t?t:e.nullContext||{},"status.href",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(4,i,0),inverse:e.program(6,i,0),types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:0},end:{line:9,column:10}}}))?s:""},4:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<a href='"+o(a(n,"get").call(s,"status.href",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:9},end:{line:6,column:24}}}))+"' title='"+o(a(n,"get").call(s,"status.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:33},end:{line:6,column:49}}}))+"' class='topic-status "+o(a(n,"get").call(s,"status.extraClasses",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:71},end:{line:6,column:94}}}))+"'>"+o((a(n,"d-icon")||t&&a(t,"d-icon")||e.hooks.helperMissing).call(s,"status.icon",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:96},end:{line:6,column:118}}}))+"</a>"},6:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"<"+o(a(n,"get").call(s,"status.openTag",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:1},end:{line:8,column:19}}}))+" title='"+o(a(n,"get").call(s,"status.title",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:27},end:{line:8,column:43}}}))+"' class='topic-status'>"+o((a(n,"d-icon")||t&&a(t,"d-icon")||e.hooks.helperMissing).call(s,"status.icon",{name:"d-icon",hash:{class:"status.key"},hashTypes:{class:"PathExpression"},hashContexts:{class:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:66},end:{line:8,column:105}}}))+"</"+o(a(n,"get").call(s,"status.closeTag",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:107},end:{line:8,column:126}}}))+">"},8:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return e.escapeExpression((s(n,"d-icon")||t&&s(t,"d-icon")||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"view.showDefault",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:11,column:26},end:{line:11,column:53}}}))},10:function(e,t,n,r,i){return"</div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(s=a(n,"if").call(o,"view.renderDiv",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:1,column:0},end:{line:3,column:9}}}))?s:"")+(null!=(s=a(n,"each").call(o,"status","in","view.statuses",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:4,column:0},end:{line:10,column:10}}}))?s:"")+(null!=(s=a(n,"if").call(o,"view.showDefault",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(8,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:11,column:0},end:{line:11,column:63}}}))?s:"")+(null!=(s=a(n,"if").call(o,"view.renderDiv",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(10,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:12,column:0},end:{line:14,column:9}}}))?s:"")},useData:!0});(0,i.addRawTemplate)("topic-status",s,{core:!0});const o=s},36288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(11205),i=n(21896);let s=(0,r.template)({1:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(s=a(n,"if").call(o,"item.isUser",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(2,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:4,column:6},end:{line:17,column:13}}}))?s:"")+"\n"+(null!=(s=a(n,"if").call(o,"item.isEmail",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(7,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:19,column:6},end:{line:26,column:13}}}))?s:"")+"\n"+(null!=(s=a(n,"if").call(o,"item.isGroup",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(9,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:28,column:6},end:{line:36,column:13}}}))?s:"")},2:function(e,t,n,r,i){var s,o=null!=t?t:e.nullContext||{},a=e.escapeExpression,l=e.hooks.helperMissing,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"        <li data-index="+a(c(n,"get").call(o,"item.index",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:5,column:23},end:{line:5,column:37}}}))+'>\n          <a href title="'+a(c(n,"get").call(o,"item.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:25},end:{line:6,column:38}}}))+'" class="'+a(c(n,"get").call(o,"item.cssClasses",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:6,column:47},end:{line:6,column:66}}}))+'">\n            '+a((c(n,"avatar")||t&&c(t,"avatar")||l).call(o,"item",{name:"avatar",hash:{imageSize:"tiny"},hashTypes:{imageSize:"StringLiteral"},hashContexts:{imageSize:t},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:7,column:12},end:{line:7,column:44}}}))+"\n            <span class='username'>"+a((c(n,"format-username")||t&&c(t,"format-username")||l).call(o,"item.username",{name:"format-username",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:8,column:35},end:{line:8,column:68}}}))+"</span>\n"+(null!=(s=c(n,"if").call(o,"item.name",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(3,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:9,column:12},end:{line:11,column:19}}}))?s:"")+(null!=(s=c(n,"if").call(o,"item.status",{name:"if",hash:{},hashTypes:{},hashContexts:{},fn:e.program(5,i,0),inverse:e.noop,types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:12,column:12},end:{line:14,column:19}}}))?s:"")+"          </a>\n        </li>\n"},3:function(e,t,n,r,i){var s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"              <span class='name'>"+e.escapeExpression(s(n,"get").call(null!=t?t:e.nullContext||{},"item.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:10,column:33},end:{line:10,column:46}}}))+"</span>\n"},5:function(e,t,n,r,i){return"              <span class='user-status'></span>\n"},7:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.hooks.helperMissing,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'        <li>\n          <a href title="'+o(l(n,"get").call(s,"item.username",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:21,column:25},end:{line:21,column:42}}}))+'">\n            '+o((l(n,"d-icon")||t&&l(t,"d-icon")||a).call(s,"envelope",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:22,column:12},end:{line:22,column:33}}}))+"\n            <span class='username'>"+o((l(n,"format-username")||t&&l(t,"format-username")||a).call(s,"item.username",{name:"format-username",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:23,column:35},end:{line:23,column:68}}}))+"</span>\n          </a>\n        </li>\n"},9:function(e,t,n,r,i){var s=null!=t?t:e.nullContext||{},o=e.escapeExpression,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'        <li>\n          <a href title="'+o(a(n,"get").call(s,"item.full_name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:30,column:25},end:{line:30,column:43}}}))+'">\n            '+o((a(n,"d-icon")||t&&a(t,"d-icon")||e.hooks.helperMissing).call(s,"users",{name:"d-icon",hash:{},hashTypes:{},hashContexts:{},types:["StringLiteral"],contexts:[t],data:i,loc:{start:{line:31,column:12},end:{line:31,column:30}}}))+"\n            <span class='username'>"+o(a(n,"get").call(s,"item.name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:32,column:35},end:{line:32,column:48}}}))+"</span>\n            <span class='name'>"+o(a(n,"get").call(s,"item.full_name",{name:"get",hash:{},hashTypes:{},hashContexts:{},types:["PathExpression"],contexts:[t],data:i,loc:{start:{line:33,column:31},end:{line:33,column:49}}}))+"</span>\n          </a>\n        </li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var s;return"<div class='autocomplete ac-user'>\n  <ul>\n"+(null!=(s=(e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]})(n,"each").call(null!=t?t:e.nullContext||{},"item","in","options",{name:"each",hash:{},hashTypes:{},hashContexts:{},fn:e.program(1,i,0),inverse:e.noop,types:["PathExpression","CommentStatement","PathExpression"],contexts:[t,t,t],data:i,loc:{start:{line:3,column:4},end:{line:37,column:13}}}))?s:"")+"  </ul>\n</div>\n"},useData:!0});(0,i.addRawTemplate)("user-selector-autocomplete",s,{core:!0});const o=s},73681:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(57555),l=n(82099);const c=o().extend((r={topicsActive(){return"topics"===this.current},repliesActive(){return"replies"===this.current},allActive(){return!this.topicsActive&&!this.repliesActive},repliesButtonLabel(){return this.newRepliesCount>0?l.default.t("filters.new.replies_with_count",{count:this.newRepliesCount}):l.default.t("filters.new.replies")},topicsButtonLabel(){return this.newTopicsCount>0?l.default.t("filters.new.topics_with_count",{count:this.newTopicsCount}):l.default.t("filters.new.topics")},staticLabel(){return this.noStaticLabel||this.newTopicsCount>0&&this.newRepliesCount>0?null:this.newTopicsCount>0?this.topicsButtonLabel:this.repliesButtonLabel}},(0,i.Z)(r,"topicsActive",[a.default],Object.getOwnPropertyDescriptor(r,"topicsActive"),r),(0,i.Z)(r,"repliesActive",[a.default],Object.getOwnPropertyDescriptor(r,"repliesActive"),r),(0,i.Z)(r,"allActive",[a.default],Object.getOwnPropertyDescriptor(r,"allActive"),r),(0,i.Z)(r,"repliesButtonLabel",[a.default],Object.getOwnPropertyDescriptor(r,"repliesButtonLabel"),r),(0,i.Z)(r,"topicsButtonLabel",[a.default],Object.getOwnPropertyDescriptor(r,"topicsButtonLabel"),r),(0,i.Z)(r,"staticLabel",[a.default],Object.getOwnPropertyDescriptor(r,"staticLabel"),r),r))},99043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(6264),l=n(57555),c=n(82099);const u=o().extend((r={showBadges:(0,a.and)("postBadgesEnabled","topic.unread_posts"),newDotText(){return this.currentUser&&this.currentUser.trust_level>0?"":c.default.t("filters.new.lower_title")}},(0,i.Z)(r,"newDotText",[l.default],Object.getOwnPropertyDescriptor(r,"newDotText"),r),r))},63431:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o,a,l=n(54001),c=n(48163),u=n.n(c),d=n(57555),p=n(82099);const h=u().extend((r=(0,d.default)("topic.like_count","topic.posts_count"),i=(0,d.default)("topic.replyCount","ratioText"),s=(0,d.default)("ratio"),o=(0,d.default)("ratioText"),a={tagName:"td",ratio(e,t){const n=parseFloat(e),r=parseFloat(t);return r<10?0:(n||0)/r},title:(e,t)=>p.default.messageFormat("posts_likes_MF",{count:e,ratio:t}).trim(),ratioText(e){const t=this.siteSettings;return e>t.topic_post_like_heat_high?"high":e>t.topic_post_like_heat_medium?"med":e>t.topic_post_like_heat_low?"low":""},likesHeat(e){if(e&&e.length)return`heatmap-${e}`}},(0,l.Z)(a,"ratio",[r],Object.getOwnPropertyDescriptor(a,"ratio"),a),(0,l.Z)(a,"title",[i],Object.getOwnPropertyDescriptor(a,"title"),a),(0,l.Z)(a,"ratioText",[s],Object.getOwnPropertyDescriptor(a,"ratioText"),a),(0,l.Z)(a,"likesHeat",[o],Object.getOwnPropertyDescriptor(a,"likesHeat"),a),a))},41106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(57555);const l=o().extend((r={isLastVisited(){return this.lastVisitedTopic===this.topic}},(0,i.Z)(r,"isLastVisited",[a.default],Object.getOwnPropertyDescriptor(r,"isLastVisited"),r),r))},76480:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(48163),i=n.n(r),s=n(20840),o=n(68781),a=n(8620),l=n(31691),c=n(91138),u=n.n(c);const d=class extends(i()){get selectedCount(){return this.bulkSelectHelper.selected.length}get html(){return(0,s.default)(this,"div.bulk-select-topics-dropdown",(0,l.setComponentTemplate)((0,a.createTemplateFactory)({id:"kNtaOrVm",block:'[[[1,"\\n        "],[10,1],[12],[1,[30,1,["selectedCount"]]],[1," selected"],[13],[1,"\\n        "],[8,[32,0],null,[["@bulkSelectHelper"],[[30,1,["bulkSelectHelper"]]]],null],[1,"\\n      "]],["@data"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/raw-views/topic-bulk-select-dropdown.js",scope:()=>[o.default],isStrictMode:!0}),u()()),{bulkSelectHelper:this.bulkSelectHelper,selectedCount:this.selectedCount})}}},96857:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(48163),o=n.n(s),a=n(6264),l=n(57555),c=n(82099);const u=o().extend((r={sortable:null,ariaPressed:(0,a.and)("sortable","isSorting"),localizedName(){return this.forceName?this.forceName:this.name?c.default.t(this.name):""},sortIcon(){return"chevron-"+(this.parent.ascending||this.parent.context?.ascending?"up":"down")},isSorting(){return this.sortable&&(this.parent.order===this.order||this.parent.context?.order===this.order)},className(){const e=[];return this.order&&e.push(this.order),this.sortable&&(e.push("sortable"),this.isSorting&&e.push("sorting")),this.number&&e.push("num"),e.join(" ")},ariaSort(){return!!this.isSorting&&(this.parent.ascending?"ascending":"descending")}},(0,i.Z)(r,"localizedName",[l.default],Object.getOwnPropertyDescriptor(r,"localizedName"),r),(0,i.Z)(r,"sortIcon",[l.default],Object.getOwnPropertyDescriptor(r,"sortIcon"),r),(0,i.Z)(r,"isSorting",[l.default],Object.getOwnPropertyDescriptor(r,"isSorting"),r),(0,i.Z)(r,"className",[l.default],Object.getOwnPropertyDescriptor(r,"className"),r),(0,i.Z)(r,"ariaSort",[l.default],Object.getOwnPropertyDescriptor(r,"ariaSort"),r),r))},77452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(54001),o=n(48163),a=n.n(o),l=n(57555),c=n(82099);const u=a().extend((r=(0,l.default)("defaultIcon"),i={showDefault:null,renderDiv(e){return(e||this.statuses.length>0)&&!this.noDiv},statuses(){const e=this.topic,t=[];if(e.get("is_warning")&&t.push({icon:"envelope",key:"warning"}),e.get("bookmarked")){const n=e.get("bookmarked_post_numbers");let r=e.get("url"),i="";n&&n[0]>1?r+="/"+n[0]:i="op-bookmark",t.push({extraClasses:i,icon:"bookmark",key:"bookmarked",href:r})}e.get("closed")&&e.get("archived")?t.push({icon:"lock",key:"locked_and_archived"}):e.get("closed")?t.push({icon:"lock",key:"locked"}):e.get("archived")&&t.push({icon:"lock",key:"archived"}),e.get("pinned")&&t.push({icon:"thumbtack",key:"pinned"}),e.get("unpinned")&&t.push({icon:"thumbtack",key:"unpinned"}),e.get("invisible")&&t.push({icon:"far-eye-slash",key:"unlisted"}),this.showPrivateMessageIcon&&e.isPrivateMessage&&!e.is_warning&&t.push({icon:"envelope",key:"personal_message"}),t.forEach((e=>{e.title=c.default.t(`topic_statuses.${e.key}.help`),!this.currentUser||"pinned"!==e.key&&"unpinned"!==e.key?(e.openTag="span",e.closeTag="span"):(e.openTag="a href",e.closeTag="a")}));let n=this.defaultIcon;return 0===t.length&&n&&this.set("showDefault",n),t}},(0,s.Z)(i,"renderDiv",[r],Object.getOwnPropertyDescriptor(i,"renderDiv"),i),(0,s.Z)(i,"statuses",[l.default],Object.getOwnPropertyDescriptor(i,"statuses"),i),i))},37696:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3055),i=n(74570),s=n(82099);const o=i.default.extend({model(){return(0,r.ajax)("/about.json").then((e=>{let t=[],n=[];const r=moment().locale("en").utc().subtract(1,"year");e.about.admins.forEach((e=>{moment(e.last_seen_at)>r&&t.push(e)})),e.about.moderators.forEach((e=>{moment(e.last_seen_at)>r&&n.push(e)})),e.about.admins=t,e.about.moderators=n;const{category_moderators:i}=e.about;return i&&i.length&&i.forEach(((t,n)=>{const r=this.site.categories.findBy("id",t.category_id);e.about.category_moderators[n].category=r})),e.about}))},titleToken:()=>s.default.t("about.simple_title")})},41465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(69828);const i=n.n(r)().extend({setupController(e){const t=this.controllerFor("account-created").get("accountCreated");e.set("accountCreated",t),e.set("newEmail",t.email)}})},36952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(69828);const i=n.n(r)().extend({setupController(e){e.set("accountCreated",this.controllerFor("account-created").get("accountCreated"))}})},35635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(69828);const i=n.n(r)().extend({setupController(e){e.set("email",this.controllerFor("account-created").get("accountCreated.email"))}})},36710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(13369),i=n(74570),s=n(82099);const o=i.default.extend({titleToken:()=>s.default.t("create_account.activation_title"),setupController(e){e.set("accountCreated",r.default.get("accountCreated"))}})},40926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(16572),i=n(19990);function s(){this.route("exception"),this.route("exception-unknown",{path:"/404"}),this.route("about",{resetNamespace:!0}),this.route("post",{path:"/p/:id"}),this.route("topic",{path:"/t/:slug/:id",resetNamespace:!0},(function(){this.route("fromParams",{path:"/"}),this.route("fromParamsNear",{path:"/:nearPost"})})),this.route("topicBySlugOrId",{path:"/t/:slug_or_id",resetNamespace:!0}),this.route("newCategory",{path:"/new-category"}),this.route("editCategory",{path:"/c/*slug/edit"},(function(){this.route("tabs",{path:"/:tab"})})),this.route("discovery",{path:"/",resetNamespace:!0},(function(){i.default.currentProp("periods").forEach((e=>{const t="top"+(0,r.capitalize)(e);this.route(t,{path:"/top/"+e}),this.route(t+"CategoryNone",{path:"/c/*category_slug_path_with_id/none/l/top/"+e}),this.route(t+"Category",{path:"/c/*category_slug_path_with_id/l/top/"+e})})),i.default.currentProp("filters").forEach((e=>{this.route(e,{path:"/"+e}),this.route(e+"CategoryNone",{path:"/c/*category_slug_path_with_id/none/l/"+e}),this.route(e+"Category",{path:"/c/*category_slug_path_with_id/l/"+e})})),this.route("filter"),this.route("categories"),this.route("categoryNone",{path:"/c/*category_slug_path_with_id/none"}),this.route("categoryAll",{path:"/c/*category_slug_path_with_id/all"}),this.route("category",{path:"/c/*category_slug_path_with_id"})})),this.route("groups",{resetNamespace:!0,path:"/g"},(function(){this.route("new",{path:"custom/new"})})),this.route("group",{path:"/g/:name",resetNamespace:!0},(function(){this.route("members"),this.route("requests"),this.route("activity",(function(){this.route("posts"),this.route("topics"),this.route("mentions")})),this.route("manage",(function(){this.route("profile"),this.route("membership"),this.route("interaction"),this.route("email"),this.route("members"),this.route("categories"),this.route("tags"),this.route("logs")})),this.route("messages",(function(){this.route("inbox"),this.route("archive")})),this.route("permissions")})),this.route("users",{resetNamespace:!0,path:"/u"}),this.route("password-reset",{path:"/u/password-reset/:token"}),this.route("account-created",{path:"/u/account-created"},(function(){this.route("resent"),this.route("edit-email")})),this.route("confirm-new-email",{path:"/u/confirm-new-email/:token"}),this.route("confirm-old-email",{path:"/u/confirm-old-email/:token"}),this.route("user",{path:"/u/:username",resetNamespace:!0},(function(){this.route("profile-hidden"),this.route("summary"),this.route("userActivity",{path:"/activity",resetNamespace:!0},(function(){this.route("topics"),this.route("replies"),this.route("likesGiven",{path:"likes-given"}),this.route("bookmarks"),this.route("bookmarksWithReminders",{path:"bookmarks-with-reminders"}),this.route("pending"),this.route("drafts"),this.route("read")})),this.route("userNotifications",{path:"/notifications",resetNamespace:!0},(function(){this.route("responses"),this.route("likesReceived",{path:"likes-received"}),this.route("mentions"),this.route("edits")})),this.route("badges"),this.route("deletedPosts",{path:"/deleted-posts"}),this.route("userPrivateMessages",{path:"/messages",resetNamespace:!0},(function(){this.route("user",{path:"/"},(function(){this.route("new"),this.route("unread"),this.route("archive"),this.route("sent"),this.route("warnings")})),this.route("group",{path:"group/:name"},(function(){this.route("archive"),this.route("new"),this.route("unread")})),this.route("tags",(function(){this.route("show",{path:":id"})}))})),this.route("preferences",{resetNamespace:!0},(function(){this.route("account"),this.route("security"),this.route("profile"),this.route("emails"),this.route("notifications"),this.route("tracking"),this.route("categories"),this.route("users"),this.route("tags"),this.route("interface"),this.route("apps"),this.route("navigation-menu"),this.route("email"),this.route("second-factor")})),this.route("userInvited",{path:"/invited",resetNamespace:!0},(function(){this.route("show",{path:"/:filter"})}))})),this.route("review",(function(){this.route("show",{path:"/:reviewable_id"}),this.route("topics"),this.route("settings")})),this.route("signup"),this.route("login"),this.route("email-login",{path:"/session/email-login/:token"}),this.route("second-factor-auth",{path:"/session/2fa"}),this.route("associate-account",{path:"/associate/:token"}),this.route("login-preferences"),this.route("forgot-password",{path:"/password-reset"}),this.route("faq"),this.route("guidelines"),this.route("conduct"),this.route("rules"),this.route("tos"),this.route("privacy"),this.route("new-topic"),this.route("new-message"),this.route("badges",{resetNamespace:!0},(function(){this.route("show",{path:"/:id/:slug"})})),this.route("full-page-search",{path:"/search"}),this.route("tag",{resetNamespace:!0},(function(){this.route("show",{path:"/:tag_id"}),i.default.currentProp("filters").forEach((e=>{this.route("show"+(0,r.capitalize)(e),{path:"/:tag_id/l/"+e})}))})),this.route("tags",{resetNamespace:!0},(function(){this.route("showCategory",{path:"/c/*category_slug_path_with_id/:tag_id"}),this.route("showCategoryAll",{path:"/c/*category_slug_path_with_id/all/:tag_id"}),this.route("showCategoryNone",{path:"/c/*category_slug_path_with_id/none/:tag_id"}),i.default.currentProp("filters").forEach((e=>{this.route("showCategory"+(0,r.capitalize)(e),{path:"/c/*category_slug_path_with_id/:tag_id/l/"+e}),this.route("showCategoryAll"+(0,r.capitalize)(e),{path:"/c/*category_slug_path_with_id/all/:tag_id/l/"+e}),this.route("showCategoryNone"+(0,r.capitalize)(e),{path:"/c/*category_slug_path_with_id/none/:tag_id/l/"+e})})),this.route("intersection",{path:"intersection/:tag_id/*additional_tags"}),this.route("legacyRedirect",{path:"/:tag_id"})})),this.route("tagGroups",{path:"/tag_groups",resetNamespace:!0},(function(){this.route("edit",{path:"/:id"}),this.route("new")})),this.route("invites",{resetNamespace:!0},(function(){this.route("show",{path:"/:token"})})),this.route("wizard",(function(){this.route("step",{path:"/steps/:step_id"})}))}},15269:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var r,i=n(54001),s=n(48163),o=n(17579),a=n(19608),l=n(99594),c=n(74229),u=n(23392),d=n(63319),p=n(59469),h=n(28560),m=n(93594),g=n(72393),f=n(20229),b=n(56746),_=n(21859),y=n(34287),w=n(74570),v=n(54736),k=n(37080),x=n(47582),T=n(82099),S=n(43658);function C(e,t){return function(){this.site.isReadOnly&&!this.site.isStaffWritesOnly?this.dialog.alert(t):this[e]()}}const P=w.default.extend((r={siteTitle:(0,d.setting)("title"),shortSiteDescription:(0,d.setting)("short_site_description"),clientErrorHandler:(0,o.inject)(),composer:(0,o.inject)(),currentUser:(0,o.inject)(),dialog:(0,o.inject)(),documentTitle:(0,o.inject)(),historyStore:(0,o.inject)(),loadingSlider:(0,o.inject)(),login:(0,o.inject)(),modal:(0,o.inject)(),router:(0,o.inject)(),site:(0,o.inject)(),siteSettings:(0,o.inject)(),get isOnlyOneExternalLoginMethod(){return!this.siteSettings.enable_local_logins&&1===this.externalLoginMethods.length},get externalLoginMethods(){return(0,y.findAll)()},loading(e){return this.loadingSlider.transitionStarted(),e.finally((()=>{this.loadingSlider.transitionEnded()})),!1},willResolveModel(e){return this.historyStore.willResolveModel(e),!0},actions:{toggleMobileView(){m.default.toggleMobileView()},toggleSidebar(){this.controllerFor("application").send("toggleSidebar")},logout:C("_handleLogout",T.default.t("read_only_mode.logout_disabled")),_collectTitleTokens(e){e.push(this.siteTitle),window.location.pathname!==(0,x.default)("/")&&window.location.pathname!==(0,x.default)("/login")||""===this.shortSiteDescription||e.push(this.shortSiteDescription),this.documentTitle.setTitle(e.join(" - "))},composePrivateMessage(e,t){const n=e?e.get("username"):"",r=t?`${window.location.protocol}//${window.location.host}${t.url}`:null,i=t?T.default.t("composer.reference_topic_title",{title:t.topic.title}):null;return this.composer.open({action:_.default.PRIVATE_MESSAGE,recipients:n,archetypeId:"private_message",draftKey:_.default.NEW_PRIVATE_MESSAGE_KEY,draftSequence:0,reply:r,title:i})},error(e,t){const n=e.jqXHR?e.jqXHR:e,r=this.controllerFor("exception"),i=(0,g.default)(e);return console.error(...[(0,g.consolePrefix)(e,i),n].filter(Boolean)),n&&404===n.status?this.router.transitionTo("exception-unknown"):(i&&this.clientErrorHandler.displayErrorNotice("Error loading route",i),r.setProperties({lastTransition:t,thrown:n}),this.intermediateTransitionTo("exception"),!0)},showLogin:C("handleShowLogin",T.default.t("read_only_mode.login_disabled")),showCreateAccount(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.site.isReadOnly?this.dialog.alert(T.default.t("read_only_mode.login_disabled")):this.handleShowCreateAccount(e)},showForgotPassword(){this.modal.show(l.default)},showNotActivated(e){this.modal.show(S.default,{model:e})},showUploadSelector(){document.getElementById("file-uploader").click()},showKeyboardShortcutsHelp(){this.modal.show(c.default)},closeModal(e){return this.modal.close(e)},hideModal(){return this.modal.hide()},reopenModal(){return this.modal.reopen()},editCategory(e){f.default.routeTo(`/c/${b.default.slugFor(e)}/edit`)},checkEmail(e){e.checkEmail()},createNewTopicViaParams(e,t,n,r){(0,v.default)("createNewTopicViaParam on the application route is deprecated. Use the composer service instead",{id:"discourse.createNewTopicViaParams"}),(0,k.getOwnerWithFallback)(this).lookup("service:composer").openNewTopic({title:e,body:t,categoryId:n,tags:r})},createNewMessageViaParams(){let{recipients:e="",topicTitle:t="",topicBody:n="",hasGroups:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)("createNewMessageViaParams on the application route is deprecated. Use the composer service instead",{id:"discourse.createNewMessageViaParams"}),(0,k.getOwnerWithFallback)(this).lookup("service:composer").openNewMessage({recipients:e,title:t,body:n,hasGroups:r})}},handleShowLogin(){if(this.siteSettings.enable_discourse_connect){const e=(0,p.default)("destination_url")?(0,x.default)("/"):encodeURIComponent(window.location.pathname);window.location=(0,x.default)("/session/sso?return_path="+e)}else this.isOnlyOneExternalLoginMethod?this.login.externalLogin(this.externalLoginMethods[0]):this.modal.show(u.default,{model:{showNotActivated:e=>this.send("showNotActivated",e),showCreateAccount:e=>this.send("showCreateAccount",e),canSignUp:this.controller.canSignUp}})},handleShowCreateAccount(e){if(this.siteSettings.enable_discourse_connect){const e=encodeURIComponent(window.location.pathname);window.location=(0,x.default)("/session/sso?return_path="+e)}else this.isOnlyOneExternalLoginMethod?this.login.externalLogin(this.externalLoginMethods[0],{signup:!0}):this.modal.show(a.default,{model:e})},_handleLogout(){this.currentUser&&this.currentUser.destroySession().then((e=>(0,h.default)({redirect:e.redirect_url})))}},(0,i.Z)(r,"loading",[s.action],Object.getOwnPropertyDescriptor(r,"loading"),r),(0,i.Z)(r,"willResolveModel",[s.action],Object.getOwnPropertyDescriptor(r,"willResolveModel"),r),r))},59232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i=n(54001),s=n(48163),o=n(51372),a=n(17579),l=n(16655),c=n(3055),u=n(38864),d=n(59469);const p=n(74570).default.extend((r={router:(0,a.inject)(),currentUser:(0,a.inject)(),modal:(0,a.inject)(),beforeModel(e){if(!this.currentUser)return(0,d.default)("destination_url",e.intent.url),this.router.replaceWith("login");const t=this.paramsFor("associate-account");this.redirectToAccount(t)},async redirectToAccount(e){await this.router.replaceWith("preferences.account",this.currentUser).followRedirects(),(0,o.next)((()=>this.showAssociateAccount(e)))},async showAssociateAccount(e){try{const t=await(0,c.ajax)(`/associate/${encodeURIComponent(e.token)}.json`);this.modal.show(l.default,{model:t})}catch(e){(0,u.popupAjaxError)(e)}}},(0,i.Z)(r,"redirectToAccount",[s.action],Object.getOwnPropertyDescriptor(r,"redirectToAccount"),r),(0,i.Z)(r,"showAssociateAccount",[s.action],Object.getOwnPropertyDescriptor(r,"showAssociateAccount"),r),r))},21722:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(13369),i=n(47774),s=n(74570),o=n(82099);const a=s.default.extend({model:()=>r.default.get("badges")?r.default.getAndRemove("badges").then((e=>i.default.createFromJson(e))):i.default.findAll({onlyListable:!0}),titleToken:()=>o.default.t("badges.title")})},1166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(10425),i=n(13369),s=n(47774),o=n(6566);const a=n(74570).default.extend({queryParams:{username:{refreshModel:!0}},serialize:e=>e.getProperties("id","slug"),model:e=>i.default.get("badge")?i.default.getAndRemove("badge").then((e=>s.default.createFromJson(e))):s.default.findById(e.id),afterModel(e,t){const n=t.to.queryParams&&t.to.queryParams.username,i=o.default.findByBadgeId(e.get("id"),{username:n}).then((e=>{this.userBadgesGrant=e})),s=this.currentUser&&this.currentUser.username_lower,a={userBadgesGrant:i,userBadgesAll:o.default.findByUsername(s).then((e=>{this.userBadgesAll=e}))};return(0,r.hash)(a)},titleToken(){const e=this.modelFor("badges.show");if(e)return e.get("name")},setupController(e,t){e.set("model",t),e.set("userBadges",this.userBadgesGrant),e.set("userBadgesAll",this.userBadgesAll)}})},90041:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r,i,s,o,a,l,c,u,d,p,h=n(94664),m=n(49246),g=n(54001),f=n(48163),b=n(17579),_=n(48541),y=n(46646),w=n(13369),v=n(5002),k=n(56746),x=n(61917),T=n(11152),S=n(69999),C=n(74570),P=n(82099);let O=(r=(0,b.inject)("search"),(0,y.disableImplicitInjections)((s=class extends C.default{constructor(){super(...arguments),(0,h.Z)(this,"composer",o,this),(0,h.Z)(this,"router",a,this),(0,h.Z)(this,"site",l,this),(0,h.Z)(this,"store",c,this),(0,h.Z)(this,"topicTrackingState",u,this),(0,h.Z)(this,"searchService",d,this),(0,h.Z)(this,"historyStore",p,this),(0,m.Z)(this,"queryParams",_.queryParams),(0,m.Z)(this,"templateName","discovery/list"),(0,m.Z)(this,"controllerName","discovery/list")}async model(e,t){const n=this.site.lazy_load_categories?await k.default.asyncFindBySlugPathWithID(e.category_slug_path_with_id):k.default.findBySlugPathWithID(e.category_slug_path_with_id);if(!n)return void this.router.replaceWith("/404");if(void 0===this.routeConfig?.no_subcategories&&"none"===n.default_list_filter&&"default"===this.routeConfig?.filter&&e)return w.default.getAndRemove("topic_list"),void this.router.replaceWith("discovery.categoryNone",e.category_slug_path_with_id);const r=this._createSubcategoryList(n),i=this._retrieveTopicList(n,t,e),s=!!this.routeConfig?.no_subcategories,o=this.filter(n).split("/")[0];return{category:n,modelParams:e,subcategoryList:await r,list:await i,noSubcategories:s,filterType:o}}filter(e){return"default"===this.routeConfig?.filter?e.get("default_view")||"latest":this.routeConfig?.filter}async _createSubcategoryList(e){if(e.isParent&&e.show_subcategory_list)return x.default.listForParent(this.store,e)}async _retrieveTopicList(e,t,n){const r=(0,S.filterQueryParams)(n,this.routeConfig),i={cached:this.historyStore.isPoppedState};let s=`c/${k.default.slugFor(e)}/${e.id}`;r.no_subcategories&&(s+="/none"),s+=`/l/${this.filter(e)}`;const o=await(0,S.findTopicList)(this.store,this.topicTrackingState,s,r,i);return T.default.hideUniformCategory(o,e),o}titleToken(){const e=this.currentModel.category,t=P.default.t("filters."+this.filter(e).replace("/",".")+".title");let n=e.name;return e.parent_category_id&&(n=`${k.default.list().findBy("id",e.parent_category_id).name}/${n}`),P.default.t("filters.with_category",{filter:t,category:n})}setupController(e,t){super.setupController(...arguments),e.bulkSelectHelper.clear(),this.searchService.searchContext=t.category.get("searchContext"),(0,v.setTopicList)(t.list);const n=t.category.params;void 0!==n?.order&&(e.order=n.order),void 0!==n?.ascending&&(e.ascending=n.ascending)}deactivate(){super.deactivate(...arguments),this.composer.set("prioritizedCategoryId",null),this.searchService.searchContext=null}setNotification(e){this.currentModel.setNotification(e)}triggerRefresh(){this.refresh()}resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_.resetParams.call(this,e)}},o=(0,g.Z)(s.prototype,"composer",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,g.Z)(s.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,g.Z)(s.prototype,"site",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,g.Z)(s.prototype,"store",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,g.Z)(s.prototype,"topicTrackingState",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,g.Z)(s.prototype,"searchService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,g.Z)(s.prototype,"historyStore",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,g.Z)(s.prototype,"setNotification",[f.action],Object.getOwnPropertyDescriptor(s.prototype,"setNotification"),s.prototype),(0,g.Z)(s.prototype,"triggerRefresh",[f.action],Object.getOwnPropertyDescriptor(s.prototype,"triggerRefresh"),s.prototype),(0,g.Z)(s.prototype,"resetParams",[f.action],Object.getOwnPropertyDescriptor(s.prototype,"resetParams"),s.prototype),i=s))||i);function E(e){return class extends O{constructor(){super(...arguments),(0,m.Z)(this,"routeConfig",e)}}}},58751:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(80846),i=n(82099);const s=e=>r.default.extend({titleToken:()=>i.default.t(`user.messages.${e}`),model(){const e=this.modelFor("group").get("name");let t=`topics/private-messages-group/${this.currentUser.get("username_lower")}/${e}`;return this._isArchive()&&(t=`${t}/archive`),this.store.findFiltered("topicList",{filter:t}).then((e=>(e.set("emptyState",this.emptyState()),e)))},setupController(){this._super.apply(this,arguments);let e=`/private-messages/group/${this.modelFor("group").get("name")}`;this._isArchive()&&(e=`${e}/archive`),this.controllerFor("user-topics-list").subscribe(e),this.controllerFor("user-topics-list").setProperties({hideCategory:!0,showPosters:!0}),this.searchService.searchContext={type:"private_messages",id:this.currentUser.get("username_lower"),user:this.currentUser}},emptyState:()=>({title:i.default.t("no_group_messages_title"),body:""}),_isArchive:()=>"archive"===e,deactivate(){this.searchService.searchContext=null}})},76030:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(16572),i=n(72247),s=n(62617),o=n(27397),a=n(82099);const l=(e,t)=>(0,o.default)(e,"private-messages-groups",t).extend({groupName:null,titleToken(){const e=this.groupName;if(e){let n=(0,r.capitalize)(e);return"inbox"!==t&&(n=`${n} ${a.default.t("user.messages."+t)}`),[n,a.default.t("user.private_messages")]}},model(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=`topics/private-messages-group/${this.modelFor("user").get("username_lower")}/${this.modelFor("userPrivateMessages.group").name}`;"inbox"!==t&&(n=`${n}/${t}`);return(0,i.findOrResetCachedTopicList)(this.session,n)||(e=(0,s.cleanNullQueryParams)(e),this.store.findFiltered("topicList",{filter:n,params:e}).then((e=>(e.set("emptyState",this.emptyState()),e))))},afterModel(e){const n=e.get("filter").split("/");let r;r="inbox"!==t?n[n.length-2]:n.pop();const i=this.modelFor("userPrivateMessages.group");this.setProperties({groupName:r,group:i})},setupController(){this._super.apply(this,arguments);const e=this.controllerFor("user-topics-list");e.set("group",this.group),e.set("pmTopicTrackingState.activeGroup",this.group),this.controllerFor("user-private-messages").set("group",this.group)},emptyState:()=>({title:a.default.t("user.no_messages_title"),body:""}),dismissReadOptions(){return{group_name:this.get("groupName")}}})},27397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ARCHIVE_FILTER:()=>f,INBOX_FILTER:()=>g,NEW_FILTER:()=>h,UNREAD_FILTER:()=>m,default:()=>b});var r=n(54001),i=n(48163),s=n(24434),o=n(72247),a=n(62617),l=n(2437),c=n(80846),u=n(47582),d=n(3961),p=n(82099);const h="new",m="unread",g="inbox",f="archive",b=(e,t,n)=>{var h;return c.default.extend((h={userActionType:l.default.TYPES.messages_received,titleToken:()=>[p.default.t(`user.messages.${n}`),p.default.t("user.private_messages")],model(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n="topics/"+t+"/"+this.modelFor("user").get("username_lower");return(0,o.findOrResetCachedTopicList)(this.session,n)||(e=(0,a.cleanNullQueryParams)(e),this.store.findFiltered("topicList",{filter:n,params:e}).then((e=>(e.set("emptyState",this.emptyState()),e))))},setupController(){this._super.apply(this,arguments);const t=this.controllerFor("user-private-messages"),r=this.controllerFor("user-topics-list");r.setProperties({hideCategory:!0,showPosters:!0,tagsForUser:this.modelFor("user").get("username_lower"),showToggleBulkSelect:!0,filter:n,group:null,inbox:e});let i=r.ascending;"true"===i?i=!0:"false"===i&&(i=!1),r.setProperties({ascending:i}),r.bulkSelectHelper.clear(),r.subscribe(),t.setProperties({archive:!1,group:null});const s={...this.controllerFor("user").get("model.searchContext"),type:"private_messages"};this.searchService.searchContext=s},emptyState:()=>({title:p.default.t("user.no_messages_title"),body:(0,s.htmlSafe)(p.default.t("user.no_messages_body",{aboutUrl:(0,u.default)("/about"),icon:(0,d.iconHTML)("envelope")}))}),deactivate(){this.controllerFor("user-topics-list").unsubscribe(),this.searchService.searchContext=this.controllerFor("user").get("model.searchContext")},dismissReadOptions:()=>({}),dismissReadTopics(t){const n=t?"topics":"posts";this.controllerFor("user-topics-list").send("dismissRead",n,{private_message_inbox:e,...this.dismissReadOptions()})}},(0,r.Z)(h,"dismissReadTopics",[i.action],Object.getOwnPropertyDescriptor(h,"dismissReadTopics"),h),h))}},69999:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O,filterQueryParams:()=>S,findTopicList:()=>C});var r,i,s,o,a,l,c,u=n(94664),d=n(49246),p=n(54001),h=n(48163),m=n(17579),g=n(33217),f=n(48541),b=n(46646),_=n(5002),y=n(62617),w=n(31311),v=n(19990),k=n(74570),x=n(12757),T=n(82099);function S(e,t){const n={...t||{}};return e&&Object.keys(f.queryParams).forEach((function(t){(0,g.isEmpty)(e[t])||(n[t]=e[t])})),n}async function C(e,t,n,r){let i,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=w.default.current();if(s.cached){const e=o.get("topicList");e&&e.get("filter")===n&&(e.get("topics.length")||0)>e.get("per_page")&&(0,x.deepEqual)(e.get("listParams"),r)&&(e.set("loaded",!0),t?.updateTopics(e.get("topics")),i=e),o.set("topicList",null)}else o.setProperties({topicList:null});return i||(r||={},r=(0,y.cleanNullQueryParams)(r),i=await e.findFiltered("topicList",{filter:n,params:r})),i.set("listParams",r),t&&(t.sync(i,i.filter,r),t.trackIncoming(i.filter)),w.default.currentProp("topicList",i),i.topic_list?.top_tags&&(i.filter.startsWith("c/")||i.filter.startsWith("tags/c/")?v.default.currentProp("category_top_tags",i.topic_list.top_tags):v.default.currentProp("top_tags",i.topic_list.top_tags)),i}let P=(0,b.disableImplicitInjections)((i=class extends k.default{constructor(){super(...arguments),(0,u.Z)(this,"screenTrack",s,this),(0,u.Z)(this,"store",o,this),(0,u.Z)(this,"topicTrackingState",a,this),(0,u.Z)(this,"currentUser",l,this),(0,u.Z)(this,"historyStore",c,this),(0,d.Z)(this,"queryParams",f.queryParams),(0,d.Z)(this,"templateName","discovery/list"),(0,d.Z)(this,"controllerName","discovery/list")}async model(e){this.screenTrack.stop();const t=S(e),n={cached:this.historyStore.isPoppedState},r=C(this.store,this.topicTrackingState,this.routeConfig.filter,t,n);return{list:await r,filterType:this.routeConfig.filter.split("/")[0]}}titleToken(){if(this.routeConfig.filter===(0,y.defaultHomepage)())return;const e=T.default.t("filters."+this.routeConfig.filter.replace("/",".")+".title");return T.default.t("filters.with_topics",{filter:e})}setupController(e,t){super.setupController(...arguments),e.bulkSelectHelper.clear(),(0,_.setTopicList)(t.list)}resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];f.resetParams.call(this,e)}willTransition(){return"top"===this.routeConfig.filter&&this.currentUser&&(this.currentUser.set("user_option.should_be_redirected_to_top",!1),this.currentUser.user_option?.redirected_to_top&&this.currentUser.set("user_option.redirected_to_top.reason",null)),super.willTransition(...arguments)}},s=(0,p.Z)(i.prototype,"screenTrack",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,p.Z)(i.prototype,"store",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,p.Z)(i.prototype,"topicTrackingState",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.Z)(i.prototype,"currentUser",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,p.Z)(i.prototype,"historyStore",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.Z)(i.prototype,"resetParams",[h.action],Object.getOwnPropertyDescriptor(i.prototype,"resetParams"),i.prototype),(0,p.Z)(i.prototype,"willTransition",[h.action],Object.getOwnPropertyDescriptor(i.prototype,"willTransition"),i.prototype),r=i))||r;function O(e){return class extends P{constructor(){super(...arguments),(0,d.Z)(this,"routeConfig",{filter:e})}}}},97989:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(66160);class s extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"pageId","conduct")}}},33313:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3055),i=n(74570),s=n(82099);class o extends i.default{titleToken(){return s.default.t("user.change_email.title")}model(e){return(0,r.ajax)(`/u/confirm-new-email/${e.token}.json`)}}},65020:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3055),i=n(74570),s=n(82099);class o extends i.default{titleToken(){return s.default.t("user.change_email.title")}model(e){return(0,r.ajax)(`/u/confirm-old-email/${e.token}.json`)}}},74570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(69828),i=n.n(r),s=n(51372),o=n(17579),a=n(3872),l=n(54736),c=n(37080);const u=i().extend({router:(0,o.inject)(),willTransition(){(0,a.seenUser)()},_refreshTitleOnce(){this.send("_collectTitleTokens",[])},actions:{_collectTitleTokens(e){if(this.titleToken){const t=this.titleToken();t&&t.length&&(t instanceof Array?t.forEach((function(t){e.push(t)})):e.push(t))}return!0},refreshTitle(){(0,s.once)(this,this._refreshTitleOnce)}},redirectIfLoginRequired(){this.controllerFor("application").get("loginRequired")&&this.router.replaceWith("login")},openTopicDraft(){if((0,l.default)("DiscourseRoute#openTopicDraft is deprecated. Inject the composer service and call openNewTopic instead",{id:"discourse.open-topic-draft"}),this.currentUser?.has_topic_draft)return(0,c.getOwnerWithFallback)(this).lookup("service:composer").openNewTopic({preferDraft:!0})},isCurrentUser(e){return!!this.currentUser&&e.id===this.currentUser.id}})},92355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r,i,s,o,a=n(94664),l=n(49246),c=n(54001),u=n(48163),d=n(17579),p=n(10425),h=n(3055),m=n(13369),g=n(62617),f=n(61917),b=n(11152),_=n(74570),y=n(82099);let w=(r=class extends _.default{constructor(){super(...arguments),(0,a.Z)(this,"modal",i,this),(0,a.Z)(this,"router",s,this),(0,a.Z)(this,"session",o,this),(0,l.Z)(this,"templateName","discovery/categories"),(0,l.Z)(this,"controllerName","discovery/categories")}findCategories(){let e=!this.site.mobileView&&this.siteSettings.desktop_category_page_style;return"categories_and_latest_topics"===e||"categories_and_latest_topics_created_date"===e?this._findCategoriesAndTopics("latest"):"categories_and_top_topics"===e?this._findCategoriesAndTopics("top"):(m.default.remove("topic_list"),f.default.list(this.store))}model(){return this.findCategories().then((e=>{const t=this.topicTrackingState;return t&&(t.sync(e,"categories"),t.trackIncoming("categories")),e}))}_loadBefore(e){const t=this.session;return function(n,r){this.topics.removeObjects(this.topics.filter((e=>n.includes(e.id))));const i=`/latest.json?topic_ids=${n.join(",")}`;return(0,h.ajax)({url:i,data:this.params}).then((n=>{const i=new Set;this.topics.forEach((e=>i.add(e.id)));let s=0;b.default.topicsFrom(e,n).forEach((e=>{i.has(e.id)||(e.set("highlight",!0),this.topics.insertAt(s,e),s++)})),r&&t.set("topicList",this)}))}}async _findCategoriesAndTopics(e){return(0,p.hash)({categoriesList:m.default.getAndRemove("categories_list"),topicsList:m.default.getAndRemove("topic_list")}).then((t=>t.categoriesList?.category_list&&t.topicsList?.topic_list?{...t.categoriesList,...t.topicsList}:(0,h.ajax)(`/categories_and_${e}`))).then((e=>(e.topic_list?.top_tags&&this.site.set("top_tags",e.topic_list.top_tags),f.default.create({store:this.store,categories:f.default.categoriesFrom(this.store,e),topics:b.default.topicsFrom(this.store,e),can_create_category:e.category_list.can_create_category,can_create_topic:e.category_list.can_create_topic,loadBefore:this._loadBefore(this.store)}))))}titleToken(){if("categories"!==(0,g.defaultHomepage)())return y.default.t("filters.categories.title")}setupController(e){e.setProperties({discovery:this.controllerFor("discovery")}),super.setupController(...arguments)}triggerRefresh(){this.refresh()}},i=(0,c.Z)(r.prototype,"modal",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.Z)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,c.Z)(r.prototype,"session",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.Z)(r.prototype,"triggerRefresh",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"triggerRefresh"),r.prototype),r)},9072:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(49246),i=n(74570),s=n(82099);class o extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"queryParams",{q:{replace:!0,refreshModel:!0}})}model(e){return this.store.findFiltered("topicList",{filter:"filter",params:{q:e.q}})}titleToken(){const e=s.default.t("filters.filter.title");return s.default.t("filters.with_topics",{filter:e})}}},14030:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o=n(94664),a=n(54001),l=n(17579),c=n(53574),u=n(46646),d=n(74570);let p=(0,u.disableImplicitInjections)((i=class extends d.default{constructor(){super(...arguments),(0,o.Z)(this,"router",s,this)}beforeModel(e){const t=e.intent.url,n=t?.split("?",2)[1];let r=(0,c.homepageDestination)();n&&(r+=`&${n}`),this.router.transitionTo(r)}},s=(0,a.Z)(i.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r},23653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s=n(94664),o=n(49246),a=n(54001),l=n(48163),c=n(17579),u=n(72247),d=n(7223),p=n(74570);let h=(r=class extends p.default{constructor(){super(...arguments),(0,s.Z)(this,"router",i,this),(0,o.Z)(this,"queryParams",{filter:{refreshModel:!0}})}redirect(){return this.redirectIfLoginRequired()}beforeModel(e){const t=e.intent.url;let n;if("/"!==t&&"/latest"!==t&&"/categories"!==t||e.targetName.includes("discovery.top")||!d.default.currentProp("user_option.should_be_redirected_to_top"))t&&(n=t.match(/top\/(.*)$/))&&this.site.periods.includes(n[1])&&this.router.replaceWith("discovery.top",{queryParams:{period:n[1]}});else{d.default.currentProp("user_option.should_be_redirected_to_top",!1);const e=d.default.currentProp("user_option.redirected_to_top.period")||"all";this.router.replaceWith("discovery.top",{queryParams:{period:e}})}}clearPin(e){e.clearPin()}refresh(){(0,u.resetCachedTopicList)(this.session),super.refresh()}triggerRefresh(){this.refresh()}},i=(0,a.Z)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(r.prototype,"clearPin",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"clearPin"),r.prototype),(0,a.Z)(r.prototype,"triggerRefresh",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"triggerRefresh"),r.prototype),r)},34011:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),afterModel(){const e=this.paramsFor("editCategory");this.router.replaceWith(`/c/${e.slug}/edit/general`)}})},75955:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({model(){return this.modelFor("editCategory")},setupController(e,t,n){this._super(...arguments);const r=this.paramsFor("editCategory");e.setProperties({parentParams:r,selectedTab:n.to.params.tab,showTooltip:!1})}})},4769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17579),i=n(56746),s=n(74570),o=n(82099);const a=s.default.extend({router:(0,r.inject)(),model(e){return i.default.reloadCategoryWithPermissions(e,this.store,this.site)},afterModel(e){e.can_edit||this.router.replaceWith("/404")},titleToken(){return o.default.t("category.edit_dialog_title",{categoryName:this.currentModel.name})}})},68332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3055),i=n(74570),s=n(82099);const o=i.default.extend({titleToken:()=>s.default.t("login.title"),model:e=>(0,r.ajax)(`/session/email-login/${e.token}.json`)})},51238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(87218).default.extend({templateName:"unknown"})},29271:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({serialize:()=>""})},66160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s=n(94664),o=n(49246),a=n(54001),l=n(17579),c=n(20229),u=n(43260),d=n(74570),p=n(82099);let h=(r=class extends d.default{constructor(){super(...arguments),(0,s.Z)(this,"siteSettings",i,this),(0,o.Z)(this,"pageId","faq"),(0,o.Z)(this,"templateName","faq")}activate(){super.activate(...arguments),c.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){"faq"===this.pageId&&this.siteSettings.faq_url&&(e.abort(),c.default.redirectTo(this.siteSettings.faq_url))}model(){return u.default.find(this.pageId)}titleToken(){return p.default.t(this.pageId)}},i=(0,a.Z)(r.prototype,"siteSettings",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},78417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(94664),a=n(54001),l=n(51372),c=n(17579),u=n(99594),d=n(62617),p=n(74570);let h=(r=class extends p.default{constructor(){super(...arguments),(0,o.Z)(this,"modal",i,this),(0,o.Z)(this,"router",s,this)}async beforeModel(){const{loginRequired:e}=this.controllerFor("application");await this.router.replaceWith(e?"login":`discovery.${(0,d.defaultHomepage)()}`),(0,l.next)((()=>this.modal.show(u.default)))}},i=(0,a.Z)(r.prototype,"modal",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,a.Z)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},37840:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i=n(54001),s=n(48163),o=n(3055),a=n(49216),l=n(13369),c=n(64519),u=n(62617),d=n(74570),p=n(82099);const h=d.default.extend((r={queryParams:{q:{},expanded:!1,context_id:{},context:{},skip_context:{}},category:null,titleToken(){return p.default.t("search.results_page",{term:(0,u.escapeExpression)(this.controllerFor("full-page-search").get("searchTerm"))})},model(e){const t=(0,a.getTransient)("lastSearch");let n={q:e.q};e.context_id&&!n.skip_context&&(n.search_context={type:e.context,id:e.context_id});const r=(0,c.getSearchKey)(n);return t&&t.data.searchKey===r?((0,a.setTransient)("lastSearch",{searchKey:r,model:t.data.model},5),t.data.model):l.default.getAndRemove("search",(()=>(0,c.isValidSearchTerm)(e.q,this.siteSettings)?(0,o.ajax)("/search",{data:n}):null)).then((async e=>{const t=e&&await(0,c.translateResults)(e)||{};return(0,a.setTransient)("lastSearch",{searchKey:r,model:t},5),t}))},didTransition(){return this.controllerFor("full-page-search")._afterTransition(),!0}},(0,i.Z)(r,"didTransition",[s.action],Object.getOwnPropertyDescriptor(r,"didTransition"),r),r))},38219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(69828),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),beforeModel(){this.modelFor("group").can_see_members?this.router.transitionTo("group.activity.posts"):this.router.transitionTo("group.activity.mentions")}})},51563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(40303).buildGroupPage)("mentions")},40303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildGroupPage:()=>a,default:()=>l});var r=n(54001),i=n(48163),s=n(74570),o=n(82099);function a(e){var t;return s.default.extend((t={type:e,templateName:"group-activity-posts",controllerName:"group-activity-posts",titleToken:()=>o.default.t(`groups.${e}`),model(t,n){let r=(0,i.get)(n.to,"queryParams.category_id");return this.modelFor("group").findPosts({type:e,categoryId:r})},setupController(t,n){let r=n.length<20;t.setProperties({model:n,type:e,canLoadMore:!r})},didTransition:()=>!0},(0,r.Z)(t,"didTransition",[i.action],Object.getOwnPropertyDescriptor(t,"didTransition"),t),t))}const l=a("posts")},18265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("groups.topics"),model(){return this.store.findFiltered("topicList",{filter:`topics/groups/${this.modelFor("group").get("name")}`})}})},3591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(54001),s=n(48163),o=n(17579),a=n(95573),l=n(48942),c=n(74570),u=n(82099);const d=c.default.extend((r={modal:(0,o.inject)(),titleToken:()=>u.default.t("groups.members.title"),model(e){return this._params=e,this.modelFor("group")},setupController(e,t){e.setProperties({model:t,filterInput:this._params.filter,showing:"members"}),e.reloadMembers(!0)},showAddMembersModal(){this.modal.show(l.default,{model:this.modelFor("group")})},showInviteModal(){const e=this.modelFor("group");this.modal.show(a.default,{model:{invite:{groupIds:[e.id]}}})},didTransition(){return this.controllerFor("group-index").set("filterInput",this._params.filter),!0}},(0,i.Z)(r,"showAddMembersModal",[s.action],Object.getOwnPropertyDescriptor(r,"showAddMembersModal"),r),(0,i.Z)(r,"showInviteModal",[s.action],Object.getOwnPropertyDescriptor(r,"showInviteModal"),r),(0,i.Z)(r,"didTransition",[s.action],Object.getOwnPropertyDescriptor(r,"didTransition"),r),r))},32791:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("groups.manage.categories.title")})},22378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),beforeModel(){if(!this.siteSettings.enable_smtp)return this.router.transitionTo("group.manage.profile")},titleToken:()=>s.default.t("groups.manage.email.title")})},56376:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),beforeModel(){this.router.transitionTo("group.manage.profile")}})},21474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("groups.manage.interaction.title")})},15164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(54001),s=n(48163),o=n(74570),a=n(82099);const l=o.default.extend((r={titleToken:()=>a.default.t("groups.manage.logs.title"),model(){return this.modelFor("group").findLogs()},setupController(e,t){this.controllerFor("group-manage-logs").setProperties({model:t})},willTransition(){this.controllerFor("group-manage-logs").reset()}},(0,i.Z)(r,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r,"willTransition"),r),r))},34695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),titleToken:()=>s.default.t("groups.manage.membership.title"),afterModel(e){e.get("automatic")&&this.router.replaceWith("group.manage.interaction",e)}})},13293:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("groups.manage.profile.title")})},24647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("groups.manage.tags.title")})},88437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),titleToken:()=>s.default.t("groups.manage.title"),model(){return this.modelFor("group")},afterModel(e){this.currentUser&&(this.modelFor("group").can_admin_group&&e.get("automatic")||this.currentUser.canManageGroup(e))||this.router.transitionTo("group.members",e)},setupController(e,t){this.controllerFor("group-manage").setProperties({model:t}),this.controllerFor("group").set("showing","manage")}})},65884:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),beforeModel(){this.router.transitionTo("group.index")}})},69902:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(58751).default)("archive")},21244:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(58751).default)("inbox")},54709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(69828),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),beforeModel(){this.router.transitionTo("group.messages.inbox")}})},37268:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(54001),s=n(48163),o=n(17579),a=n(74570),l=n(82099);const c=a.default.extend((r={router:(0,o.inject)(),titleToken:()=>l.default.t("groups.messages"),model(){return this.modelFor("group")},afterModel(e){e.get("is_group_user")||this.currentUser&&this.currentUser.admin||this.router.transitionTo("group.members",e)},triggerRefresh(){this.refresh()}},(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),r))},76140:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(17579),i=n(3055),s=n(12506),o=n(74570),a=n(82099);const l=o.default.extend({router:(0,r.inject)(),titleToken:()=>a.default.t("groups.permissions.title"),model(){let e=this.modelFor("group");return(0,i.ajax)(`/g/${e.name}/permissions`).then((e=>(e.forEach((e=>{e.description=(0,s.buildPermissionDescription)(e.permission_type)})),{permissions:e}))).catch((()=>{this.router.transitionTo("group.members",e)}))},setupController(e,t){this.controllerFor("group-permissions").setProperties({model:t}),this.controllerFor("group").set("showing","permissions")}})},7825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("groups.requests.title"),model(e){return this._params=e,this.modelFor("group")},setupController(e,t){this.controllerFor("group").set("showing","requests"),e.setProperties({model:t,filterInput:this._params.filter}),e.findRequesters(!0)}})},23136:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({titleToken(){return[this.modelFor("group").get("name")]},model(e){return this.store.find("group",e.name)},serialize:e=>({name:e.get("name").toLowerCase()}),setupController(e,t){e.set("model",t)}})},3139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(49246),i=n(74570),s=n(82099);class o extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"queryParams",{order:{refreshModel:!0,replace:!0},asc:{refreshModel:!0,replace:!0},filter:{refreshModel:!0},type:{refreshModel:!0,replace:!0},username:{refreshModel:!0}})}titleToken(){return s.default.t("groups.index.title")}model(e){return e}setupController(e,t){e.loadGroups(t)}}},97671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17579),i=n(5751),s=n(74570),o=n(82099);const a=s.default.extend({router:(0,r.inject)(),titleToken:()=>o.default.t("admin.groups.new.title"),model:()=>i.default.create({automatic:!1,visibility_level:0,can_admin_group:!0}),setupController(e,t){e.set("model",t)},afterModel(){this.get("currentUser.can_create_group")||this.router.transitionTo("groups")}})},60855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(66160);class s extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"pageId","guidelines")}}},22121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(13369),i=n(75637),s=n(74570),o=n(12757),a=n(82099);const l=s.default.extend(i.default,{titleToken:()=>a.default.t("invites.accept_title"),model:e=>r.default.get("invite_info")?r.default.getAndRemove("invite_info").then((t=>(0,o.deepMerge)(e,t))):{},activate(){this._super(...arguments),this.controllerFor("application").setProperties({showSiteHeader:!1})},deactivate(){this._super(...arguments),this.controllerFor("application").setProperties({showSiteHeader:!0})},setupController(e,t){this._super(...arguments),t.user_fields&&e.userFields.forEach((e=>{t.user_fields[e.field.id]&&(e.value=t.user_fields[e.field.id])}))}})},48611:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(94664),a=n(49246),l=n(54001),c=n(51372),u=n(17579),d=n(62617),p=n(43260),h=n(74570);let m=(r=class extends h.default{constructor(){super(...arguments),(0,o.Z)(this,"siteSettings",i,this),(0,o.Z)(this,"router",s,this),(0,a.Z)(this,"controllerName","login-page")}beforeModel(){this.siteSettings.login_required||this.router.replaceWith(`/${(0,d.defaultHomepage)()}`).followRedirects().then((e=>(0,c.next)((()=>e.send("showLogin")))))}model(){return p.default.find("login")}},i=(0,l.Z)(r.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,l.Z)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},46621:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d,setNewCategoryDefaultColors:()=>u});var r=n(17579),i=n(10425),s=n(24307),o=n(74570),a=n(82099);let l="0088CC",c="FFFFFF";function u(e,t){l=e,c=t}const d=o.default.extend({router:(0,r.inject)(),controllerName:"edit-category-tabs",templateName:"edit-category-tabs",beforeModel(){this.currentUser&&(this.currentUser.admin||this.currentUser.moderator&&!1!==this.siteSettings.moderators_manage_categories_and_groups)||this.router.replaceWith("/404")},model(){return i.Promise.resolve(this.groupPermissions()).then((e=>this.newCategoryWithPermissions(e))).catch((()=>this.newCategoryWithPermissions(this.defaultGroupPermissions())))},newCategoryWithPermissions(e){return this.store.createRecord("category",{color:l,text_color:c,group_permissions:e,available_groups:this.site.groups.map((e=>e.name)),allow_badges:!0,topic_featured_link_allowed:!0,custom_fields:{},category_setting:{},search_priority:s.SEARCH_PRIORITIES.normal,required_tag_groups:[],form_template_ids:[]})},titleToken:()=>a.default.t("category.create"),groupPermissions(){return this.defaultGroupPermissions()},defaultGroupPermissions(){return[{group_name:this.site.groups.findBy("id",0).name,permission_type:1}]}})},40394:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(51372),i=n(17579),s=n(59469),o=n(5751),a=n(74570),l=n(82099);const c=a.default.extend({dialog:(0,i.inject)(),composer:(0,i.inject)(),router:(0,i.inject)(),beforeModel(e){const t=e.to.queryParams,n=t.groupname||t.group_name;this.currentUser?this.router.replaceWith("discovery.latest").followRedirects().then((()=>{t.username?this.composer.openNewMessage({recipients:t.username,title:t.title,body:t.body}):n?o.default.messageable(n).then((e=>{e.messageable?(0,r.next)((()=>this.composer.openNewMessage({recipients:n,title:t.title,body:t.body}))):this.dialog.alert(l.default.t("composer.cant_send_pm",{username:n}))})).catch((()=>this.dialog.alert(l.default.t("generic_error")))):this.composer.openNewMessage({title:t.title,body:t.body})})):((0,s.default)("destination_url",window.location.href),this.router.replaceWith("login"))}})},5268:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a,l=n(94664),c=n(54001),u=n(51372),d=n(17579),p=n(59469),h=n(56746),m=n(74570);let g=(r=class extends m.default{constructor(){super(...arguments),(0,l.Z)(this,"composer",i,this),(0,l.Z)(this,"router",s,this),(0,l.Z)(this,"currentUser",o,this),(0,l.Z)(this,"site",a,this)}beforeModel(e){if(this.currentUser){const t=this.parseCategoryFromTransition(e);t?this.router.replaceWith(`/c/${t.id}`).followRedirects().then((()=>{this.currentUser.can_create_topic&&this.openComposer({transition:e,category:t})})):e.from?(e.abort(),this.openComposer({transition:e})):this.router.replaceWith("discovery.latest").followRedirects().then((()=>{this.currentUser.can_create_topic&&this.openComposer({transition:e})}))}else(0,p.default)("destination_url",window.location.href),this.router.replaceWith("login")}openComposer(e){let{transition:t,category:n}=e;(0,u.next)((()=>{this.composer.openNewTopic({title:t.to.queryParams.title,body:t.to.queryParams.body,category:n,tags:t.to.queryParams.tags}),this.composer.set("formTemplateInitialValues",t.to.queryParams)}))}parseCategoryFromTransition(e){let t;if(e.to.queryParams.category_id){const n=e.to.queryParams.category_id;t=h.default.findById(n)}else if(e.to.queryParams.category){const n=e.to.queryParams.category.split("/");t=this._getCategory(n[0],n[1],"nameLower"),t||(t=this._getCategory(n[0],n[1],"slug"))}return t}_getCategory(e,t,n){let r;if(t){const i=this.site.categories,s=i.findBy(n,e.toLowerCase());s&&(r=i.find((e=>e&&e[n]===t.toLowerCase()&&e.parent_category_id===s.id)))}else r=this.site.categories.findBy(n,e.toLowerCase());return r}},i=(0,c.Z)(r.prototype,"composer",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.Z)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,c.Z)(r.prototype,"currentUser",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.Z)(r.prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},47623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(3055),i=n(13369),s=n(20229),o=n(74570),a=n(12757),l=n(82099);const c=o.default.extend({titleToken:()=>l.default.t("login.reset_password"),model(e){if(i.default.get("password_reset"))return i.default.getAndRemove("password_reset").then((t=>(0,a.deepMerge)(e,t)))},afterModel(e){if(e)return(0,r.ajax)({url:(0,s.userPath)(`confirm-email-token/${e.token}.json`),dataType:"json"})}})},58790:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),model(e){return this.store.find("post",e.id)},afterModel(e){this.router.transitionTo(e.url)}})},36820:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(54001),s=n(48163),o=n(17579),a=n(92642),l=n(6566),c=n(99650),u=n(82099);const d=c.default.extend((r={modal:(0,o.inject)(),model(){const e=this.modelFor("user");return this.siteSettings.enable_badges?l.default.findByUsername(e.get("username")).then((t=>(e.set("badges",t.map((e=>e.badge))),e))):e},setupController(e,t){e.reset(),e.setProperties({model:t,newNameInput:t.get("name"),newTitleInput:t.get("title"),newPrimaryGroupInput:t.get("primary_group_id"),newFlairGroupId:t.get("flair_group_id"),newStatus:t.status,subpageTitle:u.default.t("user.preferences_nav.account")})},showAvatarSelector(e){this.modal.show(a.default,{model:{user:e}})}},(0,i.Z)(r,"showAvatarSelector",[s.action],Object.getOwnPropertyDescriptor(r,"showAvatarSelector"),r),r))},48407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},1049:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},39241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({model(){return this.modelFor("user")},setupController(e,t){e.reset(),e.setProperties({model:t,oldEmail:e.new?"":t.email,newEmail:e.new?"":t.email})},resetController(e,t){t&&e.set("new",void 0)}})},81272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},79509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(99650).default.extend({router:(0,r.inject)(),redirect(){this.router.transitionTo("preferences.account")}})},4950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(87591);const i=n(99650).default.extend({setupController(e,t){e.setProperties({model:t,textSize:t.get("currentTextSize"),themeId:(0,r.currentThemeId)(),makeThemeDefault:!t.get("user_option.theme_ids")||(0,r.currentThemeId)()===t.get("user_option.theme_ids")[0],makeTextSizeDefault:t.get("currentTextSize")===t.get("user_option.text_size")})}})},77707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(56746);const i=n(99650).default.extend({setupController(e,t){const n={model:t,selectedSidebarCategories:r.default.findByIds(t.sidebarCategoryIds),newSidebarLinkToFilteredList:t.sidebarLinkToFilteredList,newSidebarShowCountOfNewItems:t.sidebarShowCountOfNewItems};this.siteSettings.tagging_enabled&&(n.selectedSidebarTagNames=t.sidebarTagNames),e.setProperties(n)}})},6482:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},25379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({setupController(e,t){e.set("model",t)}})},48354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r,i=n(54001),s=n(48163),o=n(17579);const a=n(99650).default.extend((r={currentUser:(0,o.inject)(),siteSettings:(0,o.inject)(),router:(0,o.inject)(),model(){return this.modelFor("user")},setupController(e,t){e.setProperties({model:t,newUsername:t.username}),e.set("loading",!0),t.loadSecondFactorCodes().then((t=>{t.error?e.set("errorMessage",t.error):t.unconfirmed_session?this.router.transitionTo("preferences.security"):e.setProperties({errorMessage:null,totps:t.totps,security_keys:t.security_keys})})).catch(e.popupAjaxError).finally((()=>e.set("loading",!1)))},willTransition(e){return this._super(...arguments),!("preferences.second-factor"!==e.targetName&&this.currentUser&&!this.currentUser.is_anonymous&&!this.currentUser.second_factor_enabled&&("staff"!==this.siteSettings.enforce_second_factor||this.currentUser.staff)&&"no"!==this.siteSettings.enforce_second_factor&&(e.abort(),1))}},(0,i.Z)(r,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r,"willTransition"),r),r))},17780:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},84353:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},36990:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},12215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(99650).default.extend({})},81048:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(99650),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),model(){return this.modelFor("user")},titleToken(){let e=this.controllerFor(this.router.currentRouteName),t=e?.subpageTitle;return t?`${t} - ${s.default.t("user.preferences")}`:s.default.t("user.preferences")}})},95e3:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(94664),o=n(54001),a=n(17579),l=n(20229),c=n(43260),u=n(74570),d=n(82099);let p=(r=class extends u.default{constructor(){super(...arguments),(0,s.Z)(this,"siteSettings",i,this)}activate(){super.activate(...arguments),l.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){this.siteSettings.privacy_policy_url&&(e.abort(),l.default.redirectTo(this.siteSettings.privacy_policy_url))}model(){return c.default.find("privacy")}titleToken(){return d.default.t("privacy")}},i=(0,o.Z)(r.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},99650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),afterModel(){this.modelFor("user").get("can_edit")||this.router.replaceWith("userActivity")}})},146:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(54001),s=n(48163),o=n(33217),a=n(74570),l=n(57555);const c=a.default.extend((r={model(e){return null===e.sort_order&&("reviewed"===e.status||"all"===e.status?e.sort_order="created_at":e.sort_order="score"),this.store.findAll("reviewable",e)},setupController(e,t){let n=t.resultSetMeta;void 0!==n.reviewable_count&&this.currentUser.set("reviewable_count",n.reviewable_count),void 0!==n.unseen_reviewable_count&&this.currentUser.set("unseen_reviewable_count",n.unseen_reviewable_count),e.setProperties({reviewables:t,type:n.type,filterType:n.type,filterStatus:n.status,filterTopic:n.topic_id,filterCategoryId:n.category_id,filterPriority:n.priority,reviewableTypes:n.reviewable_types,filterUsername:n.username,filterReviewedBy:n.reviewed_by,filterFromDate:(0,o.isPresent)(n.from_date)?moment(n.from_date):null,filterToDate:(0,o.isPresent)(n.to_date)?moment(n.to_date):null,filterSortOrder:n.sort_order,sort_order:n.sort_order,additionalFilters:n.additional_filters||{}}),e.reviewables.setEach("last_performing_username",null)},activate(){this.messageBus.subscribe("/reviewable_claimed",this._updateClaimedBy),this.messageBus.subscribe(this._reviewableCountsChannel,this._updateReviewables)},deactivate(){this.messageBus.unsubscribe("/reviewable_claimed",this._updateClaimedBy),this.messageBus.unsubscribe(this._reviewableCountsChannel,this._updateReviewables)},_updateClaimedBy(e){const t=this.controller.reviewables;if(t){const n=e.user?this.store.createRecord("user",e.user):null;t.forEach((t=>{e.topic_id===t.topic.id&&t.set("claimed_by",n)}))}},_updateReviewables(e){e.updates&&this.controller.reviewables.forEach((t=>{const n=e.updates[t.id];n&&t.setProperties(n)}))},get _reviewableCountsChannel(){return`/reviewable_counts/${this.currentUser.id}`},refreshRoute(){this.refresh()}},(0,i.Z)(r,"_updateClaimedBy",[l.bind],Object.getOwnPropertyDescriptor(r,"_updateClaimedBy"),r),(0,i.Z)(r,"_updateReviewables",[l.bind],Object.getOwnPropertyDescriptor(r,"_updateReviewables"),r),(0,i.Z)(r,"refreshRoute",[s.action],Object.getOwnPropertyDescriptor(r,"refreshRoute"),r),r))},77789:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({model(){return this.store.find("reviewable-settings")},setupController(e,t){e.set("settings",t)}})},29341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({setupController(e,t){e.set("reviewable",t)}})},31637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({model(){return this.store.findAll("reviewable-topic")},setupController(e,t){e.set("reviewableTopics",t)}})},31667:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({titleToken:()=>i.default.t("review.title")})},30556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(66160);class s extends i.default{constructor(){super(...arguments),(0,r.Z)(this,"pageId","rules")}}},48802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(3055),i=n(38864),s=n(13369),o=n(75637);const a=n(74570).default.extend(o.default,{queryParams:{nonce:{refreshModel:!0}},model:e=>s.default.data.has("2fa_challenge_data")?s.default.getAndRemove("2fa_challenge_data"):(0,r.ajax)("/session/2fa.json",{type:"GET",data:{nonce:e.nonce}}).catch((e=>{const t=(0,i.extractError)(e);if(t)return{error:t};throw e})),setupController(e,t){this._super(...arguments),e.resetState(),t.error&&(e.displayError(t.error),e.set("loadError",!0))}})},51067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o=n(94664),a=n(54001),l=n(48163),c=n(51372),u=n(17579),d=n(74570);let p=(r=class extends d.default{constructor(){super(...arguments),(0,o.Z)(this,"router",i,this),(0,o.Z)(this,"siteSettings",s,this)}beforeModel(){this.showCreateAccount()}async showCreateAccount(){const{canSignUp:e}=this.controllerFor("application"),t=await this.router.replaceWith(this.siteSettings.login_required?"login":"discovery.latest").followRedirects();e&&(0,c.next)((()=>t.send("showCreateAccount")))}},i=(0,a.Z)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,a.Z)(r.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(r.prototype,"showCreateAccount",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"showCreateAccount"),r.prototype),r)},58516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({model(e){return this.store.find("tagGroup",e.id)},afterModel(e){e.set("savingStatus",null)}})},10643:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),beforeModel(){this.siteSettings.tagging_enabled||this.router.transitionTo("tagGroups")},model(){return this.store.createRecord("tagGroup",{name:s.default.t("tagging.groups.new_name")})}})},8236:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({model(){return this.store.findAll("tagGroup")},titleToken:()=>i.default.t("tagging.groups.title")})},60569:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildTagRoute:()=>I,default:()=>D});var r,i,s,o,a,l,c,u,d,p,h=n(94664),m=n(54001),g=n(49246),f=n(48163),b=n(17579),_=n(48541),y=n(79593),w=n(46646),v=n(13369),k=n(5002),x=n(62617),T=n(56746),S=n(12506),C=n(69999),P=n(74570),O=n(82099);const E="none";let D=(r=(0,b.inject)("search"),(0,w.disableImplicitInjections)((s=class extends P.default{constructor(){super(...arguments),(0,h.Z)(this,"composer",o,this),(0,h.Z)(this,"router",a,this),(0,h.Z)(this,"currentUser",l,this),(0,h.Z)(this,"store",c,this),(0,h.Z)(this,"topicTrackingState",u,this),(0,h.Z)(this,"searchService",d,this),(0,h.Z)(this,"historyStore",p,this),(0,g.Z)(this,"queryParams",_.queryParams),(0,g.Z)(this,"controllerName","discovery/list"),(0,g.Z)(this,"templateName","discovery/list"),(0,g.Z)(this,"routeConfig",{})}get navMode(){return this.routeConfig.navMode||"latest"}get noSubcategories(){return this.routeConfig.noSubcategories}async model(e,t){const n=this.store.createRecord("tag",{id:(0,x.escapeExpression)(e.tag_id)});let r;e.additional_tags&&(r=e.additional_tags.split("/").map((e=>this.store.createRecord("tag",{id:(0,x.escapeExpression)(e)}).id)));const i=(0,y.filterTypeForMode)(this.navMode);let s;n&&n.id!==E&&this.currentUser&&!r&&(s=await this.store.find("tagNotification",n.id.toLowerCase()));let o=e.category_slug_path_with_id?T.default.findBySlugPathWithID(e.category_slug_path_with_id):null;const a=(0,C.filterQueryParams)(t.to.queryParams,{}),l=this.navMode,c=n?n.id.toLowerCase():E;let u;if(o?(o.setupGroupsAndPermissions(),u=`tags/c/${T.default.slugFor(o)}/${o.id}`,void 0!==this.noSubcategories&&(u+=this.noSubcategories?`/${E}`:"/all"),u+=`/${c}/l/${l}`):r?(u=`tags/intersection/${c}/${r.join("/")}`,t.to.queryParams.category&&(a.category=t.to.queryParams.category,o=T.default.findBySlugPathWithID(t.to.queryParams.category))):u=`tag/${c}/l/${l}`,void 0===this.noSubcategories&&"none"===o?.default_list_filter&&"latest"===l)return v.default.getAndRemove("topic_list"),this.router.replaceWith("tags.showCategoryNone",e.category_slug_path_with_id,c);const d=await(0,C.findTopicList)(this.store,this.topicTrackingState,u,a,{cached:this.historyStore.isPoppedState});return d.topic_list.tags&&1===d.topic_list.tags.length&&n.setProperties({id:d.topic_list.tags[0].name,staff:d.topic_list.tags[0].staff}),{tag:n,category:o,list:d,additionalTags:r,filterType:i,tagNotification:s,canCreateTopic:d.can_create_topic,canCreateTopicOnCategory:o?.permission===S.default.FULL,canCreateTopicOnTag:!n.staff||this.currentUser?.staff,noSubcategories:this.noSubcategories}}setupController(e,t){if(super.setupController(...arguments),e.bulkSelectHelper.clear(),(0,k.setTopicList)(t.list),t.category||t.additionalTags){const e={type:"tagIntersection",tagId:t.tag.id,tag:t.tag,additionalTags:t.additionalTags||null,categoryId:t.category?.id||null,category:t.category||null};this.searchService.searchContext=e}else this.searchService.searchContext=t.tag.searchContext}titleToken(){const e=O.default.t(`filters.${this.navMode.replace("/",".")}.title`),t=this.currentModel,n=t?.tag?.id;return n&&n!==E?t.category?O.default.t("tagging.filters.with_category",{filter:e,tag:t.tag.id,category:t.category.name}):O.default.t("tagging.filters.without_category",{filter:e,tag:t.tag.id}):t.category?O.default.t("tagging.filters.untagged_with_category",{filter:e,category:t.category.name}):O.default.t("tagging.filters.untagged_without_category",{filter:e})}deactivate(){super.deactivate(...arguments),this.searchService.searchContext=null}resetParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_.resetParams.call(this,e)}},o=(0,m.Z)(s.prototype,"composer",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,m.Z)(s.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,m.Z)(s.prototype,"currentUser",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,m.Z)(s.prototype,"store",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.Z)(s.prototype,"topicTrackingState",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,m.Z)(s.prototype,"searchService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,m.Z)(s.prototype,"historyStore",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,m.Z)(s.prototype,"resetParams",[f.action],Object.getOwnPropertyDescriptor(s.prototype,"resetParams"),s.prototype),i=s))||i);function I(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return class extends D{constructor(){super(...arguments),(0,g.Z)(this,"routeConfig",e)}}}},49774:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(48163),o=n(17579),a=n(12932),l=n(74570),c=n(82099);const u=l.default.extend((r={router:(0,o.inject)(),model(){return this.store.findAll("tag").then((e=>(e.extras&&(e.extras.categories&&e.extras.categories.forEach((e=>{e.tags=e.tags.map((e=>a.default.create(e)))})),e.extras.tag_groups&&e.extras.tag_groups.forEach((e=>{e.tags=e.tags.map((e=>a.default.create(e)))}))),e)))},titleToken:()=>c.default.t("tagging.tags"),setupController(e,t){this.controllerFor("tags.index").setProperties({model:t,sortProperties:this.siteSettings.tags_sort_alphabetically?["id"]:["totalCount:desc","id"]})},showTagGroups(){return this.router.transitionTo("tagGroups"),!0},triggerRefresh(){this.refresh()}},(0,i.Z)(r,"showTagGroups",[s.action],Object.getOwnPropertyDescriptor(r,"showTagGroups"),r),(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),r))},49274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(49246),i=n(60569);const s=class extends((0,i.buildTagRoute)()){constructor(){super(...arguments),(0,r.Z)(this,"controllerName","tags-intersection")}}},45982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(69828),i=n.n(r),s=n(17579);const o=i().extend({router:(0,s.inject)(),beforeModel(){this.router.transitionTo("tag.show",this.paramsFor("tags.legacyRedirect").tag_id)}})},68220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(17579),i=n(92635);const s=n(74570).default.extend({router:(0,r.inject)(),model:e=>e.slug_or_id.match(i.ID_CONSTRAINT)?{url:`/t/topic/${e.slug_or_id}`}:i.default.idForSlug(e.slug_or_id).then((e=>({url:`/t/${e.slug}/${e.topic_id}`}))),afterModel(e){this.router.transitionTo(e.url)}})},23157:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(54623).default},54623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i=n(54001),s=n(48163),o=n(51372),a=n(17579),l=n(33217),c=n(20229),u=n(37135),d=n(74570),p=n(34405);const h=d.default.extend((r={composer:(0,a.inject)(),model(e){(e=e||{}).track_visit=!0;const t=this.modelFor("topic").postStream;return"last"===e.nearPost&&(e.nearPost=999999999),e.forceLoad=!0,t.refresh(e).then((()=>e)).catch((t=>((0,p.isTesting)()||console.log("Could not view topic",t),e._loading_error=!0,e)))},afterModel(){const e=this.modelFor("topic");e.isPrivateMessage&&e.suggested_topics&&this.pmTopicTrackingState.startTracking()},deactivate(){this._super(...arguments),this.controllerFor("topic").unsubscribe()},setupController(e,t,n){let{_discourse_anchor:r}=n;if(t._loading_error)return;const i=this.controllerFor("topic"),s=this.modelFor("topic"),a=s.postStream;if(s.view_hidden)return;const d=a.closestPostForPostNumber(t.nearPost||1),p=d.post_number;i.setProperties({"model.currentPost":p,enteredIndex:s.postStream.progressIndexOfPost(d),enteredAt:Date.now().toString(),userLastReadPostNumber:s.last_read_post_number,highestPostNumber:s.highest_post_number}),this.appEvents.trigger("page:topic-loaded",s),i.subscribe(),(0,o.schedule)("afterRender",(()=>this.appEvents.trigger("post:highlight",p)));const h={};document.location.hash?h.anchor=document.location.hash.slice(1):r&&(h.anchor=r),c.default.jumpToPost(p,h),d&&!d.bookmarked&&d.clearBookmark(),(0,l.isEmpty)(s.draft)||this.composer.open({draft:u.default.getLocal(s.draft_key,s.draft),draftKey:s.draft_key,draftSequence:s.draft_sequence,ignoreIfChanged:!0,topic:s})},willTransition(){return this.controllerFor("topic").set("previousURL",document.location.pathname),!0}},(0,i.Z)(r,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r,"willTransition"),r),r))},99765:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r,i=n(54001),s=n(48163),o=n(51372),a=n(17579),l=n(33217),c=n(28533),u=n(24748),d=n(78193),p=n(75301),h=n(61016),m=n(19040),g=n(20816),f=n(8545),b=n(90124),_=n(42398),y=n(66552),w=n(77314),v=n(44359),k=n(19899),x=n(5002),T=n(20229),S=n(92635),C=n(74570),P=n(12933);const O=C.default.extend((r={composer:(0,a.inject)(),screenTrack:(0,a.inject)(),modal:(0,a.inject)(),router:(0,a.inject)(),scheduledReplace:null,lastScrollPos:null,isTransitioning:!1,buildRouteInfoMetadata:()=>({scrollOnTransition:!1}),redirect(){return this.redirectIfLoginRequired()},queryParams:{filter:{replace:!0},username_filters:{replace:!0}},titleToken(){const e=this.modelFor("topic");if(e){if(e.get("errorHtml"))return e.get("errorTitle");const t=e.get("unicode_title")||e.get("title"),n=e.get("category");if(this.siteSettings.topic_page_title_includes_category&&n&&(!n.get("isUncategorizedCategory")||"uncategorized"!==n.get("name").toLowerCase())){let e=n.get("name");const r=n.get("parentCategory");return r&&(e=r.get("name")+" / "+e),[t,e]}return t}},showInvite(){let e;e=this.isPM?"topic.invite_private.title":this.invitingToTopic?"topic.invite_reply.title":"user.invited.create",this.modal.show(c.default,{model:{title:e,inviteModel:this.modelFor("topic")}})},showFlags(e){this.modal.show(g.default,{model:{flagTarget:new v.default,flagModel:e,setHidden:()=>e.set("hidden",!0)}})},showFlagTopic(){const e=this.modelFor("topic");this.modal.show(g.default,{model:{flagTarget:new k.default,flagModel:e,setHidden:()=>e.set("hidden",!0)}})},showPagePublish(){const e=this.modelFor("topic");this.modal.show(y.default,{model:e})},showTopicTimerModal(){const e=this.modelFor("topic");this.modal.show(h.default,{model:{topic:e,setTopicTimer:t=>e.set("topic_timer",t),updateTopicTimerProperty:this.updateTopicTimerProperty}})},updateTopicTimerProperty(e,t){this.modelFor("topic").set(`topic_timer.${e}`,t)},showTopicSlowModeUpdate(){this.modal.show(p.default,{model:{topic:this.modelFor("topic")}})},showChangeTimestamp(){this.modal.show(d.default,{model:{topic:this.modelFor("topic")}})},showFeatureTopic(){const e=this.controllerFor("topic"),t=this.modelFor("topic");t.setProperties({pinnedInCategoryUntil:null,pinnedGloballyUntil:null}),this.modal.show(m.default,{model:{topic:t,pinGlobally:()=>e.send("pinGlobally"),togglePinned:()=>e.send("togglePinned"),makeBanner:()=>e.send("makeBanner"),removeBanner:()=>e.send("removeBanner")}})},showHistory(e,t){this.modal.show(b.default,{model:{postId:e.id,postVersion:t||"latest",post:e,editPost:e=>this.controllerFor("topic").send("editPost",e)}})},showGrantBadgeModal(){const e=this.controllerFor("topic");this.modal.show(f.default,{model:{selectedPost:e.selectedPosts[0]}})},showRawEmail(e){this.modal.show(w.default,{model:e})},moveToTopic(){const e=this.controllerFor("topic");this.modal.show(_.default,{model:{topic:this.modelFor("topic"),selectedPostsCount:e.selectedPostsCount,selectedAllPosts:e.selectedAllPosts,selectedPosts:e.selectedPosts,selectedPostIds:e.selectedPostIds,toggleMultiSelect:e.toggleMultiSelect}})},changeOwner(){const e=this.controllerFor("topic");this.modal.show(u.default,{model:{deselectAll:e.deselectAll,multiSelect:e.multiSelect,selectedPostsCount:e.selectedPostsCount,selectedPostIds:e.selectedPostIds,selectedPostUsername:e.selectedPostsUsername,toggleMultiSelect:e.toggleMultiSelect,topic:this.modelFor("topic")}})},postChangedRoute(e){if(O.disableReplaceState)return;const t=this.modelFor("topic");if(t&&e){let n;if(n=e>1?t.urlForPostNumber(e):t.url,this._router.currentRoute.queryParams){let e;Object.entries(this._router.currentRoute.queryParams).map((t=>{let[n,r]=t;e||(e=new URLSearchParams),e.append(n,r)})),e&&(n+=`?${e.toString()}`)}(0,o.cancel)(this.scheduledReplace),this.setProperties({lastScrollPos:document.scrollingElement.scrollTop,scheduledReplace:(0,P.default)(this,"_replaceUnlessScrolling",n,t.id,500)})}},didTransition(){const e=this.controllerFor("topic").get("model.id");return(0,x.setTopicId)(e),!0},willTransition(){return this._super(...arguments),(0,o.cancel)(this.scheduledReplace),!0},_replaceUnlessScrolling(e,t){const{currentRouteName:n}=this.router;if("topic"!==n.split(".")[0])return;if(this.modelFor("topic").id!==t)return;const r=document.scrollingElement.scrollTop;r!==this.lastScrollPos?this.setProperties({lastScrollPos:r,scheduledReplace:(0,P.default)(this,"_replaceUnlessScrolling",e,t,500)}):T.default.replaceState(e)},setupParams(e,t){const n=e.get("postStream");n.set("filter",(0,s.get)(t,"filter"));const r=(0,s.get)(t,"username_filters"),i=n.get("userFilters");return i.clear(),(0,l.isEmpty)(r)||"undefined"===r||i.addObjects(r.split(",")),e},model(e,t){if(e.slug.match(S.ID_CONSTRAINT))return void this.router.transitionTo(`/t/-/${e.slug}/${e.id}`);const n=t.to.queryParams;let r=this.modelFor("topic");if(r&&r.get("id")===parseInt(e.id,10))return this.setupParams(r,n),r;{let t={...e};return delete t.username_filters,delete t.filter,r=this.store.createRecord("topic",t),this.setupParams(r,n)}},deactivate(){this._super(...arguments),this.searchService.searchContext=null;const e=this.controllerFor("topic");e.get("model.postStream").cancelFilter(),e.set("multiSelect",!1),this.composer.set("topic",null),this.screenTrack.stop(),this.appEvents.trigger("header:hide-topic"),this.controllerFor("topic").set("model",null)},setupController(e,t){e.setProperties({model:t,editingTopic:!1,firstPostExpanded:!1}),this.searchService.searchContext=t.get("searchContext"),e.set("multiSelect",!1),e.get("quoteState").clear(),this.composer.set("topic",t),this.topicTrackingState.trackIncoming("all"),this.screenTrack.start(t.get("id"),e),(0,o.schedule)("afterRender",(()=>this.appEvents.trigger("header:update-topic",t)))}},(0,i.Z)(r,"showInvite",[s.action],Object.getOwnPropertyDescriptor(r,"showInvite"),r),(0,i.Z)(r,"showFlags",[s.action],Object.getOwnPropertyDescriptor(r,"showFlags"),r),(0,i.Z)(r,"showFlagTopic",[s.action],Object.getOwnPropertyDescriptor(r,"showFlagTopic"),r),(0,i.Z)(r,"showPagePublish",[s.action],Object.getOwnPropertyDescriptor(r,"showPagePublish"),r),(0,i.Z)(r,"showTopicTimerModal",[s.action],Object.getOwnPropertyDescriptor(r,"showTopicTimerModal"),r),(0,i.Z)(r,"updateTopicTimerProperty",[s.action],Object.getOwnPropertyDescriptor(r,"updateTopicTimerProperty"),r),(0,i.Z)(r,"showTopicSlowModeUpdate",[s.action],Object.getOwnPropertyDescriptor(r,"showTopicSlowModeUpdate"),r),(0,i.Z)(r,"showChangeTimestamp",[s.action],Object.getOwnPropertyDescriptor(r,"showChangeTimestamp"),r),(0,i.Z)(r,"showFeatureTopic",[s.action],Object.getOwnPropertyDescriptor(r,"showFeatureTopic"),r),(0,i.Z)(r,"showHistory",[s.action],Object.getOwnPropertyDescriptor(r,"showHistory"),r),(0,i.Z)(r,"showGrantBadgeModal",[s.action],Object.getOwnPropertyDescriptor(r,"showGrantBadgeModal"),r),(0,i.Z)(r,"showRawEmail",[s.action],Object.getOwnPropertyDescriptor(r,"showRawEmail"),r),(0,i.Z)(r,"moveToTopic",[s.action],Object.getOwnPropertyDescriptor(r,"moveToTopic"),r),(0,i.Z)(r,"changeOwner",[s.action],Object.getOwnPropertyDescriptor(r,"changeOwner"),r),(0,i.Z)(r,"postChangedRoute",[s.action],Object.getOwnPropertyDescriptor(r,"postChangedRoute"),r),(0,i.Z)(r,"didTransition",[s.action],Object.getOwnPropertyDescriptor(r,"didTransition"),r),(0,i.Z)(r,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r,"willTransition"),r),r)),E=O},13158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(94664),o=n(54001),a=n(17579),l=n(20229),c=n(43260),u=n(74570),d=n(82099);let p=(r=class extends u.default{constructor(){super(...arguments),(0,s.Z)(this,"siteSettings",i,this)}activate(){super.activate(...arguments),l.default.jumpToElement(document.location.hash.slice(1))}beforeModel(e){this.siteSettings.tos_url&&(e.abort(),l.default.redirectTo(this.siteSettings.tos_url))}model(){return c.default.find("tos")}titleToken(){return d.default.t("tos")}},i=(0,o.Z)(r.prototype,"siteSettings",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},87218:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s=n(94664),o=n(54001),a=n(17579),l=n(3055),c=n(20229),u=n(74570);let d=(r=class extends u.default{constructor(){super(...arguments),(0,s.Z)(this,"router",i,this)}async model(e,t){const n=t.intent.url;if(!this.currentUser&&this.siteSettings.login_required)return;const r=n&&(0,c.rewritePath)(n);if(r!==n)return void this.router.transitionTo(r);const i=await(0,l.ajax)("/permalink-check.json",{data:{path:n}});if(i.found){t.abort();let e=i.target_url;return t._discourse_anchor&&(e=e.split("#")[0],e+=`#${t._discourse_anchor}`),c.default.routeTo(e),""}return i.html}},i=(0,o.Z)(r.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},37580:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),queryParams:{q:{replace:!0}},redirect(){this.router.transitionTo("userActivity.bookmarks")}})},36707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i=n(54001),s=n(48163),o=n(17579),a=n(71466),l=n.n(a),c=n(10425),u=n(3055),d=n(74570),p=n(82099);const h=d.default.extend((r={historyStore:(0,o.inject)(),templateName:"user/bookmarks",queryParams:{acting_username:{refreshModel:!0},q:{refreshModel:!0}},model(e){const t=this.controllerFor("user-activity-bookmarks");return this.historyStore.isPoppedState&&this.session.bookmarksModel&&this.session.bookmarksModel.searchTerm===e.q?c.Promise.resolve(this.session.bookmarksModel):(this.session.setProperties({bookmarksModel:null}),t.set("loading",!0),this._loadBookmarks(e).then((e=>{if(!e.user_bookmark_list)return{bookmarks:[]};const n={bookmarks:e.user_bookmark_list.bookmarks.map(t.transform),loadMoreUrl:e.user_bookmark_list.more_bookmarks_url};return this.session.set("bookmarksModel",n),n})).catch((()=>t.set("permissionDenied",!0))).finally((()=>t.set("loading",!1))))},titleToken:()=>p.default.t("user_action_groups.3"),triggerRefresh(){this.refresh()},_loadBookmarks(e){let t=`/u/${this.modelFor("user").username}/bookmarks.json`;return e&&(t+="?"+l().param(e)),(0,u.ajax)(t)}},(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),r))},20422:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({templateName:"user/stream",model(){const e=this.modelFor("user").get("userDraftsStream");return e.reset(),e.findItems(this.site).then((()=>({stream:e,emptyState:this.emptyState()})))},emptyState:()=>({title:i.default.t("user_activity.no_drafts_title"),body:i.default.t("user_activity.no_drafts_body")}),activate(){this.appEvents.on("draft:destroyed",this,this.refresh)},deactivate(){this.appEvents.off("draft:destroyed",this,this.refresh)},titleToken:()=>i.default.t("user_action_groups.15")})},92146:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(61153),s=n(47582),o=n(3961),a=n(82099);const l=i.default.extend({userActionType:null,emptyState(){const e=this.modelFor("user"),t=a.default.t("user_activity.no_activity_title");let n="";return this.isCurrentUser(e)&&(n=(0,r.htmlSafe)(a.default.t("user_activity.no_activity_body",{topUrl:(0,s.default)("/top"),categoriesUrl:(0,s.default)("/categories"),preferencesUrl:(0,s.default)("/my/preferences"),heartIcon:(0,o.iconHTML)("heart")}))),{title:t,body:n}},titleToken:()=>a.default.t("user.filters.all")})},87692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(2437),s=n(61153),o=n(3961),a=n(82099);const l=s.default.extend({userActionType:i.default.TYPES.likes_given,emptyState(){const e=this.modelFor("user");return{title:this.isCurrentUser(e)?a.default.t("user_activity.no_likes_title"):a.default.t("user_activity.no_likes_title_others",{username:e.username}),body:(0,r.htmlSafe)(a.default.t("user_activity.no_likes_body",{heartIcon:(0,o.iconHTML)("heart")}))}},titleToken:()=>a.default.t("user_action_groups.1")})},66148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(35193),s=n(62617);const o=n(74570).default.extend({router:(0,r.inject)(),beforeModel(){this.username=this.modelFor("user").username_lower},model(){return this.store.findAll("pending-post",{username:this.username}).then((e=>{for(let t of e.content)t.title=(0,i.emojiUnescape)((0,s.escapeExpression)(t.title));return e}))},activate(){this.appEvents.on(`count-updated:${this.username}:pending_posts_count`,this,"_handleCountChange")},deactivate(){this.appEvents.off(`count-updated:${this.username}:pending_posts_count`,this,"_handleCountChange")},_handleCountChange(e){this.refresh(),e<=0&&this.router.transitionTo("userActivity")}})},38457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i=n(54001),s=n(48163),o=n(24434),a=n(2437),l=n(80846),c=n(47582),u=n(3961),d=n(82099);const p=l.default.extend((r={userActionType:a.default.TYPES.topics,model(){return this.store.findFiltered("topicList",{filter:"read"}).then((e=>(e.set("emptyState",this.emptyState()),e)))},emptyState:()=>({title:d.default.t("user_activity.no_read_topics_title"),body:(0,o.htmlSafe)(d.default.t("user_activity.no_read_topics_body",{topUrl:(0,c.default)("/top"),categoriesUrl:(0,c.default)("/categories"),searchIcon:(0,u.iconHTML)("search")}))}),titleToken:()=>`${d.default.t("user.read")}`,triggerRefresh(){this.refresh()}},(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),r))},17918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(24434),i=n(2437),s=n(61153),o=n(47582),a=n(82099);const l=s.default.extend({userActionType:i.default.TYPES.posts,emptyState(){const e=this.modelFor("user");let t,n;return this.isCurrentUser(e)?(t=a.default.t("user_activity.no_replies_title"),n=(0,r.htmlSafe)(a.default.t("user_activity.no_replies_body",{searchUrl:(0,o.default)("/search")}))):(t=a.default.t("user_activity.no_replies_title_others",{username:e.username}),n=""),{title:t,body:n}},titleToken:()=>a.default.t("user_action_groups.5")})},61153:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(90836),i=n(74570),s=n(82099);const o=i.default.extend(r.default,{templateName:"user/stream",queryParams:{acting_username:{refreshModel:!0}},model(){return{stream:this.modelFor("user").get("stream"),emptyState:this.emptyState()}},afterModel(e,t){return e.stream.filterBy({filter:this.userActionType,actingUsername:t.to.queryParams.acting_username})},setupController(){this._super(...arguments),this.viewingActionType(this.userActionType)},emptyState:()=>({title:s.default.t("user_activity.no_activity_title"),body:""})})},53905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(54001),s=n(48163),o=n(24434),a=n(2437),l=n(80846),c=n(47582),u=n(82099);const d=l.default.extend((r={userActionType:a.default.TYPES.topics,model(){return this.store.findFiltered("topicList",{filter:"topics/created-by/"+this.modelFor("user").get("username_lower")}).then((e=>(e.set("emptyState",this.emptyState()),e)))},emptyState(){const e=this.modelFor("user");let t,n;return this.isCurrentUser(e)?(t=u.default.t("user_activity.no_topics_title"),n=(0,o.htmlSafe)(u.default.t("user_activity.no_topics_body",{searchUrl:(0,c.default)("/search")}))):(t=u.default.t("user_activity.no_topics_title_others",{username:e.username}),n=""),{title:t,body:n}},titleToken:()=>u.default.t("user_action_groups.4"),triggerRefresh(){this.refresh()}},(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),r))},85727:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),model(){let e=this.modelFor("user");return e.get("profile_hidden")?this.router.replaceWith("user.profile-hidden"):e},setupController(e,t){this.controllerFor("user-activity").set("model",t)},titleToken:()=>s.default.t("user.activity_stream")})},99192:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(90836),i=n(6566),s=n(74570),o=n(82099);const a=s.default.extend(r.default,{templateName:"user/badges",model(){return i.default.findByUsername(this.modelFor("user").get("username_lower"),{grouped:!0})},setupController(){this._super(...arguments),this.viewingActionType(-1)},titleToken:()=>o.default.t("badges.title")})},60693:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(49246),i=n(35193),s=n(62617),o=n(74570);class a extends o.default{constructor(){super(...arguments),(0,r.Z)(this,"templateName","user/posts"),(0,r.Z)(this,"controllerName","user-posts")}model(){return this.modelFor("user").postsStream}afterModel(e){return e.filterBy({filter:"deleted"})}setupController(e,t){super.setupController(...arguments),t.set("canLoadMore",60===t.itemsLoaded),t.content.forEach((e=>{e.title&&e.set("title",(0,i.emojiUnescape)((0,s.escapeExpression)(e.title)))}))}}},37756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o,a,l=n(94664),c=n(54001),u=n(72326),d=n(17579),p=n(74570);let h=(r=class extends p.default{constructor(){super(...arguments),(0,l.Z)(this,"router",i,this),(0,l.Z)(this,"site",s,this),(0,l.Z)(this,"currentUser",o,this),(0,l.Z)(this,"siteSettings",a,this)}get viewingOtherUserDefaultRoute(){let e=this.siteSettings.view_user_route;return e="activity"===e?"userActivity":`user.${e}`,(0,u.getOwner)(this).lookup(`route:${e}`)?e:(console.error(`Invalid value for view_user_route '${e}'. Falling back to 'summary'.`),"user.summary")}beforeModel(){let e;e=this.currentUser?.username===this.modelFor("user").username?"userActivity":this.viewingOtherUserDefaultRoute,this.router.transitionTo(e)}},i=(0,c.Z)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.Z)(r.prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,c.Z)(r.prototype,"currentUser",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.Z)(r.prototype,"siteSettings",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},53808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(17579);const i=n(74570).default.extend({router:(0,r.inject)(),beforeModel(){this.router.replaceWith("userInvited.show","pending")}})},57028:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(48163),o=n(17579),a=n(88802),l=n(74570),c=n(82099);const u=l.default.extend((r={router:(0,o.inject)(),model(e){return this.inviteFilter=e.filter,a.default.findInvitedBy(this.modelFor("user"),e.filter)},afterModel(e){e.can_see_invite_details||this.router.replaceWith("userInvited.show","redeemed"),this.controllerFor("user.invited").setProperties({invitesCount:e.counts})},setupController(e,t){e.setProperties({model:t,invitesCount:t.counts,user:this.controllerFor("user").get("model"),filter:this.inviteFilter,searchTerm:""})},titleToken(){return c.default.t("user.invited."+this.inviteFilter+"_tab")},triggerRefresh(){this.refresh()}},(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),r))},77949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(74570),i=n(82099);const s=r.default.extend({setupController(e){const t=this.currentUser.staff||this.controllerFor("user").id===this.currentUser?.id;e.setProperties({can_see_invite_details:t})},titleToken:()=>i.default.t("user.invited.title")})},60406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2437),i=n(61153),s=n(82099);const o=i.default.extend({userActionType:r.default.TYPES.edits,titleToken:()=>s.default.t("user_action_groups.11")})},83471:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),controllerName:"user-notifications",templateName:"user/notifications-index",titleToken:()=>s.default.t("user.filters.all"),afterModel(e){e||this.router.transitionTo("userNotifications.responses")}})},24397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2437),i=n(61153),s=n(82099);const o=i.default.extend({userActionType:r.default.TYPES.likes_received,titleToken:()=>s.default.t("user_action_groups.1")})},44846:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2437),i=n(61153),s=n(82099);const o=i.default.extend({userActionType:r.default.TYPES.mentions,titleToken:()=>s.default.t("user_action_groups.7")})},93270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2437),i=n(61153),s=n(82099);const o=i.default.extend({userActionType:r.default.TYPES.replies,titleToken:()=>s.default.t("user_action_groups.6")})},84199:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,setNotificationsLimit:()=>a});var r=n(90836),i=n(74570),s=n(82099);let o=60;function a(e){o=e}const l=i.default.extend(r.default,{controllerName:"user-notifications",queryParams:{filter:{refreshModel:!0}},model(e){const t=this.modelFor("user").get("username");if(this.get("currentUser.username")===t||this.get("currentUser.admin"))return this.store.find("notification",{username:t,filter:e.filter,limit:o})},setupController(e){this._super(...arguments),e.set("user",this.modelFor("user")),this.viewingActionType(-1)},titleToken:()=>s.default.t("user.notifications")})},37771:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(76030),i=n(27397);const s=(0,r.default)("group",i.ARCHIVE_FILTER)},47053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(76030),i=n(27397);const s=(0,r.default)("group",i.INBOX_FILTER)},82405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(76030),i=n(27397);const s=(0,r.default)("group",i.NEW_FILTER)},52441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(76030),i=n(27397);const s=(0,r.default)("group",i.UNREAD_FILTER)},60265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(94664),o=n(54001),a=n(17579),l=n(74570);let c=(r=class extends l.default{constructor(){super(...arguments),(0,s.Z)(this,"router",i,this)}model(e){return this.modelFor("user").get("groups").find((t=>t.name.toLowerCase()===e.name.toLowerCase()))}afterModel(e){e||this.router.transitionTo("exception-unknown")}setupController(e,t){e.set("group",t)}},i=(0,o.Z)(r.prototype,"router",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},29682:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n.n(r),s=n(3055),o=n(38864),a=n(74570),l=n(82099);const c=a.default.extend({model(){const e=this.modelFor("user").get("username_lower");return(0,s.ajax)(`/tags/personal_messages/${e}`).then((e=>e.tags.map((e=>i().create(e))))).catch(o.popupAjaxError)},titleToken:()=>[l.default.t("tagging.tags"),l.default.t("user.private_messages")],setupController(e,t){e.setProperties({model:t,sortProperties:this.siteSettings.tags_sort_alphabetically?["id"]:["count:desc","id"],tagsForUser:this.modelFor("user").get("username_lower")}),this.controllerFor("user-topics-list").setProperties({showToggleBulkSelect:!1}),this.controllerFor("user-topics-list").bulkSelectHelper.clear()}})},32314:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(27397),i=n(82099);const s=(0,r.default)("tags","private-messages-tags").extend({titleToken(){return[this.get("tagId"),i.default.t("tagging.tags"),i.default.t("user.private_messages")]},model(e){this.controllerFor("user-private-messages").set("tagId",e.id),this.controllerFor("user-private-messages-tags").set("tagName",e.id);const t=this.modelFor("user").get("username_lower");return this.set("tagId",e.id),this.store.findFiltered("topicList",{filter:`topics/private-messages-tags/${t}/${e.id}`})}})},6737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(74570).default.extend({})},706:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(27397);const i=(0,r.default)("user","private-messages-archive",r.ARCHIVE_FILTER)},80797:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(27397);const i=(0,r.default)("user","private-messages",r.INBOX_FILTER)},4470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(27397);const i=(0,r.default)("user","private-messages-new",r.NEW_FILTER)},53722:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(27397).default)("user","private-messages-sent","sent")},32782:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(27397);const i=(0,r.default)("user","private-messages-unread",r.UNREAD_FILTER)},89045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(27397).default)("warnings","private-messages-warnings",null)},24768:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(74570);const i=class extends r.default{model(){return this.modelFor("user")}setupController(e,t){e.set("model",t)}}},35304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(54001),s=n(48163),o=n(17579),a=n(21859),l=n(37135);const c=n(74570).default.extend((r={templateName:"user/messages",composer:(0,o.inject)(),afterModel(){this.pmTopicTrackingState.startTracking()},setupController(){this._super(...arguments),this.currentUser&&l.default.get("new_private_message").then((e=>{e.draft&&this.composer.open({draft:e.draft,draftKey:a.default.NEW_PRIVATE_MESSAGE_KEY,ignoreIfChanged:!0,draftSequence:e.draft_sequence})}))},triggerRefresh(){this.refresh()},willTransition(){return this._super(...arguments),!0}},(0,i.Z)(r,"triggerRefresh",[s.action],Object.getOwnPropertyDescriptor(r,"triggerRefresh"),r),(0,i.Z)(r,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r,"willTransition"),r),r))},26494:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(17579),i=n(74570),s=n(82099);const o=i.default.extend({router:(0,r.inject)(),model(){const e=this.modelFor("user");return e.get("profile_hidden")?this.router.replaceWith("user.profile-hidden"):e.summary()},titleToken:()=>s.default.t("user.summary.title")})},80846:(e,t,n)=>{"use strict";n.r(t),n.d(t,{QUERY_PARAMS:()=>a,default:()=>l});var r=n(49246),i=n(5002),s=n(90836),o=n(74570);const a={ascending:{replace:!0,refreshModel:!0,default:!1},order:{replace:!0,refreshModel:!0}};class l extends(o.default.extend(s.default)){constructor(){super(...arguments),(0,r.Z)(this,"templateName","user-topics-list"),(0,r.Z)(this,"controllerName","user-topics-list"),(0,r.Z)(this,"queryParams",a)}setupController(e,t){(0,i.setTopicList)(t);const n=this.userActionType;this.controllerFor("user").set("userActionType",n),this.controllerFor("user-activity").set("userActionType",n),e.setProperties({model:t,hideCategory:!1})}}},31242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(54001),s=n(48163),o=n(17579),a=n(7223),l=n(74570),c=n(57555);const u=l.default.extend((r={router:(0,o.inject)(),searchService:(0,o.inject)("search"),appEvents:(0,o.inject)("app-events"),messageBus:(0,o.inject)("message-bus"),beforeModel(){this.siteSettings.hide_user_profiles_from_public&&!this.currentUser&&this.router.replaceWith("discovery")},model(e){return this.currentUser&&e.username.toLowerCase()===this.currentUser.username_lower?this.currentUser:a.default.create({username:encodeURIComponent(e.username)})},afterModel(){const e=this.modelFor("user");return e.findDetails().then((()=>e.findStaffInfo())).then((()=>e.trackStatus())).catch((()=>this.router.replaceWith("/404")))},serialize:e=>e?{username:(e.username||"").toLowerCase()}:{},setupController(e,t){e.set("model",t),this.searchService.searchContext=t.searchContext},activate(){this._super(...arguments);const e=this.modelFor("user");this.messageBus.subscribe(`/u/${e.username_lower}`,this.onUserMessage),this.messageBus.subscribe(`/u/${e.username_lower}/counters`,this.onUserCountersMessage)},deactivate(){this._super(...arguments);const e=this.modelFor("user");this.messageBus.unsubscribe(`/u/${e.username_lower}`,this.onUserMessage),this.messageBus.unsubscribe(`/u/${e.username_lower}/counters`,this.onUserCountersMessage),e.stopTrackingStatus(),this.searchService.searchContext=null},onUserMessage(e){return this.modelFor("user").loadUserAction(e)},onUserCountersMessage(e){const t=this.modelFor("user");t.setProperties(e),Object.entries(e).forEach((e=>{let[n,r]=e;return this.appEvents.trigger(`count-updated:${t.username_lower}:${n}`,r)}))},titleToken(){return this.modelFor("user").username||null},undoRevokeApiKey(e){e.undoRevoke()},revokeApiKey(e){e.revoke()}},(0,i.Z)(r,"onUserMessage",[c.bind],Object.getOwnPropertyDescriptor(r,"onUserMessage"),r),(0,i.Z)(r,"onUserCountersMessage",[c.bind],Object.getOwnPropertyDescriptor(r,"onUserCountersMessage"),r),(0,i.Z)(r,"undoRevokeApiKey",[s.action],Object.getOwnPropertyDescriptor(r,"undoRevokeApiKey"),r),(0,i.Z)(r,"revokeApiKey",[s.action],Object.getOwnPropertyDescriptor(r,"revokeApiKey"),r),r))},34997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(17579),i=n(10425),s=n(3055),o=n(38864),a=n(74570),l=n(82099);const c=a.default.extend({router:(0,r.inject)(),siteSettings:(0,r.inject)(),currentUser:(0,r.inject)(),queryParams:{period:{refreshModel:!0},order:{refreshModel:!0},asc:{refreshModel:!0},name:{refreshModel:!1,replace:!0},group:{refreshModel:!0},exclude_groups:{refreshModel:!0},exclude_usernames:{refreshModel:!0}},titleToken:()=>l.default.t("directory.title"),resetController(e,t){t&&e.setProperties({period:"weekly",order:"likes_received",asc:null,name:"",group:null,exclude_usernames:null,exclude_groups:null,lastUpdatedAt:null})},beforeModel(){this.siteSettings.hide_user_profiles_from_public&&!this.currentUser&&this.router.replaceWith("discovery")},model:e=>(0,s.ajax)("/directory-columns.json").then((t=>(e.order=e.order||t.directory_columns[0]?.name||"likes_received",{params:e,columns:t.directory_columns}))).catch(o.popupAjaxError),setupController:(e,t)=>(e.set("columns",t.columns),i.Promise.all([e.loadGroups(),e.loadUsers(t.params)]))})},19994:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(17579),c=n.n(l);let u=(r=class extends(c()){constructor(){super(...arguments),(0,s.Z)(this,"additionalProperties",i,this)}addProperty(e){this.additionalProperties.push(e)}},i=(0,o.Z)(r.prototype,"additionalProperties",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r)},27312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(94664),o=n(54001),a=n(23183),l=n(17579),c=n.n(l);let u=(r=class extends(c()){constructor(){super(...arguments),(0,s.Z)(this,"callbacks",i,this)}addButton(e){this.callbacks.push(e)}},i=(0,o.Z)(r.prototype,"callbacks",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r)},61168:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(40375),i=n.n(r),s=n(17579),o=n.n(s);class a extends(o().extend(i())){}},10591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capabilities:()=>a,default:()=>l});var r=n(49246);const i=/iPhone|iPod|iPad|Macintosh|MacIntel/,s=/macOS/,o=navigator.userAgent,a=new class{constructor(){(0,r.Z)(this,"touch",navigator.maxTouchPoints>1||"ontouchstart"in window),(0,r.Z)(this,"isAndroid",o.includes("Android")),(0,r.Z)(this,"isWinphone",o.includes("Windows Phone")),(0,r.Z)(this,"isIpadOS",o.includes("Mac OS")&&!/iPhone|iPod/.test(o)&&this.touch),(0,r.Z)(this,"isIOS",(/iPhone|iPod/.test(o)||this.isIpadOS)&&!window.MSStream),(0,r.Z)(this,"isApple",i.test(navigator.platform)||navigator.userAgentData&&s.test(navigator.userAgentData.platform)),(0,r.Z)(this,"isOpera",!!window.opera||o.includes(" OPR/")),(0,r.Z)(this,"isFirefox",o.includes("Firefox")),(0,r.Z)(this,"isChrome",!!window.chrome&&!this.isOpera),(0,r.Z)(this,"isSafari",/Constructor/.test(window.HTMLElement)||"[object SafariRemoteNotification]"===window.safari?.pushNotification?.toString()),(0,r.Z)(this,"hasContactPicker","contacts"in navigator&&"ContactsManager"in window),(0,r.Z)(this,"canVibrate","vibrate"in navigator),(0,r.Z)(this,"isPwa",window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone||document.referrer.includes("android-app://")),(0,r.Z)(this,"isiOSPWA",this.isPwa&&this.isIOS),(0,r.Z)(this,"wasLaunchedFromDiscourseHub",window.location.search.includes("discourse_app=1")),(0,r.Z)(this,"isAppWebview",void 0!==window.ReactNativeWebView)}get userHasBeenActive(){return!("userActivation"in navigator)||navigator.userActivation.hasBeenActive}};class l{static create(){return a}}(0,r.Z)(l,"isServiceFactory",!0)},45486:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o=n(94664),a=n(54001),l=n(72326),c=n(17579),u=n.n(c),d=n(71466),p=n.n(d),h=n(11465),m=n(46646),g=n(72393),f=n(53134),b=n(47582),_=n(57555),y=n(82099);const w=new Set;let v=(0,m.disableImplicitInjections)((i=class extends(u()){constructor(){super(...arguments),(0,o.Z)(this,"currentUser",s,this),(0,h.getAndClearUnhandledThemeErrors)().forEach((e=>this.reportThemeError(e))),document.addEventListener("discourse-error",this.handleDiscourseError)}get rootElement(){return document.querySelector((0,l.getOwner)(this).rootElement)}willDestroy(){document.removeEventListener("discourse-error",this.handleDiscourseError),this.rootElement.querySelectorAll(".broken-theme-alert-banner").forEach((e=>e.remove()))}handleDiscourseError(e){e.detail?.themeId?this.reportThemeError(e):this.reportGenericError(e),e.preventDefault()}reportThemeError(e){const{themeId:t,error:n}=e.detail,r={type:"theme",...(0,g.getThemeInfo)(t)};k(n,r),function(e,t){const n={message:`${e} theme/component is throwing errors:\n${t.name}: ${t.message}`,stacktrace:t.stack};p().ajax((0,b.default)("/logs/report_js_error"),{data:n,type:"POST"})}(r.name,n);const i=y.default.t("themes.broken_theme_alert");this.displayErrorNotice(i,r)}reportGenericError(e){const{messageKey:t,error:n}=e.detail,r=y.default.t(t),i=(0,g.default)(n);k(n,i),t&&!w.has(t)&&(w.add(t),this.displayErrorNotice(r,i))}displayErrorNotice(e,t){if(!this.currentUser?.admin)return;let n=`⚠️ ${(0,f.default)(e)}`;"theme"===t?.type?n+=`<br/>${y.default.t("themes.error_caused_by",{name:(0,f.default)(t.name),path:t.path})}`:"plugin"===t?.type&&(n+=`<br/>${y.default.t("broken_plugin_alert",{name:(0,f.default)(t.name)})}`),n+=`<br/><span class='theme-error-suffix'>${y.default.t("themes.only_admins")}</span>`;const r=document.createElement("div");r.classList.add("broken-theme-alert-banner"),r.innerHTML=n,this.rootElement.prepend(r)}},s=(0,a.Z)(i.prototype,"currentUser",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(i.prototype,"handleDiscourseError",[_.bind],Object.getOwnPropertyDescriptor(i.prototype,"handleDiscourseError"),i.prototype),r=i))||r;function k(e,t){const n=(0,g.consolePrefix)(e,t);n?console.error(n,e):console.error(e)}},86066:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addComposerSaveErrorCallback:()=>Ve,clearComposerSaveErrorCallback:()=>Ke,default:()=>Ge,toggleCheckDraftPopup:()=>We});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T,S,C,P,O,E,D,I,j,Z,A,M,N,z,L,F,U,R,B,$,q,H,W,K,V,G,Y,Q,J,X,ee,te,ne,re,ie=n(94664),se=n(49246),oe=n(54001),ae=n(48163),le=n.n(ae),ce=n(6264),ue=n(51372),de=n(17579),pe=n.n(de),he=n(24434),me=n(33217),ge=n(68406),fe=n(71466),be=n.n(fe),_e=n(10425),ye=n(71220),we=n(704),ve=n(51450),ke=n(6659),xe=n(85947),Te=n(88743),Se=n(82829),Ce=n(70352),Pe=n(46646),Oe=n(18272),Ee=n(12360),De=n(35193),Ie=n(29966),je=n(20229),Ze=n(62617),Ae=n(21859),Me=n(37135),Ne=n(34405),ze=n(56111),Le=n(54736),Fe=n(37080),Ue=n(47582),Re=n(3961),Be=n(57555),$e=n(82099);const qe=[];let He=!(0,Ne.isTesting)();function We(e){He=e}function Ke(){qe.length=0}function Ve(e){qe.push(e)}let Ge=(r=(0,ce.and)("site.mobileView","showPreview"),i=(0,ce.or)("isWhispering","model.unlistTopic"),s=(0,ce.alias)("site.categoriesList"),o=(0,ce.alias)("topicController.model"),a=(0,ce.reads)("currentUser.staff"),l=(0,ce.reads)("currentUser.whisperer"),c=(0,ce.and)("model.creatingTopic","isStaffUser"),u=(0,ce.or)("replyingToWhisper","model.whisper"),d=(0,ge.on)("init"),p=(0,ae.computed)("model.loading","isUploading","isProcessingUpload","_disableSubmit"),h=(0,ae.computed)("model.category","skipFormTemplate"),m=(0,Be.default)("showPreview"),g=(0,ge.observes)("showPreview"),f=(0,Be.default)("model.replyingToTopic","model.creatingPrivateMessage","model.targetRecipients","model.composeState"),b=(0,Be.default)("model.canEditTitle","model.creatingPrivateMessage"),_=(0,Be.default)("model.editingPost","model.topic.details.can_edit"),y=(0,Be.default)("model.editingPost","model.topic.canEditTags"),w=(0,Be.default)("canWhisper","replyingToWhisper"),v=(0,Be.default)("model.post"),k=(0,Be.default)("model.action","isWhispering","model.privateMessage"),x=(0,Be.default)("model.action","isWhispering","model.editConflict","model.privateMessage","model.tags","model.category"),T=(0,Be.default)("whisperer","model.action"),S=(0,Be.default)("model.requiredCategoryMissing","model.replyLength"),C=(0,Be.default)("model.composeState","model.creatingTopic","model.post"),P=(0,Be.default)("model.creatingPrivateMessage","model.targetRecipients","model.warningsDisabled"),O=(0,Be.default)("model.topic.title"),E=(0,Be.default)(),D=(0,ge.observes)("model.reply","model.title"),I=(0,Be.default)("model.categoryId","lastValidatedAt"),j=(0,Be.default)("model.category","model.tags","lastValidatedAt"),Z=(0,Be.default)("model.viewFullscreen","model.showFullScreenExitPrompt"),A=(0,Be.default)("model.action"),M=(0,Be.default)("model.composeState"),(0,Pe.disableImplicitInjections)((re=new WeakSet,z=class extends(pe()){constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=re),t.add(e),(0,ie.Z)(this,"appEvents",L,this),(0,ie.Z)(this,"capabilities",F,this),(0,ie.Z)(this,"currentUser",U,this),(0,ie.Z)(this,"dialog",R,this),(0,ie.Z)(this,"keyValueStore",B,this),(0,ie.Z)(this,"messageBus",$,this),(0,ie.Z)(this,"modal",q,this),(0,ie.Z)(this,"router",H,this),(0,ie.Z)(this,"site",W,this),(0,ie.Z)(this,"siteSettings",K,this),(0,ie.Z)(this,"store",V,this),(0,se.Z)(this,"checkedMessages",!1),(0,se.Z)(this,"messageCount",null),(0,se.Z)(this,"showEditReason",!1),(0,se.Z)(this,"editReason",null),(0,se.Z)(this,"scopedCategoryId",null),(0,se.Z)(this,"prioritizedCategoryId",null),(0,se.Z)(this,"lastValidatedAt",null),(0,se.Z)(this,"isUploading",!1),(0,se.Z)(this,"isProcessingUpload",!1),(0,se.Z)(this,"topic",null),(0,se.Z)(this,"linkLookup",null),(0,se.Z)(this,"showPreview",!0),(0,se.Z)(this,"composerHeight",null),(0,ie.Z)(this,"forcePreview",G,this),(0,ie.Z)(this,"whisperOrUnlistTopic",Y,this),(0,ie.Z)(this,"categories",Q,this),(0,ie.Z)(this,"topicModel",J,this),(0,ie.Z)(this,"isStaffUser",X,this),(0,ie.Z)(this,"whisperer",ee,this),(0,ie.Z)(this,"canUnlistTopic",te,this),(0,ie.Z)(this,"isWhispering",ne,this)}get topicController(){return(0,Fe.getOwnerWithFallback)(this).lookup("controller:topic")}_setupPreview(){const e=!this.site.mobileView&&(this.keyValueStore.get("composer.showPreview")||"true");this.set("showPreview","true"===e)}get disableSubmit(){return this.model?.loading||this.isUploading||this.isProcessingUpload||this._disableSubmit}set disableSubmit(e){this.set("_disableSubmit",e)}get formTemplateIds(){return!this.siteSettings.experimental_form_templates||this.skipFormTemplate?null:this.model?.category?.get("form_template_ids")}get hasFormTemplate(){return this.formTemplateIds?.length>0&&!this.get("model.replyingToTopic")&&!this.get("model.editingPost")}get formTemplateInitialValues(){return this._formTemplateInitialValues}set formTemplateInitialValues(e){this.set("_formTemplateInitialValues",e)}onSelectFormTemplate(e){this.selectedFormTemplate=e}toggleText(e){return e?$e.default.t("composer.hide_preview"):$e.default.t("composer.show_preview")}showPreviewChanged(){this.site.mobileView||this.keyValueStore.set({key:"composer.showPreview",value:this.showPreview})}focusTarget(e,t,n,r){return n=n||"",t&&0===n.length||n===this.currentUser.username?"usernames":e?"reply":r===Ae.default.FULLSCREEN?"editor":"title"}get showToolbar(){const e=(0,Fe.getOwnerWithFallback)(this).lookup("service:key-value-store").get("toolbar-enabled");return void 0===this._toolbarEnabled&&void 0===e&&(this._toolbarEnabled=window.innerWidth>370&&!this.capabilities.isAndroid),this._toolbarEnabled||"true"===e}set showToolbar(e){const t=(0,Fe.getOwnerWithFallback)(this).lookup("service:key-value-store");this._toolbarEnabled=e,t.set({key:"toolbar-enabled",value:e?"true":"false"})}canEditTags(e,t){const n=t||this.get("model.topic.isPrivateMessage");return e&&this.site.can_tag_topics&&(!n||this.site.can_tag_pms)}disableCategoryChooser(e,t){return e&&!t}disableTagsChooser(e,t){return e&&!t}showWhisperToggle(e,t){return e&&!t}replyingToWhisper(e){return e&&e.post_type===this.site.post_types.whisper}saveIcon(e,t,n){return t?"far-eye-slash":n&&e===Ae.default.REPLY?"envelope":Ae.SAVE_ICONS[e]}saveLabel(e,t,n,r){return this.model.customizationFor("saveLabel")||(n?"composer.overwrite_edit":t?"composer.create_whisper":r&&e===Ae.default.REPLY?"composer.create_pm":Ae.SAVE_LABELS[e])}canWhisper(e,t){return e&&t===Ae.default.REPLY}_setupPopupMenuOption(e){if("function"==typeof e&&(e=e(this)),void 0===e)return null;const t=typeof e.condition;return"undefined"===t?e.condition=!0:"boolean"===t||(e.condition="function"===t?e.condition(this):this.get(e.condition)),e}disableTextarea(e,t){return e&&0===t}popupMenuOptions(e){if("open"===e||"fullscreen"===e){const e=[];return e.push(this._setupPopupMenuOption({action:"toggleInvisible",icon:"far-eye-slash",label:"composer.toggle_unlisted",condition:"canUnlistTopic"})),this.capabilities.touch&&(e.push(this._setupPopupMenuOption({action:"applyFormatCode",icon:"code",label:"composer.code_title"})),e.push(this._setupPopupMenuOption({action:"applyUnorderedList",icon:"list-ul",label:"composer.ulist_title"})),e.push(this._setupPopupMenuOption({action:"applyOrderedList",icon:"list-ol",label:"composer.olist_title"}))),e.push(this._setupPopupMenuOption({action:"toggleWhisper",icon:"far-eye-slash",label:"composer.toggle_whisper",condition:"showWhisperToggle"})),e.push(this._setupPopupMenuOption({action:"toggleSpreadsheet",icon:"table",label:"composer.insert_table"})),e.concat(Te.customPopupMenuOptions.map((e=>this._setupPopupMenuOption(e))).filter((e=>e)))}}showWarning(e,t,n){if(!this.get("currentUser.staff")||n)return!1;const r=this.get("model.hasTargetGroups");return!(0,me.isEmpty)(t)&&1===t.split(",").length&&!r&&e}draftTitle(e){return(0,De.emojiUnescape)((0,Ze.escapeExpression)(e))}allowUpload(){return(0,Ie.authorizesOneOrMoreExtensions)(this.currentUser.staff,this.siteSettings)}uploadIcon(){return(0,Ie.uploadIcon)(this.currentUser.staff,this.siteSettings)}async focusComposer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await this._openComposerForFocus(e),(0,ue.scheduleOnce)("afterRender",this,this._focusAndInsertText,e.insertText)}async _openComposerForFocus(e){if(!this.get("model.viewOpen"))return this.openIfDraft()?void 0:e.topic?await this.open({action:Ae.default.REPLY,draftKey:e.topic.get("draft_key"),draftSequence:e.topic.get("draft_sequence"),topic:e.topic,...e.openOpts||{}}):e.fallbackToNewTopic?await this.open({action:Ae.default.CREATE_TOPIC,draftKey:Ae.default.NEW_TOPIC_KEY,...e.openOpts||{}}):void 0}_focusAndInsertText(e){document.querySelector("textarea.d-editor-input")?.focus(),e&&this.model.appendText(e,null,{new_line:!0})}updateCategory(e){this.model.categoryId=e}openIfDraft(e){return!!this.get("model.viewDraft")&&(e&&(e.preventDefault(),e.stopPropagation()),this.set("model.composeState",Ae.default.OPEN),document.documentElement.style.setProperty("--composer-height",this.get("model.composerHeight")),!0)}removeFullScreenExitPrompt(){this.set("model.showFullScreenExitPrompt",!1)}async cancel(e){e?.preventDefault(),await this.cancelComposer()}cancelUpload(e){e?.preventDefault(),this.set("model.uploadCancelled",!0)}togglePreview(e){e?.preventDefault(),this.toggleProperty("showPreview")}viewNewReply(e){if(e&&(0,Ze.modKeysPressed)(e).length>0)return!1;e?.preventDefault(),je.default.routeTo(this.get("model.createdPost.url")),this.close()}closeComposer(){this.close()}onPopupMenuAction(e){return"function"==typeof e?e(this.toolbarEvent):(this.actions?.[e]?.bind(this)||this[e])()}storeToolbarState(e){this.set("toolbarEvent",e)}typed(){this.checkReplyLength(),this.model.typing()}cancelled(){this.hitEsc()}addLinkLookup(e){this.set("linkLookup",e)}afterRefresh(e){const t=this.get("model.topic"),n=this.linkLookup;if(!t||!n)return;if(1===t.posts_count)return;const r=this.get("model.post");be()("a[href]",e).each(((e,i)=>{const s=i.href;if(s&&s.length){if(void 0!==i.dataset.word)return!0;for(let e=i;e&&("DIV"!==e.tagName||!e.classList.contains("d-editor-preview"));e=e.parentElement){if("ASIDE"===e.tagName&&e.classList.contains("quote"))return!0;if("ASIDE"===e.tagName&&e.classList.contains("onebox")&&s!==e.dataset["onebox-src"])return!0}const[e,o]=n.check(r,s);if(e&&!this.isWhispering)return o.username===this.currentUser.username?this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:$e.default.t("composer.duplicate_link_same_user",{domain:o.domain,post_url:t.urlForPostNumber(o.post_number),ago:(0,Ce.shortDate)(o.posted_at)})}):this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body duplicate-link-message",templateName:"education",body:$e.default.t("composer.duplicate_link",{domain:o.domain,username:o.username,post_url:t.urlForPostNumber(o.post_number),ago:(0,Ce.shortDate)(o.posted_at)})}),!1}return!0}))}toggleWhisper(){this.toggleProperty("model.whisper")}toggleSpreadsheet(){this.modal.show(ve.default,{model:{toolbarEvent:this.toolbarEvent,tableTokens:null}})}toggleInvisible(){this.toggleProperty("model.unlistTopic")}toggleToolbar(){this.toggleProperty("showToolbar")}async toggle(){this.closeAutocomplete();const e=this.model;(0,me.isEmpty)(e?.reply)&&(0,me.isEmpty)(e?.title)&&!this.hasFormTemplate?this.close():e?.viewOpenOrFullscreen?this.shrink():await this.cancelComposer()}fullscreenComposer(){return this.toggleFullscreen(),!1}async importQuote(e){const t=this.get("topic.postStream");let n=this.get("model.post.id");if(!n&&t&&(n=t.get("stream.firstObject")),this.get("model.editingPost")){const e=this.get("model.post.reply_to_post_number");if(e){const r=t.posts.findBy("post_number",e);r&&(n=r.id)}}if(!n)return;this.set("model.loading",!0);const r=await this.store.find("post",n),i=(0,Oe.buildQuote)(r,r.raw,{full:!0});e.addText(i),this.set("model.loading",!1)}saveAction(e,t){this.save(!1,{jump:!(t?.shiftKey&&this.get("model.replyingToTopic")||this.skipJumpOnSave)})}displayEditReason(){this.set("showEditReason",!0)}hitEsc(){if(1===document.querySelectorAll(".emoji-picker-modal.fadeIn").length)return void this.appEvents.trigger("emoji-picker:close");if((this.messageCount||0)>0)return void this.appEvents.trigger("composer-messages:close");const e=this.model;e?.viewOpen&&this.shrink(),e?.viewFullscreen&&(this.toggleFullscreen(),this.focusComposer())}groupsMentioned(e){let t,{name:n,userCount:r,maxMentions:i}=e;if(this.get("model.creatingPrivateMessage")||this.get("model.topic.isPrivateMessage"))return;i=parseInt(i,10),r=parseInt(r,10);const s=(0,Ue.default)(`/g/${n}/members`);if(r>i)t=$e.default.t("composer.group_mentioned_limit",{group:`@${n}`,count:i,group_link:s});else if(r>0){const e=r>=5?"composer.larger_group_mentioned":"composer.group_mentioned";t=$e.default.t(e,{group:`@${n}`,count:r,group_link:s})}t&&this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:t})}cannotSeeMention(e){let t,{name:n,reason:r,notifiedCount:i,isGroup:s}=e;i=parseInt(i,10),t=s?$e.default.t(`composer.cannot_see_group_mention.${r}`,{group:n,count:i}):$e.default.t(`composer.cannot_see_mention.${r}`,{username:n}),this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:t})}hereMention(e){this.appEvents.trigger("composer-messages:create",{extraClass:"custom-body",templateName:"education",body:$e.default.t("composer.here_mention",{here:this.siteSettings.here_mention,count:e})})}applyFormatCode(){this.toolbarEvent.formatCode()}applyUnorderedList(){this.toolbarEvent.applyList("* ","list_item")}applyOrderedList(){this.toolbarEvent.applyList((e=>e?`${parseInt(e,10)+1}. `:"1. "),"list_item")}save(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.disableSubmit)return;if(this.showWarning||this.set("model.isWarning",!1),this.site.mobileView&&this.showPreview&&this.set("showPreview",!1),this.hasFormTemplate){const e=(0,Se.default)(document.querySelector("#form-template-form"),this.selectedFormTemplate);if(!e)return;this.model.set("reply",e)}const n=this.model;if(n?.cantSubmitPost)return n?.viewFullscreen&&this.toggleFullscreen(),void this.set("lastValidatedAt",Date.now());const r=n.topic,i=r&&r.slow_mode_seconds&&r.user_last_posted_at,s="edit"!==this.get("model.action");if(i&&s){if((0,xe.cannotPostAgain)(this.currentUser,r.slow_mode_seconds,r.user_last_posted_at)){const e=new moment(r.user_last_posted_at).add(r.slow_mode_seconds,"seconds"),t=moment().diff(e,"seconds"),n=$e.default.t("composer.slow_mode.error",{timeLeft:(0,xe.durationTextFromSeconds)(t)});return void this.dialog.alert(n)}r.set("user_last_posted_at",(new Date).toISOString())}if(n.set("disableDrafts",!0),!e&&n.replyingToTopic){const e=this.topicModel,t=this.model.topic;if(!e)return void this.save(!0);const r=function(e){const t=e.closed?`<span class="topic-status">${(0,Re.iconHTML)("lock")}</span>`:"",n=e.pinned?`<span class="topic-status">${(0,Re.iconHTML)("thumbtack")}</span>`:"",r=e.bookmarked?`<span class="topic-status">${(0,Re.iconHTML)("bookmark")}</span>`:"";return`<div class="topic-title">\n                  <div class="topic-title__top-line">\n                    <span class="topic-statuses">\n                      ${"private_message"===e.archetype?`<span class="topic-status">${(0,Re.iconHTML)("envelope")}</span>`:""}${r}${t}${n}\n                    </span>\n                    <span class="fancy-title">\n                      ${e.fancyTitle}\n                    </span>\n                  </div>\n                  <div class="topic-title__bottom-line">\n                    ${(0,ke.categoryBadgeHTML)(e.category,{link:!1})}${(0,he.htmlSafe)((0,Ee.default)(e))}\n                  </div>\n                </div>`};if(e.id!==n.get("topic.id")&&(this.isStaffUser||!e.closed))return void this.dialog.alert({title:$e.default.t("composer.posting_not_on_topic"),buttons:[{label:r(t),class:"btn-primary btn-reply-where btn-reply-on-original",action:()=>this.save(!0)},{label:r(e),class:"btn-reply-where btn-reply-here",action:()=>{n.setProperties({topic:e,post:null}),this.save(!0)}},{label:$e.default.t("composer.cancel"),class:"btn-flat btn-text btn-reply-where__cancel"}],class:"reply-where-modal"})}let o=!1;const a={};document.querySelectorAll("#reply-control .d-editor-preview img:not(.avatar, .emoji)").forEach((e=>{const t=e.src;t&&t.length&&(a[t]={width:e.naturalWidth,height:e.naturalHeight})}));const l=n.save({imageSizes:a,editReason:this.editReason}).then((e=>{if(this.appEvents.trigger("composer:saved"),"enqueued"===e.responseJson.action){if(this.postWasEnqueued(e.responseJson),e.responseJson.pending_post){let t=this.get("topicController.model.pending_posts");t&&t.pushObject(e.responseJson.pending_post)}return this.destroyDraft().then((()=>(this.close(),this.appEvents.trigger("post-stream:refresh"),e)))}if(this.get("model.editingPost")?(this.appEvents.trigger("composer:edited-post"),this.appEvents.trigger("post-stream:refresh",{id:parseInt(e.responseJson.id,10)}),1===e.responseJson.post.post_number&&this.appEvents.trigger("header:update-topic",n.topic)):this.appEvents.trigger("post-stream:refresh"),"create_post"===e.responseJson.action&&(this.appEvents.trigger("composer:created-post"),this.appEvents.trigger("post:highlight",e.payload.post_number,t)),this.get("model.draftKey")===Ae.default.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1),e.responseJson.route_to)return this.destroyDraft(),e.responseJson.message?this.dialog.alert({message:e.responseJson.message,didConfirm:()=>{je.default.routeTo(e.responseJson.route_to)}}):je.default.routeTo(e.responseJson.route_to);this.close(),this.currentUser.set("any_posts",!0);const r=e.target;r&&!o&&!1!==t.jump&&je.default.routeTo(r.url,{keepFilter:!0,skipIfOnScreen:!0})})).catch((e=>{n.set("disableDrafts",!1),e&&this.appEvents.one("composer:will-open",(()=>{0!==qe.length&&qe.map((t=>t.call(this,e))).some((e=>e))||this.dialog.alert(e)}))}));return"topic"===this.router.currentRouteName.split(".")[0]&&n.get("topic.id")===this.get("topicModel.id")&&(o=n.get("stagedPost")),this.appEvents.trigger("post-stream:posted",o),this.messageBus.pause(),l.finally((()=>this.messageBus.resume())),l}postWasEnqueued(e){this.modal.show(we.default,{model:e})}checkReplyLength(){(0,me.isEmpty)("model.reply")||this.appEvents.trigger("composer:typed-reply")}async open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.draftKey)throw new Error("composer opened without a proper draft key");let t=this.model;if(!e.ignoreIfChanged||!t||t.composeState===Ae.default.CLOSED){this.setProperties({showEditReason:!1,editReason:null,scopedCategoryId:null,prioritizedCategoryId:null,skipAutoSave:!0}),this.set("skipJumpOnSave",!!e.skipJumpOnSave),this.set("skipFormTemplate",!!e.skipFormTemplate),e.categoryId&&!e.disableScopedCategory&&this.site.categories.findBy("id",e.categoryId)&&this.set("scopedCategoryId",e.categoryId),e.prioritizedCategoryId&&this.site.categories.findBy("id",e.prioritizedCategoryId)&&this.set("prioritizedCategoryId",e.prioritizedCategoryId),t&&e.draftKey!==t.draftKey&&t.composeState===Ae.default.DRAFT&&(this.close(),t=null);try{if(t?.replyDirty){if(t.composeState===Ae.default.OPEN&&t.draftKey===e.draftKey&&!e.action)return;if(t.composeState===Ae.default.DRAFT&&t.draftKey===e.draftKey&&(t.set("composeState",Ae.default.OPEN),!e.action))return;return await this.cancelComposer(e),void await this.open(e)}if(t&&t.action!==e.action&&t.setProperties({unlistTopic:!1,whisper:!1}),void 0===e.draftSequence){let n=await Me.default.get(e.draftKey);return e.skipDraftCheck?n.draft=void 0:n=await this.confirmDraftAbandon(n),e.draft||=n.draft,e.draftSequence=n.draft_sequence,void await this._setModel(t,e)}if(!e.draft&&!e.skipDraftCheck){let t=await Me.default.get(e.draftKey);t=await this.confirmDraftAbandon(t),t.draft&&(e.draft=t.draft,e.draftSequence=t.draft_sequence,await this.open(e))}await this._setModel(t,e)}finally{this.skipAutoSave=!1}}}async openNewTopic(){let{title:e,body:t,category:n,tags:r,preferDraft:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i&&this.currentUser.has_topic_draft?function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,re,Ye).call(this):this.open({prioritizedCategoryId:n?.id,topicCategoryId:n?.id,topicTitle:e,topicBody:t,topicTags:r,action:Ae.CREATE_TOPIC,draftKey:Ae.NEW_TOPIC_KEY,draftSequence:0})}async openNewMessage(e){let{title:t,body:n,recipients:r,hasGroups:i}=e;return this.open({action:Ae.default.PRIVATE_MESSAGE,recipients:r,topicTitle:t,topicBody:n,archetypeId:"private_message",draftKey:Ae.default.NEW_PRIVATE_MESSAGE_KEY,hasGroups:i})}async _setModel(e,t){let n;if(this.set("linkLookup",null),t.draft){if(n=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{draft:n,draftKey:r,draftSequence:i}=t;try{n&&"string"==typeof n&&(n=JSON.parse(n))}catch(e){n=null,Me.default.clear(r,i)}if(!n?.title&&!n?.reply)return;let s={draftKey:r,draftSequence:i,draft:!0,composerState:Ae.default.DRAFT,topic:t.topic};Ae.default.serializedFieldsForDraft().forEach((e=>{s[e]=n[e]||t[e]}));const o=e.createRecord("composer");return await o.open(s),o}(this.store,t),!n)throw new Error("draft was not found")}else{const r=e||this.store.createRecord("composer");await r.open(t),n=r}if(this.set("model",n),n.setProperties({composeState:Ae.default.OPEN,isWarning:!1,hasTargetGroups:t.hasGroups,warningsDisabled:t.warningsDisabled}),this.model.targetRecipients||(t.usernames?((0,Le.default)("`usernames` is deprecated, use `recipients` instead.",{id:"discourse.composer.usernames"}),this.model.set("targetRecipients",t.usernames)):t.recipients&&this.model.set("targetRecipients",t.recipients)),t.topicTitle&&t.topicTitle.length<=this.siteSettings.max_topic_title_length&&this.model.set("title",t.topicTitle),t.topicTags&&this.site.can_tag_topics){let e=(0,Ze.escapeExpression)(t.topicTags).split(",").slice(0,this.siteSettings.max_tags_per_topic);e.forEach(((e,t,n)=>n[t]=e.substring(0,this.siteSettings.max_tag_length))),this.model.set("tags",e)}t.topicBody&&this.model.set("reply",t.topicBody),t.prependText&&!this.model.reply?.includes(t.prependText)&&this.model.prependText(t.prependText,{new_line:!0});const r=this._getDefaultComposerHeight();this.set("model.composerHeight",r),document.documentElement.style.setProperty("--composer-height",r)}_getDefaultComposerHeight(){return this.keyValueStore.getItem("composerHeight")?this.keyValueStore.getItem("composerHeight"):"reply"===this.model.action?"var(--reply-composer-height, 300px)":"var(--new-topic-composer-height, 400px)"}async destroyDraft(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.get("model.draftKey");if(!t)return;if(t===Ae.default.NEW_TOPIC_KEY&&this.currentUser.set("has_topic_draft",!1),this._saveDraftPromise)return await this._saveDraftPromise,await this.destroyDraft();const n=e||this.get("model.draftSequence");await Me.default.clear(t,n),this.appEvents.trigger("draft:destroyed",t)}confirmDraftAbandon(e){if(!e.draft)return e;const t=JSON.parse(e.draft);return t.reply===t.originalText?(e.draft=null,e):He?new _e.Promise((t=>{this.dialog.alert({message:$e.default.t("drafts.abandon.confirm"),buttons:[{label:$e.default.t("drafts.abandon.yes_value"),class:"btn-danger",icon:"far-trash-alt",action:()=>{this.destroyDraft(e.draft_sequence).finally((()=>{e.draft=null,t(e)}))}},{label:$e.default.t("drafts.abandon.no_value"),class:"btn-resume-editing",action:()=>t(e)}]})})):(e.draft=null,e)}cancelComposer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.skipAutoSave=!0,this._saveDraftDebounce&&(0,ue.cancel)(this._saveDraftDebounce),new _e.Promise((t=>{if(this.get("model.hasMetaData")||this.get("model.replyDirty")){const n=this.model.composeState===Ae.default.OPEN&&this.model.draftKey===e.draftKey&&[Ae.default.EDIT_SHARED_DRAFT,Ae.default.EDIT].includes(e.action),r=this.model.canSaveDraft&&!n;this.modal.show(ye.default,{model:{showSaveDraftButton:r,onDestroyDraft:()=>this.destroyDraft().then((()=>{this.model.clearState(),this.close()})).finally((()=>{this.appEvents.trigger("composer:cancelled"),t()})),onSaveDraft:()=>(this._saveDraft(),this.model.clearState(),this.close(),this.appEvents.trigger("composer:cancelled"),t())}})}else this.destroyDraft().then((()=>{this.model.clearState(),this.close()})).finally((()=>{this.appEvents.trigger("composer:cancelled"),t()}))})).finally((()=>{this.skipAutoSave=!1}))}shrink(){this.get("model.replyDirty")||this.get("model.canEditTitle")&&this.get("model.titleDirty")||this.hasFormTemplate?this.collapse():this.close()}_saveDraft(){if(this.model)if(this.model.draftSaving)this._saveDraftDebounce=(0,ze.default)(this,this._saveDraft,2e3);else{if(this.hasFormTemplate){const e=document.querySelector("#form-template-form");e&&this.set("formTemplateInitialValues",(0,Se.getFormTemplateObject)(e))}this._saveDraftPromise=this.model.saveDraft(this.currentUser).finally((()=>{this._lastDraftSaved=Date.now(),this._saveDraftPromise=null}))}}_shouldSaveDraft(){!this.model||this.model.loading||this.skipAutoSave||this.model.disableDrafts||(this._lastDraftSaved||(this._lastDraftSaved=Date.now()),Date.now()-this._lastDraftSaved>15e3?this._saveDraft():this._saveDraftDebounce=(0,ze.default)(this,this._saveDraft,2e3))}categoryValidation(e,t){if(!this.siteSettings.allow_uncategorized_topics&&!e)return le().create({failed:!0,reason:$e.default.t("composer.error.category_missing"),lastShownAt:t})}tagValidation(e,t,n){const r=t||[];if(this.site.can_tag_topics&&!this.currentUser.staff&&e&&e.minimumRequiredTags>r.length)return le().create({failed:!0,reason:$e.default.t("composer.error.tags_missing",{count:e.minimumRequiredTags}),lastShownAt:n})}collapse(){this._saveDraft(),this.set("model.composeState",Ae.default.DRAFT),document.documentElement.style.setProperty("--composer-height","40px")}toggleFullscreen(){this._saveDraft();const e=this.model;e?.viewFullscreen?e?.set("composeState",Ae.default.OPEN):(e?.set("composeState",Ae.default.FULLSCREEN),e?.set("showFullScreenExitPrompt",!0))}showFullScreenPrompt(e,t){return e&&t&&!this.capabilities.touch}close(){const e=document.querySelector("html");e.classList.remove("fullscreen-composer"),e.classList.remove("composer-open"),document.activeElement?.blur(),document.documentElement.style.removeProperty("--composer-height"),this.setProperties({model:null,lastValidatedAt:null}),this.set("formTemplateInitialValues",void 0)}closeAutocomplete(){be()(".d-editor-input").autocomplete({cancel:!0})}canEdit(e){return"edit"===e&&this.currentUser.can_edit}visible(e){return e&&"closed"!==e}clearLastValidatedAt(){this.set("lastValidatedAt",null)}},L=(0,oe.Z)(z.prototype,"appEvents",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,oe.Z)(z.prototype,"capabilities",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,oe.Z)(z.prototype,"currentUser",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,oe.Z)(z.prototype,"dialog",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,oe.Z)(z.prototype,"keyValueStore",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,oe.Z)(z.prototype,"messageBus",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,oe.Z)(z.prototype,"modal",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,oe.Z)(z.prototype,"router",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,oe.Z)(z.prototype,"site",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,oe.Z)(z.prototype,"siteSettings",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,oe.Z)(z.prototype,"store",[de.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,oe.Z)(z.prototype,"forcePreview",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,oe.Z)(z.prototype,"whisperOrUnlistTopic",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,oe.Z)(z.prototype,"categories",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,oe.Z)(z.prototype,"topicModel",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=(0,oe.Z)(z.prototype,"isStaffUser",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=(0,oe.Z)(z.prototype,"whisperer",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=(0,oe.Z)(z.prototype,"canUnlistTopic",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=(0,oe.Z)(z.prototype,"isWhispering",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,oe.Z)(z.prototype,"_setupPreview",[d],Object.getOwnPropertyDescriptor(z.prototype,"_setupPreview"),z.prototype),(0,oe.Z)(z.prototype,"disableSubmit",[p],Object.getOwnPropertyDescriptor(z.prototype,"disableSubmit"),z.prototype),(0,oe.Z)(z.prototype,"formTemplateIds",[h],Object.getOwnPropertyDescriptor(z.prototype,"formTemplateIds"),z.prototype),(0,oe.Z)(z.prototype,"onSelectFormTemplate",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"onSelectFormTemplate"),z.prototype),(0,oe.Z)(z.prototype,"toggleText",[m],Object.getOwnPropertyDescriptor(z.prototype,"toggleText"),z.prototype),(0,oe.Z)(z.prototype,"showPreviewChanged",[g],Object.getOwnPropertyDescriptor(z.prototype,"showPreviewChanged"),z.prototype),(0,oe.Z)(z.prototype,"focusTarget",[f],Object.getOwnPropertyDescriptor(z.prototype,"focusTarget"),z.prototype),(0,oe.Z)(z.prototype,"showToolbar",[ae.computed],Object.getOwnPropertyDescriptor(z.prototype,"showToolbar"),z.prototype),(0,oe.Z)(z.prototype,"canEditTags",[b],Object.getOwnPropertyDescriptor(z.prototype,"canEditTags"),z.prototype),(0,oe.Z)(z.prototype,"disableCategoryChooser",[_],Object.getOwnPropertyDescriptor(z.prototype,"disableCategoryChooser"),z.prototype),(0,oe.Z)(z.prototype,"disableTagsChooser",[y],Object.getOwnPropertyDescriptor(z.prototype,"disableTagsChooser"),z.prototype),(0,oe.Z)(z.prototype,"showWhisperToggle",[w],Object.getOwnPropertyDescriptor(z.prototype,"showWhisperToggle"),z.prototype),(0,oe.Z)(z.prototype,"replyingToWhisper",[v],Object.getOwnPropertyDescriptor(z.prototype,"replyingToWhisper"),z.prototype),(0,oe.Z)(z.prototype,"saveIcon",[k],Object.getOwnPropertyDescriptor(z.prototype,"saveIcon"),z.prototype),(0,oe.Z)(z.prototype,"saveLabel",[x],Object.getOwnPropertyDescriptor(z.prototype,"saveLabel"),z.prototype),(0,oe.Z)(z.prototype,"canWhisper",[T],Object.getOwnPropertyDescriptor(z.prototype,"canWhisper"),z.prototype),(0,oe.Z)(z.prototype,"disableTextarea",[S],Object.getOwnPropertyDescriptor(z.prototype,"disableTextarea"),z.prototype),(0,oe.Z)(z.prototype,"popupMenuOptions",[C],Object.getOwnPropertyDescriptor(z.prototype,"popupMenuOptions"),z.prototype),(0,oe.Z)(z.prototype,"showWarning",[P],Object.getOwnPropertyDescriptor(z.prototype,"showWarning"),z.prototype),(0,oe.Z)(z.prototype,"draftTitle",[O],Object.getOwnPropertyDescriptor(z.prototype,"draftTitle"),z.prototype),(0,oe.Z)(z.prototype,"allowUpload",[Be.default],Object.getOwnPropertyDescriptor(z.prototype,"allowUpload"),z.prototype),(0,oe.Z)(z.prototype,"uploadIcon",[E],Object.getOwnPropertyDescriptor(z.prototype,"uploadIcon"),z.prototype),(0,oe.Z)(z.prototype,"focusComposer",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"focusComposer"),z.prototype),(0,oe.Z)(z.prototype,"updateCategory",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"updateCategory"),z.prototype),(0,oe.Z)(z.prototype,"openIfDraft",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"openIfDraft"),z.prototype),(0,oe.Z)(z.prototype,"removeFullScreenExitPrompt",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"removeFullScreenExitPrompt"),z.prototype),(0,oe.Z)(z.prototype,"cancel",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"cancel"),z.prototype),(0,oe.Z)(z.prototype,"cancelUpload",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"cancelUpload"),z.prototype),(0,oe.Z)(z.prototype,"togglePreview",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"togglePreview"),z.prototype),(0,oe.Z)(z.prototype,"viewNewReply",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"viewNewReply"),z.prototype),(0,oe.Z)(z.prototype,"closeComposer",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"closeComposer"),z.prototype),(0,oe.Z)(z.prototype,"onPopupMenuAction",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"onPopupMenuAction"),z.prototype),(0,oe.Z)(z.prototype,"storeToolbarState",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"storeToolbarState"),z.prototype),(0,oe.Z)(z.prototype,"typed",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"typed"),z.prototype),(0,oe.Z)(z.prototype,"cancelled",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"cancelled"),z.prototype),(0,oe.Z)(z.prototype,"addLinkLookup",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"addLinkLookup"),z.prototype),(0,oe.Z)(z.prototype,"afterRefresh",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"afterRefresh"),z.prototype),(0,oe.Z)(z.prototype,"toggleWhisper",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"toggleWhisper"),z.prototype),(0,oe.Z)(z.prototype,"toggleSpreadsheet",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"toggleSpreadsheet"),z.prototype),(0,oe.Z)(z.prototype,"toggleInvisible",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"toggleInvisible"),z.prototype),(0,oe.Z)(z.prototype,"toggleToolbar",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"toggleToolbar"),z.prototype),(0,oe.Z)(z.prototype,"toggle",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"toggle"),z.prototype),(0,oe.Z)(z.prototype,"fullscreenComposer",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"fullscreenComposer"),z.prototype),(0,oe.Z)(z.prototype,"importQuote",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"importQuote"),z.prototype),(0,oe.Z)(z.prototype,"saveAction",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"saveAction"),z.prototype),(0,oe.Z)(z.prototype,"displayEditReason",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"displayEditReason"),z.prototype),(0,oe.Z)(z.prototype,"hitEsc",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"hitEsc"),z.prototype),(0,oe.Z)(z.prototype,"groupsMentioned",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"groupsMentioned"),z.prototype),(0,oe.Z)(z.prototype,"cannotSeeMention",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"cannotSeeMention"),z.prototype),(0,oe.Z)(z.prototype,"hereMention",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"hereMention"),z.prototype),(0,oe.Z)(z.prototype,"applyFormatCode",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"applyFormatCode"),z.prototype),(0,oe.Z)(z.prototype,"applyUnorderedList",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"applyUnorderedList"),z.prototype),(0,oe.Z)(z.prototype,"applyOrderedList",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"applyOrderedList"),z.prototype),(0,oe.Z)(z.prototype,"postWasEnqueued",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"postWasEnqueued"),z.prototype),(0,oe.Z)(z.prototype,"openNewTopic",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"openNewTopic"),z.prototype),(0,oe.Z)(z.prototype,"openNewMessage",[ae.action],Object.getOwnPropertyDescriptor(z.prototype,"openNewMessage"),z.prototype),(0,oe.Z)(z.prototype,"_shouldSaveDraft",[D],Object.getOwnPropertyDescriptor(z.prototype,"_shouldSaveDraft"),z.prototype),(0,oe.Z)(z.prototype,"categoryValidation",[I],Object.getOwnPropertyDescriptor(z.prototype,"categoryValidation"),z.prototype),(0,oe.Z)(z.prototype,"tagValidation",[j],Object.getOwnPropertyDescriptor(z.prototype,"tagValidation"),z.prototype),(0,oe.Z)(z.prototype,"showFullScreenPrompt",[Z],Object.getOwnPropertyDescriptor(z.prototype,"showFullScreenPrompt"),z.prototype),(0,oe.Z)(z.prototype,"canEdit",[A],Object.getOwnPropertyDescriptor(z.prototype,"canEdit"),z.prototype),(0,oe.Z)(z.prototype,"visible",[M],Object.getOwnPropertyDescriptor(z.prototype,"visible"),z.prototype),N=z))||N);async function Ye(){if(this.model?.action===Ae.default.CREATE_TOPIC&&this.model?.draftKey===Ae.default.NEW_TOPIC_KEY)this.set("model.composeState",Ae.default.OPEN);else{const e=await Me.default.get(Ae.default.NEW_TOPIC_KEY);if(e.draft)return this.open({action:Ae.default.CREATE_TOPIC,draft:e.draft,draftKey:Ae.default.NEW_TOPIC_KEY,draftSequence:e.draft_sequence})}}Ge.prototype.mergedProperties=["actions"]},38710:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CRITICAL_DEPRECATIONS:()=>w,default:()=>k});var r,i,s,o,a=n(94664),l=n(58255),c=n(32758),u=n(54001),d=n(95793),p=n(17579),h=n.n(p),m=n(32562),g=n(72393),f=n(62617),b=n(54736),_=n(57555),y=n(82099);const w=[/^discourse.modal-controllers$/,/^(?!discourse\.)/];let v;(0,d.registerDeprecationHandler)(((e,t,n)=>(v?.(e,t),n(e,t)))),(0,b.registerDeprecationHandler)(((e,t)=>v?.(e,t)));let k=(o=new WeakMap,r=class extends(h()){constructor(){var e,t,n;super(...arguments),(0,a.Z)(this,"currentUser",i,this),(0,a.Z)(this,"siteSettings",s,this),n={writable:!0,value:!1},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=o),t.set(e,n),v=this.handle}willDestroy(){v=null}handle(e,t){const n=window.deprecationWorkflow?.config?.workflow,r=n.find((e=>e.matchId===t.id));if(r&&"silence"===r.handler)return;const i=(0,g.default)();"browser-extension"!==i?.type&&this.maybeNotifyAdmin(t.id,i)}maybeNotifyAdmin(e,t){(0,c.Z)(this,o)||this.currentUser?.admin&&this.siteSettings.warn_critical_js_deprecations&&w.some((t=>t.test(e)))&&this.notifyAdmin(e,t)}notifyAdmin(e,t){(0,l.Z)(this,o,!0);let n=y.default.t("critical_deprecation.notice");this.siteSettings.warn_critical_js_deprecations_message&&(n+=" "+this.siteSettings.warn_critical_js_deprecations_message),"theme"===t?.type?n+=" "+y.default.t("critical_deprecation.theme_source",{name:(0,f.escapeExpression)(t.name),path:t.path}):"plugin"===t?.type&&(n+=" "+y.default.t("critical_deprecation.plugin_source",{name:(0,f.escapeExpression)(t.name)})),(0,m.addGlobalNotice)(n,"critical-deprecation",{dismissable:!0,dismissDuration:moment.duration(1,"day"),level:"warn"})}},i=(0,u.Z)(r.prototype,"currentUser",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.Z)(r.prototype,"siteSettings",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(r.prototype,"handle",[_.bind],Object.getOwnPropertyDescriptor(r.prototype,"handle"),r.prototype),r)},77547:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o,a,l,c,u=n(94664),d=n(54001),p=n(23183),h=n(48163),m=n(17579),g=n.n(m),f=n(44750),b=n(46646),_=n(59295),y=n(98952);const w=new _.default(f.context);let v=(0,b.disableImplicitInjections)((i=class extends(g()){constructor(){super(...arguments),(0,u.Z)(this,"currentUser",s,this),(0,u.Z)(this,"site",o,this),(0,u.Z)(this,"siteSettings",a,this),(0,u.Z)(this,"notificationsDisabled",l,this),(0,u.Z)(this,"isEnabledPush",c,this),this.notificationsDisabled=w.getItem("notifications-disabled"),this.isEnabledPush=!!this.currentUser&&y.keyValueStore.getItem((0,y.userSubscriptionKey)(this.currentUser))}get isNotSupported(){return void 0===window.Notification}get notificationsPermission(){return this.isNotSupported?"":Notification.permission}setNotificationsDisabled(e){w.setItem("notifications-disabled",e),this.notificationsDisabled=w.getItem("notifications-disabled")}get isDeniedPermission(){return!this.isNotSupported&&"denied"===this.notificationsPermission}get isGrantedPermission(){return!this.isNotSupported&&"granted"===this.notificationsPermission}get isEnabledDesktop(){return!!this.isGrantedPermission&&this.notificationsDisabled}setIsEnabledPush(e){const t=this.currentUser;if(!t)return!1;y.keyValueStore.setItem((0,y.userSubscriptionKey)(t),e),this.isEnabledPush=y.keyValueStore.getItem((0,y.userSubscriptionKey)(t))}get isEnabled(){return this.isEnabledDesktop||this.isEnabledPush}get isSubscribed(){return!!this.isEnabled&&(this.isPushNotificationsPreferred?"subscribed"===this.isEnabledPush:""===this.notificationsDisabled)}get isPushNotificationsPreferred(){return(this.site.mobileView||this.siteSettings.enable_desktop_push_notifications)&&(0,y.isPushNotificationsSupported)()}disable(){this.isEnabledDesktop&&this.setNotificationsDisabled("disabled"),this.isEnabledPush&&(0,y.unsubscribe)(this.currentUser,(()=>{this.setIsEnabledPush("")}))}enable(){this.isPushNotificationsPreferred?(0,y.subscribe)((()=>{this.setIsEnabledPush("subscribed")}),this.siteSettings.vapid_public_key_bytes):(this.setNotificationsDisabled(""),Notification.requestPermission((()=>{(0,f.confirmNotification)(this.siteSettings)})))}},s=(0,d.Z)(i.prototype,"currentUser",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,d.Z)(i.prototype,"site",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.Z)(i.prototype,"siteSettings",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.Z)(i.prototype,"notificationsDisabled",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,d.Z)(i.prototype,"isEnabledPush",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.Z)(i.prototype,"disable",[h.action],Object.getOwnPropertyDescriptor(i.prototype,"disable"),i.prototype),(0,d.Z)(i.prototype,"enable",[h.action],Object.getOwnPropertyDescriptor(i.prototype,"enable"),i.prototype),r=i))||r},45851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o,a=n(94664),l=n(32758),c=n(54001),u=n(17579),d=n.n(u);let p=(0,n(46646).disableImplicitInjections)((o=new WeakMap,i=class extends(d()){constructor(){var e,t,n;super(...arguments),n={get:h,set:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=o),t.set(e,n),(0,a.Z)(this,"router",s,this)}get onDiscoveryRoute(){const{currentRouteName:e}=this.router;return e?.startsWith("discovery.")||e?.startsWith("tags.show")||"tag.show"===e}get category(){if(this.onDiscoveryRoute)return(0,l.Z)(this,o)?.category}get tag(){if(this.onDiscoveryRoute)return(0,l.Z)(this,o)?.tag}get currentTopicList(){if(this.onDiscoveryRoute)return(0,l.Z)(this,o)?.list}},s=(0,c.Z)(i.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r;function h(){return this.router.currentRoute.attributes}},47599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o,a,l,c,u,d=n(94664),p=n(49246),h=n(58255),m=n(32758),g=n(54001),f=n(17579),b=n.n(f),_=n(46646),y=n(80906),w=n(47582);function v(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}let k=(0,_.disableImplicitInjections)((c=new WeakMap,u=new WeakMap,i=class extends(b()){constructor(){super(...arguments),(0,d.Z)(this,"appEvents",s,this),(0,d.Z)(this,"currentUser",o,this),(0,d.Z)(this,"session",a,this),(0,d.Z)(this,"siteSettings",l,this),(0,p.Z)(this,"contextCount",0),(0,p.Z)(this,"notificationCount",0),v(this,c,{writable:!0,value:null}),v(this,u,{writable:!0,value:null})}getTitle(){return(0,m.Z)(this,c)}setTitle(e){(0,h.Z)(this,c,e),this._renderTitle()}setFocus(e){let{session:t}=this;t.hasFocus=e,t.hasFocus&&(0,m.Z)(this,u)&&this.updateContextCount(0),(0,h.Z)(this,u,!1),t.hasFocus&&(this.notificationCount=0),this.appEvents.trigger("discourse:focus-changed",t.hasFocus),this._renderFavicon(),this._renderTitle()}updateContextCount(e){this.contextCount=e,this._renderTitle()}updateNotificationCount(e){let{forced:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.session.hasFocus&&!t||(this.notificationCount=e,this._renderFavicon(),this._renderTitle())}incrementBackgroundContextCount(){this.session.hasFocus||((0,h.Z)(this,u,!0),this.contextCount+=1,this._renderFavicon(),this._renderTitle())}_displayCount(){return"notifications"===this.currentUser?.user_option.title_count_mode?this.notificationCount:this.contextCount}_renderTitle(){let e=(0,m.Z)(this,c)||this.siteSettings.title,t=this._displayCount(),n=this.currentUser?.user_option.dynamic_favicon;this.currentUser?.isInDoNotDisturb()||t>0&&!n&&(e=`(${t}) ${e}`),document.title=e}_renderFavicon(){if(this.currentUser?.user_option.dynamic_favicon){let e=this.siteSettings.site_favicon_url;/^http/.test(e)&&(e=(0,w.default)("/favicon/proxied?"+encodeURIComponent(e))),(0,y.default)(e,this._displayCount())}}},s=(0,g.Z)(i.prototype,"appEvents",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,g.Z)(i.prototype,"currentUser",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,g.Z)(i.prototype,"session",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,g.Z)(i.prototype,"siteSettings",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r},13666:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(32758),o=n(76786),a=n(17579),l=n.n(a);let c=(0,n(46646).disableImplicitInjections)((i=new WeakMap,r=class extends(l()){constructor(){var e,t,n;super(...arguments),e=this,t=i,n={writable:!0,value:new Map},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}registerClasses(e,t,n){if((0,s.Z)(this,i).has(e)){const r=(0,s.Z)(this,i).get(e);(0,s.Z)(this,i).set(e,n),this.removeUnusedClasses(t,r)}else(0,s.Z)(this,i).set(e,n),(0,o.registerDestructor)(e,(()=>{const n=(0,s.Z)(this,i).get(e);(0,s.Z)(this,i).delete(e),this.removeUnusedClasses(t,n)}));for(const e of n)t.classList.add(e)}removeUnusedClasses(e,t){const n=new Set([...(0,s.Z)(this,i).values()].flat());for(const r of t)n.has(r)||e.classList.remove(r)}}))||r},53646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(49246),s=n(17579),o=n.n(s),a=n(46646),l=n(59295);const c="emojiUsage",u="emojiSelectedDiversity";let d=(0,a.disableImplicitInjections)(r=class extends(o()){constructor(){super(...arguments),(0,i.Z)(this,"store",new l.default("discourse_emojis_")),this.store.getObject(c)||(this.favorites=[])}get diversity(){return this.store.getObject(u)||1}set diversity(e){this.store.setObject({key:u,value:e||1}),this.notifyPropertyChange("diversity")}get favorites(){return this.store.getObject(c)||[]}set favorites(e){this.store.setObject({key:c,value:e||[]}),this.notifyPropertyChange("favorites")}track(e){const t=e.replace(/(^:)|(:$)/g,""),n=this.favorites.filter((e=>e!==t));n.unshift(t),n.length=Math.min(n.length,15),this.favorites=n}reset(){this.store.setObject({key:c,value:[]}),this.store.setObject({key:u,value:1})}})||r},13360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i,s,o,a=n(94664),l=n(32758),c=n(54001),u=n(23183),d=n(76786),p=n(17579),h=n.n(p),m=n(57959);let g=(0,n(46646).disableImplicitInjections)((o=new WeakMap,i=class extends(h()){constructor(){var e,t,n;super(...arguments),e=this,t=o,n={writable:!0,value:new m.TrackedSet},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n),(0,a.Z)(this,"_showFooterOverride",s,this)}get showFooter(){return this._showFooterOverride??0===(0,l.Z)(this,o).size}set showFooter(e){this._showFooterOverride=!0===e?null:e}registerHider(e){(0,l.Z)(this,o).add(e),(0,d.registerDestructor)(e,(()=>(0,l.Z)(this,o).delete(e)))}},s=(0,c.Z)(i.prototype,"_showFooterOverride",[u.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),r=i))||r},43576:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r,i,s,o,a,l,c,u,d,p=n(94664),h=n(58255),m=n(32758),g=n(54001),f=n(17579),b=n.n(f),_=n(57959),y=n(46646),w=(n(34405),n(57555));function v(e,t){x(e,t),t.add(e)}function k(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}const S=100,C=Symbol("historic"),P=new WeakSet;let O=(0,y.disableImplicitInjections)((o=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakSet,d=new WeakSet,i=class extends(b()){constructor(){super(...arguments),v(this,d),v(this,u),k(this,c,{get:E,set:void 0}),(0,p.Z)(this,"router",s,this),k(this,o,{writable:!0,value:new Map}),k(this,a,{writable:!0,value:void 0}),k(this,l,{writable:!0,value:void 0})}get isPoppedState(){return!!this.get(C)}get(e){return(0,m.Z)(this,c).get(e)}set(e,t){return(0,m.Z)(this,c).set(e,t)}delete(e){return(0,m.Z)(this,c).delete(e)}willResolveModel(e){if(P.has(e))return;let t;P.add(e),this.set(C,!0),t=(0,m.Z)(this,a)===window.history.state?.uuid?new _.TrackedMap:new _.TrackedMap(T(this,d,I).call(this,window.history.state?.uuid)?.entries()),(0,h.Z)(this,l,t),e.then((()=>{(0,h.Z)(this,a,window.history.state?.uuid),(0,m.Z)(this,o).set((0,m.Z)(this,a),(0,m.Z)(this,l)),T(this,u,D).call(this)})).finally((()=>{t===(0,m.Z)(this,l)&&(0,h.Z)(this,l,null)}))}},s=(0,g.Z)(i.prototype,"router",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,g.Z)(i.prototype,"willResolveModel",[w.bind],Object.getOwnPropertyDescriptor(i.prototype,"willResolveModel"),i.prototype),r=i))||r;function E(){return(0,m.Z)(this,l)?(0,m.Z)(this,l):T(this,d,I).call(this,(0,m.Z)(this,a))}function D(){for(;(0,m.Z)(this,o).size>S;){const e=(0,m.Z)(this,o).keys().next().value;(0,m.Z)(this,o).delete(e)}}function I(e){let t=(0,m.Z)(this,o).get(e);return t||(t=new _.TrackedMap,(0,m.Z)(this,o).set(e,t),T(this,u,D).call(this),t)}},54589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i=n(49246),s=n(17579),o=n.n(s),a=n(46646),l=n(59295);const c=Object.getOwnPropertyNames(l.default.prototype).reject((e=>"constructor"===e));let u=(0,a.disableImplicitInjections)(r=class extends(o()){constructor(){super(...arguments),(0,i.Z)(this,"_keyValueStore",new l.default("discourse_"));for(const e of c)this[e]=this._keyValueStore[e].bind(this._keyValueStore)}})||r},7607:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r,i,s,o,a,l,c,u,d,p,h=n(94664),m=n(49246),g=n(54001),f=n(17579),b=n.n(f),_=n(46646),y=n(66196),w=n(14331),v=n(91615),k=n(43168),x=n(57555);function T(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let C=(0,_.disableImplicitInjections)((l=new WeakSet,c=new WeakSet,u=new WeakSet,d=new WeakSet,p=new WeakSet,i=class extends(b()){constructor(){super(...arguments),T(this,p),T(this,d),T(this,u),T(this,c),T(this,l),(0,h.Z)(this,"appEvents",s,this),(0,h.Z)(this,"site",o,this),(0,h.Z)(this,"siteSettings",a,this),(0,m.Z)(this,"lightboxIsOpen",!1),(0,m.Z)(this,"lightboxClickElements",[]),(0,m.Z)(this,"lastFocusedElement",null),(0,m.Z)(this,"originalSiteThemeColor",null),(0,m.Z)(this,"onFocus",null),(0,m.Z)(this,"selector",null),(0,m.Z)(this,"callbacks",{}),(0,m.Z)(this,"options",{})}async init(){super.init(...arguments),this.callbacks={onOpen:this.onLightboxOpened,onClose:this.onLightboxClosed,onWillChange:this.onLightboxItemWillChange,onItemDidChange:this.onLightboxItemDidChange,onCleanUp:this.onLightboxCleanedUp},this.options={isMobile:this.site.mobileView,isRTL:(0,k.isDocumentRTL)(),minCarouselItemCount:y.MIN_CAROUSEL_ITEM_COUNT,minCarouselArrowItemCount:y.MIN_CAROUSEL_ARROW_ITEM_COUNT,zoomOnOpen:!1,canDownload:this.currentUser||!this.siteSettings.prevent_anons_from_downloading_files},this.appEvents.on(y.LIGHTBOX_APP_EVENT_NAMES.CLEAN,this,this.cleanupLightboxes)}async onLightboxOpened(e){let{items:t,currentItem:n}=e;this.originalSiteThemeColor=await(0,w.getSiteThemeColor)(),document.documentElement.classList.add(y.DOCUMENT_ELEMENT_LIGHTBOX_OPEN_CLASS),S(this,u,E).call(this),this.appEvents.trigger(y.LIGHTBOX_APP_EVENT_NAMES.OPENED,{items:t,currentItem:n})}async onLightboxItemWillChange(e){let{currentItem:t}=e;this.appEvents.trigger(y.LIGHTBOX_APP_EVENT_NAMES.ITEM_WILL_CHANGE,{currentItem:t})}async onLightboxItemDidChange(e){let{currentItem:t}=e;this.appEvents.trigger(y.LIGHTBOX_APP_EVENT_NAMES.ITEM_DID_CHANGE,{currentItem:t})}async onLightboxClosed(){document.documentElement.classList.remove(y.DOCUMENT_ELEMENT_LIGHTBOX_OPEN_CLASS),(0,w.setSiteThemeColor)(this.originalSiteThemeColor),S(this,d,D).call(this),this.originalSiteThemeColor="",this.lightboxIsOpen=!1,this.appEvents.trigger(y.LIGHTBOX_APP_EVENT_NAMES.CLOSED)}onLightboxCleanedUp(){return!0}async openLightbox(e){let{container:t,selector:n,clickTarget:r}=e;const{items:i,startingIndex:s}=await(0,v.processHTML)({container:t,selector:n,clickTarget:r});i.length&&(this.appEvents.trigger(y.LIGHTBOX_APP_EVENT_NAMES.OPEN,{items:i,startingIndex:s,callbacks:{...this.callbacks},options:{...this.options}}),this.lightboxIsOpen=!0)}async closeLightbox(){this.lightboxIsOpen&&(this.appEvents.trigger(y.LIGHTBOX_APP_EVENT_NAMES.CLOSE),this.lightboxIsOpen=!1)}async setupLightboxes(e){let{container:t,selector:n}=e;S(this,l,P).call(this,{container:t,selector:n})}async cleanupLightboxes(){S(this,c,O).call(this)}handleClickEvent(e,t){const n=e.target.closest(t);e.composedPath().find((e=>e.matches&&(e.matches(t)||e.matches("[data-lightbox-trigger]"))))&&(e.preventDefault(),this.openLightbox({container:e.currentTarget,selector:t,clickTarget:n}),e.target.toggleAttribute(y.SELECTORS.DOCUMENT_LAST_FOCUSED_ELEMENT))}willDestroy(){S(this,p,I).call(this)}},s=(0,g.Z)(i.prototype,"appEvents",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,g.Z)(i.prototype,"site",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,g.Z)(i.prototype,"siteSettings",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,g.Z)(i.prototype,"onLightboxOpened",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"onLightboxOpened"),i.prototype),(0,g.Z)(i.prototype,"onLightboxItemWillChange",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"onLightboxItemWillChange"),i.prototype),(0,g.Z)(i.prototype,"onLightboxItemDidChange",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"onLightboxItemDidChange"),i.prototype),(0,g.Z)(i.prototype,"onLightboxClosed",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"onLightboxClosed"),i.prototype),(0,g.Z)(i.prototype,"onLightboxCleanedUp",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"onLightboxCleanedUp"),i.prototype),(0,g.Z)(i.prototype,"openLightbox",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"openLightbox"),i.prototype),(0,g.Z)(i.prototype,"closeLightbox",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"closeLightbox"),i.prototype),(0,g.Z)(i.prototype,"setupLightboxes",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"setupLightboxes"),i.prototype),(0,g.Z)(i.prototype,"cleanupLightboxes",[x.bind],Object.getOwnPropertyDescriptor(i.prototype,"cleanupLightboxes"),i.prototype),r=i))||r;async function P(e){let{container:t,selector:n}=e;if(!t)throw new Error("Lightboxes require a container to be passed in");if(this.selector=n,!t.querySelector(n))return;const r={capture:!0};t.addEventListener("click",(e=>{this.handleClickEvent(e,n)}),r),this.lightboxClickElements.push({container:t,handlerOptions:r})}async function O(){this.closeLightbox(),this.lightboxClickElements.forEach((e=>{let{container:t,handlerOptions:n}=e;t.removeEventListener("click",this.handleClickEvent,n)})),this.lightboxClickElements=[]}async function E(){if(!this.lightboxIsOpen)return;this.lastFocusedElement=document.activeElement,document.activeElement.blur(),document.querySelector(y.SELECTORS.CLOSE_BUTTON)?.focus();const e=document.querySelectorAll(y.SELECTORS.LIGHTBOX_CONTAINER+" button"),t=e[0],n=e[e.length-1],r=document.querySelectorAll(y.SELECTORS.FOCUS_TRAP),i=r[0],s=r[r.length-1];this.onFocus=e=>{let{target:r}=e;r===i?n.focus():r===s&&t.focus()},document.addEventListener("focus",this.onFocus,{passive:!0,capture:!0})}async function D(){document.removeEventListener("focus",this.onFocus,{passive:!0,capture:!0}),document.activeElement.blur(),this.lastFocusedElement?.focus()}async function I(){this.appEvents.off(y.LIGHTBOX_APP_EVENT_NAMES.CLEAN,this,this.cleanupLightboxes)}},95804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var r,i,s,o,a,l,c,u,d,p,h=n(94664),m=n(49246),g=n(32758),f=n(58255),b=n(54001),_=n(23183),y=n(40375),w=n.n(y),v=n(51372),k=n(17579),x=n.n(k),T=n(46646),S=n(57555);function C(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}let P=(s=new WeakMap,o=new WeakMap,a=new WeakMap,r=class{constructor(e,t){(0,h.Z)(this,"average",i,this),C(this,s,{writable:!0,value:[]}),C(this,o,{writable:!0,value:0}),C(this,a,{writable:!0,value:void 0}),(0,f.Z)(this,a,e),this.average=t}record(e){(0,g.Z)(this,s)[(0,g.Z)(this,o)]=e,(0,f.Z)(this,o,((0,g.Z)(this,o)+1)%(0,g.Z)(this,a)),this.average=(0,g.Z)(this,s).reduce(((e,t)=>e+t),0)/(0,g.Z)(this,s).length}},i=(0,b.Z)(r.prototype,"average",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);var O=new WeakMap;class E{constructor(){C(this,O,{writable:!0,value:[]})}cancelAll(){(0,g.Z)(this,O).forEach((e=>(0,v.cancel)(e))),(0,f.Z)(this,O,[])}schedule(){(0,g.Z)(this,O).push((0,v.schedule)(...arguments))}later(){(0,g.Z)(this,O).push((0,v.later)(...arguments))}}var D=new WeakMap;class I{constructor(){C(this,D,{writable:!0,value:void 0})}start(){(0,f.Z)(this,D,Date.now())}stop(){return(Date.now()-(0,g.Z)(this,D))/1e3}}let j=(0,T.disableImplicitInjections)((c=class extends(x().extend(w())){constructor(){super(...arguments),(0,h.Z)(this,"siteSettings",u,this),(0,h.Z)(this,"loading",d,this),(0,h.Z)(this,"stillLoading",p,this),(0,m.Z)(this,"rollingAverage",new P(5,.3)),(0,m.Z)(this,"scheduleManager",new E),(0,m.Z)(this,"timer",new I)}get mode(){return this.siteSettings.page_loading_indicator}get averageLoadingDuration(){return this.rollingAverage.average}transitionStarted(){this.loading||(this.timer.start(),this.loading=!0,this.trigger("stateChanged",!0),this.scheduleManager.cancelAll(),this.scheduleManager.later(this.setStillLoading,2e3))}transitionEnded(){if(!this.loading)return;let e=this.timer.stop();e<.1&&(e=.1),this.rollingAverage.record(e),this.loading=!1,this.stillLoading=!1,this.trigger("stateChanged",!1),this.scheduleManager.cancelAll(),this.scheduleManager.schedule("render",this.removeClasses)}setStillLoading(){this.stillLoading=!0,this.scheduleManager.schedule("render",this.addStillLoadingClass)}addStillLoadingClass(){document.body.classList.add("still-loading")}removeClasses(){document.body.classList.remove("loading","still-loading")}},u=(0,b.Z)(c.prototype,"siteSettings",[k.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,b.Z)(c.prototype,"loading",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),p=(0,b.Z)(c.prototype,"stillLoading",[_.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,b.Z)(c.prototype,"transitionEnded",[S.bind],Object.getOwnPropertyDescriptor(c.prototype,"transitionEnded"),c.prototype),(0,b.Z)(c.prototype,"setStillLoading",[S.bind],Object.getOwnPropertyDescriptor(c.prototype,"setStillLoading"),c.prototype),(0,b.Z)(c.prototype,"addStillLoadingClass",[S.bind],Object.getOwnPropertyDescriptor(c.prototype,"addStillLoadingClass"),c.prototype),(0,b.Z)(c.prototype,"removeClasses",[S.bind],Object.getOwnPropertyDescriptor(c.prototype,"removeClasses"),c.prototype),l=c))||l},81635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(54001),o=n(48163),a=n(17579),l=n.n(a);let c=(0,n(46646).disableImplicitInjections)((i=class extends(l()){async externalLogin(e){let{signup:t=!1,setLoggingIn:n=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{n?.(!0),await e.doLogin({signup:t})}catch{n?.(!1)}}},(0,s.Z)(i.prototype,"externalLogin",[o.action],Object.getOwnPropertyDescriptor(i.prototype,"externalLogin"),i.prototype),r=i))||r},55748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,i,s,o,a,l,c,u=n(94664),d=n(49246),p=n(54001),h=n(6264),m=n(17579),g=n.n(m),f=n(24434),b=n(33217),_=n(68406),y=n(70352),w=n(47582),v=n(57555),k=n(82099);const x="logs-notice-text";let T=(r=(0,h.readOnly)("currentUser.admin"),i=(0,v.default)("text"),s=(0,v.default)("text"),o=(0,v.default)("isEmpty","isAdmin"),a=(0,_.observes)("text"),l=class extends(g()){constructor(){super(...arguments),(0,d.Z)(this,"text",""),(0,u.Z)(this,"isAdmin",c,this)}init(){if(super.init(...arguments),0===this.siteSettings.alert_admins_if_errors_per_hour&&0===this.siteSettings.alert_admins_if_errors_per_minute)return;const e=this.keyValueStore.getItem(x);e&&this.set("text",e),this.messageBus.subscribe("/logs_error_rate_exceeded",this.onLogRateLimit)}willDestroy(){super.willDestroy(...arguments),this.messageBus.unsubscribe("/logs_error_rate_exceeded",this.onLogRateLimit)}onLogRateLimit(e){const{duration:t,rate:n}=e;let r=0;"minute"===t?r=this.siteSettings.alert_admins_if_errors_per_minute:"hour"===t&&(r=this.siteSettings.alert_admins_if_errors_per_hour);let i=n===r?"reached":"exceeded";i+=`_${t}_MF`,this.set("text",k.default.messageFormat(`logs_error_rate_notice.${i}`,{relativeAge:(0,y.autoUpdatingRelativeAge)(new Date(1e3*e.publish_at)),rate:n,limit:r,url:(0,w.default)("/logs")}))}isEmpty(e){return(0,b.isEmpty)(e)}message(e){return(0,f.htmlSafe)(e)}hidden(e,t){return!t||e}_updateKeyValueStore(){this.keyValueStore.setItem(x,this.text)}},c=(0,p.Z)(l.prototype,"isAdmin",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.Z)(l.prototype,"onLogRateLimit",[v.bind],Object.getOwnPropertyDescriptor(l.prototype,"onLogRateLimit"),l.prototype),(0,p.Z)(l.prototype,"isEmpty",[i],Object.getOwnPropertyDescriptor(l.prototype,"isEmpty"),l.prototype),(0,p.Z)(l.prototype,"message",[s],Object.getOwnPropertyDescriptor(l.prototype,"message"),l.prototype),(0,p.Z)(l.prototype,"hidden",[o],Object.getOwnPropertyDescriptor(l.prototype,"hidden"),l.prototype),(0,p.Z)(l.prototype,"_updateKeyValueStore",[a],Object.getOwnPropertyDescriptor(l.prototype,"_updateKeyValueStore"),l.prototype),l)},16088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a=n(94664),l=n(49246),c=n(54001),u=n(17579),d=n.n(u),p=n(10425),h=n(46646),m=n(38616),g=n(47582);let f=(0,h.disableImplicitInjections)((i=class extends(d()){constructor(){super(...arguments),(0,a.Z)(this,"appEvents",s,this),(0,a.Z)(this,"siteSettings",o,this),(0,l.Z)(this,"worker",null),(0,l.Z)(this,"workerUrl",(0,g.getAbsoluteURL)("/javascripts/media-optimization-worker.js")),(0,l.Z)(this,"currentComposerUploadData",null),(0,l.Z)(this,"promiseResolvers",null)}async optimizeImage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.promiseResolvers=this.promiseResolvers||{},this.stopWorkerOnError=!t.hasOwnProperty("stopWorkerOnError")||t.stopWorkerOnError;let n=e;return/(\.|\/)(jpe?g|png)$/i.test(n.type)?n.size<this.siteSettings.composer_media_optimization_image_bytes_optimization_threshold?(this.logIfDebug(`The file ${n.name} was less than the image optimization bytes threshold (${this.siteSettings.composer_media_optimization_image_bytes_optimization_threshold} bytes), skipping.`,n),p.Promise.resolve()):(await this.ensureAvailableWorker(),new p.Promise((async t=>{let r;this.logIfDebug(`Transforming ${n.name}`),this.currentComposerUploadData=e,this.promiseResolvers[n.id]=t;try{r=await(0,m.fileToImageData)(n.data)}catch(e){return this.logIfDebug(e),t()}this.worker.postMessage({type:"compress",fileId:n.id,file:r.data.buffer,fileName:n.name,width:r.width,height:r.height,settings:{resize_threshold:this.siteSettings.composer_media_optimization_image_resize_dimensions_threshold,resize_target:this.siteSettings.composer_media_optimization_image_resize_width_target,resize_pre_multiply:this.siteSettings.composer_media_optimization_image_resize_pre_multiply,resize_linear_rgb:this.siteSettings.composer_media_optimization_image_resize_linear_rgb,encode_quality:this.siteSettings.composer_media_optimization_image_encode_quality,debug_mode:this.siteSettings.composer_media_optimization_debug_mode}},[r.data.buffer])}))):p.Promise.resolve()}async ensureAvailableWorker(){return this.worker&&this.workerInstalled?p.Promise.resolve():this.installPromise?this.installPromise:this.install()}async install(){return this.installPromise=new p.Promise(((e,t)=>{this.afterInstalled=e,this.failedInstall=t,this.logIfDebug("Installing worker."),this.startWorker(),this.registerMessageHandler(),this.worker.postMessage({type:"install",settings:{mozjpeg_script:(0,g.getURLWithCDN)("/javascripts/squoosh/mozjpeg_enc.js"),mozjpeg_wasm:(0,g.getURLWithCDN)("/javascripts/squoosh/mozjpeg_enc.wasm"),resize_script:(0,g.getURLWithCDN)("/javascripts/squoosh/squoosh_resize.js"),resize_wasm:(0,g.getURLWithCDN)("/javascripts/squoosh/squoosh_resize_bg.wasm")}}),this.appEvents.on("composer:closed",this,"stopWorker")})),this.installPromise}startWorker(){this.logIfDebug("Starting media-optimization-worker"),this.worker=new Worker(this.workerUrl)}stopWorker(){this.worker&&(this.logIfDebug("Stopping media-optimization-worker..."),this.workerInstalled=!1,this.worker.terminate(),this.worker=null)}registerMessageHandler(){this.worker.onmessage=e=>{switch(e.data.type){case"file":let t=new File([e.data.file],e.data.fileName,{type:"image/jpeg"});this.logIfDebug(`Finished optimization of ${t.name} new size: ${t.size}.`),this.promiseResolvers[e.data.fileId](t);break;case"error":this.logIfDebug(`Handling error message from image optimization for ${e.data.fileName}.`),this.stopWorkerOnError&&this.stopWorker(),this.promiseResolvers[e.data.fileId]();break;case"installed":this.logIfDebug("Worker installed."),this.workerInstalled=!0,this.afterInstalled(),this.cleanupInstallPromises();break;case"installFailed":this.logIfDebug("Worker failed to install."),this.failedInstall(e.data.errorMessage),this.cleanupInstallPromises();break;default:this.logIfDebug(`Sorry, we are out of ${e}.`)}}}cleanupInstallPromises(){this.afterInstalled=null,this.failedInstall=null,this.installPromise=null}logIfDebug(){this.siteSettings.composer_media_optimization_debug_mode&&console.log(...arguments)}},s=(0,c.Z)(i.prototype,"appEvents",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,c.Z)(i.prototype,"siteSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r},2511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i,s=n(49246),o=n(42480),a=n.n(o);let l=(0,n(46646).disableImplicitInjections)((i=class{static create(){return a()}},(0,s.Z)(i,"isServiceFactory",!0),r=i))||r},72405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>M});var r,i,s,o,a,l,c,u,d,p,h,m,g,f,b=n(94664),_=n(54001),y=n(23183),w=n(72326),v=n(48163),k=n(17579),x=n.n(k),T=n(16572),S=n(71466),C=n.n(S),P=n(83116),O=n(52313),E=n(46646),D=n(54736),I=n(82099);const j=new Set(["admin","templateName","title","titleTranslated","modalClass","titleAriaElementId","panels"]);let Z=(0,E.disableImplicitInjections)((i=class extends(x()){constructor(){super(...arguments),(0,b.Z)(this,"dialog",s,this),(0,b.Z)(this,"activeModal",o,this),(0,b.Z)(this,"opts",a,this),(0,b.Z)(this,"containerElement",l,this)}setContainerElement(e){this.containerElement=e}show(e,t){if("string"==typeof e)return this.dialog.alert(`Error: the '${e}' modal needs updating to work with the latest version of Discourse. See https://meta.discourse.org/t/268057.`),void(0,D.default)(`Defining modals using a controller is no longer supported. Use the component-based API instead. (modal: ${e})`,{id:"discourse.modal-controllers",since:"3.1",dropFrom:"3.2",url:"https://meta.discourse.org/t/268057",raiseError:!0});let n;this.close({initiatedBy:P.CLOSE_INITIATED_BY_MODAL_SHOW});const r=new Promise((e=>{n=e}));this.opts=t??={},this.activeModal={component:e,opts:t,resolveShowPromise:n};const i=Object.keys(t).filter((e=>j.has(e)));if(i.length>0)throw new Error(`${i.join(", ")} are not supported in the component-based modal API. See https://meta.discourse.org/t/268057`);return r}close(e){this.activeModal?.resolveShowPromise?.(e),this.activeModal=null,this.opts={}}},s=(0,_.Z)(i.prototype,"dialog",[k.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,_.Z)(i.prototype,"activeModal",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,_.Z)(i.prototype,"opts",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),l=(0,_.Z)(i.prototype,"containerElement",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,_.Z)(i.prototype,"setContainerElement",[v.action],Object.getOwnPropertyDescriptor(i.prototype,"setContainerElement"),i.prototype),r=i))||r,A=(c=class extends Z{constructor(){super(...arguments),(0,b.Z)(this,"appEvents",u,this),(0,b.Z)(this,"name",d,this),(0,b.Z)(this,"selectedPanel",p,this),(0,b.Z)(this,"hidden",h,this),(0,b.Z)(this,"titleOverride",m,this),(0,b.Z)(this,"modalClassOverride",g,this),(0,b.Z)(this,"onSelectPanel",f,this)}get title(){return this.titleOverride?this.titleOverride:this.opts.titleTranslated?this.opts.titleTranslated:this.opts.title?I.default.t(this.opts.title):null}set title(e){this.titleOverride=e}get modalClass(){return this.isLegacy?this.modalClassOverride||this.opts.modalClass||`${(0,T.dasherize)(this.name.replace(/^modals\//,"")).toLowerCase()}-modal`:null}set modalClass(e){this.modalClassOverride=e}show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return super.show(e,t);this.close({initiatedBy:P.CLOSE_INITIATED_BY_MODAL_SHOW}),(0,D.default)(`Defining modals using a controller is deprecated. Use the component-based API instead. (modal: ${e})`,{id:"discourse.modal-controllers",since:"3.1",dropFrom:"3.2",url:"https://meta.discourse.org/t/268057"});const n=e,r=(0,w.getOwner)(this),i=r.lookup("route:application");this.opts=t;const s=t.admin?`modals/${n}`:n;this.name=s;let o=r.lookup("controller:"+s);const a=t.templateName||(0,T.dasherize)(n),l={into:"application",outlet:"modalBody"};o?l.controller=s:(l.controller="basic-modal-body",o=r.lookup(`controller:${l.controller}`)),t.addModalBodyView&&(l.view="modal-body");const c=`modal/${a}`,u=t.admin?`admin/templates/${c}`:c;(0,D.withSilencedDeprecations)("route-render-template",(()=>{i.render(u,l)})),t.panels&&(o.actions.onSelectPanel&&(this.onSelectPanel=o.actions.onSelectPanel.bind(o)),this.selectedPanel=t.panels[0]),o.set("modal",this);const d=t.model;return d&&o.set("model",d),o.onShow&&o.onShow(),o.set("flashMessage",null),this.activeController=o}close(e){this.isLegacy||super.close(...arguments);const t=this.name,n=t?(0,w.getOwner)(this).lookup(`controller:${t}`):null;if(!1===n?.beforeClose?.())return;const r=(0,w.getOwner)(this).lookup("route:application");(0,D.withSilencedDeprecations)("route-render-template",(()=>{r.render("hide-modal",{into:"application",outlet:"modalBody"})})),C()(".d-modal.fixed-modal").modal("hide"),n&&(this.appEvents.trigger("modal:closed",{name:t,controller:n}),n.onClose&&n.onClose({initiatedByCloseButton:"initiatedByCloseButton"===e,initiatedByClickOut:"initiatedByClickOut"===e,initiatedByESC:"initiatedByESC"===e})),this.hidden=!0,this.name=this.selectedPanel=this.modalClassOverride=this.titleOverride=this.onSelectPanel=null,super.close()}hide(){if(!this.isLegacy)throw"hide/reopen are not supported for component-based modals";C()(".d-modal.fixed-modal").modal("hide")}reopen(){if(!this.isLegacy)throw"hide/reopen are not supported for component-based modals";C()(".d-modal.fixed-modal").modal("show")}get isLegacy(){return this.name&&!this.activeModal}},u=(0,_.Z)(c.prototype,"appEvents",[k.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,_.Z)(c.prototype,"name",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,_.Z)(c.prototype,"selectedPanel",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,_.Z)(c.prototype,"hidden",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),m=(0,_.Z)(c.prototype,"titleOverride",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,_.Z)(c.prototype,"modalClassOverride",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,_.Z)(c.prototype,"onSelectPanel",[y.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c);const M=O.EMBER_MAJOR_VERSION>=4?Z:A},63366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o,a,l=n(94664),c=n(49246),u=n(54001),d=n(23183),p=n(17579),h=n.n(p),m=n(46646);const g="more-topics-list-preference";let f=(0,m.disableImplicitInjections)((i=class extends(h()){constructor(){super(...arguments),(0,l.Z)(this,"keyValueStore",s,this),(0,l.Z)(this,"selectedTab",o,this),(0,l.Z)(this,"topicLists",a,this),(0,c.Z)(this,"memoryTab",null)}init(){super.init(...arguments),this.memoryTab=this.keyValueStore.get(g)}updatePreference(e){"related-messages"!==e&&(this.keyValueStore.set({key:g,value:e}),this.memoryTab=e),this.selectedTab=e}registerTopicList(e){this.memoryTab&&this.memoryTab===e.id&&(this.selectedTab=e.id),this.selectedTab||(this.selectedTab=e.id),this.topicLists=[...this.topicLists,e]}removeTopicList(e){this.topicLists=this.topicLists.filter((t=>t.id!==e)),this.selectedTab===e&&(this.selectedTab=this.topicLists[0]?.id)}},s=(0,u.Z)(i.prototype,"keyValueStore",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,u.Z)(i.prototype,"selectedTab",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),a=(0,u.Z)(i.prototype,"topicLists",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),r=i))||r},4285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i,s,o,a=n(94664),l=n(54001),c=n(17579),u=n.n(c);let d=(0,n(46646).disableImplicitInjections)((i=class extends(u()){constructor(){super(...arguments),(0,a.Z)(this,"site",s,this),(0,a.Z)(this,"siteSettings",o,this)}get isDesktopDropdownMode(){const e="header dropdown"===this.siteSettings.navigation_menu;return!this.site.mobileView&&e}},s=(0,l.Z)(i.prototype,"site",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,l.Z)(i.prototype,"siteSettings",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r},23578:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o=n(94664),a=n(54001),l=n(23183),c=n(51372),u=n(17579),d=n.n(u),p=n(3055),h=n(46646),m=n(56111),g=n(57555);let f=(0,h.disableImplicitInjections)((i=class extends(d()){constructor(){super(...arguments),(0,o.Z)(this,"connected",s,this),window.addEventListener("offline",(()=>{this.setConnectivity(!1),this.startTimerToCheckNavigator()})),window.addEventListener("online",this.pingServerAndSetConnectivity),window.addEventListener("visibilitychange",this.onFocus),navigator.onLine||this.pingServerAndSetConnectivity()}onFocus(){this.connected||"visible"!==document.visibilityState||this.pingServerAndSetConnectivity()}async pingServerAndSetConnectivity(){try{if("ok"!==await(0,p.ajax)("/srv/status",{dataType:"text"}))throw"disconnected";(0,c.cancel)(this._timer),this.setConnectivity(!0)}catch{this.startTimerToCheckNavigator()}}startTimerToCheckNavigator(){(0,c.cancel)(this._timer),this._timer=(0,m.default)(this,this.checkNavigatorOnline,1e3)}checkNavigatorOnline(){navigator.onLine?this.pingServerAndSetConnectivity():this.startTimerToCheckNavigator()}setConnectivity(e){this.connected=e,document.documentElement.classList.toggle("network-disconnected",!e)}},s=(0,a.Z)(i.prototype,"connected",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,a.Z)(i.prototype,"onFocus",[g.bind],Object.getOwnPropertyDescriptor(i.prototype,"onFocus"),i.prototype),(0,a.Z)(i.prototype,"pingServerAndSetConnectivity",[g.bind],Object.getOwnPropertyDescriptor(i.prototype,"pingServerAndSetConnectivity"),i.prototype),(0,a.Z)(i.prototype,"startTimerToCheckNavigator",[g.bind],Object.getOwnPropertyDescriptor(i.prototype,"startTimerToCheckNavigator"),i.prototype),(0,a.Z)(i.prototype,"checkNavigatorOnline",[g.bind],Object.getOwnPropertyDescriptor(i.prototype,"checkNavigatorOnline"),i.prototype),r=i))||r},85270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r,i=n(49246),s=n(54001),o=n(17579),a=n.n(o),l=n(10425),c=n(3055),u=n(38864),d=n(35814),p=n(27397),h=n(12757),m=n(57555);const g=(r=class extends(a()){constructor(){super(...arguments),(0,i.Z)(this,"CHANNEL_PREFIX","/private-message-topic-tracking-state"),(0,i.Z)(this,"inbox",null),(0,i.Z)(this,"filter",null),(0,i.Z)(this,"activeGroup",null)}init(){super.init(...arguments),this.states=new Map,this.statesModificationCounter=0,this.isTracking=!1,this.newIncoming=[],this.stateChangeCallbacks=new Map}willDestroy(){super.willDestroy(...arguments),this.currentUser&&this.messageBus.unsubscribe(this.userChannel(),this._processMessage),this.messageBus.unsubscribe(this.groupChannel("*"),this._processMessage)}onStateChange(e,t){this.stateChangeCallbacks.set(e,t)}offStateChange(e){this.stateChangeCallbacks.delete(e)}startTracking(){return this.isTracking?l.Promise.resolve():(this.messageBus.subscribe(this.userChannel(),this._processMessage),this.currentUser.groupsWithMessages?.forEach((e=>{this.messageBus.subscribe(this.groupChannel(e.id),this._processMessage)})),this._loadInitialState().finally((()=>{this.set("isTracking",!0)})))}lookupCount(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="new"===e?this._isNew:this._isUnread,r=t.inboxFilter||this.inbox;let i;return"user"===r?i=this._isPersonal:"group"===r&&(i=this._isGroup),Array.from(this.states.values()).filter((e=>n(e)&&i?.(e,t.groupName))).length}trackIncoming(e,t,n){this.setProperties({inbox:e,filter:t,activeGroup:n,isTrackingIncoming:!0})}resetIncomingTracking(){this.isTrackingIncoming&&this.set("newIncoming",[])}stopIncomingTracking(){this.isTrackingIncoming&&this.setProperties({isTrackingIncoming:!1,newIncoming:[]})}removeTopics(e){this.isTracking&&(e.forEach((e=>this.states.delete(e))),this._afterStateChange())}findState(e){return this.states.get(e)}userChannel(){return`${this.CHANNEL_PREFIX}/user/${this.currentUser.id}`}groupChannel(e){return`${this.CHANNEL_PREFIX}/group/${e}`}_isNew(e){return!e.last_read_post_number&&(0!==e.notification_level&&!e.notification_level||e.notification_level>=d.NotificationLevels.TRACKING)&&!e.is_seen}_isUnread(e){return e.last_read_post_number&&e.last_read_post_number<e.highest_post_number&&e.notification_level>=d.NotificationLevels.TRACKING}_isPersonal(e){const t=this.currentUser?.groups;return!t||0===t.length||!t.some((t=>e.group_ids?.includes(t.id)))}_isGroup(e,t){return this.currentUser.groups.some((n=>n.name===(t||this.activeGroup.name)&&e.group_ids?.includes(n.id)))}_processMessage(e){switch(e.message_type){case"new_topic":e.payload.created_by_user_id!==this.currentUser.id&&(this._modifyState(e.topic_id,e.payload),[p.NEW_FILTER,p.INBOX_FILTER].includes(this.filter)&&this._shouldDisplayMessageForInbox(e)&&this._notifyIncoming(e.topic_id));break;case"read":this._modifyState(e.topic_id,e.payload);break;case"unread":this._modifyState(e.topic_id,e.payload),[p.UNREAD_FILTER,p.INBOX_FILTER].includes(this.filter)&&this._shouldDisplayMessageForInbox(e)&&this._notifyIncoming(e.topic_id);break;case"group_archive":![p.INBOX_FILTER,p.ARCHIVE_FILTER].includes(this.filter)||e.payload.acting_user_id&&e.payload.acting_user_id===this.currentUser.id||!this._displayMessageForGroupInbox(e)||this._notifyIncoming(e.topic_id)}}_displayMessageForGroupInbox(e){return"group"===this.inbox&&e.payload.group_ids.includes(this.activeGroup.id)}_shouldDisplayMessageForInbox(e){return this._displayMessageForGroupInbox(e)||"user"===this.inbox&&(0===e.payload.group_ids.length||0===this.currentUser.groups.filter((t=>e.payload.group_ids.includes(t.id))).length)}_notifyIncoming(e){this.isTrackingIncoming&&!this.newIncoming.includes(e)&&this.newIncoming.pushObject(e)}_loadInitialState(){return(0,c.ajax)(`/u/${this.currentUser.username}/private-message-topic-tracking-state`).then((e=>{e.forEach((e=>{this._modifyState(e.topic_id,e,{skipIncrement:!0})}))})).catch(u.popupAjaxError)}_modifyState(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.findState(e);let i=t;r&&!(0,h.deepEqual)(r,i)&&(i=(0,h.deepMerge)(r,i)),this.states.set(e,i),n.skipIncrement||this._afterStateChange()}_afterStateChange(){this.incrementProperty("statesModificationCounter"),this.stateChangeCallbacks.forEach((e=>e()))}},(0,s.Z)(r.prototype,"_isPersonal",[m.bind],Object.getOwnPropertyDescriptor(r.prototype,"_isPersonal"),r.prototype),(0,s.Z)(r.prototype,"_isGroup",[m.bind],Object.getOwnPropertyDescriptor(r.prototype,"_isGroup"),r.prototype),(0,s.Z)(r.prototype,"_processMessage",[m.bind],Object.getOwnPropertyDescriptor(r.prototype,"_processMessage"),r.prototype),r)},77592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PresenceChannelNotFound:()=>L,default:()=>R});var r,i,s,o,a,l,c,u,d,p,h,m,g=n(94664),f=n(49246),b=n(54001),_=n(48163),y=n.n(_),w=n(40375),v=n.n(w),k=n(51372),x=n(17579),T=n.n(x),S=n(10425),C=n(3055),P=n(46646),O=n(3872),E=n(7223),D=n(34405),I=n(47582),j=n(12933),Z=n(57555);const A=(0,D.isTesting)()?0:500,M=(0,D.isTesting)()?0:1e3,N={userUnseenTime:6e4,browserHiddenTime:1e4};function z(){const e={};return e.promise=new S.Promise(((t,n)=>{e.resolve=t,e.reject=n})),e}class L extends Error{}let F=(r=(0,_.computed)("_presenceState.users","subscribed"),i=(0,_.computed)("_presenceState.count","subscribed"),s=(0,_.computed)("_presenceState.count","subscribed"),o=class extends(y().extend(v())){init(e){let{name:t,presenceService:n}=e;super.init(...arguments),this.name=t,this.presenceService=n,this.set("present",!1),this.set("subscribed",!1)}async enter(){let{onlyWhileActive:e=!0,activeOptions:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e&&t){for(const e in N)if(t[e]<N[e])throw`${e} cannot be less than ${N[e]} (given ${t[e]})`}else e&&!t&&(t=N);this.setProperties({activeOptions:t}),this.present||(this.set("present",!0),await this.presenceService._enter(this))}async leave(){this.present&&(this.set("present",!1),await this.presenceService._leave(this))}async subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.subscribed)return;const t=await this.presenceService._subscribe(this,e);this.set("subscribed",!0),this.set("_presenceState",t),this._publishChange(),t.on("change",this._publishChange)}async unsubscribe(){this.subscribed&&(await this.presenceService._unsubscribe(this),this.set("subscribed",!1),this._presenceState.off("change",this._publishChange),this.set("_presenceState",null),this._publishChange())}_publishChange(){this.trigger("change",this)}get users(){if(this.subscribed)return this._presenceState?.users}get count(){if(this.subscribed)return this._presenceState?.count}get countOnly(){if(this.subscribed)return this._presenceState?.countOnly}},(0,b.Z)(o.prototype,"_publishChange",[Z.bind],Object.getOwnPropertyDescriptor(o.prototype,"_publishChange"),o.prototype),(0,b.Z)(o.prototype,"users",[r],Object.getOwnPropertyDescriptor(o.prototype,"users"),o.prototype),(0,b.Z)(o.prototype,"count",[i],Object.getOwnPropertyDescriptor(o.prototype,"count"),o.prototype),(0,b.Z)(o.prototype,"countOnly",[s],Object.getOwnPropertyDescriptor(o.prototype,"countOnly"),o.prototype),o),U=(a=(0,_.computed)("_subscribedCallback"),l=class extends(y().extend(v())){init(e){let{name:t,presenceService:n}=e;super.init(...arguments),this.name=t,this.set("users",null),this.set("count",null),this.set("countOnly",null),this.presenceService=n}get subscribed(){return!!this._subscribedCallback}async subscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.subscribed||(e||(e=await this.presenceService._getInitialData(this.name)),this.set("count",e.count),e.users?(this.set("users",e.users),this.set("countOnly",!1)):(this.set("users",null),this.set("countOnly",!0)),this.lastSeenId=e.last_message_id,this.presenceService.messageBus.subscribe(`/presence${this.name}`,this._processMessage,this.lastSeenId),this.set("_subscribedCallback",this._processMessage),this.trigger("change"))}unsubscribe(){this.subscribed&&(this.presenceService.messageBus.unsubscribe(`/presence${this.name}`,this._subscribedCallback),this.set("_subscribedCallback",null),this.set("users",null),this.set("count",null),this.trigger("change"))}async _resubscribe(){this.unsubscribe(),await this.subscribe()}async _processMessage(e,t,n){if(n!==this.lastSeenId+1)return console.log(`PresenceChannel '${this.name}' dropped message (received ${n}, expecting ${this.lastSeenId+1}), resyncing...`),void await this._resubscribe();if(this.lastSeenId=n,this.countOnly&&void 0!==e.count_delta)this.set("count",this.count+e.count_delta),this.trigger("change");else{if(this.countOnly||!e.entering_users&&!e.leaving_user_ids)return void await this._resubscribe();if(e.entering_users){const t=e.entering_users.map((e=>E.default.create(e)));this.users.addObjects(t)}if(e.leaving_user_ids){const t=new Set(e.leaving_user_ids),n=this.users.filter((e=>t.has(e.id)));this.users.removeObjects(n)}this.set("count",this.users.length),this.trigger("change")}}},(0,b.Z)(l.prototype,"subscribed",[a],Object.getOwnPropertyDescriptor(l.prototype,"subscribed"),l.prototype),(0,b.Z)(l.prototype,"_processMessage",[Z.bind],Object.getOwnPropertyDescriptor(l.prototype,"_processMessage"),l.prototype),l),R=(0,P.disableImplicitInjections)((u=class extends(T()){constructor(){super(...arguments),(0,g.Z)(this,"currentUser",d,this),(0,g.Z)(this,"messageBus",p,this),(0,g.Z)(this,"session",h,this),(0,g.Z)(this,"siteSettings",m,this),(0,f.Z)(this,"_presenceDebounceMs",A)}init(){super.init(...arguments),this._queuedEvents=[],this._presenceChannelStates=new Map,this._presentProxies=new Map,this._subscribedProxies=new Map,this._initialDataRequests=new Map,this._previousPresentButInactiveChannels=new Set,this.currentUser&&(window.addEventListener("beforeunload",this._beaconLeaveAll),(0,O.onPresenceChange)({...N,callback:this._throttledUpdateServer}))}get _presentChannels(){return new Set(this._presentProxies.keys())}willDestroy(){super.willDestroy(...arguments),window.removeEventListener("beforeunload",this._beaconLeaveAll),(0,O.removeOnPresenceChange)(this._throttledUpdateServer),(0,k.cancel)(this._debounceTimer)}getChannel(e){return F.create({name:e,presenceService:this})}_getInitialData(e){let t=this._initialDataRequests[e];return t||(t=this._initialDataRequests[e]=z()),(0,k.once)(this,this._makeInitialDataRequest),t.promise}async _makeInitialDataRequest(){if(this._initialDataAjax)return void(0,k.next)(this,(()=>(0,k.once)(this,this._makeInitialDataRequest)));if(0===Object.keys(this._initialDataRequests).length)return;let e;this._initialDataAjax=(0,C.ajax)("/presence/get",{data:{channels:Object.keys(this._initialDataRequests).slice(0,50)}});try{e=await this._initialDataAjax}catch(e){throw(0,j.default)(this,this._makeInitialDataRequest,5e3),e}finally{this._initialDataAjax=null}for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];if(n)this._initialDataRequests[t].resolve(n);else{const e=new L(`PresenceChannel '${t}' not found`);this._initialDataRequests[t].reject(e)}delete this._initialDataRequests[t]}}_addPresent(e){let t=this._presentProxies.get(e.name);return t||(t=new Set,this._presentProxies.set(e.name,t)),t.add(e),t.size}_removePresent(e){let t=this._presentProxies.get(e.name);return t?.delete(e),0===t?.size&&this._presentProxies.delete(e.name),t?.size||0}_addSubscribed(e){let t=this._subscribedProxies.get(e.name);return t||(t=new Set,this._subscribedProxies.set(e.name,t)),t.add(e),t.size}_removeSubscribed(e){let t=this._subscribedProxies.get(e.name);return t?.delete(e),0===t?.size&&this._subscribedProxies.delete(e.name),t?.size||0}async _enter(e){if(!this.currentUser)throw"Must be logged in to enter presence channel";if(this._addPresent(e)>1)return;const t=z();this._queuedEvents.push({channel:e.name,type:"enter",promiseProxy:t}),this._scheduleNextUpdate(),await t.promise}async _leave(e){if(!this.currentUser)throw"Must be logged in to leave presence channel";if(this._removePresent(e)>0)return;const t=z();this._queuedEvents.push({channel:e.name,type:"leave",promiseProxy:t}),this._scheduleNextUpdate(),await t.promise}async _subscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.siteSettings.login_required&&!this.currentUser)throw"Presence is only available to authenticated users on login-required sites";this._addSubscribed(e);const n=e.name;let r=this._presenceChannelStates.get(n);return r||(r=U.create({name:n,presenceService:this}),this._presenceChannelStates.set(n,r),await r.subscribe(t)),r}_unsubscribe(e){if(0===this._removeSubscribed(e)){const t=e.name;this._presenceChannelStates.get(t).unsubscribe(),this._presenceChannelStates.delete(t)}}_beaconLeaveAll(){if((0,D.isTesting)())return;this._dedupQueue();const e=this._queuedEvents.filter((e=>"leave"===e.type)).map((e=>e.channel));if(e.push(...this._presentChannels),0===e.length)return;const t=new FormData;t.append("client_id",this.messageBus.clientId),e.forEach((e=>t.append("leave_channels[]",e))),t.append("authenticity_token",this.session.csrfToken),navigator.sendBeacon((0,I.default)("/presence/update"),t)}_dedupQueue(){const e={};this._queuedEvents.forEach((t=>{e[t.channel]&&e[t.channel].promiseProxy.resolve(t.promiseProxy.promise),e[t.channel]=t})),this._queuedEvents=Object.values(e)}async _updateServer(){this._lastUpdate=new Date,this._updateRunning=!0,this._cancelTimer(),this._dedupQueue();const e=this._queuedEvents;this._queuedEvents=[];try{const t=[],n=new Set,r=e.filter((e=>"leave"===e.type)).map((e=>e.channel));for(const[e,i]of this._presentProxies)Array.from(i).some((e=>!e.activeOptions||(0,O.default)(e.activeOptions)))?t.push(e):(n.add(e),this._previousPresentButInactiveChannels.has(e)||r.push(e));if(this._previousPresentButInactiveChannels=n,0===e.length&&0===t.length&&0===r.length)return;const i=await(0,C.ajax)("/presence/update",{data:{client_id:this.messageBus.clientId,present_channels:t,leave_channels:r},type:"POST"});e.forEach((e=>{!1===i[e.channel]?e.promiseProxy.reject(new L(`PresenceChannel '${e.channel}' not found`)):e.promiseProxy.resolve()})),this._presenceDebounceMs=A}catch(t){if(this._queuedEvents.unshift(...e),429!==t.jqXHR?.status)throw this._presenceDebounceMs=Math.min(2*this._presenceDebounceMs,3e4),t;{const e=t.jqXHR.responseJSON?.extras?.wait_seconds||10;this._presenceDebounceMs=1e3*e}}finally{this._updateRunning=!1,this._scheduleNextUpdate()}}_throttledUpdateServer(){!this._lastUpdate||new Date-this._lastUpdate>M?this._updateServer():(0,k.throttle)(this,this._updateServer,M,!1)}_cancelTimer(){this._nextUpdateTimer&&((0,k.cancel)(this._nextUpdateTimer),this._nextUpdateTimer=null)}_scheduleNextUpdate(){this._updateRunning||(this._queuedEvents.length>0?(this._cancelTimer(),(0,k.cancel)(this._debounceTimer),this._debounceTimer=(0,k.debounce)(this,this._throttledUpdateServer,this._presenceDebounceMs)):!this._nextUpdateTimer&&this._presentChannels.size>0&&!(0,D.isTesting)()&&(this._nextUpdateTimer=(0,j.default)(this,this._throttledUpdateServer,3e4)))}},d=(0,b.Z)(u.prototype,"currentUser",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,b.Z)(u.prototype,"messageBus",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,b.Z)(u.prototype,"session",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,b.Z)(u.prototype,"siteSettings",[x.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.Z)(u.prototype,"_beaconLeaveAll",[Z.bind],Object.getOwnPropertyDescriptor(u.prototype,"_beaconLeaveAll"),u.prototype),(0,b.Z)(u.prototype,"_throttledUpdateServer",[Z.bind],Object.getOwnPropertyDescriptor(u.prototype,"_throttledUpdateServer"),u.prototype),c=u))||c},81501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(49246),i=n(17579),s=n.n(i),o=n(57959);class a extends(s()){constructor(){super(...arguments),(0,r.Z)(this,"_registrations",new o.TrackedSet)}add(e){this._registrations.add(e)}remove(e){this._registrations.delete(e)}cleanup(){this._registrations.forEach((e=>{document.body.contains(e.element)||this.remove(e)}))}}},4898:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a,l=n(94664),c=n(49246),u=n(54001),d=n(51372),p=n(17579),h=n.n(p),m=n(46646),g=n(34405),f=n(57555);const b=Symbol("scroll-location");let _=(0,m.disableImplicitInjections)((a=new WeakSet,i=class extends(h()){constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=a),t.add(e),(0,l.Z)(this,"router",s,this),(0,l.Z)(this,"historyStore",o,this),(0,c.Z)(this,"scrollElement",(0,g.isTesting)()?document.getElementById("ember-testing-container"):document.scrollingElement)}routeWillChange(){this.historyStore.set(b,[this.scrollElement.scrollLeft,this.scrollElement.scrollTop])}routeDidChange(e){if(e.isAborted)return;if(!function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,a,y).call(this,e.to))return;const t=this.historyStore.get(b)||[0,0];(0,d.schedule)("afterRender",(()=>{this.scrollElement.scrollTo(...t)}))}init(){super.init(...arguments),this.router.on("routeDidChange",this.routeDidChange),this.router.on("routeWillChange",this.routeWillChange)}willDestroy(){this.router.off("routeDidChange",this.routeDidChange),this.router.off("routeWillChange",this.routeWillChange)}},s=(0,u.Z)(i.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,u.Z)(i.prototype,"historyStore",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.Z)(i.prototype,"routeWillChange",[f.bind],Object.getOwnPropertyDescriptor(i.prototype,"routeWillChange"),i.prototype),(0,u.Z)(i.prototype,"routeDidChange",[f.bind],Object.getOwnPropertyDescriptor(i.prototype,"routeDidChange"),i.prototype),r=i))||r;function y(e){for(let t=e;t;t=t.parent){const e=t.metadata?.scrollOnTransition;if("boolean"==typeof e)return e}return!0}},41548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r,i,s,o,a,l,c,u,d=n(94664),p=n(49246),h=n(54001),m=n(51372),g=n(17579),f=n.n(g),b=n(3055),_=n(46646),y=n(5002),w=n(34405),v=n(57555);const k=[5e3,1e4,2e4,4e4],x=[405,429,500,501,502,503,504];let T=(0,_.disableImplicitInjections)((i=class extends(f()){constructor(){super(...arguments),(0,d.Z)(this,"appEvents",s,this),(0,d.Z)(this,"currentUser",o,this),(0,d.Z)(this,"keyValueStore",a,this),(0,d.Z)(this,"session",l,this),(0,d.Z)(this,"siteSettings",c,this),(0,d.Z)(this,"topicTrackingState",u,this),(0,p.Z)(this,"_consolidatedTimings",[]),(0,p.Z)(this,"_lastTick",null),(0,p.Z)(this,"_lastScrolled",null),(0,p.Z)(this,"_lastFlush",0),(0,p.Z)(this,"_timings",{}),(0,p.Z)(this,"_totalTimings",{}),(0,p.Z)(this,"_topicTime",0),(0,p.Z)(this,"_onscreen",[]),(0,p.Z)(this,"_readOnscreen",[]),(0,p.Z)(this,"_readPosts",{}),(0,p.Z)(this,"_inProgress",!1),this.reset()}start(e,t){const n=this._topicId;n&&n!==e&&(this.tick(),this.flush()),this.reset(),this._interval||(this._interval=setInterval((()=>{(0,m.run)((()=>this.tick()))}),1e3),window.addEventListener("scroll",this.scrolled)),this._topicId=e,this._topicController=t}stop(){this._topicId&&(window.removeEventListener("scroll",this.scrolled),this.tick(),this.flush(),this.reset(),this._topicId=null,this._topicController=null,this._interval&&(clearInterval(this._interval),this._interval=null))}setOnscreen(e,t){this._onscreen=e,this._readOnscreen=t}reset(){const e=Date.now();this._lastTick=e,this._lastScrolled=e,this._lastFlush=0,this._timings={},this._totalTimings={},this._topicTime=0,this._onscreen=[],this._readOnscreen=[],this._readPosts={},this._inProgress=!1}scrolled(){this._lastScrolled=Date.now()}registerAnonCallback(e){this._anonCallback=e}consolidateTimings(e,t,n){let r=this._consolidatedTimings.findIndex((e=>e.topicId===n));if(r>-1){let n=this._consolidatedTimings[r];const i=this._consolidatedTimings.length-1;if(r!==i){const e=this._consolidatedTimings[i];this._consolidatedTimings[i]=n,this._consolidatedTimings[i-1]=e}const s=n.timings;Object.keys(s).forEach((t=>{e[t]&&(s[t]+=e[t])})),n.topicTime+=t,n.timings={...e,...n.timings}}else this._consolidatedTimings.push({timings:e,topicTime:t,topicId:n});const i=parseInt(Object.keys(e).lastObject,10),s=this.highestReadFromCache(n);return(!s||s<i)&&(0,y.setHighestReadCache)(n,i),this._consolidatedTimings}highestReadFromCache(e){return(0,y.getHighestReadCache)(e)}sendNextConsolidatedTiming(){if(0===this._consolidatedTimings.length)return;if(this._inProgress)return;if(this._blockSendingToServerTill&&this._blockSendingToServerTill>Date.now())return;this._ajaxFailures=this._ajaxFailures||0;const{timings:e,topicTime:t,topicId:n}=this._consolidatedTimings.pop(),r={timings:e,topic_time:t,topic_id:n};return this._inProgress=!0,(0,b.ajax)("/topics/timings",{data:r,type:"POST",headers:{"X-SILENCE-LOGGER":"true","Discourse-Background":"true"}}).then((()=>{if(this.isDestroying||this.isDestroyed)return;this._ajaxFailures=0;const t=this._topicController;if(t){const r=Object.keys(e).map((e=>parseInt(e,10)));t.readPosts(n,r);const i=this.highestReadFromCache(n);i&&i<=r.lastObject&&(0,y.resetHighestReadCache)(n)}this.appEvents.trigger("topic:timings-sent",r)})).catch((r=>{if(r.jqXHR&&x.includes(r.jqXHR.status)){const r=k[this._ajaxFailures];this._ajaxFailures+=1,r&&(this._blockSendingToServerTill=Date.now()+r,this.consolidateTimings(e,t,n))}window.console&&window.console.warn&&r.jqXHR&&window.console.warn(`Failed to update topic times for topic ${n} due to ${r.jqXHR.status} error`)})).finally((()=>{this._inProgress=!1,this._lastFlush=0}))}flush(){const e={},t=this._totalTimings,n=this._timings;Object.keys(this._timings).forEach((r=>{const i=n[r];t[r]=t[r]||0,i>0&&t[r]<36e4&&(t[r]+=i,e[r]=i),n[r]=0}));const r=parseInt(this._topicId,10);let i=0;const s=this._topicController,o=s?s.get("model.postStream"):null;this.currentUser&&this.currentUser.get("ignored_users.length")&&o&&o.hasNoFilters&&!o.canAppendMore&&o.posts.lastObject&&o.posts.lastObject.read&&o.gaps&&o.gaps.after[o.posts.lastObject.id]&&o.topic.last_read_post_number!==o.posts.lastObject.post_number+o.get(`gaps.after.${o.posts.lastObject.id}.length`)&&(e[o.posts.lastObject.post_number+o.get(`gaps.after.${o.posts.lastObject.id}.length`)]=1);const a=Object.keys(e);a.forEach((e=>{i=Math.max(i,parseInt(e,10))}));const l=this.session.get("highestSeenByTopic");if((l[r]||0)<i&&(l[r]=i),this.topicTrackingState.updateSeen(r,i),a.length>0){if(this.currentUser)this.consolidateTimings(e,this._topicTime,r),(0,w.isTesting)()||this.sendNextConsolidatedTiming();else if(this._anonCallback){const e=this.keyValueStore,t=e.getInt("anon-topic-time");e.setItem("anon-topic-time",t+this._topicTime);let n=e.get("anon-topic-ids");n=n?n.split(",").map((e=>parseInt(e,10))):[],!n.includes(r)&&n.length<5&&(n.push(r),e.setItem("anon-topic-ids",n.join(","))),this._anonCallback()}this._topicTime=0}this._lastFlush=0}tick(){const e=Date.now();if(e-this._lastScrolled>18e4)return;const t=e-this._lastTick;this._lastFlush+=t,this._lastTick=e;const n=this._totalTimings,r=this._timings,i=1e3*this.siteSettings.flush_timings_secs,s=Object.keys(r).some((e=>r[e]>0&&!n[e]&&!this._readPosts[e]));!this._inProgress&&(this._lastFlush>i||s)&&this.flush(),this._inProgress||this.sendNextConsolidatedTiming(),this.session.hasFocus&&(this._topicTime+=t,this._onscreen.forEach((e=>r[e]=(r[e]||0)+t)),this._readOnscreen.forEach((e=>{this._readPosts[e]=!0})))}},s=(0,h.Z)(i.prototype,"appEvents",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,h.Z)(i.prototype,"currentUser",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.Z)(i.prototype,"keyValueStore",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.Z)(i.prototype,"session",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.Z)(i.prototype,"siteSettings",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.Z)(i.prototype,"topicTrackingState",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.Z)(i.prototype,"scrolled",[v.bind],Object.getOwnPropertyDescriptor(i.prototype,"scrolled"),i.prototype),r=i))||r},95386:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(49246),i=n(17579),s=n.n(i),o=n(59295);class a extends(s()){constructor(){super(...arguments),(0,r.Z)(this,"STORE_NAMESPACE","discourse_search_preferences_manager_"),(0,r.Z)(this,"store",new o.default(this.STORE_NAMESPACE))}get sortOrder(){return this.store.getObject("sortOrder")}set sortOrder(e){this.store.setObject({key:"sortOrder",value:e})}}},16180:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i,s,o,a,l,c,u,d=n(94664),p=n(49246),h=n(54001),m=n(23183),g=n(48163),f=n(17579),b=n.n(f),_=n(77441);let y=(0,n(46646).disableImplicitInjections)((i=class extends(b()){constructor(){super(...arguments),(0,d.Z)(this,"appEvents",s,this),(0,d.Z)(this,"activeGlobalSearchTerm",o,this),(0,d.Z)(this,"searchContext",a,this),(0,d.Z)(this,"highlightTerm",l,this),(0,d.Z)(this,"inTopicContext",c,this),(0,d.Z)(this,"visible",u,this),(0,p.Z)(this,"searchContextEnabled",!1)}get contextType(){return this.searchContext?.type||null}handleResultInsertion(e){if(65===e.keyCode&&document.querySelector("#reply-control.open"))return this.appEvents.trigger("composer:insert-text",document.activeElement.href,{ensureSpace:!0}),this.appEvents.trigger("header:keyboard-trigger",{type:"search"}),document.querySelector("#reply-control.open textarea").focus(),e.stopPropagation(),e.preventDefault(),!1}handleArrowUpOrDown(e){if("ArrowUp"===e.key||"ArrowDown"===e.key){let t=e.target.closest(".search-menu")?e.target:null;if(!t)return;let n,r,i=document.querySelectorAll(".search-menu .results a"),s=document.querySelectorAll(".search-menu .results .search-link");if(!s.length)return;i.forEach((e=>{e.classList.contains("search-link")&&(n=e),e===t&&(r=n)}));let o=-1;return r&&(o=Array.prototype.indexOf.call(s,r)),-1===o&&"ArrowDown"===e.key?(s[0]||i[0]).focus():0===o&&"ArrowUp"===e.key?(0,_.focusSearchInput)():o>-1&&(o+="ArrowDown"===e.key?1:-1,o>=0&&o<s.length&&s[o].focus()),e.stopPropagation(),e.preventDefault(),!1}}},s=(0,h.Z)(i.prototype,"appEvents",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,h.Z)(i.prototype,"activeGlobalSearchTerm",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),a=(0,h.Z)(i.prototype,"searchContext",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.Z)(i.prototype,"highlightTerm",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.Z)(i.prototype,"inTopicContext",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u=(0,h.Z)(i.prototype,"visible",[m.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,h.Z)(i.prototype,"handleResultInsertion",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"handleResultInsertion"),i.prototype),(0,h.Z)(i.prototype,"handleArrowUpOrDown",[g.action],Object.getOwnPropertyDescriptor(i.prototype,"handleArrowUpOrDown"),i.prototype),r=i))||r},9373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r,i,s,o,a,l,c,u=n(94664),d=n(54001),p=n(23183),h=n(17579),m=n.n(h),g=n(46646),f=n(62362),b=n(78715);let _=(0,g.disableImplicitInjections)((c=new WeakSet,i=class extends(m()){constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=c),t.add(e),(0,u.Z)(this,"currentPanelKey",s,this),(0,u.Z)(this,"panels",o,this),(0,u.Z)(this,"mode",a,this),(0,u.Z)(this,"displaySwitchPanelButtons",l,this),function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,c,y).call(this)}setPanel(e){this.currentPanelKey=e}get currentPanel(){return this.panels.find((e=>e.key===this.currentPanelKey))}setSeparatedMode(){this.mode=b.SEPARATED_MODE,this.showSwitchPanelButtons()}setCombinedMode(){this.mode=b.COMBINED_MODE,this.currentPanelKey=b.MAIN_PANEL,this.hideSwitchPanelButtons()}showSwitchPanelButtons(){this.displaySwitchPanelButtons=!0}hideSwitchPanelButtons(){this.displaySwitchPanelButtons=!1}get combinedMode(){return this.mode===b.COMBINED_MODE}get showMainPanel(){return this.currentPanelKey===b.MAIN_PANEL}},s=(0,d.Z)(i.prototype,"currentPanelKey",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return f.currentPanelKey}}),o=(0,d.Z)(i.prototype,"panels",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return f.customPanels}}),a=(0,d.Z)(i.prototype,"mode",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return b.COMBINED_MODE}}),l=(0,d.Z)(i.prototype,"displaySwitchPanelButtons",[p.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r=i))||r;function y(){this.currentPanelKey=f.currentPanelKey,this.panels=f.customPanels,this.mode=b.COMBINED_MODE}},8366:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSiteSettingsFromPreloaded:()=>c,default:()=>u});var r,i,s=n(49246),o=n(57959),a=n(46646),l=n(13369);function c(e){const t=new o.TrackedObject(e);return t.groupSettingArray=e=>{const n=t[e];return n?n.toString().split("|").filter(Boolean).map((e=>parseInt(e,10))):[]},t.userInAnyGroups=(e,n)=>{const r=t.groupSettingArray(e);return n.isInAnyGroups(r)},t}let u=(0,a.disableImplicitInjections)((i=class{static create(){return c(l.default.get("siteSettings"))}},(0,s.Z)(i,"isServiceFactory",!0),r=i))||r},44416:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b,flushMap:()=>m});var r=n(49246),i=(n(95793),n(48163)),s=n(17579),o=n.n(s),a=n(16572),l=n(10425),c=n(3055),u=n(12652),d=n(88144),p=n(37080);let h;function m(){h={}}function g(e,t,n){t&&(h[e]=h[e]||{},h[e][t]=n)}function f(e,t){const n=h[e];n&&n.hasOwnProperty(t)&&delete n[t]}m();class b extends(o()){constructor(){super(...arguments),(0,r.Z)(this,"_plurals",{category:"categories","post-reply":"post-replies","post-reply-history":"post_reply_histories",reviewable_history:"reviewable_histories"})}init(){super.init(...arguments),this.register=this.register||(0,p.getRegister)(this)}pluralize(e){return this._plurals[e]||e+"s"}addPluralization(e,t){this._plurals[e]=t}findAll(e,t){const n=this.adapterFor(e);let r=this;return n.findAll(this,e,t).then((t=>{let i=this._resultSet(e,t);return n.afterFindAll&&(i=n.afterFindAll(i,{lookup:(n,i)=>r._lookupSubType(n,e,i,t)})),i}))}findFiltered(e,t){return this.adapterFor(e).find(this,e,t).then((t=>this._build(e,t)))}_hydrateFindResults(e,t,n){if("object"==typeof n)return this._resultSet(t,e,n);{const n=this.adapterFor(t).apiNameFor(t);return this._hydrate(t,e[(0,a.underscore)(n)],e)}}findStale(e,t,n){const r=this.adapterFor(e).findStale(this,e,t,n);return{hasResults:void 0!==r,results:r,refresh:()=>this.find(e,t,n)}}find(e,t,n){let r=this.adapterFor(e);return r.find(this,e,t,n).then((i=>{let s=this._hydrateFindResults(i,e,t,n);if(i.extras&&s.set("extras",i.extras),r.cache){const i=r.findStale(this,e,t,n);s=this._updateStale(i,s,r.primaryKey),r.cacheFind(this,e,t,n,s)}return s}))}_updateStale(e,t,n){return e?(t.set("content",t.get("content").map((t=>{let r=e.content.findBy(n,t.get(n));if(r)for(const[e,t]of Object.entries(Object.getOwnPropertyDescriptors(r)))t.writable&&t.enumerable&&r.set(e,t.value);else r=t;return r}))),t):t}refreshResults(e,t,n){const r=this.adapterFor(t);return(0,c.ajax)(n).then((n=>{const i=(0,a.underscore)(this.pluralize(r.apiNameFor(t))),s=n[i].map((e=>this._hydrate(t,e,n)));e.set("content",s)}))}appendResults(e,t,n){const r=this.adapterFor(t);return(0,c.ajax)(n).then((n=>{const i=(0,a.underscore)(this.pluralize(r.apiNameFor(t)));let s=n.meta||n,o=s["total_rows_"+i]||e.get("totalRows"),l=s["load_more_"+i],c=n[i].map((e=>this._hydrate(t,e,n)));e.setProperties({totalRows:o,loadMoreUrl:l}),e.get("content").pushObjects(c),e.get("length")>=o&&e.set("loadMoreUrl",null)}))}update(e,t,n){const r=this.adapterFor(e);return r.update(this,e,t,n,(function(n){if(n&&n[e]&&n[e][r.primaryKey]){const i=function(e,t){const n=h[e];if(n&&n.hasOwnProperty(t)){const e=n[t];return delete n[t],e}}(e,t);g(e,n[e][r.primaryKey],i)}return n}))}createRecord(e,t){return(t=t||{})[this.adapterFor(e).primaryKey]?this._hydrate(e,t):this._build(e,t)}destroyRecord(e,t){const n=this.adapterFor(e);return t.get("isNew")?(f(e,t.get(n.primaryKey)),l.Promise.resolve(!0)):n.destroyRecord(this,e,t).then((function(r){return f(e,t.get(n.primaryKey)),r}))}_resultSet(e,t,n){const r=this.adapterFor(e),i=(0,a.underscore)(this.pluralize(r.apiNameFor(e)));if(!t[i])return void console.error(`JSON response is missing \`${i}\` key`,t);const s=t[i].map((n=>this._hydrate(e,n,t)));let o=t.meta||t;const l={content:s,findArgs:n,totalRows:o["total_rows_"+i]||s.length,loadMoreUrl:o["load_more_"+i],refreshUrl:o["refresh_"+i],resultSetMeta:t.meta,store:this,__type:e};return t.extras&&(l.extras=t.extras),d.default.create(l)}_build(e,t){const n=this.adapterFor(e);t.store=this,t.__type=e,t.__state=t[n.primaryKey]?"created":"new";const r=(this.register.lookupFactory("model:"+e)||u.default).create(t);return g(e,t[n.primaryKey],r),r}adapterFor(e){return this.register.lookup("adapter:"+e)||this.register.lookup("adapter:rest")}_lookupSubType(e,t,n,r){r.meta&&r.meta.types&&(e=r.meta.types[e]||e);const i=this.adapterFor(e),s=this.pluralize(e),o=r[this.pluralize(e)];if(o){const t="__hashed_"+s;let a=r[t];a||(a={},o.forEach((function(e){a[e[i.primaryKey]]=e})),r[t]=a);const l=a[n];if(l){const t=this._hydrate(e,l,r);return a[n]=t,t}}}_hydrateEmbedded(e,t,n){const r=this.adapterFor(e);Object.keys(t).forEach((s=>{if(s===r.primaryKey)return;const o=/(.+)\_id(s?)$/.exec(s);if(o){const r=o[1];if(o[2]){if(!Array.isArray(t[s]))return;const i=t[s].map((t=>this._lookupSubType(r,e,t,n)));t[this.pluralize(r)]=i||[],delete t[s]}else{const o=this._lookupSubType(r,e,t[s],n);o?(t[r]=o,delete t[s]):(0,i.set)(t,r,null)}}}))}_hydrate(e,t,n){if(!t)throw new Error("Can't hydrate "+e+" of `null`");const r=this.adapterFor(e),i=t[r.primaryKey];if(!i)throw new Error(`Can't hydrate ${e} without primaryKey: \`${r.primaryKey}\``);"1"===(n=n||t).__rest_serializer&&this._hydrateEmbedded(e,t,n);const s=function(e,t){const n=h[e];if(n&&n.hasOwnProperty(t))return n[t]}(e,i);if(s===t)return s;if(s){delete t[r.primaryKey];let n=this.register.lookupFactory("model:"+e);return n&&n.class&&(n=n.class),n||(n=u.default),s.setProperties(n.munge(t)),t[r.primaryKey]=i,s}return this._build(e,t)}}},46910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i,s,o,a,l,c=n(94664),u=n(54001),d=n(17579),p=n.n(d),h=n(3055),m=n(71605);function g(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function f(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let b=(0,n(46646).disableImplicitInjections)((o=new WeakSet,a=new WeakSet,l=new WeakSet,i=class extends(p()){constructor(){super(...arguments),g(this,l),g(this,a),g(this,o),(0,c.Z)(this,"currentUser",s,this)}async set(e,t){await(0,h.ajax)({url:"/user-status.json",type:"PUT",data:e}),this.currentUser.set("status",e),t?f(this,o,_).call(this,e.ends_at):f(this,a,y).call(this)}async clear(){await(0,h.ajax)({url:"/user-status.json",type:"DELETE"}),this.currentUser.set("status",null),f(this,a,y).call(this)}},s=(0,u.Z)(i.prototype,"currentUser",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r;function _(e){const t=f(this,l,w).call(this,e??m.default.forever);this.currentUser.enterDoNotDisturbFor(t)}function y(){this.currentUser.isInDoNotDisturb()&&this.currentUser.leaveDoNotDisturb()}function w(e){return moment.utc(e).diff(moment.utc(),"minutes")}},46361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r,i,s,o,a,l,c,u,d=n(94664),p=n(58255),h=n(32758),m=n(54001),g=n(17579),f=n.n(g),b=n(57959),_=n(46646),y=n(34405);function w(e,t,n){v(e,t),t.set(e,n)}function v(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}let x=(0,_.disableImplicitInjections)((a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakSet,i=class extends(f()){constructor(){var e;super(...arguments),v(this,e=u),e.add(this),(0,d.Z)(this,"site",s,this),(0,d.Z)(this,"currentUser",o,this),w(this,a,{writable:!0,value:new Set}),w(this,l,{writable:!0,value:void 0}),w(this,c,{writable:!0,value:new b.TrackedSet})}shouldRender(e){return(0,h.Z)(this,c).has(e)}addAvailableTip(e){(0,h.Z)(this,a).add(e),k(this,u,T).call(this)}removeAvailableTip(e){(0,h.Z)(this,a).delete(e),k(this,u,T).call(this)}canSeeUserTip(e){if(!this.currentUser)return!1;const t=this.site.user_tips;if(!t||this.currentUser.user_option?.skip_new_user_tips)return!1;if(!t[e])return(0,y.isTesting)()||console.warn("Cannot show user tip with id",e),!1;const n=this.currentUser.user_option?.seen_popups||[];return!n.includes(-1)&&!n.includes(t[e])}async hideUserTipForever(e){if(!this.currentUser)return;const t=this.site.user_tips;if(!t||this.currentUser.user_option?.skip_new_user_tips)return;if(!t[e])return void console.warn("Cannot hide user tip with id",e);const n=[...(0,h.Z)(this,a)].find((t=>t.id===e));this.removeAvailableTip(n);let r=this.currentUser.user_option?.seen_popups||[];r.includes(t[e])||(r.push(t[e]),this.currentUser.user_option||this.currentUser.set("user_option",{}),this.currentUser.set("user_option.seen_popups",r),await this.currentUser.save(["seen_popups"]))}},s=(0,m.Z)(i.prototype,"site",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,m.Z)(i.prototype,"currentUser",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=i))||r;function T(){const e=[...(0,h.Z)(this,a)];if(e.find((e=>e.id===(0,h.Z)(this,l))))return;const t=e.sortBy("priority").reverse().find((e=>{if(this.canSeeUserTip(e.id))return e.id}))?.id;(0,h.Z)(this,l)!==t&&((0,h.Z)(this,c).delete((0,h.Z)(this,l)),(0,h.Z)(this,c).add(t),(0,p.Z)(this,l,t))}},52919:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,smallUserAtts:()=>c});var r=n(41221),i=n(20229),s=n(51804),o=n(94473),a=n(47582),l=n(82099);function c(e){return{template:e.avatar_template,username:e.username,post_url:e.post_url,url:(0,i.userPath)(e.username_lower),unknown:e.unknown}}(0,o.createWidget)("small-user-list",{tagName:"div.clearfix.small-user-list",buildClasses:e=>e.listClassName,buildAttributes(e){const t={role:"list"};return e.ariaLabel&&(t["aria-label"]=e.ariaLabel),t},html(e){let t=e.users;if(t){const n=this.currentUser;e.addSelf&&!t.some((e=>e.username===n.username))&&(t=t.concat(c(n)));let i,o=null;e.description&&(o=(0,r.h)("span.list-description",{attributes:{"aria-hidden":!0}},l.default.t(e.description,{count:e.count})));const u=t.map((e=>(i=i||e.post_url,e.unknown?(0,r.h)("div.unknown",{attributes:{title:l.default.t("post.unknown_user"),role:"listitem"}}):s.avatarFor.call(this,"small",e,{role:"listitem","aria-hidden":!1}))));i&&(o=(0,r.h)("a",{attributes:{href:(0,a.default)(i)}},o));let d=[u];return o&&d.push(o),d}}}),(0,o.createWidget)("action-link",{tagName:"span.action-link",template:function(e,t){var n=[],r=[];return r.push(e.text),r.push(". "),n.push(virtualDom.h("a",r)),n},buildClasses:e=>e.className,click(){this.sendWidgetAction(this.attrs.action)}});const u=(0,o.createWidget)("actions-summary",{tagName:"section.post-actions",template:function(e,t){var n=__widget_helpers.iconNode,r=__widget_helpers.avatar,i=__widget_helpers.dateNode,s=[];if(s.push("\n"),e.actionsSummary&&e.actionsSummary.length&&e.actionsSummary.forEach((e=>{s.push("      ");var t=[];t.push(e.description),s.push(virtualDom.h("div",{className:"post-action",attributes:{}},t)),s.push("\n      "),s.push(virtualDom.h("div",{className:"clearfix",attributes:{}},[])),s.push("\n")})),e.deleted_at){s.push("      ");var o=[];o.push("\n        "),o.push(n("far-trash-alt")),o.push("\n        "),o.push(r("small",{template:e.deletedByAvatarTemplate,username:e.deletedByUsername})),o.push("\n        "),o.push(i(e.deleted_at)),o.push("\n      "),s.push(virtualDom.h("div",{className:"post-action deleted-post",attributes:{}},o)),s.push("\n")}return s.push("  "),s}})},45697:(e,t,n)=>{"use strict";n.r(t);var r=n(62617),i=n(94473),s=n(3961);(0,i.createWidget)("avatar-flair",{tagName:"div.avatar-flair",isIcon:e=>e.flair_url&&!e.flair_url.includes("/"),title:e=>e.flair_name,buildClasses(e){let t=`avatar-flair-${e.flair_name} ${e.flair_bg_color?"rounded":""}`;return this.isIcon(e)||(t+=" avatar-flair-image"),t},buildAttributes(e){let t="";return this.isIcon(e)||(t+="background-image: url("+(0,r.escapeExpression)(e.flair_url)+"); "),e.flair_bg_color&&(t+="background-color: #"+(0,r.escapeExpression)(e.flair_bg_color)+"; "),e.flair_color&&(t+="color: #"+(0,r.escapeExpression)(e.flair_color)+"; "),{style:t}},html(e){if(this.isIcon(e)){const t=(0,s.convertIconClass)(e.flair_url);return[(0,s.iconNode)(t)]}return[]}})},40798:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(8620);(0,r.registerWidgetShim)("before-header-logo-outlet","div.before-header-logo-outlet",(0,i.createTemplateFactory)({id:"kZvSXF77",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["before-header-logo",[28,[37,1],null,[["attrs"],[[30,1]]]]]],null],[1," "]],["@data"],false,["plugin-outlet","hash"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/before-header-logo-outlet.js",isStrictMode:!1}))},21514:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(8620);(0,r.registerWidgetShim)("before-header-panel-outlet","div.before-header-panel-outlet",(0,i.createTemplateFactory)({id:"ZDmOU0/m",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["before-header-panel",[28,[37,1],null,[["topic"],[[30,1,["topic"]]]]]]],null],[1," "]],["@data"],false,["plugin-outlet","hash"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/before-header-panel-outlet.js",isStrictMode:!1}))},85679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ButtonClass:()=>u,default:()=>d});var r=n(71466),i=n.n(r),s=n(41221),o=n(20229),a=n(94473),l=n(3961),c=n(82099);const u={tagName:"button.widget-button.btn",buildClasses(e){let t=this.attrs.className||"",n=e.translatedLabel||e.label||e.contents;return n||(t+=" no-text"),e.icon?(t+=" btn-icon",n&&(t+="-text")):n&&(t+=" btn-text"),t},buildAttributes(){const e=this.attrs,t={};let n=e.translatedTitle;if(!n&&e.title&&(n=c.default.t(e.title,e.titleOptions)),n&&(t.title=n),e.role&&(t.role=e.role),e.translatedAriaLabel&&(t["aria-label"]=e.translatedAriaLabel),e.ariaExpanded&&(t["aria-expanded"]=e.ariaExpanded),e.ariaControls&&(t["aria-controls"]=e.ariaControls),e.ariaPressed&&(t["aria-pressed"]=e.ariaPressed),e.tabAttrs){const n=e.tabAttrs;t["aria-selected"]=n["aria-selected"],t.tabindex=n.tabindex,t["aria-controls"]=n["aria-controls"],t.id=e.id}return e.disabled&&(t.disabled="true"),e.data&&Object.keys(e.data).forEach((n=>t[`data-${n}`]=e.data[n])),t},_buildIcon(e){const t=(0,l.iconNode)(e.icon,{class:e.iconClass});return e["aria-label"]&&(t.properties.attributes.role="img",t.properties.attributes["aria-hidden"]=!1),t},html(e){const t=[],n=!e.iconRight;return e.icon&&n&&t.push(this._buildIcon(e)),e.emoji&&n&&t.push(this.attach("emoji",{name:e.emoji})),e.label&&t.push((0,s.h)("span.d-button-label",c.default.t(e.label,e.labelOptions))),e.translatedLabel&&t.push((0,s.h)("span.d-button-label",e.translatedLabel.toString(),e.translatedLabelOptions)),e.contents&&t.push(e.contents),e.emoji&&!n&&t.push(this.attach("emoji",{name:e.emoji})),e.icon&&!n&&t.push(this._buildIcon(e)),t},click(e){const t=this.attrs;if(!t.disabled)return i()("button.widget-button").removeClass("d-hover").blur(),t.secondaryAction&&this.sendWidgetAction(t.secondaryAction),t.url?o.default.routeTo(t.url):t.sendActionEvent?this.sendWidgetAction(t.action,e):this.sendWidgetAction(t.action,t.actionParam)}},d=(0,a.createWidget)("button",u);(0,a.createWidget)("flat-button",Object.assign(u,{tagName:"button.widget-button.btn-flat"}))},71330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(6659),i=n(802);class s extends i.default{constructor(e){e.html=`<span>${(0,r.categoryBadgeHTML)(e.category,e)}</span>`,super(e)}}},58159:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(72326),i=n(51372);class s{constructor(e,t,n,r){let{applyStyle:i=!0}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};this.widget=e,this.opts=n,this.componentName=t,this.trackedProperties=r||[],this.applyStyle=i,this._component=null}init(){const e=document.createElement("div");return this.applyStyle&&(e.style.display="inline-flex"),e.className="widget-component-connector",this.elem=e,(0,i.scheduleOnce)("afterRender",this,this.connectComponent),this.elem}destroy(){this._component?.destroy()}update(e){let t=!1;return this.trackedProperties.forEach((n=>{e.opts[n]!==this.opts[n]&&(t=!0)})),t?this.init():null}connectComponent(){const{elem:e,opts:t,widget:n,componentName:i}=this,s=n._findView(),o=(0,r.getOwner)(s).factoryFor(`component:${i}`).create(t);o.selectKit&&o.didReceiveAttrs(),s._connected.push(o),o.renderer.appendTo(o,e),this._component=o}}s.prototype.type="Widget"},17038:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(72326),i=n(51372);class s{constructor(e,t){this.widget=e,this.opts=t}init(){const e=document.createElement("div");e.classList.add("widget-connector");const{opts:t,widget:n}=this;return(0,i.next)((()=>{const i=n._findView();if(t.component){const s=(0,r.getOwner)(i).factoryFor("component:connector-container").create({layoutName:`components/${t.component}`,model:n.findAncestorModel()});i._connected.push(s),s.renderer.appendTo(s,e)}})),e}update(){}}s.prototype.type="Widget"},72313:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(41221),i=n(17038),s=n(46737),o=n(802),a=n(83675);class l{constructor(e,t,n){this.widget=e,this.attrs=t,this.canConnectComponent=!0,this.state=n,this.register=e.register,this.register.deprecateContainer(this)}attach(e,t,n){return t=t||this.widget.attrs,n=n||this.widget.state,this.widget.attach(e,t,n)}getModel(){return this.widget.findAncestorModel()}rawHtml(e){return new o.default({html:e})}cooked(e){return new s.default({cooked:e},this)}connect(e){return new i.default(this.widget,e)}renderGlimmer(e,t,n){if(!this.widget.postContentsDestroyCallbacks)throw"renderGlimmer can only be used in the context of a post";const r=new a.default(this.widget,e,t,n);return r.init(),this.widget.postContentsDestroyCallbacks.push(r.destroy.bind(r)),r.element}}l.prototype.h=r.h;const c=l},81678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(12360),i=n(802);class s extends i.default{constructor(e){e.html=(0,r.default)(e.topic,e),super(e)}}},65799:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(41221),i=n(53504),s=n(47090),o=n(71605),a=n(94473),l=n(3961),c=n(82099);const u=(0,a.createWidget)("do-not-disturb",{tagName:"li.do-not-disturb",services:["modal"],saving:!1,html(){const e=this.currentUser.isInDoNotDisturb();return[this._menuButton(e)]},click(){if(!this.saving)return this.saving=!0,this.currentUser.do_not_disturb_until?this.currentUser.leaveDoNotDisturb().then((()=>{this.saving=!1})):(this.saving=!1,this.modal.show(i.default))},_menuButton(e){const t=(0,l.iconNode)(e?"toggle-on":"toggle-off");return(0,r.h)("button.btn-flat.do-not-disturb-inner-container",[t,this._label()])},_label(){const e=[(0,r.h)("span",c.default.t("pause_notifications.label"))],t=this.currentUser.do_not_disturb_until;return o.default.isEternal(t)||e.push((0,s.dateNode)(t)),(0,r.h)("span.do-not-disturb-label",e)}})},53585:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(41221),i=n(72313),s=n(46737),o=n(94473);(0,o.createWidget)("post-link-arrow",{tagName:"div.post-link-arrow",template:function(e,t){var n=__widget_helpers.iconNode,r=[];r.push("\n      ");var i=[];return i.push("\n"),e.above?(i.push("        "),i.push(n("arrow-up")),i.push("\n")):(i.push("        "),i.push(n("arrow-down")),i.push("\n")),i.push("      "),r.push(virtualDom.h("a",{className:"post-info arrow",attributes:{href:e.shareUrl,title:I18n.t("topic.jump_reply"),"aria-label":I18n.t("topic.jump_reply_aria",{username:e.name})}},i)),r.push("\n  "),r}});const a=(0,o.createWidget)("embedded-post",{tagName:"div.reply",buildKey:e=>`embedded-post-${e.id}`,buildAttributes(e){const t={"data-post-id":e.id};return this.state.role&&(t.role=this.state.role),this.state["aria-label"]&&(t["aria-label"]=this.state["aria-label"]),t},html(e,t){return e.embeddedPost=!0,[(0,r.h)("div.row",[this.attach("post-avatar",e),(0,r.h)("div.topic-body",[(0,r.h)("div.topic-meta-data.embedded-reply",[this.attach("poster-name",e),this.attach("post-link-arrow",{name:e.username,above:t.above,shareUrl:e.customShare})]),new s.default(e,new i.default(this),this.currentUser)])])]},init(){this.postContentsDestroyCallbacks=[]},destroy(){this.postContentsDestroyCallbacks.forEach((e=>e()))}})},67943:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,replaceEmoji:()=>o});var r=n(35193),i=n(62617),s=n(802);function o(e){const t=(0,r.emojiUnescape)((0,i.escapeExpression)(e));return[new s.default({html:`<span>${t}</span>`})]}const a=(0,n(94473).createWidget)("emoji",{tagName:"img.emoji",buildAttributes(e){let t={src:(0,r.emojiUrlFor)(e.name),alt:`:${e.alt||e.name}:`};return e.title&&(t.title="string"==typeof e.title?e.title:e.name),t}})},13537:(e,t,n)=>{"use strict";n.r(t);var r=n(62617);(0,n(94473).createWidget)("footer-nav",{tagName:"div.footer-nav-widget",html(e){const t=[];return t.push(this.attach("flat-button",{action:"goBack",icon:"chevron-left",className:"btn-large",disabled:!e.canGoBack,title:"footer_nav.back"})),t.push(this.attach("flat-button",{action:"goForward",icon:"chevron-right",className:"btn-large",disabled:!e.canGoForward,title:"footer_nav.forward"})),this.capabilities.isAppWebview&&(t.push(this.attach("flat-button",{action:"share",icon:"link",className:"btn-large",title:"footer_nav.share"})),t.push(this.attach("flat-button",{action:"dismiss",icon:"chevron-down",className:"btn-large",title:"footer_nav.dismiss"}))),t},dismiss(){(0,r.postRNWebviewMessage)("dismiss",!0)},share(){(0,r.postRNWebviewMessage)("shareUrl",window.location.href)}})},17467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(51372),i=n(41221),s=n(99046),o=n(94473),a=n(34405);class l{constructor(e,t,n){this._tree=null,this._rootNode=null,this.register=t,this.attrs=n,this._timeout=null,this.dirtyKeys=new s.default(e),this._widgetClass=(0,o.queryRegistry)(e)||this.register.lookupFactory(`widget:${e}`),this._widgetClass||console.error(`Error: Could not find widget: ${e}`)}appendTo(e){this._rootNode=e,this.queueRerender()}queueRerender(){this._timeout=(0,r.scheduleOnce)("render",this,this.rerenderWidget)}rerenderWidget(){if((0,r.cancel)(this._timeout),(0,a.isTesting)())try{this.register.lookup("service:store")}catch(e){return}const e=new this._widgetClass(this.attrs,this.register,{dirtyKeys:this.dirtyKeys}),t=(0,i.diff)(this._tree||this._rootNode,e);(0,o.traverseCustomWidgets)(this._tree,(e=>e.willRerenderWidget())),e._rerenderable=this,this._rootNode=(0,i.patch)(this._rootNode,t),this._tree=e,(0,o.traverseCustomWidgets)(e,(e=>e.didRenderWidget()))}cleanUp(){(0,o.traverseCustomWidgets)(this._tree,(e=>e.destroy())),(0,r.cancel)(this._timeout),this._rootNode=(0,i.patch)(this._rootNode,(0,i.diff)(this._tree,null)),this._tree=null}}},31629:(e,t,n)=>{"use strict";function r(){console.log("Templates should be precompiled server side")}n.r(t),n.d(t,{default:()=>r})},4609:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(8620);(0,r.registerWidgetShim)("header-bootstrap-mode","div.d-header-mode",(0,i.createTemplateFactory)({id:"Byed2y0x",block:'[[[8,[39,0],null,null,null]],[],false,["bootstrap-mode-notice"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/header-bootstrap-mode.js",isStrictMode:!1}))},8857:(e,t,n)=>{"use strict";n.r(t),(0,n(94473).createWidget)("header-contents",{tagName:"div.contents",transform(){return{showBootstrapMode:this.currentUser?.staff&&this.site.desktopView}},template:function(e,t){var n=[];n.push("\n"),this.site.desktopView&&e.sidebarEnabled&&(n.push("        "),n.push(this.attach("sidebar-toggle",e)),n.push("\n")),n.push("\n    "),n.push(this.attach("before-header-logo-outlet",e)),n.push("\n\n    "),n.push(this.attach("home-logo-wrapper-outlet",e)),n.push("\n\n"),e.topic?(n.push("      "),n.push(this.attach("header-topic-info",e)),n.push("\n")):this.siteSettings.bootstrap_mode_enabled&&(this.transformed.showBootstrapMode&&(n.push("        "),n.push(this.attach("header-bootstrap-mode",e)),n.push("\n")),n.push("    ")),n.push("\n    "),n.push(this.attach("before-header-panel-outlet",e)),n.push("\n\n    ");var r=[];return r.push(this.attrs.contents()),n.push(virtualDom.h("div",{className:"panel",attributes:{role:"navigation"}},r)),n.push("\n  "),n}})},9338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(41221),i=n(12360),s=n(3948),o=n(20229),a=n(51804),l=n(802),c=n(83675),u=n(94473),d=n(47582),p=n(3961),h=n(82099),m=n(8620);(0,u.createWidget)("topic-header-participant",{tagName:"span",buildClasses:e=>`trigger-${e.type}-card`,html(e){const{user:t,group:n}=e;let i,s;return"user"===e.type?(i=(0,a.avatarImg)("tiny",{template:t.avatar_template,username:t.username}),s=t.get("path")):(i=[(0,p.iconNode)("users")],s=(0,d.default)(`/g/${n.name}`),i.push((0,r.h)("span",n.name))),(0,r.h)("a.icon",{attributes:{href:s,"data-auto-route":!0,title:e.username}},i)},click(e){this.appEvents.trigger(`topic-header:trigger-${this.attrs.type}-card`,this.attrs.username,e.target),e.preventDefault()}});const g=(0,u.createWidget)("header-topic-info",{tagName:"div.extra-info-wrapper",contents:null,title:null,buildClasses(e,t){return this.buildAttributes(e,t),this.containerClassName()},buildFancyTitleClass(){const e=(t=(0,u.applyDecorators)(this,"fancyTitleClass",this.attrs,this.state),[].concat.apply([],t));var t;return["topic-link"].concat(e).filter(Boolean).join(" ")},buildAttributes(e,t){const n=e.topic,o=[],a=!n.get("is_warning")&&n.get("isPrivateMessage");if(a){const e=this.currentUser&&this.currentUser.pmPath(n);e&&o.push((0,r.h)("a.private-message-glyph-wrapper",{attributes:{href:e,"aria-label":h.default.t("user.messages.inbox")}},(0,p.iconNode)("envelope",{class:"private-message-glyph"})))}const d=n.get("details.loaded"),g=n.get("fancyTitle"),f=n.get("url");if(g&&f){o.push(this.attach("topic-status",e));const t=new l.default({html:`<span>${g}</span>`});o.push(this.attach("link",{className:this.buildFancyTitleClass(),action:"jumpToTopPost",href:f,attributes:{"data-topic-id":n.get("id")},contents:()=>t})),o.push(new c.default(this,"span.header-topic-title-suffix",(0,m.createTemplateFactory)({id:"BNfMESE+",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["header-topic-title-suffix",[30,1,["outletArgs"]]]],null]],["@data"],false,["plugin-outlet"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/header-topic-info.js",isStrictMode:!1}),{outletArgs:{topic:n}}))}this.headerElements=[(0,r.h)("h1.header-title",o)];const b=n.get("category");if(d||b){if(b&&(!b.isUncategorizedCategory||!this.siteSettings.suppress_uncategorized_badge)){const e=b.get("parentCategory"),t=[];if(e){if(this.siteSettings.max_category_nesting>2&&!this.site.mobileView){const n=e.get("parentCategory");n&&t.push(this.attach("category-link",{category:n}))}t.push(this.attach("category-link",{category:e}))}t.push(this.attach("category-link",{category:b,hideParent:!0})),this.headerElements.push((0,r.h)("div.categories-wrapper",t))}let o=[];const c=(0,i.default)(n);if(c&&c.length>0&&o.push(new l.default({html:c})),a){const e=o.length>0?5:10,t=[],i=n.get("details"),s=i.allowed_users.length+i.allowed_groups.length;if(i.allowed_users.some((n=>{if(t.length>=e)return!0;t.push(this.attach("topic-header-participant",{type:"user",user:n,username:n.username}))})),i.allowed_groups.some((n=>{if(t.length>=e)return!0;t.push(this.attach("topic-header-participant",{type:"group",group:n,username:n.name}))})),s>e){const r=s-e;t.push(this.attach("link",{className:"more-participants",action:"jumpToTopPost",href:f,attributes:{"data-topic-id":n.get("id")},contents:()=>`+${r}`}))}o.push((0,r.h)("div.topic-header-participants",t))}if(o=o.concat((0,u.applyDecorators)(this,"after-tags",e,t)),this.siteSettings.topic_featured_link_enabled){const t=(0,s.topicFeaturedLinkNode)(e.topic);t&&o.push(t)}o.length&&this.headerElements.push((0,r.h)("div.topic-header-extra",o))}this.contents=(0,r.h)("div.title-wrapper",this.headerElements)},html(){return(0,r.h)("div.extra-info",{className:this.containerClassName()},this.contents)},containerClassName(){return this.headerElements.length>1?"two-rows":""},jumpToTopPost(){const e=this.attrs.topic;e&&o.default.routeTo(e.get("firstPostUrl"),{keepFilter:!0})}})},34597:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(8620);(0,r.registerWidgetShim)("header-user-tip-shim","div.header-user-tip-shim",(0,i.createTemplateFactory)({id:"pEblPzKu",block:'[[[8,[39,0],null,[["@id","@triggerSelector","@placement","@titleText","@contentText"],["first_notification",".header-dropdown-toggle.current-user","bottom-end",[28,[37,1],["user_tips.first_notification.title"],null],[28,[37,1],["user_tips.first_notification.content"],null]]],null]],[],false,["user-tip","i18n"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/header-user-tip-shim.js",isStrictMode:!1}))},64589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addToHeaderIcons:()=>T,attachAdditionalPanel:()=>O,clearExtraHeaderIcons:()=>S,default:()=>E,dropdown:()=>C});var r=n(51372),i=n(71466),s=n.n(i),o=n(41221),a=n(32605),l=n(77559),c=n(49886),u=n(64519),d=n(20229),p=n(23683),h=n(51804),m=n(83675),g=n(94473),f=n(34405),b=n(47582),_=n(3961),y=n(12933),w=n(82099),v=n(8620);const k="search-button";let x=[];function T(e){x.push(e)}function S(){x=[]}const C={buildClasses(e){let t=e.classNames||[];return e.active&&t.push("active"),t},click(e){(0,l.wantsNewWindow)(e)||(e.preventDefault(),this.attrs.active||this.sendWidgetAction(this.attrs.action))}};(0,g.createWidget)("header-notifications",{services:["user-tips"],settings:{avatarSize:"medium"},html(e){const{user:t}=e;let n={template:t.get("avatar_template"),username:t.get("username")};this.siteSettings.enable_names&&(n.name=t.get("name"));const r=[(0,h.avatarImg)(this.settings.avatarSize,Object.assign({alt:"user.avatar.header_title"},(0,a.addExtraUserClasses)(t,n)))];return this.currentUser&&this._shouldHighlightAvatar()&&r.push(this.attach("header-user-tip-shim")),this.currentUser.status&&r.push(this.attach("user-status-bubble",this.currentUser.status)),t.isInDoNotDisturb()?r.push((0,o.h)("div.do-not-disturb-background",(0,_.iconNode)("moon"))):t.new_personal_messages_notifications_count?r.push(this.attach("link",{action:e.action,className:"badge-notification with-icon new-pms",icon:"envelope",omitSpan:!0,title:"notifications.tooltip.new_message_notification",titleOptions:{count:t.new_personal_messages_notifications_count},attributes:{"aria-label":w.default.t("notifications.tooltip.new_message_notification",{count:t.new_personal_messages_notifications_count})}})):t.unseen_reviewable_count?r.push(this.attach("link",{action:e.action,className:"badge-notification with-icon new-reviewables",icon:"flag",omitSpan:!0,title:"notifications.tooltip.new_reviewable",titleOptions:{count:t.unseen_reviewable_count},attributes:{"aria-label":w.default.t("notifications.tooltip.new_reviewable",{count:t.unseen_reviewable_count})}})):t.all_unread_notifications_count&&r.push(this.attach("link",{action:e.action,className:"badge-notification unread-notifications",rawLabel:t.all_unread_notifications_count,omitSpan:!0,title:"notifications.tooltip.regular",titleOptions:{count:t.all_unread_notifications_count},attributes:{"aria-label":w.default.t("user.notifications")}})),r},_shouldHighlightAvatar(){const e=this.attrs,{user:t}=e;return!t.read_first_notification&&!t.enforcedSecondFactor&&!e.active}}),(0,g.createWidget)("user-dropdown",Object.assign({tagName:"li.header-dropdown-toggle.current-user",buildId:()=>"current-user",html(e){return(0,o.h)("button.icon.btn-flat",{attributes:{"aria-haspopup":!0,"aria-expanded":e.active,href:e.user.path,"aria-label":w.default.t("user.account_possessive",{name:e.user.name||e.user.username}),"data-auto-route":!0}},this.attach("header-notifications",e))}},C)),(0,g.createWidget)("header-dropdown",Object.assign({tagName:"li.header-dropdown-toggle",html(e){const t=w.default.t(e.title),n=[(0,_.iconNode)(e.icon)];return e.contents&&n.push(e.contents.call(this)),(0,o.h)("button.icon.btn-flat",{attributes:{"aria-expanded":e.active,"aria-haspopup":!0,href:e.href,"data-auto-route":!0,title:t,"aria-label":t,id:e.iconId}},n)}},C)),(0,g.createWidget)("header-icons",{services:["search"],tagName:"ul.icons.d-header-icons",html(e){if(this.siteSettings.login_required&&!this.currentUser)return[];const t=[];x&&x.forEach((e=>{t.push(this.attach(e))}));const n=this.attach("header-dropdown",{title:"search.title",icon:"search",iconId:k,action:"toggleSearchMenu",active:e.searchVisible||this.search.visible,href:(0,b.default)("/search"),classNames:["search-dropdown"]});t.push(n);const r=this.attach("header-dropdown",{title:"hamburger_menu",icon:"bars",iconId:"toggle-hamburger-menu",active:e.hamburgerVisible,action:"toggleHamburger",href:"",classNames:["hamburger-dropdown"]});return e.sidebarEnabled&&!this.site.mobileView||t.push(r),e.user&&t.push(this.attach("user-dropdown",{active:e.userVisible,action:"toggleUserMenu",user:e.user})),t}}),(0,g.createWidget)("header-buttons",{tagName:"span.header-buttons",html(e){if(this.currentUser)return;const t=[];return e.canSignUp&&!e.topic&&t.push(this.attach("button",{label:"sign_up",className:"btn-primary btn-small sign-up-button",action:"showCreateAccount"})),t.push(this.attach("button",{label:"log_in",className:"btn-primary btn-small login-button",action:"showLogin",icon:"user"})),t}}),(0,g.createWidget)("header-cloak",{tagName:"div.header-cloak",html:()=>"",click(){},scheduleRerender(){}});let P=[];function O(e,t,n){P.push({name:e,toggle:t,transformAttrs:n})}(0,g.createWidget)("hamburger-dropdown-wrapper",{buildAttributes:()=>({"data-click-outside":!0}),html(){return[new m.default(this,"div.widget-component-connector",(0,v.createTemplateFactory)({id:"szVA/sfs",block:'[[[8,[39,0],null,null,null]],[],false,["sidebar/hamburger-dropdown"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/header.js",isStrictMode:!1}))]},click(e){(e.target.closest(".sidebar-section-header-button")||e.target.closest(".sidebar-section-link-button")||e.target.closest(".sidebar-section-link"))&&this.sendWidgetAction("toggleHamburger")},clickOutside(e){if(e.target.classList.contains("header-cloak")&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){const e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),n="rtl"===document.querySelector("html").classList.direction?"340px":"-340px";e.animate([{transform:`translate3d(${n}, 0, 0)`}],{duration:200,fill:"forwards",easing:"ease-in"}).finished.then((()=>{(0,f.isTesting)()?this.sendWidgetAction("toggleHamburger"):(0,y.default)((()=>this.sendWidgetAction("toggleHamburger")))})),t.animate([{opacity:0}],{duration:200,fill:"forwards",easing:"ease-in"})}else this.sendWidgetAction("toggleHamburger")}}),(0,g.createWidget)("revamped-user-menu-wrapper",{buildAttributes:()=>({"data-click-outside":!0}),html(){return[new m.default(this,"div.widget-component-connector",(0,v.createTemplateFactory)({id:"26P3EyT+",block:'[[[8,[39,0],null,[["@closeUserMenu"],[[30,1,["closeUserMenu"]]]],null]],["@data"],false,["user-menu/menu"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/header.js",isStrictMode:!1}),{closeUserMenu:this.closeUserMenu.bind(this)})]},closeUserMenu(){this.sendWidgetAction("toggleUserMenu")},clickOutside(e){if(e.target.classList.contains("header-cloak")&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){const e=document.querySelector(".menu-panel"),t=document.querySelector(".header-cloak"),n="rtl"===document.querySelector("html").classList.direction?"-340px":"340px";e.animate([{transform:`translate3d(${n}, 0, 0)`}],{duration:200,fill:"forwards",easing:"ease-in"}).finished.then((()=>{f.isTesting?this.closeUserMenu():(0,y.default)((()=>this.closeUserMenu()))})),t.animate([{opacity:0}],{duration:200,fill:"forwards",easing:"ease-in"})}else this.closeUserMenu()}}),(0,g.createWidget)("glimmer-search-menu-wrapper",{services:["search"],buildAttributes:()=>({"data-click-outside":!0,"aria-live":"polite"}),buildClasses:()=>["search-menu glimmer-search-menu"],html(){return[new m.default(this,"div.widget-component-connector",(0,v.createTemplateFactory)({id:"4O6F1PxX",block:'[[[8,[39,0],null,[["@closeSearchMenu"],[[30,1,["closeSearchMenu"]]]],null]],["@data"],false,["search-menu-panel"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/header.js",isStrictMode:!1}),{closeSearchMenu:this.closeSearchMenu.bind(this)})]},closeSearchMenu(){this.sendWidgetAction("toggleSearchMenu"),document.getElementById(k)?.focus()},clickOutside(){this.closeSearchMenu()}});const E=(0,g.createWidget)("header",{tagName:"header.d-header",buildKey:()=>"header",services:["router","search"],defaultState(){let e={searchVisible:!1,hamburgerVisible:!1,userVisible:!1,inTopicContext:!1};return this.site.mobileView&&(e.skipSearchContext=!0),e},html(e,t){let n=!1;(this.state.inTopicContext||this.search.inTopicContext)&&(n=this.router.currentRouteName.startsWith("topic."));const r={contents:()=>{const r=this.attach("header-icons",{hamburgerVisible:t.hamburgerVisible,userVisible:t.userVisible,searchVisible:t.searchVisible||this.search.visible,flagCount:e.flagCount,user:this.currentUser,sidebarEnabled:e.sidebarEnabled});if(e.onlyIcons)return r;const i=[this.attach("header-buttons",e),r];return t.searchVisible||this.search.visible?this.siteSettings.experimental_search_menu?(this.search.inTopicContext=this.search.inTopicContext&&n,i.push(this.attach("glimmer-search-menu-wrapper"))):i.push(this.attach("search-menu",{inTopicContext:t.inTopicContext&&n})):t.hamburgerVisible?i.push(this.attach("hamburger-dropdown-wrapper",{})):t.userVisible&&i.push(this.attach("revamped-user-menu-wrapper",{})),P.map((n=>{this.state[n.toggle]&&i.push(this.attach(n.name,n.transformAttrs.call(this,e,t)))})),(this.site.mobileView||this.site.narrowDesktopView)&&i.push(this.attach("header-cloak")),i},minimized:!!e.topic};return(0,o.h)("div.wrap",this.attach("header-contents",{...e,...r}))},updateHighlight(){this.state.searchVisible&&this.search.visible||(this.search.highlightTerm="")},closeAll(){this.state.userVisible=!1,this.state.hamburgerVisible=!1,this.state.searchVisible=!1,this.search.visible=!1,this.toggleBodyScrolling(!1)},linkClickedEvent(e){let t=!1;if(e){t=e.searchContextEnabled;const{searchLogId:n,searchResultId:r,searchResultType:i}=e;n&&r&&i&&(0,u.logSearchLinkClick)({searchLogId:n,searchResultId:r,searchResultType:i})}t||this.closeAll(),this.updateHighlight()},toggleSearchMenu(){if(this.site.mobileView){const e=this.search.searchContext;let t="";return e&&(t=`?context=${e.type}&context_id=${e.id}&skip_context=${this.state.skipSearchContext}`),"full-page-search"===this.router.currentRouteName?((0,p.scrollTop)(),s()(".full-page-search").focus(),!1):d.default.routeTo("/search"+t)}this.state.searchVisible=!this.state.searchVisible,this.search.visible=!this.search.visible,this.updateHighlight(),this.state.searchVisible?this.focusSearchInput():(this.state.inTopicContext=!1,this.search.inTopicContext=!1)},toggleUserMenu(){this.state.userVisible=!this.state.userVisible,this.toggleBodyScrolling(this.state.userVisible),(0,r.schedule)("afterRender",(()=>document.querySelector(".user-menu button")?.focus()))},toggleHamburger(){this.attrs.sidebarEnabled&&!this.site.narrowDesktopView?this.sendWidgetAction("toggleSidebar"):(this.state.hamburgerVisible=!this.state.hamburgerVisible,this.toggleBodyScrolling(this.state.hamburgerVisible),(0,r.schedule)("afterRender",(()=>{document.querySelector("#toggle-hamburger-menu")?.blur()})))},toggleBodyScrolling(e){this.site.mobileView&&(0,c.default)(e)},togglePageSearch(){const{state:e}=this;this.search.inTopicContext=!1,e.inTopicContext=!1;let t=this.router.currentRouteName.startsWith("topic.");if(t){const e=this.register.lookup("controller:topic"),n=e.get("model.postStream.stream.length")||0;t=n>(e.get("model.chunk_size")||0)&&s()(".topic-post .cooked, .small-action:not(.time-gap)").length<n}return e.searchVisible||this.search.visible?(this.toggleSearchMenu(),t):!t||(e.inTopicContext=!0,this.search.inTopicContext=!0,this.toggleSearchMenu(),!1)},domClean(){const{state:e}=this;(e.searchVisible||this.search.visible||e.hamburgerVisible||e.userVisible)&&this.closeAll()},headerKeyboardTrigger(e){switch(e.type){case"search":this.toggleSearchMenu();break;case"user":this.toggleUserMenu();break;case"hamburger":this.toggleHamburger();break;case"page-search":this.togglePageSearch()||(e.event.preventDefault(),e.event.stopPropagation())}},focusSearchInput(){this.state.searchVisible&&!this.siteSettings.experimental_search_menu&&(0,r.schedule)("afterRender",(()=>{const e=document.querySelector("#search-term");e.focus(),e.select()}))},setTopicContext(){this.state.inTopicContext=!0,this.focusSearchInput()},clearContext(){this.state.inTopicContext=!1,this.focusSearchInput()}})},63217:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(8620);(0,r.registerWidgetShim)("home-logo-wrapper-outlet","div.home-logo-wrapper-outlet",(0,i.createTemplateFactory)({id:"vOhqSU6f",block:'[[[8,[39,0],null,[["@name"],["home-logo-wrapper"]],[["default"],[[[[8,[39,1],null,[["@widget","@args"],["home-logo",[30,1]]],null]],[]]]]]],["@data"],false,["plugin-outlet","mount-widget"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/home-logo-wrapper-outlet.js",isStrictMode:!1}))},96047:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(41221),i=n(77559),s=n(20229),o=n(31311),a=n(94473),l=n(47582),c=n(3961);const u=(0,a.createWidget)("home-logo",{services:["session"],tagName:"div.title",settings:{href:(0,l.default)("/")},buildClasses(){if(this.attrs.minimized)return"title--minimized"},href(){const e=this.settings.href;return"function"==typeof e?e():e},logoUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.logoResolver("logo",e)},mobileLogoUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.logoResolver("mobile_logo",e)},smallLogoUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.logoResolver("logo_small",e)},logo(){const e=this.session.darkModeAvailable?{dark:!0}:{},t=this.mobileLogoUrl(),n=this.mobileLogoUrl(e),i=this.site.mobileView&&t.length>0,s=this.logoUrl(),o=this.logoUrl(e),a=this.siteSettings.title;if(this.attrs.minimized){const t=this.smallLogoUrl(),n=this.smallLogoUrl(e);return t.length?this.logoElement("logo-small",t,a,n):(0,c.iconNode)("home")}return i?this.logoElement("logo-mobile",t,a,n):s.length?this.logoElement("logo-big",s,a,o):(0,r.h)("h1#site-text-logo.text-logo",{key:"logo-text"},a)},logoResolver(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{siteSettings:n}=this;return t.dark?n[`site_${e}_dark_url`]:o.default.currentProp("defaultColorSchemeIsDark")?n[`site_${e}_dark_url`]||n[`site_${e}_url`]||"":n[`site_${e}_url`]||""},logoElement(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const s="logo-small"===e?{src:(0,l.default)(t),width:36,alt:n}:{src:(0,l.default)(t),alt:n},o=(0,r.h)(`img#site-logo.${e}`,{key:e,attributes:s});return i&&t!==i?(0,r.h)("picture",[(0,r.h)("source",{attributes:{srcset:(0,l.default)(i),media:"(prefers-color-scheme: dark)"}}),o]):o},html(){return(0,r.h)("a",{attributes:{href:this.href(),"data-auto-route":!0}},this.logo())},click:e=>((0,i.wantsNewWindow)(e)||(e.preventDefault(),s.default.routeToTag(e.target.closest("a"))),!1)})},40406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetChangeHook:()=>I,WidgetClickHook:()=>T,WidgetClickOutsideHook:()=>C,WidgetDoubleClickHook:()=>S,WidgetDragHook:()=>W,WidgetInputHook:()=>D,WidgetKeyDownHook:()=>E,WidgetKeyUpHook:()=>O,WidgetMouseDownHook:()=>Z,WidgetMouseDownOutsideHook:()=>P,WidgetMouseMoveHook:()=>A,WidgetMouseOutHook:()=>N,WidgetMouseOverHook:()=>M,WidgetMouseUpHook:()=>j,WidgetTouchEndHook:()=>z,WidgetTouchMoveHook:()=>R,WidgetTouchStartHook:()=>U});var r=n(71466),i=n.n(r);const s="_discourse_click_widget",o="_discourse_double_click_widget",a="_discourse_click_outside_widget",l="_discourse_mouse_down_outside_widget",c="_discourse_key_up_widget",u="_discourse_key_down_widget",d="_discourse_drag_widget",p="_discourse_input_widget",h="_discourse_change_widget",m="_discourse_mouse_down_widget",g="_discourse_mouse_up_widget",f="_discourse_mouse_move_widget",b="_discourse_mouse_over_widget",_="_discourse_mouse_out_widget",y="_discourse_touch_start_widget",w="_discourse_touch_end_widget",v="_discourse_touch_move_widget";class k{constructor(e){this.widget=e}}function x(e,t){return class extends k{hook(n){t&&n.setAttribute(t,!0),n[e]=this.widget}unhook(n){t&&n.removeAttribute(t,!0),n[e]=null}}}const T=x(s),S=x(o),C=x(a,"data-click-outside"),P=x(l,"data-mouse-down-outside"),O=x(c),E=x(u),D=x(p),I=x(h),j=x(g),Z=x(m),A=x(f),M=x(b),N=x(_),z=x(w);function L(e){return e.currentTarget[y].touchStart(e)}function F(e){return e.currentTarget[v].touchMove(e)}class U extends k{hook(e,t,n){e[y]=this.widget,n||e.addEventListener("touchstart",L,{passive:!1})}unhook(e,t,n){n||e.removeEventListener("touchstart",L)}}class R extends k{hook(e,t,n){e[v]=this.widget,n||e.addEventListener("touchmove",F,{passive:!1})}unhook(e,t,n){n||e.removeEventListener("touchmove",F)}}let B;function $(e){e.preventDefault(),e.stopPropagation(),B&&H(),B=e.currentTarget,document.body.classList.add("widget-dragging"),document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("mousemove",q,{passive:!1}),document.addEventListener("touchend",H),document.addEventListener("mouseup",H)}function q(e){const t=B[d];if("mousemove"===event.type)t.drag(e);else{const n=e.targetTouches[0];e.preventDefault(),e.stopPropagation(),t.drag(n)}}function H(e){document.body.classList.remove("widget-dragging"),document.removeEventListener("touchmove",q),document.removeEventListener("mousemove",q),document.removeEventListener("touchend",H),document.removeEventListener("mouseup",H),B[d].dragEnd(e),B=null}class W extends k{hook(e,t,n){e[d]=this.widget,n||(e.addEventListener("touchstart",$,{passive:!1}),e.addEventListener("mousedown",$,{passive:!1}))}unhook(e,t,n){n||(B===e&&H(),e.removeEventListener("touchstart",$),e.removeEventListener("mousedown",$))}}function K(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{rerender:!0};const{rerender:i}=r,s=function(e,t){for(;e;){const n=e[t];if(n)return n;e=e.parentNode}}(e,t);s&&(i?s.rerenderResult((()=>n(s))):n(s))}let V=!1;T.setupDocumentCallback=function(){V||(i()(document).on("mouseover.discourse-widget",(e=>{K(e.target,b,(t=>t.mouseOver(e)),{rerender:!1})})),i()(document).on("mouseout.discourse-widget",(e=>{K(e.target,_,(t=>t.mouseOut(e)),{rerender:!1})})),i()(document).on("dblclick.discourse-widget",(e=>{K(e.target,o,(t=>t.doubleClick(e)))})),i()(document).on("click.discourse-widget",(e=>{K(e.target,s,(t=>t.click(e)));let t=e.target;i()("[data-click-outside]").each(((n,r)=>{if(r.contains(t)||r===t&&"absolute"===r.style.position)return;const i=r[a];i&&i.clickOutside(e)}))})),i()(document).on("mousedown.discourse-widget",(e=>{let t=e.target;i()("[data-mouse-down-outside]").each(((n,r)=>{if(r.contains(t))return;const i=r[l];i&&i.mouseDownOutside(e)}))})),i()(document).on("keyup.discourse-widget",(e=>{K(e.target,c,(t=>t.keyUp(e)))})),i()(document).on("keydown.discourse-widget",(e=>{K(e.target,u,(t=>t.keyDown(e)))})),i()(document).on("input.discourse-widget",(e=>{K(e.target,p,(t=>t.input(e)),{rerender:!1})})),i()(document).on("change.discourse-widget",(e=>{K(e.target,h,(t=>t.change(e)),{rerender:!1})})),i()(document).on("touchend.discourse-widget",(e=>{K(e.target,w,(t=>t.touchEnd(e)),{rerender:!1})})),i()(document).on("mousedown.discourse-widget",(e=>{K(e.target,m,(t=>{t.mouseDown(e)}),{rerender:!1})})),i()(document).on("mouseup.discourse-widget",(e=>{K(e.target,g,(t=>t.mouseUp(e)),{rerender:!1})})),i()(document).on("mousemove.discourse-widget",(e=>{K(e.target,f,(t=>t.mouseMove(e)))})),V=!0)}},9560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(41221),i=n(77559),s=n(20229),o=n(94473),a=n(47582),l=n(3961),c=n(82099);const u=(0,o.createWidget)("link",{tagName:"a",href(e){if(e.route){const t=this.register.lookup("service:router");return e.model?t.urlFor(e.route,e.model):t.urlFor(e.route)}return(0,a.default)(e.href)},buildClasses(e){const t=[];return t.push("widget-link"),e.className&&t.push(e.className),t},buildAttributes(e){const t={href:this.href(e),title:e.title?c.default.t(e.title,e.titleOptions):this.label(e)};return e.attributes&&Object.keys(e.attributes).forEach((n=>t[n]=e.attributes[n])),t},label:e=>e.labelCount&&e.count?c.default.t(e.labelCount,{count:e.count}):e.rawLabel||(e.label?c.default.t(e.label):""),html(e){if(e.contents)return e.contents();const t=[];if(e.icon){if(e["aria-label"]){let n=(0,l.iconNode)(e.icon);n.properties.attributes["aria-label"]=c.default.t(e["aria-label"],e.ariaLabelOptions),n.properties.attributes.role="img",n.properties.attributes["aria-hidden"]=!1,t.push(n)}else t.push((0,l.iconNode)(e.icon));t.push(" ")}if(!e.hideLabel){let n=this.label(e);e.omitSpan?t.push(n):t.push((0,r.h)("span.d-label",n))}const n=this.currentUser;if(n&&e.badgeCount){const i=parseInt(n.get(e.badgeCount),10);if(i>0){const n=e.badgeTitle?c.default.t(e.badgeTitle):"";t.push(" "),t.push((0,r.h)("span.badge-notification",{className:e.badgeClass,attributes:{title:n}},i))}}return t},click(e){if(!(this.attrs.attributes&&"_blank"===this.attrs.attributes.target||(0,i.wantsNewWindow)(e)))return e.preventDefault(),this.attrs.action?(e.preventDefault(),this.sendWidgetAction(this.attrs.action,this.attrs.actionParam)):(this.sendWidgetEvent("linkClicked",this.attrs),s.default.routeToTag(e.target.closest("a")))}})},52472:(e,t,n)=>{"use strict";n.r(t),(0,n(94473).createWidget)("menu-panel",{tagName:"div.menu-panel",template:function(e,t){var n=[];n.push("\n    ");var r=[];r.push("\n      ");var i=[];return i.push("\n        "),i.push(this.attrs.contents()),i.push("\n      "),r.push(virtualDom.h("div",{className:"panel-body-contents",attributes:{}},i)),r.push("\n    "),n.push(virtualDom.h("div",{className:"panel-body",attributes:{}},r)),n.push("\n  "),n},buildAttributes(e){if(e.maxWidth)return{"data-max-width":e.maxWidth}}})},46737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addDecorator:()=>y,default:()=>x,resetDecorators:()=>w});var r=n(49246),i=n(94312),s=n(3055),o=n(78480),a=n(70352),l=n(98066),c=n(16289),u=n(8199),d=n(33057),p=n(53134),h=n(37080),m=n(47582),g=n(3961),f=n(82099);let b=[],_=[];function y(e){let{afterAdopt:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?_.push(e):b.push(e)}function w(){b=[],_=[]}let v=document.implementation.createHTMLDocument("detached");function k(e){return v.createElement(e)}class x{constructor(e,t,n){(0,r.Z)(this,"originalQuoteContents",null),this.attrs=e,this.expanding=!1,this._highlighted=!1,this.decoratorHelper=t,this.currentUser=n,this.ignoredUsers=this.currentUser?this.currentUser.ignored_users:null}update(e){if(e.attrs.cooked!==this.attrs.cooked||e.attrs.highlightTerm!==this.attrs.highlightTerm)return this.init()}init(){this.originalQuoteContents=null,this._isInComposerPreview=!this.decoratorHelper;const e=this._computeCooked();return this.cookedDiv=e,this._insertQuoteControls(e),this._showLinkCounts(e),this._applySearchHighlight(e),this._initUserStatusOnMentions(),this._decorateAndAdopt(e),e}destroy(){this._stopTrackingMentionedUsersStatus(),(0,u.destroyUserStatusOnMentions)()}_decorateAndAdopt(e){b.forEach((t=>t(e,this.decoratorHelper))),document.adoptNode(e),_.forEach((t=>t(e,this.decoratorHelper)))}_applySearchHighlight(e){const t=this.attrs.highlightTerm;t&&t.length>2?(this._highlighted&&(0,l.unhighlightHTML)(e),(0,c.default)(e,t,{defaultClassName:!0}),this._highlighted=!0):this._highlighted&&((0,l.unhighlightHTML)(e),this._highlighted=!1)}_showLinkCounts(e){const t=this.attrs.linkCounts;if(!t)return;const n=new Map;e.querySelectorAll("aside.onebox").forEach((e=>{for(let t=1;t<=6;++t){const r=e.querySelectorAll(`h${t} a[href]`);if(r.length>0)return void n.set(e,r[0])}const t=e.querySelectorAll("header a[href]");t.length>0&&n.set(e,t[0])})),t.forEach((t=>{!t.clicks||t.clicks<1||e.querySelectorAll("a[href]").forEach((e=>{const r=e.getAttribute("href");let i=r===t.url;if(t.internal&&/^\/uploads\//.test(t.url)&&(i=r.includes(t.url)),t.internal&&/\?/.test(r)&&(i=r.split("?")[0]===t.url),i&&(0,o.isValidLink)(e)){const r=e.closest(".onebox");if(!r||!n.has(r)||n.get(r)===e){const n=f.default.t("topic_map.clicks",{count:t.clicks});e.appendChild(document.createTextNode(" ")),e.appendChild((0,d.default)(`<span class='badge badge-notification clicks' title='${n}'>${(0,a.number)(t.clicks)}</span>`)[0])}}}))}))}async _toggleQuote(e){if(this.expanding)return;this.expanding=!0;const t=e.querySelector("blockquote");if(!t)return;e.dataset.expanded?delete e.dataset.expanded:e.dataset.expanded=!0;const n=t.id;if(e.dataset.expanded){this._updateQuoteElements(e,"chevron-up"),this.originalQuoteContents.set(n,t.innerHTML);const r=t.textContent.trim()||this.attrs.cooked.querySelector("blockquote").textContent.trim();t.innerHTML=i.spinnerHTML;const o=parseInt(e.dataset.topic||this.attrs.topicId,10),a=parseInt(e.dataset.post,10);try{const e=await(0,s.ajax)(`/posts/by_number/${o}/${a}`),n=this._post(),i=n.quoted||{};i[e.id]=e,n.set("quoted",i);const c=k("div");c.classList.add("expanded-quote"),c.dataset.postId=e.id,c.innerHTML=e.cooked,this._decorateAndAdopt(c),(0,l.default)(c,r,{matchCase:!0}),t.innerHTML="",t.appendChild(c)}catch(e){if([403,404].includes(e.jqXHR.status)){const n=403===e.jqXHR.status?"lock":"far-trash-alt";t.innerHTML=`<div class='expanded-quote icon-only'>${(0,g.iconHTML)(n)}</div>`}}}else this._updateQuoteElements(e,"chevron-down"),t.innerHTML=this.originalQuoteContents.get(t.id);this.expanding=!1}_urlForPostNumber(e){return e>0?`${this.attrs.topicUrl}/${e}`:this.attrs.topicUrl}_updateQuoteElements(e,t){const n=f.default.t("post.follow_quote"),r=e.dataset.post,i=e.dataset.topic;let s="";if(i&&r&&i===this.attrs.topicId?.toString()){const e=(0,g.iconHTML)("arrow-up");s=`<a href='${this._urlForPostNumber(r)}' title='${n}' class='btn-flat back'>${e}</a>`}const o=e.querySelector(".title");let a="";if(!e.dataset.full){const n=(0,g.iconHTML)(t,{title:"post.expand_collapse"}),r=e.querySelector("blockquote")?.id;r&&(a=`<button aria-controls="${r}" aria-expanded="${"true"===e.dataset.expanded}" class="quote-toggle btn-flat">${n}</button>`,o&&(o.style.cursor="pointer"))}if(this.ignoredUsers?.length&&o){const t=o.innerText.trim().slice(0,-1);t.length>0&&this.ignoredUsers.includes(t)&&(e.querySelectorAll("p").forEach((e=>e.remove())),e.classList.add("ignored-user"))}const l=e.querySelector(".quote-controls");l&&(l.innerHTML=a+s)}_insertQuoteControls(e){const t=e.querySelectorAll("aside.quote");0!==t.length&&(this.originalQuoteContents=new Map,t.forEach(((e,t)=>{if(e.dataset.post){const n=`quote-id-${e.dataset.topic}-${e.dataset.post}-${t}`,r=e.querySelector("blockquote");r&&(r.id=n),this._updateQuoteElements(e,"chevron-down");const i=e.querySelector(".title");if(!i)return;if(e.classList.contains("quote-post-not-found"))return void(e.dataset.username?i.innerHTML=(0,p.default)(e.dataset.username):i.remove());e.dataset.full||i.dataset.hasQuoteControls||(i.addEventListener("click",(t=>{if(t.target.closest("a"))return!0;this._toggleQuote(e)})),i.dataset.hasQuoteControls=!0)}})))}_computeCooked(){const e=k("div");return e.classList.add("cooked"),(this.attrs.firstPost||this.attrs.embeddedPost)&&this.ignoredUsers&&this.ignoredUsers.length>0&&this.ignoredUsers.includes(this.attrs.username)?(e.classList.add("post-ignored"),e.innerHTML=f.default.t("post.ignored")):e.innerHTML=this.attrs.cooked,e}_initUserStatusOnMentions(){this._isInComposerPreview||(this._trackMentionedUsersStatus(),this._rerenderUserStatusOnMentions())}_rerenderUserStatusOnMentions(){(0,u.destroyUserStatusOnMentions)(),this._post()?.mentioned_users?.forEach((e=>this._rerenderUserStatusOnMention(this.cookedDiv,e)))}_rerenderUserStatusOnMention(e,t){const n=(0,m.default)(`/u/${t.username.toLowerCase()}`);e.querySelectorAll(`a.mention[href="${n}"]`).forEach((e=>{(0,u.updateUserStatusOnMention)((0,h.getOwnerWithFallback)(this._post()),e,t.status)}))}_trackMentionedUsersStatus(){this._post()?.mentioned_users?.forEach((e=>{e.trackStatus?.(),e.on?.("status-changed",this,"_rerenderUserStatusOnMentions")}))}_stopTrackingMentionedUsersStatus(){this._post()?.mentioned_users?.forEach((e=>{e.stopTrackingStatus?.(),e.off?.("status-changed",this,"_rerenderUserStatusOnMentions")}))}_post(){return this.decoratorHelper?.getModel?.()}}x.prototype.type="Widget"},59766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,historyHeat:()=>a});var r=n(70352),i=n(94473),s=n(82099);function o(e){return 3e6*e}function a(e,t){if(!t)return;const n=Date.now(),r=t.getTime();return r>n-o(e.history_hours_low)?"heatmap-high":r>n-o(e.history_hours_medium)?"heatmap-med":r>n-o(e.history_hours_high)?"heatmap-low":void 0}const l=(0,i.createWidget)("post-edits-indicator",{tagName:"div.post-info.edits",html(e){let t="pencil-alt";const n=new Date(e.updated_at);let i=a(this.siteSettings,n);const o=(0,r.longDate)(n);let l;return e.wiki?(t="far-edit",i=`${i||""} wiki`.trim(),l=e.version>1?s.default.t("post.wiki_last_edited_on",{dateTime:o}):s.default.t("post.wiki.about")):l=s.default.t("post.last_edited_on",{dateTime:o}),this.attach("flat-button",{icon:t,translatedTitle:l,className:i,action:"onPostEditsIndicatorClick",translatedAriaLabel:s.default.t("post.edit_history"),translatedLabel:e.version>1?e.version-1:""})},onPostEditsIndicatorClick(){this.attrs.wiki&&1===this.attrs.version?this.sendWidgetAction("editPost"):this.attrs.canViewEditHistory&&this.sendWidgetAction("showHistory")}})},40443:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(94473),i=n(82099);const s=(0,r.createWidget)("post-gap",{tagName:"div.gap",buildKey:e=>`post-gap-${e.pos}-${e.postId}`,defaultState:()=>({loading:!1}),html:(e,t)=>t.loading?i.default.t("loading"):i.default.t("post.gap",{count:e.gap.length}),click(){const{attrs:e,state:t}=this;if(t.loading)return;t.loading=!0;const n={gap:e.gap,post:this.model};return this.sendWidgetAction("before"===e.pos?"fillGapBefore":"fillGapAfter",n).then((()=>{t.loading=!1,this.appEvents.trigger("post-stream:gap-expanded",{post_id:this.model.id})}))}})},96452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(41221),i=n(67943),s=n(94473),o=n(3961);const a=(0,s.createWidget)("post-links",{tagName:"div.post-links-container",buildKey:e=>`post-links-${e.id}`,defaultState:()=>({collapsed:!0}),linkHtml(e){const t=(0,i.replaceEmoji)(e.title);return e.clicks&&t.push((0,r.h)("span.badge.badge-notification.clicks",e.clicks.toString())),(0,r.h)("li",(0,r.h)("a.track-link",{className:"inbound",attributes:{href:e.url}},[(0,o.iconNode)("link"),t]))},html(e,t){if(!this.attrs.links||0===this.attrs.links.length)return;const n=this.attrs.links.filter((e=>e.reflection)).uniqBy("title");if(0===n.length)return;const i=[];if(n.length<=5||!t.collapsed)n.forEach((e=>i.push(this.linkHtml(e))));else{const e=Math.min(5,n.length);for(let t=0;t<e;t++)i.push(this.linkHtml(n[t]));n.length>e&&i.push((0,r.h)("li",this.attach("link",{labelCount:"post_links.title",title:"post_links.about",count:n.length-e,action:"expandLinks",className:"expand-links"})))}return i.length?(0,r.h)("ul.post-links",i):void 0},expandLinks(){this.state.collapsed=!1}})},69892:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addButton:()=>k,apiExtraButtons:()=>_,buildButton:()=>P,default:()=>D,removeButton:()=>T,replaceButton:()=>S,resetPostMenuExtraButtons:()=>x});var r=n(51372),i=n(10425),s=n(41221),o=n(27134),a=n(55325),l=n(64390),c=n(33338),u=n(87521),d=n(52919),p=n(83675),h=n(94473),m=n(12933),g=n(82099),f=n(8620);const b={};let _={},y={},w={},v={};function k(e,t){y[e]=t}function x(){for(const e of Object.keys(_))delete _[e];y={},w={},v={}}function T(e,t){w[e]??=[],w[e].push(t||(()=>!0))}function S(e,t){v[e]=t}function C(e,t){b[e]=t}function P(e,t){let{attrs:n,state:r,siteSettings:i,settings:s,currentUser:o}=t;if(w[e]&&w[e].some((e=>e(n,r,i,s,o))))return;let a=v[e];if(a&&a?.shouldRender(t))return{replaced:!0,name:a.name,attrs:a.buildAttrs(t)};let l=b[e];if(l){let t=l(n,r,i,s,o);return t&&!t.id&&(t.id=e),t}}function O(e,t){const n=e.likeCount;if(n>0){const r=e.liked?1===n?"post.has_likes_title_only_you":"post.has_likes_title_you":"post.has_likes_title";let i=e.yours?"d-liked":"",s=e.yours;const o=e.yours?"my-likes":"regular-likes";e.showLike||(i=e.yours?"d-liked":"d-unliked",s=!0);let a="false";return t?.likedUsers&&t.likedUsers.length>0&&(a="true"),{action:"toggleWhoLiked",title:r,className:`button-count like-count highlight-action ${o}`,contents:n,icon:i,iconRight:!0,addContainer:s,titleOptions:{count:e.liked?n-1:n},translatedAriaLabel:g.default.t("post.sr_post_like_count_button",{count:n}),ariaPressed:a}}}function E(e,t,n){const r=e.indexOf(t);-1!==r&&(e[r]=n)}C("read-count",((e,t)=>{if(e.showReadIndicator){const n=e.readCount;if(n>0){let e="false";return t?.readers&&t.readers.length>0&&(e="true"),{action:"toggleWhoRead",title:"post.controls.read_indicator",className:"button-count read-indicator",contents:n,iconRight:!0,addContainer:!1,translatedAriaLabel:g.default.t("post.sr_post_read_count_button",{count:n}),ariaPressed:e}}}})),C("read",(e=>{const t=e.readCount>0;if(e.showReadIndicator&&t)return{action:"toggleWhoRead",title:"post.controls.read_indicator",icon:"book-reader",before:"read-count",addContainer:!1}})),C("like-count",O),C("like",((e,t,n,r,i)=>{if(!e.showLike)return O(e);const s=e.liked?"toggle-like has-like fade-out":"toggle-like like",o={action:"like",icon:e.liked?"d-liked":"d-unliked",className:s,before:"like-count",data:{"post-id":e.id}};return e.liked&&!e.canToggleLike?o.title="post.controls.has_liked":o.title=e.liked?"post.controls.undo_like":"post.controls.like",i&&!e.canToggleLike&&(o.disabled=!0),o})),C("flag-count",(e=>{let t="button-count";return e.reviewableScorePendingCount>0&&(t+=" has-pending"),{className:t,contents:(0,s.h)("span",e.reviewableScoreCount.toString()),url:`/review/${e.reviewableId}`}})),C("flag",(e=>{if(e.reviewableId||e.canFlag&&!e.hidden){let t={action:"showFlags",title:"post.controls.flag",icon:"flag",className:"create-flag"};return e.reviewableId&&(t.before="flag-count"),t}})),C("edit",(e=>{if(e.canEdit)return{action:"editPost",className:"edit",title:"post.controls.edit",icon:"pencil-alt",alwaysShowYours:!0}})),C("reply-small",(e=>{if(e.canCreatePost)return{action:"replyToPost",title:"post.controls.reply",icon:"reply",className:"reply",translatedAriaLabel:g.default.t("post.sr_reply_to",{post_number:e.post_number,username:e.username})}})),C("wiki-edit",(e=>{if(e.canEdit){const t={action:"editPost",className:"edit create",title:"post.controls.edit",icon:"far-edit",alwaysShowYours:!0};return e.mobileView||(t.label="post.controls.edit_action"),t}})),C("replies",((e,t,n)=>{const r=e.replyCount;if(!r)return;let i,s="toggleRepliesBelow",o=t.repliesShown?"chevron-up":"chevron-down";return n.enable_filtered_replies_view&&(s="toggleFilteredRepliesView",o=t.filteredRepliesShown?"chevron-up":"chevron-down"),1===r&&e.replyDirectlyBelow&&n.suppress_reply_directly_below?void 0:(n.enable_filtered_replies_view||(i=t.repliesShown?"true":"false"),{action:s,icon:o,className:"show-replies",titleOptions:{count:r},title:n.enable_filtered_replies_view?t.filteredRepliesShown?"post.view_all_posts":"post.filtered_replies_hint":"",labelOptions:{count:r},label:e.mobileView?"post.has_replies_count":"post.has_replies",iconRight:!n.enable_filtered_replies_view||e.mobileView,disabled:!!e.deleted,translatedAriaLabel:g.default.t("post.sr_expand_replies",{count:r}),ariaExpanded:!n.enable_filtered_replies_view&&t.repliesShown?"true":"false",ariaPressed:i,ariaControls:`embedded-posts__bottom--${e.post_number}`})})),C("share",(()=>({action:"share",icon:"d-post-share",className:"share",title:"post.controls.share"}))),C("copyLink",(()=>({action:"copyLink",icon:"d-post-share",className:"post-action-menu__copy-link",title:"post.controls.copy_title"}))),C("reply",((e,t,n,r)=>{const i={action:"replyToPost",title:"post.controls.reply",icon:"reply",className:"reply create fade-out",translatedAriaLabel:g.default.t("post.sr_reply_to",{post_number:e.post_number,username:e.username})};if(e.canCreatePost)return!r.showReplyTitleOnMobile&&e.mobileView||(i.label="topic.reply.title"),i})),C("bookmark",((e,t,n,r,i)=>{if(!e.canBookmark)return;let s=["bookmark","with-reminder"],o="bookmarks.not_bookmarked",a={name:""};if(e.bookmarked){if(s.push("bookmarked"),e.bookmarkReminderAt){let t=(0,l.formattedReminderTime)(e.bookmarkReminderAt,i.user_option.timezone);o="bookmarks.created_with_reminder",a.date=t}else o="bookmarks.created";e.bookmarkName&&(a.name=e.bookmarkName)}return{id:e.bookmarked?"unbookmark":"bookmark",action:"toggleBookmark",title:o,titleOptions:a,className:s.join(" "),icon:e.bookmarkReminderAt?u.WITH_REMINDER_ICON:u.NO_REMINDER_ICON}})),C("admin",(e=>{if(e.canManage||e.canWiki||e.canEditStaffNotes)return{action:"openAdminMenu",title:"post.controls.admin",className:"show-post-admin-menu",icon:"wrench",sendActionEvent:!0}})),C("delete",(e=>e.canRecoverTopic?{id:"recover_topic",action:"recoverPost",title:"topic.actions.recover",icon:"undo",className:"recover"}:e.canDeleteTopic?{id:"delete_topic",action:"deletePost",title:"post.controls.delete_topic",icon:"far-trash-alt",className:"delete"}:e.canRecover?{id:"recover",action:"recoverPost",title:"post.controls.undelete",icon:"undo",className:"recover"}:e.canDelete?{id:"delete",action:"deletePost",title:"post.controls.delete",icon:"far-trash-alt",className:"delete"}:e.showFlagDelete?{id:"delete_topic",action:"showDeleteTopicModal",title:"post.controls.delete_topic_disallowed",icon:"far-trash-alt",className:"delete"}:void 0));const D=(0,h.createWidget)("post-menu",{tagName:"section.post-menu-area.clearfix",services:["modal","menu"],settings:{collapseButtons:!0,buttonType:"flat-button",showReplyTitleOnMobile:!1},defaultState:()=>({collapsed:!0,likedUsers:[],readers:[]}),buildKey:e=>`post-menu-${e.id}`,attachButton(e){let t=P(e,this);if(t?.component)return[new p.default(this,t.tagName,(0,f.createTemplateFactory)({id:"3X4fp6vy",block:'[[[8,[30,1,["component"]],null,[["@permanentlyDeletePost","@lockPost","@unlockPost","@grantBadge","@rebakePost","@toggleWiki","@changePostOwner","@changeNotice","@togglePostType","@unhidePost","@showPagePublish","@post","@transformedPost","@scheduleRerender"],[[30,1,["permanentlyDeletePost"]],[30,1,["lockPost"]],[30,1,["unlockPost"]],[30,1,["grantBadge"]],[30,1,["rebakePost"]],[30,1,["toggleWiki"]],[30,1,["changePostOwner"]],[30,1,["changeNotice"]],[30,1,["togglePostType"]],[30,1,["unhidePost"]],[30,1,["showPagePublish"]],[30,1,["post"]],[30,1,["transformedPost"]],[30,1,["scheduleRerender"]]]],null]],["@data"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-menu.js",isStrictMode:!1}),{component:t.component,transformedPost:this.attrs,post:this.findAncestorModel(),permanentlyDeletePost:()=>this.sendWidgetAction("permanentlyDeletePost"),lockPost:()=>this.sendWidgetAction("lockPost"),unlockPost:()=>this.sendWidgetAction("unlockPost"),grantBadge:()=>this.sendWidgetAction("grantBadge"),rebakePost:()=>this.sendWidgetAction("rebakePost"),toggleWiki:()=>this.sendWidgetAction("toggleWiki"),changePostOwner:()=>this.sendWidgetAction("changePostOwner"),changeNotice:()=>this.sendWidgetAction("changeNotice"),togglePostType:()=>this.sendWidgetAction("togglePostType"),scheduleRerender:()=>this.scheduleRerender()})];if(t?.replaced)return this.attach(t.name,t.attrs);if(t){let e=this.attach(this.settings.buttonType,t);if(t.before){let n=this.attachButton(t.before);return(0,s.h)("div.double-button",[n,e])}return t.addContainer?(0,s.h)("div.double-button",[e]):e}},menuItems(){return this.siteSettings.post_menu.split("|").filter(Boolean)},html(e,t){const{currentUser:n,keyValueStore:i,siteSettings:o}=this,a=(o.post_menu_hidden_items||"").split("|").filter((t=>!e.bookmarked||"bookmark"!==t));n&&i&&i.getInt("likedPostId")===e.id&&(i.remove("likedPostId"),(0,r.next)((()=>this.sendWidgetAction("toggleLike"))));const l=[];let u=[];const d=this.menuItems();if(e.wiki&&e.canEdit&&(E(d,"edit","reply-small"),E(d,"reply","wiki-edit")),d.forEach((t=>{const n=this.attachButton(t,e);n&&(l.push(n),(e.yours&&n.attrs&&n.attrs.alwaysShowYours||e.reviewableId&&"flag"===t||!a.includes(t))&&u.push(n))})),this.settings.collapseButtons||(u=l),!t.collapsed||l.length<=u.length+1)u=l,t.collapsed&&(t.collapsed=!1);else{const e=this.attach("flat-button",{action:"showMoreActions",title:"show_more",className:"show-more-actions",icon:"ellipsis-h"});u.splice(u.length-1,0,e)}Object.values(y).forEach((n=>{let r=!0;if(w[name]&&(r=!w[name].some((t=>t(e,this.state,this.siteSettings,this.settings,this.currentUser)))),r&&n){const r=n(e,this.state,this.siteSettings,this.settings,this.currentUser);if(r){const{position:e,beforeButton:n,afterButton:i}=r;let o;if(delete r.position,"function"==typeof r.action){const e=r.action,t=this;r.action=async function(n){let i=null;r.className&&(i=e=>{(0,c.showAlert)(n.id,r.className,e)});const s={post:n,showFeedback:i};r.className&&(0,c.recentlyCopied)(n.id,r.actionClass)||t.sendWidgetAction(e,s)}}o=this.attach(this.settings.buttonType,r);const a=[];if(n&&a.push(n(s.h)),a.push(o),i&&a.push(i(s.h)),o=(0,s.h)("span.extra-buttons",a),o)switch(e){case"first":u.unshift(o);break;case"second":u.splice(1,0,o);break;case"second-last-hidden":t.collapsed||u.splice(u.length-2,0,o);break;default:u.push(o)}}}}));const p=[],m=this.attachButton("replies",e);m&&p.push(m);const f=(0,h.applyDecorators)(this,"extra-post-controls",e,t);p.push(f);const b=(0,h.applyDecorators)(this,"extra-controls",e,t),_=[...(0,h.applyDecorators)(this,"before-extra-controls",e,t),...u,...b];p.push((0,s.h)("div.actions",_));const v=[(0,s.h)("nav.post-controls"+(this.state.collapsed?".collapsed":".expanded")+(o.enable_filtered_replies_view?".replies-button-visible":""),p)];if(t.readers.length){const e=t.totalReaders-t.readers.length,n=e>0?"post.actions.people.read_capped":"post.actions.people.read",r=e>0?e:t.totalReaders;v.push(this.attach("small-user-list",{users:t.readers,addSelf:!1,listClassName:"who-read",description:n,count:r,ariaLabel:g.default.t("post.actions.people.sr_post_readers_list_description")}))}if(t.likedUsers.length){const n=t.total-t.likedUsers.length,r=n>0?"post.actions.people.like_capped":"post.actions.people.like",i=n>0?n:t.total;v.push(this.attach("small-user-list",{users:t.likedUsers,addSelf:e.liked&&0===n,listClassName:"who-liked",description:r,count:i,ariaLabel:g.default.t("post.actions.people.sr_post_likers_list_description")}))}return v},openAdminMenu(e){this.menu.show(e.target,{identifier:"admin-post-menu",component:o.default,extraClassName:"popup-menu",data:{scheduleRerender:this.scheduleRerender.bind(this),transformedPost:this.attrs,post:this.findAncestorModel(),permanentlyDeletePost:()=>this.sendWidgetAction("permanentlyDeletePost"),lockPost:()=>this.sendWidgetAction("lockPost"),unlockPost:()=>this.sendWidgetAction("unlockPost"),grantBadge:()=>this.sendWidgetAction("grantBadge"),rebakePost:()=>this.sendWidgetAction("rebakePost"),toggleWiki:()=>this.sendWidgetAction("toggleWiki"),changePostOwner:()=>this.sendWidgetAction("changePostOwner"),changeNotice:()=>this.sendWidgetAction("changeNotice"),togglePostType:()=>this.sendWidgetAction("togglePostType"),unhidePost:()=>this.sendWidgetAction("unhidePost"),showPagePublish:()=>this.sendWidgetAction("showPagePublish")}})},showDeleteTopicModal(){this.modal.show(a.default)},showMoreActions(){return this.state.collapsed=!1,(this.state.likedUsers.length?i.Promise.resolve():this.getWhoLiked()).then((()=>{if(!this.state.readers.length&&this.attrs.showReadIndicator)return this.getWhoRead()}))},like(){const{attrs:e,currentUser:t,keyValueStore:n}=this;if(!t)return n&&n.set({key:"likedPostId",value:e.id}),this.sendWidgetAction("showLogin");if(this.capabilities.userHasBeenActive&&this.capabilities.canVibrate&&navigator.vibrate(5),e.liked)return this.sendWidgetAction("toggleLike");const r=document.querySelector(`.toggle-like[data-post-id="${e.id}"] .d-icon`);return r.closest(".toggle-like").classList.add("has-like"),r.classList.add("heart-animation"),new i.Promise((e=>{(0,m.default)((()=>{this.sendWidgetAction("toggleLike").then((()=>e()))}),400)}))},refreshLikes(){if(this.state.likedUsers.length)return this.getWhoLiked()},refreshReaders(){if(this.state.readers.length)return this.getWhoRead()},getWhoLiked(){const{attrs:e,state:t}=this;return this.store.find("post-action-user",{id:e.id,post_action_type_id:2}).then((e=>{t.likedUsers=e.map(d.smallUserAtts),t.total=e.totalRows}))},getWhoRead(){const{attrs:e,state:t}=this;return this.store.find("post-reader",{id:e.id}).then((e=>{t.readers=e.map(d.smallUserAtts),t.totalReaders=e.totalRows}))},toggleWhoLiked(){const e=this.state;if(!e.likedUsers.length)return this.getWhoLiked();e.likedUsers=[]},toggleWhoRead(){const e=this.state;if(!this.state.readers.length)return this.getWhoRead();e.readers=[]}})},50131:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(94473).createWidget)("post-placeholder",{tagName:"article.placeholder",template:function(e,t){var n=[];n.push("\n    ");var r=[];r.push("\n      ");var i=[];i.push("\n        "),i.push(virtualDom.h("div",{className:"placeholder-avatar placeholder-animation",attributes:{}},[])),i.push("\n      "),r.push(virtualDom.h("div",{className:"topic-avatar",attributes:{}},i)),r.push("\n      ");var s=[];return s.push("\n        "),s.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),s.push("\n        "),s.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),s.push("\n        "),s.push(virtualDom.h("div",{className:"placeholder-text placeholder-animation",attributes:{}},[])),s.push("\n      "),r.push(virtualDom.h("div",{className:"topic-body",attributes:{}},s)),r.push("\n    "),n.push(virtualDom.h("div",{className:"row",attributes:{}},r)),n.push("\n  "),n}})},67927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{actionDescription:()=>f,actionDescriptionHtml:()=>g,addGroupPostSmallActionCode:()=>v,addPostSmallActionClassesCallback:()=>k,addPostSmallActionIcon:()=>w,default:()=>T,resetPostSmallActionClassesCallbacks:()=>x});var r=n(48163),i=n(24434),s=n(41221),o=n(70352),a=n(20229),l=n(72313),c=n(51804),u=n(46737),d=n(802),p=n(94473),h=n(3961),m=n(82099);function g(e,t,n,r){const s=new Date(t),l=(0,o.autoUpdatingRelativeAge)(s,{format:"medium-with-ago-and-on"});let c="";return n&&(c=_.includes(e)?`<a class="mention-group" href="/g/${n}">@${n}</a>`:`<a class="mention" href="${(0,a.userPath)(n)}">@${n}</a>`),(0,i.htmlSafe)(m.default.t(`action_codes.${e}`,{who:c,when:l,path:r}))}function f(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.computed)(e,t,(function(){const r=this.get(e);if(r)return g(r,this.get(t),this.get(n),i?this.get(i):null)}))}const b=[],_=["invited_group","removed_group"],y={"closed.enabled":"lock","closed.disabled":"unlock-alt","autoclosed.enabled":"lock","autoclosed.disabled":"unlock-alt","archived.enabled":"folder","archived.disabled":"folder-open","pinned.enabled":"thumbtack","pinned.disabled":"thumbtack unpinned","pinned_globally.enabled":"thumbtack","pinned_globally.disabled":"thumbtack unpinned","banner.enabled":"thumbtack","banner.disabled":"thumbtack unpinned","visible.enabled":"far-eye","visible.disabled":"far-eye-slash",split_topic:"sign-out-alt",invited_user:"plus-circle",invited_group:"plus-circle",user_left:"minus-circle",removed_user:"minus-circle",removed_group:"minus-circle",public_topic:"comment",private_topic:"envelope",autobumped:"hand-point-right"};function w(e,t){y[e]=t}function v(e){_.push(e)}function k(e){b.push(e)}function x(){b.length=0}const T=(0,p.createWidget)("post-small-action",{buildKey:e=>`post-small-act-${e.id}`,tagName:"article.small-action.onscreen-post",buildAttributes:e=>({"aria-label":m.default.t("share.post",{postNumber:e.post_number,username:e.username}),role:"region"}),buildId:e=>`post_${e.post_number}`,buildClasses(e){let t=[];return e.deleted&&t.push("deleted"),b.length>0&&b.forEach((n=>{const r=n.call(this,e);r&&t.push(...r)})),t},html(e){const t=[],n=[];if(t.push(c.avatarFor.call(this,"small",{template:e.avatar_template,username:e.username,url:e.usernameUrl,ariaHidden:!1})),e.actionDescriptionWidget)t.push(this.attach(e.actionDescriptionWidget,e));else{const n=g(e.actionCode,new Date(e.created_at),e.actionCodeWho,e.actionCodePath);t.push(new d.default({html:`<p>${n}</p>`}))}return e.canRecover&&n.push(this.attach("button",{className:"btn-flat small-action-recover",icon:"undo",action:"recoverPost",title:"post.controls.undelete"})),e.canEdit&&!e.canRecover&&n.push(this.attach("button",{className:"btn-flat small-action-edit",icon:"pencil-alt",action:"editPost",title:"post.controls.edit"})),e.canDelete&&n.push(this.attach("button",{className:"btn-flat btn-danger small-action-delete",icon:"trash-alt",action:"deletePost",title:"post.controls.delete"})),[(0,s.h)("div.topic-avatar",(0,h.iconNode)(y[e.actionCode]||"exclamation")),(0,s.h)("div.small-action-desc",[(0,s.h)("div.small-action-contents",t),(0,s.h)("div.small-action-buttons",n),!e.actionDescriptionWidget&&e.cooked?(0,s.h)("div.small-action-custom-message",[new u.default(e,new l.default(this),this.currentUser)]):null])]}})},75922:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPostTransformCallback:()=>b,cloak:()=>T,default:()=>C,disableCloaking:()=>k,postTransformCallbacks:()=>f,preventCloak:()=>x,uncloak:()=>S});var r=n(71466),i=n.n(r),s=n(41221),o=n(17238),a=n(75157),l=n(1350),c=n(20229),u=n(51804),d=n(94473),p=n(56111),h=n(3961),m=n(82099);let g=null;function f(e){if(null!==g)for(let t=0;t<g.length;t++)g[t].call(this,e)}function b(e){g=g||[],g.push(e)}let _=!0;const y={};let w={},v={};function k(){_=!1}function x(e){y[e]=!0}function T(e,t){if(!_||w[e.id]||y[e.id])return;const n=i()(`#post_${e.post_number}`).parent();w[e.id]=!0,v[e.id]=n.outerHeight(),t.dirtyKeys.keyDirty(`post-${e.id}`),(0,p.default)(t,"queueRerender",1e3)}function S(e,t){_&&w[e.id]&&(w[e.id]=null,t.dirtyKeys.keyDirty(`post-${e.id}`),t.queueRerender())}(0,o.addWidgetCleanCallback)("post-stream",(()=>{w={},v={}})),(0,d.createWidget)("posts-filtered-notice",{buildKey:e=>`posts-filtered-notice-${e.id}`,buildClasses:()=>["posts-filtered-notice"],html(e){const t=e.streamFilters;if(t.filter_upwards_post_id||t.mixedHiddenPosts)return[(0,s.h)("span.filtered-replies-viewing",m.default.t("post.filtered_replies.viewing_subset")),this.attach("filter-show-all",e)];if(t.replies_to_post_number){const n=e.posts.findBy("post_number",t.replies_to_post_number);return[(0,s.h)("span.filtered-replies-viewing",m.default.t("post.filtered_replies_viewing",{count:n.reply_count})),(0,s.h)("span.filtered-user-row",[(0,s.h)("span.filtered-avatar",u.avatarFor.call(this,"small",{template:n.avatar_template,username:n.username,url:n.usernameUrl})),this.attach("filter-jump-to-post",{username:n.username,postNumber:t.replies_to_post_number})]),this.attach("filter-show-all",e)]}if(t.filter&&"summary"===t.filter)return[(0,s.h)("span.filtered-replies-viewing",m.default.t("post.filtered_replies.viewing_summary")),this.attach("filter-show-all",e)];if(t.username_filters){const t=e.posts[1],n=parseInt(e.filteredPostsCount,10)-1;return[(0,s.h)("span.filtered-replies-viewing",m.default.t("post.filtered_replies.viewing_posts_by",{post_count:n})),(0,s.h)("span.filtered-avatar",u.avatarFor.call(this,"small",{template:t.avatar_template,username:t.username,url:t.usernameUrl})),this.attach("poster-name",t),this.attach("filter-show-all",e)]}return[]}}),(0,d.createWidget)("filter-jump-to-post",{tagName:"a.filtered-jump-to-post",buildKey:e=>`jump-to-post-${e.id}`,html:e=>m.default.t("post.filtered_replies.post_number",{username:e.username,post_number:e.postNumber}),click(){c.default.jumpToPost(this.attrs.postNumber)}}),(0,d.createWidget)("filter-show-all",{tagName:"button.filtered-replies-show-all",buildKey:e=>`filtered-show-all-${e.id}`,buildClasses:()=>["btn","btn-primary"],html:()=>[(0,h.iconNode)("arrows-alt-v"),m.default.t("post.filtered_replies.show_all")],click(){this.sendWidgetAction("cancelFilter"),this.appEvents.trigger("post-stream:filter-show-all",this.attrs.streamFilters)}});const C=(0,d.createWidget)("post-stream",{tagName:"div.post-stream",html(e){const t=(e.posts||[]).toArray(),n=t.length,r=n>0?t[n-1].post_number:0,i=[],s=e.gaps&&e.gaps.before?e.gaps.before:{},o=e.gaps&&e.gaps.after?e.gaps.after:{},c=this.site.mobileView;let u,d;for(let p=0;p<n;p++){const h=t[p];if(h instanceof a.Placeholder){i.push(this.attach("post-placeholder"));continue}const m=p<t.length-1?t[p+1]:null,g=(0,l.default)(this.currentUser,this.site,h,u,m);g.canCreatePost=e.canCreatePost,g.mobileView=c,(g.canManage||g.canSplitMergeTopic)&&(g.multiSelect=e.multiSelect,e.multiSelect&&(g.selected=e.selectedQuery(h))),e.searchService&&(g.highlightTerm=e.searchService.highlightTerm);const b=s[h.id];b&&i.push(this.attach("post-gap",{pos:"before",postId:h.id,gap:b},{model:h}));const _=new Date(g.created_at).getTime();if(d){const e=Math.floor((_-d)/864e5);e>this.siteSettings.show_time_gap_days&&i.push(this.attach("time-gap",{daysSince:e}))}d=_,g.height=v[h.id],g.cloaked=w[h.id],f(g),g.isSmallAction?i.push(this.attach("post-small-action",g,{model:h})):(g.showReadIndicator=e.showReadIndicator,i.push(this.attach("post",g,{model:h})));const y=o[h.id];y&&i.push(this.attach("post-gap",{pos:"after",postId:h.id,gap:y},{model:h})),p!==n-1&&r<=e.highestPostNumber&&e.lastReadPostNumber===h.post_number&&i.push(this.attach("topic-post-visited-line",{post_number:h.post_number})),u=h}return e.streamFilters&&Object.keys(e.streamFilters).length&&(Object.keys(s).length>0||Object.keys(o).length>0)&&i.push(this.attach("posts-filtered-notice",{posts:t,streamFilters:e.streamFilters,filteredPostsCount:e.filteredPostsCount})),i}})},57836:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(94473),s=n(8620);(0,i.createWidget)("post-user-status",{tagName:"span.user-status-message-wrap",html(e){return[new r.default(this,"div",(0,s.createTemplateFactory)({id:"zk2hmORJ",block:'[[[8,[39,0],null,[["@status"],[[30,1,["attrs"]]]],null]],["@data"],false,["user-status-message"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-user-status.js",isStrictMode:!1}),{attrs:e})]}})},21205:(e,t,n)=>{"use strict";n.r(t);var r=n(83675),i=n(8620);(0,r.registerWidgetShim)("post-user-tip-shim","div.post-user-tip-shim",(0,i.createTemplateFactory)({id:"S2B/1GVk",block:'[[[8,[39,0],null,[["@id","@triggerSelector","@placement","@titleText","@contentText"],["post_menu",".post-controls .actions .show-more-actions","top",[28,[37,1],["user_tips.post_menu.title"],null],[28,[37,1],["user_tips.post_menu.content"],null]]],null]],[],false,["user-tip","i18n"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-user-tip-shim.js",isStrictMode:!1}))},51804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPostClassesCallback:()=>I,avatarFor:()=>O,avatarImg:()=>P,default:()=>j});var r=n(72326),i=n(10425),s=n(41221),o=n(75900),a=n(47090),l=n(14382),c=n(70352),u=n(33338),d=n(60353),p=n(9387),h=n(1350),m=n(20229),g=n(62617),f=n(72313),b=n(46737),_=n(75922),y=n(802),w=n(94473),v=n(34405),k=n(80709),x=n(47582),T=n(3961),S=n(82099);function C(e){let t=(0,h.transformBasicPost)(e);return(0,_.postTransformCallbacks)(t),t}function P(e,t){const n=(0,k.translateSize)(e),r=(0,k.avatarUrl)(t.template,n);if(!r||0===r.length)return;let i;t.hideTitle||(i=t.name||(0,g.formatUsername)(t.username));let o="";t.alt&&(o=S.default.t(t.alt));let a="avatar"+(t.extraClasses?" "+t.extraClasses:"");const l={attributes:{alt:o,width:n,height:n,src:(0,x.getURLWithCDN)(r),title:i,"aria-hidden":!0,loading:"lazy",tabindex:"-1"},className:a};return(0,s.h)("img",l)}function O(e,t,n){const r={href:t.url,"data-user-card":t.username};return!1===t.ariaHidden?r["aria-label"]=S.default.t("user.profile_possessive",{username:t.username}):r["aria-hidden"]=!0,n&&Object.assign(r,n),(0,s.h)("a",{className:`trigger-user-card ${t.className||""}`,attributes:r},P(e,t))}function E(e,t){return e.replyToUsername&&(!e.replyDirectlyAbove||!t.suppress_reply_directly_above)}(0,w.createWidget)("select-post",{tagName:"div.select-posts",html(e){const t=[];!e.selected&&e.post_number>1&&(e.replyCount>0&&t.push(this.attach("button",{label:"topic.multi_select.select_replies.label",title:"topic.multi_select.select_replies.title",action:"selectReplies",className:"select-replies"})),t.push(this.attach("button",{label:"topic.multi_select.select_below.label",title:"topic.multi_select.select_below.title",action:"selectBelow",className:"select-below"})));const n=`topic.multi_select.${e.selected?"selected":"select"}_post`;return t.push(this.attach("button",{label:n+".label",title:n+".title",action:"togglePostSelection",className:"select-post"})),t}}),(0,w.createWidget)("reply-to-tab",{tagName:"a.reply-to-tab",buildKey:e=>`reply-to-tab-${e.id}`,title:"post.in_reply_to",defaultState:()=>({loading:!1}),buildAttributes(e){let t={tabindex:"0"};return this.attrs.mobileView||(t["aria-controls"]=`embedded-posts__top--${e.post_number}`,t["aria-expanded"]=this.attrs.repliesAbove.length?"true":"false"),t},html(e,t){const n=t.loading?(0,s.h)("div.spinner.small"):(0,T.iconNode)("share"),r=(0,p.prioritizeNameFallback)(e.replyToName,e.replyToUsername);return[n," ",P("small",{template:e.replyToAvatarTemplate,username:r})," ",(0,s.h)("span",(0,g.formatUsername)(r))]},click(){this.state.loading=!0,this.sendWidgetAction("toggleReplyAbove").then((()=>this.state.loading=!1))}}),(0,w.createWidget)("post-avatar-user-info",{tagName:"div.post-avatar-user-info",html(e){return this.attach("poster-name",e)}}),(0,w.createWidget)("post-avatar",{tagName:"div.topic-avatar",settings:{size:"large",displayPosterName:!1},html(e){let t,n=this.siteSettings.hide_user_profiles_from_public&&!this.currentUser;t=e.user_id?O.call(this,this.settings.size,{template:e.avatar_template,username:e.username,name:e.name,url:e.usernameUrl,className:"main-avatar "+(n?"non-clickable":""),hideTitle:!0},{tabindex:"-1"}):(0,T.iconNode)("far-trash-alt",{class:"deleted-user-avatar"});const r=[t];if(e.flair_group_id)if(e.flair_url||e.flair_bg_color)r.push(this.attach("avatar-flair",e));else{const t=(0,l.default)(this.site,e);t&&r.push(this.attach("avatar-flair",t))}const i=[(0,s.h)("div.post-avatar",r)];return this.settings.displayPosterName&&i.push(this.attach("post-avatar-user-info",e)),i}}),(0,w.createWidget)("post-locked-indicator",{tagName:"div.post-info.post-locked",template:function(e,t){var n=__widget_helpers.iconNode,r=[];return r.push(n("lock")),r},title:()=>S.default.t("post.locked")}),(0,w.createWidget)("post-email-indicator",{tagName:"div.post-info.via-email",title:e=>e.isAutoGenerated?S.default.t("post.via_auto_generated_email"):S.default.t("post.via_email"),buildClasses:e=>e.canViewRawEmail?"raw-email":null,html:e=>e.isAutoGenerated?(0,T.iconNode)("envelope"):(0,T.iconNode)("far-envelope"),click(){this.attrs.canViewRawEmail&&this.sendWidgetAction("showRawEmail")}}),(0,w.createWidget)("post-meta-data",{tagName:"div.topic-meta-data",buildAttributes:()=>({role:"heading","aria-level":"2"}),settings:{displayPosterName:!0},html(e){let t=[];if(e.isWhisper){const e=this.site.get("whispers_allowed_groups_names");let n="";n=e?.length>0?S.default.t("post.whisper_groups",{groupNames:e.join(", ")}):S.default.t("post.whisper"),t.push((0,s.h)("div.post-info.whisper",{attributes:{title:n}},(0,T.iconNode)("far-eye-slash")))}e.via_email&&t.push(this.attach("post-email-indicator",e)),e.locked&&t.push(this.attach("post-locked-indicator",e)),(e.version>1||e.wiki)&&t.push(this.attach("post-edits-indicator",e)),e.multiSelect&&t.push(this.attach("select-post",e)),E(e,this.siteSettings)&&t.push(this.attach("reply-to-tab",e)),t.push(this.attach("post-date",e)),t.push((0,s.h)("div.read-state",{className:e.read?"read":null,attributes:{title:S.default.t("post.unread")}},(0,T.iconNode)("circle")));let n=[];return this.settings.displayPosterName&&n.push(this.attach("poster-name",e)),n.push((0,s.h)("div.post-infos",t)),n}}),(0,w.createWidget)("expand-hidden",{tagName:"a.expand-hidden",html:()=>S.default.t("post.show_hidden"),click(){this.sendWidgetAction("expandHidden")}}),(0,w.createWidget)("post-date",{tagName:"div.post-info.post-date",html(e){let t,n="post-date";return e.wiki&&e.lastWikiEdit?(n+=" last-wiki-edit",t=new Date(e.lastWikiEdit)):t=new Date(e.created_at),this.attach("link",{rawLabel:(0,a.dateNode)(t),className:n,omitSpan:!0,title:"post.sr_date",href:e.shareUrl,action:"showShareModal"})},showShareModal(){const e=this.findAncestorModel(),t=e.topic;(0,r.getOwner)(this).lookup("service:modal").show(o.default,{model:{category:t.category,topic:t,post:e}})}}),(0,w.createWidget)("expand-post-button",{tagName:"button.btn.expand-post",buildKey:e=>`expand-post-button-${e.id}`,defaultState:()=>({loadingExpanded:!1}),html:(e,t)=>t.loadingExpanded?S.default.t("loading"):[S.default.t("post.show_full"),"..."],click(){this.state.loadingExpanded=!0,this.sendWidgetAction("expandFirstPost")}}),(0,w.createWidget)("post-group-request",{buildKey:e=>`post-group-request-${e.id}`,buildClasses:()=>["group-request"],html(e){const t=(0,x.default)("/g/"+e.requestedGroupName+"/requests?filter="+e.username);return(0,s.h)("a",{attributes:{href:t}},S.default.t("groups.requests.handle"))}}),(0,w.createWidget)("post-contents",{buildKey:e=>`post-contents-${e.id}`,defaultState(e){const t={expandedFirstPost:!1,repliesBelow:[]};if(this.siteSettings.enable_filtered_replies_view){const n=this.register.lookup("controller:topic");e.post_number&&(t.filteredRepliesShown=n.replies_to_post_number===e.post_number.toString())}return t},buildClasses(e){const t=["regular"];return this.state.repliesShown||t.push("contents"),E(e,this.siteSettings)&&t.push("avoid-tab"),t},html(e,t){let n=[new b.default(e,new f.default(this),this.currentUser)];e.requestedGroupName&&n.push(this.attach("post-group-request",e)),n=n.concat((0,w.applyDecorators)(this,"after-cooked",e,t)),e.cooked_hidden&&e.canSeeHiddenPost&&n.push(this.attach("expand-hidden",e)),!t.expandedFirstPost&&e.expandablePost&&n.push(this.attach("expand-post-button",e));const r={state:{repliesShown:!!t.repliesBelow.length,filteredRepliesShown:t.filteredRepliesShown}};n.push(this.attach("post-menu",e,r));const i=t.repliesBelow;return i.length&&n.push((0,s.h)(`section.embedded-posts.bottom#embedded-posts__bottom--${this.attrs.post_number}`,[i.map((t=>this.attach("embedded-post",t,{model:t.asPost,state:{role:"region","aria-label":S.default.t("post.sr_embedded_reply_description",{post_number:e.post_number,username:t.username})}}))),this.attach("button",{title:"post.collapse",icon:"chevron-up",action:"toggleRepliesBelow",actionParam:"true",className:"btn collapse-up",translatedAriaLabel:S.default.t("post.sr_collapse_replies")})])),n},_date(e){const t=e.wiki&&e.lastWikiEdit&&new Date(e.lastWikiEdit),n=new Date(e.created_at);return t||n},toggleFilteredRepliesView(){const e=this.findAncestorModel(),t=this.register.lookup("controller:topic"),n=e.get("topic.postStream.filterRepliesToPostNumber");return n&&n===e.post_number?(t.send("cancelFilter",n),this.state.filteredRepliesShown=!1,i.Promise.resolve()):(this.state.filteredRepliesShown=!0,e.get("topic.postStream").filterReplies(e.post_number,e.id).then((()=>{t.updateQueryParams()})))},toggleRepliesBelow(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"false";if(this.state.repliesBelow.length)return this.state.repliesBelow=[],void("true"===e&&m.default.routeTo(`${this.attrs.topicUrl}/${this.attrs.post_number}`));const t=this.findAncestorModel(),n=t?t.get("topic.url"):null;return this.store.find("post-reply",{postId:this.attrs.id}).then((e=>{this.state.repliesBelow=e.map((e=>{let t=C(e);return delete t.new_user,delete t.deleted,delete t.shareUrl,delete t.firstPost,delete t.usernameUrl,t.customShare=`${n}/${e.post_number}`,t.asPost=this.store.createRecord("post",t),t}))}))},expandFirstPost(){return this.findAncestorModel().expand().then((()=>this.state.expandedFirstPost=!0))},share(){const e=this.findAncestorModel();(0,d.nativeShare)(this.capabilities,{url:e.shareUrl}).catch((()=>{const t=e.topic;(0,r.getOwner)(this).lookup("service:modal").show(o.default,{model:{category:t.category,topic:t,post:e}})}))},copyLink(){if(this.site.mobileView)return this.share();const e=this.findAncestorModel(),t=e.id;let n=()=>(0,g.clipboardCopy)((0,x.getAbsoluteURL)(e.shareUrl));(0,v.isTesting)()&&(n=()=>{}),(0,u.default)({postId:t,actionClass:"post-action-menu__copy-link",messageKey:"post.controls.link_copied",actionCallback:n,errorCallback:()=>this.share()})},init(){this.postContentsDestroyCallbacks=[]},destroy(){this.postContentsDestroyCallbacks.forEach((e=>e()))}}),(0,w.createWidget)("post-notice",{tagName:"div.post-notice",buildClasses(e){const t=[e.notice.type.replace(/_/g,"-")];return new Date-new Date(e.created_at)>864e5*this.siteSettings.old_post_notice_days&&t.push("old"),t},html(e){if("custom"===e.notice.type)return[(0,T.iconNode)("user-shield"),new y.default({html:`<div>${e.notice.cooked}</div>`})];const t=this.siteSettings.display_name_on_posts&&(0,p.prioritizeNameInUx)(e.name)?e.name:e.username;if("new_user"===e.notice.type)return[(0,T.iconNode)("hands-helping"),(0,s.h)("p",S.default.t("post.notice.new_user",{user:t}))];if("returning_user"===e.notice.type){const n=(new Date-new Date(e.notice.lastPostedAt))/1e3,r=(0,c.relativeAgeMediumSpan)(n,!0);return[(0,T.iconNode)("far-smile"),(0,s.h)("p",S.default.t("post.notice.returning_user",{user:t,time:r}))]}}}),(0,w.createWidget)("post-body",{tagName:"div.topic-body.clearfix",html(e,t){const n=this.attach("post-contents",e);let r=[this.attach("post-meta-data",e)];return r=r.concat((0,w.applyDecorators)(this,"after-meta-data",e,t)),r.push(n),r.push(this.attach("actions-summary",e)),r.push(this.attach("post-links",e)),e.showTopicMap&&r.push(this.attach("topic-map",e)),r}}),(0,w.createWidget)("post-article",{tagName:"article.boxed.onscreen-post",buildKey:e=>`post-article-${e.id}`,defaultState:()=>({repliesAbove:[]}),buildId:e=>`post_${e.post_number}`,buildClasses(e,t){let n=[];return t.repliesAbove.length&&n.push("replies-above"),e.via_email&&n.push("via-email"),e.isAutoGenerated&&n.push("is-auto-generated"),n},buildAttributes:e=>({"aria-label":S.default.t("share.post",{postNumber:e.post_number,username:e.username}),role:"region","data-post-id":e.id,"data-topic-id":e.topicId,"data-user-id":e.user_id}),html(e,t){const n=[];if(t.repliesAbove.length){const r=t.repliesAbove.map((e=>this.attach("embedded-post",e,{model:e.asPost,state:{above:!0}})));n.push((0,s.h)("div.row",(0,s.h)(`section.embedded-posts.top.topic-body#embedded-posts__top--${e.post_number}`,[this.attach("button",{title:"post.collapse",icon:"chevron-down",action:"toggleReplyAbove",actionParam:"true",className:"btn collapse-down"}),r])))}return!e.deleted_at&&e.notice&&n.push((0,s.h)("div.row",[this.attach("post-notice",e)])),n.push((0,s.h)("div.row",[this.attach("post-avatar",e),this.attach("post-body",{...e,repliesAbove:t.repliesAbove})])),n},_getTopicUrl(){const e=this.findAncestorModel();return e?e.get("topic.url"):null},toggleReplyAbove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"false";const t=this.attrs.reply_to_post_number;if(this.siteSettings.enable_filtered_replies_view){const e=this.findAncestorModel(),t=this.register.lookup("controller:topic");return e.get("topic.postStream").filterUpwards(this.attrs.id).then((()=>{t.updateQueryParams()}))}if(this.attrs.mobileView){const e=this._getTopicUrl();return e&&m.default.routeTo(`${e}/${t}`),i.Promise.resolve()}if(this.state.repliesAbove.length)return this.state.repliesAbove=[],"true"===e&&m.default.routeTo(`${this.attrs.topicUrl}/${this.attrs.post_number}`),i.Promise.resolve();{const e=this._getTopicUrl();return this.store.find("post-reply-history",{postId:this.attrs.id}).then((t=>{this.state.repliesAbove=t.map((t=>{let n=C(t);return delete n.new_user,delete n.deleted,delete n.shareUrl,delete n.firstPost,delete n.usernameUrl,delete n.topicNotificationLevel,n.customShare=`${e}/${t.post_number}`,n.asPost=this.store.createRecord("post",n),n}))}))}}});let D=null;function I(e){D=D||[],D.push(e)}const j=(0,w.createWidget)("post",{buildKey:e=>`post-${e.id}`,services:["dialog","user-tips"],shadowTree:!0,buildAttributes:e=>e.height?{style:`min-height: ${e.height}px`}:void 0,buildId:e=>e.cloaked?`post_${e.post_number}`:void 0,buildClasses(e){if(e.cloaked)return"cloaked-post";const t=["topic-post","clearfix"];if((-1===e.id||e.isSaving||e.staged)&&t.push("staged"),e.selected&&t.push("selected"),e.topicOwner&&t.push("topic-owner"),this.currentUser&&e.user_id===this.currentUser.id&&t.push("current-user-post"),e.groupModerator&&t.push("category-moderator"),e.hidden&&t.push("post-hidden"),e.deleted&&t.push("deleted"),e.primary_group_name&&t.push(`group-${e.primary_group_name}`),e.wiki&&t.push("wiki"),e.isWhisper&&t.push("whisper"),e.isModeratorAction||e.isWarning&&e.firstPost?t.push("moderator"):t.push("regular"),e.userSuspended&&t.push("user-suspended"),D)for(let n=0;n<D.length;n++){let r=D[n].call(this,e);r&&t.push.apply(t,r)}return t},html(e){return e.cloaked?"":[this.attach("post-user-tip-shim"),this.attach("post-article",e)]},toggleLike(){const e=this.model,t=e.get("likeAction");if(t&&t.get("canToggle"))return t.togglePromise(e).then((n=>(this.appEvents.trigger("page:like-toggled",e,t),this._warnIfClose(n))))},_warnIfClose(e){if(!e||!e.acted)return;const t=this.keyValueStore,n=t.get("lastWarnedLikes"),r=Date.now()-864e5;if(n&&parseInt(n,10)>r)return;const{remaining:i,max:s}=e;i===Math.ceil(.1*s)&&(this.dialog.alert(S.default.t("post.few_likes_left")),t.set({key:"lastWarnedLikes",value:Date.now()}))}})},83788:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p,disableNameSuppression:()=>d});var r=n(41221),i=n(9387),s=n(62617),o=n(94473),a=n(47582),l=n(3961),c=n(82099);let u=function(e){return e.toLowerCase().replace(/[\s\._-]/g,"")};function d(){u=e=>e}(0,o.createWidget)("poster-name-title",{tagName:"span.user-title",buildClasses(e){let t=[];return t.push(e.title),e.titleIsGroup&&t.push(e.primaryGroupName),t=t.map((e=>`user-title--${e.replace(/\s+/g,"-").toLowerCase()}`)),t},html(e){let t=e.title;if(e.primaryGroupName&&e.titleIsGroup){const n=(0,a.default)(`/g/${e.primaryGroupName}`);t=(0,r.h)("a.user-group",{className:e.extraClasses,attributes:{href:n,"data-group-card":e.primaryGroupName}},e.title)}return t}});const p=(0,o.createWidget)("poster-name",{tagName:"div.names.trigger-user-card",settings:{showNameAndGroup:!0,showGlyph:!0},didRenderWidget(){this.attrs.user&&(this.attrs.user.trackStatus(),this.attrs.user.on("status-changed",this,"scheduleRerender"))},willRerenderWidget(){this.attrs.user&&(this.attrs.user.off("status-changed",this,"scheduleRerender"),this.attrs.user.stopTrackingStatus())},posterGlyph(e){if(e.moderator||e.groupModerator)return(0,l.iconNode)("shield-alt",{title:c.default.t("user.moderator_tooltip")})},userLink(e,t){return(0,r.h)("a",{attributes:{href:e.usernameUrl,"data-user-card":e.username,class:this.siteSettings.hide_user_profiles_from_public&&!this.currentUser?"non-clickable":""}},(0,s.formatUsername)(t))},html(e){const t=e.username,n=e.name,s=this.siteSettings.display_name_on_posts&&(0,i.prioritizeNameInUx)(n),a=s?["first","full-name"]:["first","username"];e.staff&&a.push("staff"),e.admin&&a.push("admin"),e.moderator&&a.push("moderator"),e.groupModerator&&a.push("category-moderator"),e.new_user&&a.push("new-user");const l=e.primary_group_name;l&&l.length&&a.push(`group--${l}`);let c=[this.userLink(e,s?n:t)];if(this.settings.showGlyph){const t=this.posterGlyph(e);t&&c.push(t)}const d=(0,o.applyDecorators)(this,"after-name",e,this.state)||[];c=c.concat(d);const p=[(0,r.h)("span",{className:a.join(" ")},c)];if(!this.settings.showNameAndGroup)return p;n&&this.siteSettings.display_name_on_posts&&u(n)!==u(t)&&p.push((0,r.h)("span.second."+(s?"username":"full-name"),[this.userLink(e,s?t:n)].concat(d)));const h=e.user_title,m=e.title_is_group;return h&&h.length&&p.push(this.attach("poster-name-title",{title:h,primaryGroupName:l,titleIsGroup:m})),this.siteSettings.enable_user_status&&this.addUserStatus(p,e),p},addUserStatus(e,t){t.user&&t.user.status&&e.push(this.attach("post-user-status",t.user.status))}})},56004:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(41221),i=n(51804),s=n(94473),o=n(47582),a=n(61369),l=n(82099);(0,s.createWidget)("pm-remove-group-link",{tagName:"a.remove-invited.no-text.btn-icon.btn",template:function(e,t){var n=__widget_helpers.iconNode,r=[];return r.push(n("times")),r},services:["dialog"],click(){this.dialog.deleteConfirm({message:l.default.t("private_message_info.remove_allowed_group",{name:this.attrs.name}),confirmButtonLabel:"private_message_info.remove_group",didConfirm:()=>this.sendWidgetAction("removeAllowedGroup",this.attrs)})}}),(0,s.createWidget)("pm-map-user-group",{tagName:"div.user.group",transform:e=>({href:(0,o.default)(`/g/${e.group.name}`)}),template:function(e,t){var n=__widget_helpers.iconNode,r=[];r.push("\n    ");var i=[];i.push("\n      "),i.push(n("users")),i.push("\n      ");var s=[];return s.push(e.group.name),i.push(virtualDom.h("span",{className:"group-name",attributes:{}},s)),i.push("\n    "),r.push(virtualDom.h("a",{className:"group-link",attributes:{href:this.transformed.href}},i)),r.push("\n"),e.isEditing&&e.canRemoveAllowedUsers&&(r.push("        "),r.push(this.attach("pm-remove-group-link",e.group)),r.push("\n")),r.push("  "),r}}),(0,s.createWidget)("pm-remove-link",{tagName:"a.remove-invited.no-text.btn-icon.btn",template:function(e,t){var n=__widget_helpers.iconNode,r=[];return r.push(n("times")),r},services:["dialog"],click(){const e=this.attrs.isCurrentUser?"leave_message":"remove_allowed_user";this.dialog.deleteConfirm({message:l.default.t(`private_message_info.${e}`,{name:this.attrs.user.username}),confirmButtonLabel:this.attrs.isCurrentUser?"private_message_info.leave":"private_message_info.remove_user",didConfirm:()=>this.sendWidgetAction("removeAllowedUser",this.attrs.user)})}}),(0,s.createWidget)("pm-map-user",{tagName:"div.user",html(e){const t=e.user,n=(0,r.h)("span.username",t.username);let s;if(this.site&&this.site.mobileView){const e=(0,i.avatarImg)("tiny",{template:t.avatar_template,username:t.username});s=(0,r.h)("a",{attributes:{href:t.get("path")}},[e,n])}else{const e=(0,i.avatarFor)("tiny",{template:t.avatar_template,username:t.username});s=(0,r.h)("a",{attributes:{class:"user-link",href:t.get("path")}},[e,n])}const o=[s],a=e.canRemoveSelfId===t.get("id");return e.isEditing&&(e.canRemoveAllowedUsers||a)&&o.push(this.attach("pm-remove-link",{user:t,isCurrentUser:a})),o}});const c=(0,s.createWidget)("private-message-map",{tagName:"section.information.private-message-map",buildKey:e=>`private-message-map-${e.id}`,defaultState:()=>({isEditing:!1}),html(e){const t=[];e.allowedGroups.length&&t.push(e.allowedGroups.map((t=>this.attach("pm-map-user-group",{group:t,canRemoveAllowedUsers:e.canRemoveAllowedUsers,isEditing:this.state.isEditing})))),e.allowedUsers.length&&t.push(e.allowedUsers.map((t=>this.attach("pm-map-user",{user:t,canRemoveAllowedUsers:e.canRemoveAllowedUsers,canRemoveSelfId:e.canRemoveSelfId,isEditing:this.state.isEditing}))));let n="";!this.state.isEditing&&this.site.mobileView&&(0,a.makeArray)(t[0]).length>4&&(n=".hide-names");const i=[(0,r.h)(`div.participants${n}`,t)],s=[],o=e.canRemoveAllowedUsers||e.canRemoveSelfId;if(e.canInvite||o){let t,n="toggleEditing";e.canInvite&&o?t="edit":!e.canInvite&&o?t="remove":(t="add",n="showInvite"),s.push(this.attach("button",{action:n,label:`private_message_info.${t}`,className:"btn btn-default add-remove-participant-btn"}))}return e.canInvite&&this.state.isEditing&&s.push(this.attach("button",{action:"showInvite",icon:"plus",className:"btn btn-default no-text btn-icon add-participant-btn"})),s.length&&i.push((0,r.h)("div.controls",s)),i},toggleEditing(){this.state.isEditing=!this.state.isEditing}})},802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(71466),i=n.n(r);class s{constructor(e){this.html=e.html}init(){const e=i()(this.html);return this.decorate(e),e[0]}decorate(){}update(e){if(e.html!==this.html)return this.init()}destroy(){}}s.prototype.type="Widget"},83675:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,registerWidgetShim:()=>d});var r=n(54001),i=n(23183),s=n(31691),o=n(91138),a=n.n(o),l=(n(95793),n(94473));const c=Symbol("RENDER_GLIMMER_INITIAL_CLASSES");class u{constructor(e,t,n,r){this.renderInto=t,e&&(this.widget=e),this.template=n,this.data=r}init(){if(this.renderInto instanceof Element)this.element=this.renderInto;else{const[e,...t]=this.renderInto.split(".");this.element=document.createElement(e),this.element.classList.add(...t),this.element[c]=t}return this.connectComponent(),this.element}destroy(){this._componentInfo&&this.parentMountWidgetComponent.unmountChildComponent(this._componentInfo)}update(e){return e.template.__id!==this.template.__id||e.renderInto!==this.renderInto?(e.destroy(),this.init()):(this._componentInfo=e._componentInfo,e.data!==this.data&&(this._componentInfo.data=this.data),null)}connectComponent(){var e,t;const{element:n,template:o}=this,l=a()();l.name="Widgets/RenderGlimmer",(0,s.setComponentTemplate)(o,l),this._componentInfo=(e={element:n,component:l,data:this.data,setWrapperElementAttrs:e=>this.updateElementAttrs(n,e)},(0,r.Z)(e,"data",[i.tracked],(t=(t=Object.getOwnPropertyDescriptor(e,"data"))?t.value:void 0,{enumerable:!0,configurable:!0,writable:!0,initializer:function(){return t}}),e),e),this.parentMountWidgetComponent.mountChildComponent(this._componentInfo)}updateElementAttrs(e,t){for(let[n,r]of Object.entries(t))"class"===n&&(r=[e[c],r].filter(Boolean).join(" ")),[null,void 0].includes(r)?e.removeAttribute(n):e.setAttribute(n,r)}get parentMountWidgetComponent(){return this.widget?._findView()||this._emberView}}function d(e,t,n){(0,l.createWidgetFrom)(class extends u{constructor(e){return super(null,t,n,e),this}get widget(){return this.parentWidget}didRenderWidget(){}willRerenderWidget(){}},e,{})}u.prototype.type="Widget"},65818:(e,t,n)=>{"use strict";n.r(t);var r=n(94473),i=n(82099);(0,r.createWidget)("search-term",{tagName:"input",buildId:()=>"search-term",buildKey:()=>"search-term",buildAttributes:e=>({type:"text",value:e.value||"",autocomplete:"off",placeholder:i.default.t("search.title"),"aria-label":i.default.t("search.title")}),input(e){const t=this.attrs.value,n=e.target.value.replace(/[\u200B-\u200D\uFEFF]/,"");n!==t&&this.sendWidgetAction("searchTermChanged",n)}}),(0,r.createWidget)("search-context",{html:()=>!1})},39894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addQuickSearchRandomTip:()=>T,addSearchSuggestion:()=>x,removeDefaultQuickSearchRandomTips:()=>S,resetQuickSearchRandomTips:()=>C});var r=n(41221),i=n(47090),s=n(16289),o=n(25821),a=n(35193),l=n(62617),c=n(7223),u=n(51804),d=n(802),p=n(83675),h=n(36462),m=n(94473),g=n(47582),f=n(3961),b=n(12757),_=n(82099),y=n(8620);const w=["in:title","in:pinned","status:open","status:closed","status:public","status:noreplies","order:latest","order:views","order:likes","order:latest_topic"],v=[{label:"#",description:_.default.t("search.tips.category_tag"),clickable:!0},{label:"@",description:_.default.t("search.tips.author"),clickable:!0},{label:"in:",description:_.default.t("search.tips.in"),clickable:!0},{label:"status:",description:_.default.t("search.tips.status"),clickable:!0},{label:_.default.t("search.tips.full_search_key",{modifier:"Ctrl"}),description:_.default.t("search.tips.full_search")},{label:"@me",description:_.default.t("search.tips.me")}];let k=[];function x(e){w.includes(e)||w.push(e)}function T(e){k.includes(e)||k.push(e)}function S(){k=k.filter((e=>!v.includes(e)))}function C(){k=[].concat(v)}C();class P extends d.default{constructor(e,t){super({html:`<span>${e}</span>`}),this.term=t}decorate(e){(0,s.default)(e[0],this.term)}}function O(e){let{type:t,linkField:n,builder:i}=e;return(0,m.createWidget)(`search-result-${t}`,{tagName:"ul.list",buildAttributes:()=>({"aria-label":`${t} ${_.default.t("search.results")}`}),html(e){return e.results.map((s=>{let o;return o="topic"===t?s.topic_id:s.id,(0,r.h)("li.item",this.attach("link",{href:s[n],contents:()=>i.call(this,s,e.term),className:"search-link",searchResultId:o,searchResultType:t,searchLogId:e.searchLogId}))}))}})}function E(e,t,n){const s=[t];return this.site.mobileView||s.push((0,r.h)("span.blurb",[(0,i.dateNode)(e.created_at),(0,r.h)("span"," - "),this.siteSettings.use_pg_headlines_for_excerpt?new d.default({html:`<span>${e.blurb}</span>`}):new P(e.blurb,n)])),s}O({type:"tag",linkField:"url",builder(e){const t=(0,l.escapeExpression)(e.id);return[(0,f.iconNode)("tag"),new d.default({html:(0,o.default)(t,{tagName:"span"})})]}}),O({type:"category",linkField:"url",builder(e){return this.attach("category-link",{category:e,link:!1})}}),O({type:"group",linkField:"url",builder(e){const t=(0,l.escapeExpression)(e.fullName),n=(0,l.escapeExpression)(e.name),i=[(0,r.h)("span.name",t||n)];let s;t&&i.push((0,r.h)("span.slug",n)),s=e.flairUrl?this.attach("avatar-flair",{flair_name:n,flair_url:e.flairUrl,flair_bg_color:e.flairBgColor,flair_color:e.flairColor}):(0,f.iconNode)("users");const o=[s,(0,r.h)("div.group-names",i)];return(0,r.h)("div.group-result",o)}}),O({type:"user",linkField:"path",builder(e){const t=[];e.name&&t.push((0,r.h)("span.name",e.name)),t.push((0,r.h)("span.username",(0,l.formatUsername)(e.username))),e.custom_data&&e.custom_data.forEach((e=>t.push((0,r.h)("span.custom-field",`${e.name}: ${e.value}`))));const n=[(0,u.avatarImg)("small",{template:e.avatar_template,username:e.username}),(0,r.h)("div.user-titles",t)];return(0,r.h)("div.user-result",n)}}),O({type:"topic",linkField:"url",builder(e,t){const n=e.topic,i=[this.attach("topic-status",{topic:n,disableActions:!0}),(0,r.h)("span.topic-title",{attributes:{"data-topic-id":n.id}},this.siteSettings.use_pg_headlines_for_excerpt&&e.topic_title_headline?new d.default({html:`<span>${(0,a.emojiUnescape)(e.topic_title_headline)}</span>`}):new P(n.fancyTitle,t))],s=[this.attach("category-link",{category:n.category,link:!1})];this.siteSettings.tagging_enabled&&s.push(this.attach("discourse-tags",{topic:n,tagName:"span"}));const o=(0,r.h)("span.topic",[(0,r.h)("span.first-line",i),(0,r.h)("span.second-line",s)]);return E.call(this,e,o,t)}}),O({type:"post",linkField:"url",builder(e,t){return E.call(this,e,_.default.t("search.post_format",e),t)}}),(0,m.createWidget)("search-menu-results",{tagName:"div.results",html(e){const{term:t,suggestionKeyword:n,inTopicContext:i,results:s,searchTopics:o,onLinkClicked:a}=e;if(n)return this.attach("search-menu-assistant",{term:t,suggestionKeyword:n,results:e.suggestionResults||[]});if(o&&e.invalidTerm)return(0,r.h)("div.no-results",_.default.t("search.too_short"));if(o&&e.noResults)return(0,r.h)("div.no-results",_.default.t("search.no_results"));if(!t&&!e.inPMInboxContext)return this.attach("search-menu-initial-options",{term:t});const l=s.resultTypes||[],c=[],u=[],d=[],h=e=>{const t={className:"filter search-link",contents:()=>[_.default.t("more"),"..."]};return e.moreUrl?this.attach("link",(0,b.deepMerge)(t,{href:e.moreUrl})):e.more?this.attach("link",(0,b.deepMerge)(t,{action:"moreOfType",actionParam:e.type})):void 0};l.forEach((n=>{const i=[this.attach(n.componentName,{searchLogId:e.results.grouped_search_result.search_log_id,results:n.results,term:t})];if(["topic"].includes(n.type)){const e=h(n);e&&i.push((0,r.h)("div.search-menu__show-more",e))}var s,a;s=n,a=(0,r.h)(`div.${n.componentName}`,i),o?["topic"].includes(s.type)&&c.push(a):(["user","group"].includes(s.type)&&u.push(a),["category","tag"].includes(s.type)&&d.push(a))}));const m=[];if(o){if(!c.length)return(0,r.h)("div.no-results",_.default.t("search.no_results"));m.push(c)}else e.inPMInboxContext||m.push(this.attach("search-menu-initial-options",{term:t}));return m.push(new p.default(this,"div",(0,y.createTemplateFactory)({id:"sgdDsQmX",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["search-menu-results-top",[30,1,["outletArgs"]]]],null]],["@data"],false,["plugin-outlet"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/search-menu-results.js",isStrictMode:!1}),{outletArgs:{searchTerm:t,inTopicContext:i,onLinkClicked:a,searchTopics:o}})),m.push(d),m.push(u),m.push(new p.default(this,"div",(0,y.createTemplateFactory)({id:"d62AIobv",block:'[[[8,[39,0],null,[["@name","@outletArgs"],["search-menu-results-bottom",[30,1,["outletArgs"]]]],null]],["@data"],false,["plugin-outlet"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/search-menu-results.js",isStrictMode:!1}),{outletArgs:{searchTerm:t,inTopicContext:i,onLinkClicked:a,searchTopics:o}})),m}}),(0,m.createWidget)("search-menu-assistant",{tagName:"ul.search-menu-assistant",buildKey:()=>"search-menu-assistant",services:["router"],html(e){this.currentUser&&(x("in:likes"),x("in:bookmarks"),x("in:mine"),x("in:messages"),x("in:seen"),x("in:tracking"),x("in:unseen"),x("in:watching")),this.siteSettings.tagging_enabled&&(x("in:tagged"),x("in:untagged"));const t=[],{suggestionKeyword:n,term:i}=e;let s;switch("+"!==n&&(s=i?.split(n)[0].trim()||"",s.length&&(s=`${s} `)),n){case"+":e.results.forEach((n=>{s=n.additionalTags?i?.split(" ").slice(0,-1).join(" ").trim()||"":i?.split("#")[0].trim()||"",s.length&&(s=`${s} `),t.push(this.attach("search-menu-assistant-item",{prefix:s,tag:n.tagName,additionalTags:n.additionalTags,category:n.category,slug:i,withInLabel:e.withInLabel,isIntersection:!0}))}));break;case"#":e.results.forEach((n=>{if(n.model){const r=n.model.parentCategory?`#${n.model.parentCategory.slug}:${n.model.slug}`:`#${n.model.slug}`;t.push(this.attach("search-menu-assistant-item",{prefix:s,category:n.model,slug:`${s}${r}`,withInLabel:e.withInLabel}))}else t.push(this.attach("search-menu-assistant-item",{prefix:s,tag:n.name,slug:`${s}#${n.name}`,withInLabel:e.withInLabel}))}));break;case"@":if(1===e.results.length&&this.router.currentRouteName.startsWith("topic.")){const n=e.results[0];t.push(this.attach("search-menu-assistant-item",{extraHint:_.default.t("search.enter_hint"),prefix:s,user:n,slug:`${s}@${n.username}`,suffix:(0,r.h)("span.label-suffix",` ${_.default.t("search.in_topics_posts")}`)})),t.push(this.attach("search-menu-assistant-item",{prefix:s,user:n,setTopicContext:!0,slug:`${s}@${n.username}`,suffix:(0,r.h)("span.label-suffix",` ${_.default.t("search.in_this_topic")}`)}))}else e.results.forEach((e=>{t.push(this.attach("search-menu-assistant-item",{prefix:s,user:e,slug:`${s}@${e.username}`}))}));break;default:w.forEach((e=>{!e.includes(n)&&n||t.push(this.attach("search-menu-assistant-item",{slug:`${s}${e}`}))}))}return t.filter(((e,t)=>t<=8))}}),(0,m.createWidget)("search-menu-initial-options",{tagName:"ul.search-menu-initial-options",services:["search"],html(e){if(e.term?.match(h.MODIFIER_REGEXP))return this.defaultRow(e.term);const t=this.search.searchContext,n=[];if(e.term||t){if(e.term&&n.push(this.defaultRow(e.term,{withLabel:!0})),t){const i=e.term||"";switch(t.type){case"topic":n.push(this.attach("search-menu-assistant-item",{slug:i,setTopicContext:!0,label:[(0,r.h)("span",`${i} `),(0,r.h)("span.label-suffix",_.default.t("search.in_this_topic"))]}));break;case"private_messages":n.push(this.attach("search-menu-assistant-item",{slug:`${i} in:messages`}));break;case"category":const e=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`;n.push(this.attach("search-menu-assistant",{term:`${i} ${e}`,suggestionKeyword:"#",results:[{model:t.category}],withInLabel:!0}));break;case"tag":n.push(this.attach("search-menu-assistant",{term:`${i} #${t.name}`,suggestionKeyword:"#",results:[{name:t.name}],withInLabel:!0}));break;case"tagIntersection":let s;s=t.additionalTags?`${i} tags:${[t.tagId,...t.additionalTags].join("+")}`:`${i} #${t.tagId}`;let o={tagName:t.tagId,additionalTags:t.additionalTags};if(t.category){const e=t.category.parentCategory?`#${t.category.parentCategory.slug}:${t.category.slug}`:`#${t.category.slug}`;o.categoryName=e,o.category=t.category,s+=` ${e}`}n.push(this.attach("search-menu-assistant",{term:s,suggestionKeyword:"+",results:[o],withInLabel:!0}));break;case"user":n.push(this.attach("search-menu-assistant-item",{slug:`${i} @${t.user.username}`,label:[(0,r.h)("span",`${i} `),(0,r.h)("span.label-suffix",_.default.t("search.in_posts_by",{username:t.user.username}))]}))}}return n}return 0===n.length&&(n.push(this.attach("random-quick-tip")),this.currentUser&&this.siteSettings.log_search_queries&&(this.currentUser.recent_searches?.length?n.push(this.attach("search-menu-recent-searches")):this.loadRecentSearches())),n},defaultRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withLabel:!1};return this.attach("search-menu-assistant-item",{slug:e,extraHint:_.default.t("search.enter_hint"),label:[(0,r.h)("span.keyword",`${e}`),t.withLabel?(0,r.h)("span.label-suffix",_.default.t("search.in_topics_posts")):null]})},refreshSearchMenuResults(){this.scheduleRerender()},loadRecentSearches(){c.default.loadRecentSearches().then((e=>{e.success&&e.recent_searches?.length&&(this.currentUser.set("recent_searches",Object.assign(e.recent_searches)),this.scheduleRerender())}))}}),(0,m.createWidget)("search-menu-assistant-item",{tagName:"li.search-menu-assistant-item",html(e){const t=e.prefix?.trim(),n={href:"#"};let i=[(0,r.h)("span",{attributes:{"aria-label":_.default.t("search.title")}},(0,f.iconNode)(e.icon||"search"))];if(t&&i.push((0,r.h)("span.search-item-prefix",`${t} `)),e.withInLabel&&i.push((0,r.h)("span.label-suffix",`${_.default.t("search.in")} `)),e.category)n.href=e.category.url,i.push(this.attach("category-link",{category:e.category,allowUncategorized:!0,recursive:!0,link:!1})),e.tag&&e.isIntersection&&(n.href=(0,g.default)(`/tag/${e.tag}`),i.push((0,r.h)("span.search-item-tag",[(0,f.iconNode)("tag"),e.tag])));else if(e.tag)if(e.isIntersection&&e.additionalTags?.length){const t=[e.tag,...e.additionalTags];i.push((0,r.h)("span.search-item-tag",`tags:${t.join("+")}`))}else n.href=(0,g.default)(`/tag/${e.tag}`),i.push((0,r.h)("span.search-item-tag",[(0,f.iconNode)("tag"),e.tag]));else if(e.user){const t=[(0,u.avatarImg)("small",{template:e.user.avatar_template,username:e.user.username}),(0,r.h)("span.username",(0,l.formatUsername)(e.user.username)),e.suffix];i.push((0,r.h)("span.search-item-user",t))}else i.push((0,r.h)("span.search-item-slug",e.label||e.slug));return e.extraHint&&i.push((0,r.h)("span.extra-hint",e.extraHint)),(0,r.h)("a.widget-link.search-link",{attributes:n},i)},click(e){const t=document.querySelector("#search-term");return t.value=this.attrs.slug,t.focus(),this.sendWidgetAction("triggerAutocomplete",{value:this.attrs.slug,searchTopics:!0,setTopicContext:this.attrs.setTopicContext,origin:this.attrs.origin}),e.preventDefault(),!1}}),(0,m.createWidget)("random-quick-tip",{tagName:"li.search-random-quick-tip",buildKey:()=>"random-quick-tip",defaultState:()=>k.length?k[Math.floor(Math.random()*k.length)]:{},html(e,t){if(Object.keys(t).length)return[(0,r.h)("span.tip-label"+(t.clickable?".tip-clickable":""),t.label),(0,r.h)("span.tip-description",t.description)]},click(e){if(e.target.classList.contains("tip-clickable")){const e=document.querySelector("#search-term");e.value=this.state.label,e.focus(),this.sendWidgetAction("triggerAutocomplete",{value:this.state.label,searchTopics:this.state.searchTopics})}}}),(0,m.createWidget)("search-menu-recent-searches",{tagName:"div.search-menu-recent",template:function(e,t){var n=[];n.push("\n    ");var r=[];r.push("\n      ");var i=[];return i.push(_.default.t("search.recent")),r.push(virtualDom.h("h4",i)),r.push("\n      "),r.push(this.attach("flat-button",{className:"clear-recent-searches",title:"search.clear_recent",icon:"times",action:"clearRecent"})),r.push("\n    "),n.push(virtualDom.h("div",{className:"heading",attributes:{}},r)),n.push("\n\n"),this.currentUser.recent_searches&&this.currentUser.recent_searches.length&&this.currentUser.recent_searches.forEach((e=>{n.push("      "),n.push(this.attach("search-menu-assistant-item",{slug:e,icon:"history",origin:"recent-search"},void 0,void 0)),n.push("\n")})),n.push("  "),n},clearRecent(){return c.default.resetRecentSearches().then((e=>{e.success&&(this.currentUser.recent_searches.clear(),this.sendWidgetAction("refreshSearchMenuResults"))}))}})},36462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_TYPE_FILTER:()=>k,MODIFIER_REGEXP:()=>v,addOnKeyDownCallback:()=>S,default:()=>E,initSearchData:()=>P,resetOnKeyDownCallbacks:()=>C});var r=n(51372),i=n(10425),s=n(41221),o=n(38864),a=n(13680),l=n(71631),c=n(64519),u=n(20229),d=n(47301),p=n(62617),h=n(94473),m=n(56111),g=n(47582),f=n(3961),b=n(82099);const _=/(\#[a-zA-Z0-9\-:]*)$/gi,y=/(\@[a-zA-Z0-9\-\_]*)$/gi,w=/(in:|status:|order:|:)([a-zA-Z]*)$/gi,v=/.*(\#|\@|:).*$/gi,k="exclude_topics",x={},T=[];function S(e){T.push(e)}function C(){T.clear()}function P(){x.loading=!1,x.results={},x.noResults=!1,x.term=void 0,x.typeFilter=k,x.invalidTerm=!1,x.suggestionResults=[],x.suggestionKeyword=!1}P();const O={_activeSearch:null,cancel(){this._activeSearch&&(this._activeSearch.abort(),this._activeSearch=null)},perform(e){this.cancel();const{term:t,typeFilter:n}=x,r=e.searchContext(),s=e.fullSearchUrl(),u=this.matchesSuggestions();if(u)if(x.noResults=!0,x.results={},x.loading=!1,x.suggestionResults=[],"category"===u.type){const t=u.categoriesMatch[0].replace("#",""),n=(0,l.search)(t,e.siteSettings);i.Promise.resolve(n).then((t=>{t!==a.CANCELLED_STATUS&&(x.suggestionResults=t,x.suggestionKeyword="#"),e.scheduleRerender()}))}else if("username"===u.type){const t=u.usernamesMatch[0].replace("@",""),n={includeGroups:!0,limit:6};t.length>0?n.term=t:n.lastSeenUsers=!0,(0,d.default)(n).then((t=>{t?.users?.length>0?(x.suggestionResults=t.users,x.suggestionKeyword="@"):(x.noResults=!0,x.suggestionKeyword=!1),e.scheduleRerender()}))}else x.suggestionKeyword=u[0],e.scheduleRerender();else x.suggestionKeyword=!1,t?(0,c.isValidSearchTerm)(t,e.siteSettings)?(x.invalidTerm=!1,this._activeSearch=(0,c.searchForTerm)(t,{typeFilter:n,fullSearchUrl:s,searchContext:r}),this._activeSearch.then((n=>{n&&t===x.term&&(r&&e.appEvents.trigger("post-stream:refresh",{force:!0}),x.noResults=0===n.resultTypes.length,x.results=n)})).catch(o.popupAjaxError).finally((()=>{x.loading=!1,e.scheduleRerender()}))):(x.noResults=!0,x.results={},x.loading=!1,x.invalidTerm=!0,e.scheduleRerender()):(x.noResults=!1,x.results={},x.loading=!1,x.invalidTerm=!1,e.scheduleRerender())},matchesSuggestions(){if(void 0===x.term||this.includesTopics())return!1;const e=x.term.trim(),t=e.match(_);if(t)return{type:"category",categoriesMatch:t};const n=e.match(y);if(n)return{type:"username",usernamesMatch:n};return e.match(w)||!1},includesTopics:()=>x.typeFilter!==k},E=(0,h.createWidget)("search-menu",{tagName:"div.search-menu",services:["search"],searchData:x,buildAttributes:()=>({"aria-live":"polite"}),buildKey:()=>"search-menu",defaultState(e){return{inTopicContext:e.inTopicContext,inPMInboxContext:"private_messages"===this.search?.searchContext?.type,_lastEnterTimestamp:null,_debouncer:null}},fullSearchUrl(e){let t="/search";const n=[];if(x.term){let e="";e+=`q=${encodeURIComponent(x.term)}`;const t=this.searchContext();"topic"===t?.type?e+=encodeURIComponent(` topic:${t.id}`):"private_messages"===t?.type&&(e+=encodeURIComponent(" in:messages")),e&&n.push(e)}return e&&e.expanded&&n.push("expanded=true"),n.length>0&&(t=`${t}?${n.join("&")}`),(0,g.default)(t)},panelContents(){let e=[];if(this.state.inTopicContext?e.push(this.attach("button",{icon:"times",label:"search.in_this_topic",title:"search.in_this_topic_tooltip",className:"btn btn-small search-context",action:"clearTopicContext",iconRight:!0})):this.state.inPMInboxContext&&e.push(this.attach("button",{icon:"times",label:"search.in_messages",title:"search.in_messages_tooltip",className:"btn btn-small search-context",action:"clearPMInboxContext",iconRight:!0})),e.push(this.attach("search-term",{value:x.term})),x.loading)e.push((0,s.h)("div.searching",(0,s.h)("div.spinner")));else{const t=this.attach("link",{title:"search.clear_search",action:"clearSearch",className:"clear-search",contents:()=>(0,f.iconNode)("times")}),n=this.attach("link",{href:this.fullSearchUrl({expanded:!0}),contents:()=>(0,f.iconNode)("sliders-h"),className:"show-advanced-search",title:"search.open_advanced"});x.term?e.push((0,s.h)("div.searching",[t,n])):e.push((0,s.h)("div.searching",n))}const t=[(0,s.h)("div.search-input",e)];return!this.state.inTopicContext||O.includesTopics()&&x.term?(x.loading||t.push(this.attach("search-menu-results",{term:x.term,noResults:x.noResults,results:x.results,invalidTerm:x.invalidTerm,suggestionKeyword:x.suggestionKeyword,suggestionResults:x.suggestionResults,searchTopics:O.includesTopics(),inPMInboxContext:this.state.inPMInboxContext,inTopicContext:this.state.inTopicContext,onLinkClicked:this.onLinkClicked.bind(this)})),t):(this.site.isMobileDevice||t.push(this.attach("browser-search-tip")),t)},clearSearch(){x.term="";const e=document.getElementById("search-term");e.value="",e.focus(),this.triggerSearch()},html(e,t){return!1===e.inTopicContext&&(t.inTopicContext=!1),this.attach("menu-panel",{maxWidth:500,contents:()=>this.panelContents()})},onLinkClicked(){return this.sendWidgetAction("linkClickedEvent")},mouseDown(e){e.target===document.querySelector("input#search-term")&&(this.state.inputSelectionEvent=!0)},clickOutside(){"search-menu"!==this.key||this.state.inputSelectionEvent||this.sendWidgetAction("toggleSearchMenu"),this.state.inputSelectionEvent=!1},clearTopicContext(){this.sendWidgetAction("clearContext")},clearPMInboxContext(){this.state.inPMInboxContext=!1,this.sendWidgetAction("focusSearchInput")},keyDown(e){T.length&&!T.some((t=>t(this,e)))||this.handleKeyDown(e)},handleKeyDown(e){if("Escape"===e.key)return this.sendWidgetAction("toggleSearchMenu"),document.querySelector("#search-button").focus(),e.preventDefault(),!1;if(x.loading)return;if(65===e.which&&document.activeElement?.classList.contains("search-link")&&document.querySelector("#reply-control.open"))return this.appEvents.trigger("composer:insert-text",document.activeElement.href,{ensureSpace:!0}),this.appEvents.trigger("header:keyboard-trigger",{type:"search"}),e.preventDefault(),document.querySelector("#reply-control.open textarea").focus(),!1;const t="ArrowUp"===e.key,n="ArrowDown"===e.key;if(t||n){let r=document.activeElement.closest(".search-menu")?document.activeElement:null;if(!r)return;let i,s,o=document.querySelectorAll(".search-menu .results a"),a=document.querySelectorAll(".search-menu .results .search-link");if(!a.length)return;o.forEach((e=>{e.classList.contains("search-link")&&(i=e),e===r&&(s=i)}));let l=-1;return s&&(l=Array.prototype.indexOf.call(a,s)),-1===l&&n?document.querySelector(".search-menu .results .search-link").focus():0===l&&t?document.querySelector(".search-menu input#search-term").focus():l>-1&&(l+=n?1:-1,l>=0&&l<a.length&&a[l].focus()),e.preventDefault(),!1}const r=document.querySelector("#search-term");if("Enter"===e.key&&e.target===r){const t=this.state._lastEnterTimestamp&&Date.now()-this.state._lastEnterTimestamp<15e3;e.ctrlKey||e.metaKey||(0,p.isiPad)()&&e.altKey||x.typeFilter!==k&&t?this.fullSearch():(x.typeFilter=null,this.triggerSearch()),this.state._lastEnterTimestamp=Date.now()}e.target===r&&"Backspace"===e.key&&(r.value||(this.clearTopicContext(),this.clearPMInboxContext()))},triggerSearch(){x.noResults=!1,O.includesTopics()?(this.state.inTopicContext&&this.search.set("highlightTerm",x.term),x.loading=!0,(0,r.cancel)(this.state._debouncer),O.perform(this),this.currentUser&&(0,c.updateRecentSearches)(this.currentUser,x.term)):(x.loading=!1,this.state.inTopicContext||(this.state._debouncer=(0,m.default)(O,O.perform,this,400)))},moreOfType(e){x.typeFilter=e,this.triggerSearch()},searchTermChanged(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x.typeFilter=t.searchTopics?null:k,x.term=e,this.triggerSearch()},triggerAutocomplete(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTopicContext&&(this.sendWidgetAction("setTopicContext"),this.state.inTopicContext=!0),this.searchTermChanged(e.value,{searchTopics:e.searchTopics})},fullSearch(){x.loading=!1,O.cancel();const e=this.fullSearchUrl();e&&(this.sendWidgetEvent("linkClicked"),u.default.routeTo(e))},searchContext(){return!(!this.state.inTopicContext&&!this.state.inPMInboxContext)&&this.search.searchContext}});(0,h.createWidget)("browser-search-tip",{buildKey:()=>"browser-search-tip",tagName:"div.browser-search-tip",html:()=>[(0,s.h)("span.tip-label",b.default.t("search.browser_tip",{modifier:(0,p.translateModKey)("Meta")})),(0,s.h)("span.tip-description",b.default.t("search.browser_tip_description"))]})},58863:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=(0,n(94473).createWidget)("sidebar-toggle",{tagName:"span.header-sidebar-toggle",html(){const e=this.attrs;return[this.attach("button",{title:"sidebar.title",icon:"bars",action:this.site.narrowDesktopView?"toggleHamburger":"toggleSidebar",className:"btn btn-flat btn-sidebar-toggle "+(this.site.narrowDesktopView?"narrow-desktop":""),ariaExpanded:e.showSidebar?"true":"false",ariaControls:"d-sidebar"})]}})},28430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(41221),i=n(94473),s=n(82099);function o(e){const t=e.daysSince;if(t<30)return s.default.t("dates.later.x_days",{count:t});if(t<365){const e=Math.round(t/30);return s.default.t("dates.later.x_months",{count:e})}{const e=Math.round(t/365);return s.default.t("dates.later.x_years",{count:e})}}const a=(0,i.createWidget)("time-gap",{tagName:"div.time-gap.small-action",html:e=>[(0,r.h)("div.topic-avatar",""),(0,r.h)("div.small-action-desc.timegap",o(e))]})},14568:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(71466),i=n.n(r),s=n(41221),o=n(31310),a=n(94473);(0,a.createWidget)("admin-menu-button",{tagName:"li",buildClasses:e=>e.className,html(e){let t;return e.buttonClass&&(t=e.buttonClass),this.attach("button",{className:t,action:e.action,url:e.url,icon:e.icon,label:e.fullLabel||`topic.${e.label}`,secondaryAction:"hideAdminMenu"})}}),(0,a.createWidget)("topic-admin-menu-button",{tagName:"span.topic-admin-menu-button",buildKey:()=>"topic-admin-menu-button",defaultState:()=>({expanded:!1,position:null}),html(e,t){const n=[],r=this.attach("topic-admin-menu",{position:t.position,topic:e.topic,openUpwards:e.openUpwards,rightSide:!this.site.mobileView&&e.rightSide,actionButtons:[]});return!r.attrs.actionButtons.length||e.rightSide&&t.expanded&&!this.site.mobileView||n.push(this.attach("button",{className:"btn-default popup-menu-button toggle-admin-menu"+(e.addKeyboardTargetClass?" keyboard-target-admin-menu":""),title:"topic_admin_menu",icon:"wrench",action:"showAdminMenu",sendActionEvent:!0})),t.expanded&&n.push(r),n},hideAdminMenu(){this.state.expanded=!1,this.state.position=null},showAdminMenu(e){let t;this.state.expanded=!0,t=void 0===e?document.querySelector(".keyboard-target-admin-menu"):e.target.closest("button");const n={top:t.offsetTop,left:t.offsetLeft},r=212,i=document.documentElement.classList.contains("html.rtl"),s=t.getBoundingClientRect();n.outerHeight=s.height,this.attrs.openUpwards?i?n.left-=s.width+3:n.left+=s.width+3:(i?s.left<r?n.left+=0:n.left-=r-s.width:window.innerWidth-s.right<r&&(n.left-=r-s.width),n.top+=s.height+3),this.state.position=n},didRenderWidget(){let e=document.querySelectorAll(".topic-admin-popup-menu button");e&&e[0]&&e[0].focus()},topicToggleActions(){this.state.expanded?this.hideAdminMenu():this.showAdminMenu()}});const l=(0,a.createWidget)("topic-admin-menu",{tagName:"div.popup-menu.topic-admin-popup-menu",buildClasses(e){if(e.rightSide)return"right-side"},init(e){const t=e.topic,n=t.get("details"),r=t.get("isPrivateMessage"),i=t.get("pinned_at")||t.get("isBanner"),s=t.get("visible");(this.get("currentUser.canManageTopic")||n.can_split_merge_topic)&&this.addActionButton({className:"topic-admin-multi-select",buttonClass:"popup-menu-btn",action:"toggleMultiSelect",icon:"tasks",label:"actions.multi_select",button_group:"topic"}),(this.get("currentUser.canManageTopic")||n.get("can_moderate_category"))&&(n.get("can_delete")&&this.addActionButton({className:"topic-admin-delete",buttonClass:"popup-menu-btn-danger",action:"deleteTopic",icon:"far-trash-alt",label:"actions.delete",button_group:"topic"}),t.get("deleted")&&n.get("can_recover")&&this.addActionButton({className:"topic-admin-recover",buttonClass:"popup-menu-btn",action:"recoverTopic",icon:"undo",label:"actions.recover",button_group:"topic"})),this.currentUser&&n.get("can_close_topic")&&(t.get("closed")?this.addActionButton({className:"topic-admin-open",buttonClass:"popup-menu-btn",action:"toggleClosed",icon:"unlock",label:"actions.open",button_group:"topic"}):this.addActionButton({className:"topic-admin-close",buttonClass:"popup-menu-btn",action:"toggleClosed",icon:"lock",label:"actions.close",button_group:"topic"})),this.get("currentUser.canManageTopic")&&this.addActionButton({className:"admin-topic-timer-update",buttonClass:"popup-menu-btn",action:"showTopicTimerModal",icon:"far-clock",label:"actions.timed_update",button_group:"time"}),n.get("can_pin_unpin_topic")&&!r&&(t.get("visible")||i)&&this.addActionButton({className:"topic-admin-pin",buttonClass:"popup-menu-btn",action:"showFeatureTopic",icon:"thumbtack",label:i?"actions.unpin":"actions.pin",button_group:"topic"}),this.get("currentUser.canManageTopic")&&(this.currentUser.get("staff")&&this.addActionButton({className:"topic-admin-change-timestamp",buttonClass:"popup-menu-btn",action:"showChangeTimestamp",icon:"calendar-alt",label:"change_timestamp.title",button_group:"time"}),this.addActionButton({className:"topic-admin-reset-bump-date",buttonClass:"popup-menu-btn",action:"resetBumpDate",icon:"anchor",label:"actions.reset_bump_date",button_group:"time"})),this.currentUser&&n.get("can_archive_topic")&&(r||this.addActionButton({className:"topic-admin-archive",buttonClass:"popup-menu-btn",action:"toggleArchived",icon:"folder",label:t.get("archived")?"actions.unarchive":"actions.archive",button_group:"topic"})),n.get("can_toggle_topic_visibility")&&this.addActionButton({className:"topic-admin-visible",buttonClass:"popup-menu-btn",action:"toggleVisibility",icon:s?"far-eye-slash":"far-eye",label:s?"actions.invisible":"actions.visible",button_group:"topic"}),this.get("currentUser.canManageTopic")&&(n.get("can_convert_topic")&&this.addActionButton({className:"topic-admin-convert",buttonClass:"popup-menu-btn",action:r?"convertToPublicTopic":"convertToPrivateMessage",icon:r?"comment":"envelope",label:r?"actions.make_public":"actions.make_private",button_group:"topic"}),this.addActionButton({className:"topic-admin-slow-mode",buttonClass:"popup-menu-btn",action:"showTopicSlowModeUpdate",icon:"hourglass-start",label:"actions.slow_mode",button_group:"time"}),this.currentUser.get("staff")&&this.addActionButton({icon:"list",buttonClass:"popup-menu-btn",fullLabel:"review.moderation_history",url:`/review?topic_id=${t.id}&status=all`}))},buildAttributes(e){let{top:t,left:n,outerHeight:r}=e.position;const s=this.site.mobileView?"fixed":"absolute",a=42*e.actionButtons.length;if(!e.rightSide){if(e.openUpwards){const e=i()(document).height(),l=i()(".ember-application").height();let c=e-t-70-i()(".ember-application").offset().top;return e>l&&(c=c-(e-l)-r),t<a&&(c=c-(a-r-t)-(0,o.headerOffset)()),this.site.mobileView&&(c=50,n=0),{style:`position: ${s}; bottom: ${c}px; left: ${n}px;`}}return{style:`position: ${s}; top: ${t}px; left: ${n}px;`}}},addActionButton(e){this.attrs.actionButtons.push(e)},html(e){const t=(0,a.applyDecorators)(this,"adminMenuButtons",this.attrs,this.state),n=e.actionButtons.concat(t).filter(Boolean).reduce(((e,t)=>e.set(t.button_group,[...e.get(t.button_group)||[],t])),new Map);let r=[];for(const[e,t]of n.entries()){let n=[];t.forEach((e=>{n.push(this.attach("admin-menu-button",e))})),r.push((0,s.h)(`ul.topic-admin-menu-${e}`,n))}return(0,s.h)("ul",r)},clickOutside(){this.sendWidgetAction("hideAdminMenu")}})},88035:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(24434),i=n(41221),s=n(47090),o=n(67943),a=n(51804),l=n(83675),c=n(94473),u=n(82099),d=n(8620);function p(e,t,n,r){return new l.default(this,e,(0,d.createTemplateFactory)({id:"Ugfr7ZPl",block:'[[[8,[39,0],null,[["@title","@participants","@userFilters"],[[30,1,["title"]],[30,1,["participants"]],[30,1,["userFilters"]]]],null]],["@data"],false,["topic-map/topic-participants"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/topic-map.js",isStrictMode:!1}),{title:t,userFilters:n,participants:r})}(0,c.createWidget)("topic-map-show-links",{tagName:"div.link-summary",html(){return(0,i.h)("span",this.attach("button",{title:"topic_map.links_shown",icon:"chevron-down",action:"showLinks",className:"btn"}))},showLinks(){this.sendWidgetAction("showAllLinks")}}),(0,c.createWidget)("topic-map-summary",{tagName:"section.map",buildClasses(e,t){if(t.collapsed)return"map-collapsed"},html(e,t){const n=[];if(n.push((0,i.h)("li.created-at",[(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("created_lowercase")),(0,i.h)("div.topic-map-post.created-at",[(0,a.avatarFor)("tiny",{username:e.createdByUsername,template:e.createdByAvatarTemplate,name:e.createdByName}),(0,s.dateNode)(e.topicCreatedAt)])])),n.push((0,i.h)("li.last-reply",(0,i.h)("a",{attributes:{href:e.lastPostUrl}},[(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("last_reply_lowercase")),(0,i.h)("div.topic-map-post.last-reply",[(0,a.avatarFor)("tiny",{username:e.lastPostUsername,template:e.lastPostAvatarTemplate,name:e.lastPostName}),(0,s.dateNode)(e.lastPostAt)])]))),n.push((0,i.h)("li.replies",[(0,s.numberNode)(e.topicReplyCount),(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("replies_lowercase",{count:e.topicReplyCount}).toString())])),n.push((0,i.h)("li.secondary.views",[(0,s.numberNode)(e.topicViews,{className:e.topicViewsHeat}),(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("views_lowercase",{count:e.topicViews}).toString())])),e.participantCount>0&&n.push((0,i.h)("li.secondary.users",[(0,s.numberNode)(e.participantCount),(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("users_lowercase",{count:e.participantCount}).toString())])),e.topicLikeCount&&n.push((0,i.h)("li.secondary.likes",[(0,s.numberNode)(e.topicLikeCount),(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("likes_lowercase",{count:e.topicLikeCount}).toString())])),e.topicLinkLength>0&&n.push((0,i.h)("li.secondary.links",[(0,s.numberNode)(e.topicLinkLength),(0,i.h)("h4",{attributes:{role:"presentation"}},u.default.t("links_lowercase",{count:e.topicLinkLength}).toString())])),t.collapsed&&e.topicPostsCount>2&&e.participants&&e.participants.length>0){const t=p.call(this,"li.avatars","",e.userFilters,e.participants.slice(0,3));n.push(t)}return[(0,i.h)("nav.buttons",this.attach("button",{title:t.collapsed?"topic.expand_details":"topic.collapse_details",icon:t.collapsed?"chevron-down":"chevron-up",ariaExpanded:t.collapsed?"false":"true",ariaControls:"topic-map-expanded",action:"toggleMap",className:"btn"})),(0,i.h)("ul",n)]}}),(0,c.createWidget)("topic-map-link",{tagName:"a.topic-link.track-link",buildClasses(e){if(e.attachment)return"attachment"},buildAttributes:e=>({href:e.url,target:"_blank","data-user-id":e.user_id,"data-ignore-post-id":"true",title:e.url,rel:"nofollow ugc noopener"}),html(e){let t=e.title||e.url;return t.length>85&&(t=`${t.slice(0,85).trim()}...`),e.title?(0,o.replaceEmoji)(t):t}}),(0,c.createWidget)("topic-map-expanded",{tagName:"section.topic-map-expanded#topic-map-expanded",buildKey:e=>`topic-map-expanded-${e.id}`,defaultState:()=>({allLinksShown:!1}),html(e,t){let n;e.participants&&e.participants.length>0&&(n=p.call(this,"section.avatars",(0,r.htmlSafe)(`<h3>${u.default.t("topic_map.participants_title")}</h3>`),e.userFilters,e.participants));const s=[n];if(e.topicLinks){const n=(t.allLinksShown?e.topicLinks:e.topicLinks.slice(0,5)).map((e=>{let t="";if(e.title&&e.title.length){const n=e.root_domain;n&&n.length&&(t=(0,i.h)("span.domain",n))}return(0,i.h)("tr",[(0,i.h)("td",(0,i.h)("span.badge.badge-notification.clicks",{attributes:{title:u.default.t("topic_map.clicks",{count:e.clicks})}},e.clicks.toString())),(0,i.h)("td",[this.attach("topic-map-link",e)," ",t])])})),r=[(0,i.h)("h3",u.default.t("topic_map.links_title")),(0,i.h)("table.topic-links",n)];!t.allLinksShown&&n.length<e.topicLinks.length&&r.push(this.attach("topic-map-show-links"));const o=(0,i.h)("section.links",r);s.push(o)}return s},showAllLinks(){this.state.allLinksShown=!0}});const h=(0,c.createWidget)("topic-map",{tagName:"div.topic-map",buildKey:e=>`topic-map-${e.id}`,defaultState:e=>({collapsed:!e.hasTopRepliesSummary}),html(e,t){const n=[this.attach("topic-map-summary",e,{state:t})];return t.collapsed||n.push(this.attach("topic-map-expanded",e)),(e.hasTopRepliesSummary||e.summarizable)&&n.push(this.buildSummaryBox(e)),e.showPMMap&&n.push(this.attach("private-message-map",e)),n},toggleMap(){this.state.collapsed=!this.state.collapsed},buildSummaryBox(e){return new l.default(this,"section.information.toggle-summary",(0,d.createTemplateFactory)({id:"7tPTrZf9",block:'[[[8,[39,0],null,[["@postAttrs","@actionDispatchFunc"],[[30,1,["postAttrs"]],[30,1,["actionDispatchFunc"]]]],null]],["@data"],false,["summary-box"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/topic-map.js",isStrictMode:!1}),{postAttrs:e,actionDispatchFunc:e=>{this.sendWidgetAction(e)}})}})},87950:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(41221),i=n(94473),s=n(82099);const o=(0,i.createWidget)("topic-post-visited-line",{tagName:"div.small-action.topic-post-visited",html:e=>(0,r.h)(`div.topic-post-visited-line.post-${e.post_number}}`,(0,r.h)("span.topic-post-visited-message",s.default.t("topics.new_messages_marker")))})},3240:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(41221),i=n(45733),s=n(62617),o=n(94473),a=n(3961),l=n(82099);const c=(0,o.createWidget)("topic-status",{tagName:"span.topic-statuses",html(e){const t=e.topic,n=this.currentUser&&!e.disableActions,o=[];return i.default.render(t,(function(e,t){const i={class:"unpinned"===t?"unpinned":null},c=(0,a.iconNode)(e,i),u={title:(0,s.escapeExpression)(l.default.t(`topic_statuses.${t}.help`))};let d="topic-status";"unpinned"!==t&&"pinned"!==t||(d+=`.pin-toggle-button.${t}`),o.push((0,r.h)(`${n?"a":"span"}.${d}`,u,c))})),o},click(e){const t=e.target.closest(".topic-statuses");t?.querySelector(".pin-toggle-button")?.contains(e.target)&&this.attrs.topic.togglePinnedForUser()}})},78356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(94473),i=n(82099);const s=(0,r.createWidget)("user-status-bubble",{tagName:"div.user-status-background",html(e){let t=e.description;if(e.ends_at){const n=moment.tz(e.ends_at,this.currentUser.user_option.timezone).format(i.default.t("dates.long_date_without_year"));t+=`\n${i.default.t("until")} ${n}`}return this.attach("emoji",{name:e.emoji,title:t})}})},6708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetDropdownBodyClass:()=>c,WidgetDropdownClass:()=>u,WidgetDropdownHeaderClass:()=>a,WidgetDropdownItemClass:()=>l,default:()=>d});var r=n(51372),i=n(83844),s=n(94473),o=n(82099);const a={tagName:"button",transform(e){return{label:this._buildLabel(e)}},buildAttributes(e){return{title:this._buildLabel(e)}},buildClasses(e){let t=["widget-dropdown-header","btn","btn-default"];return e.class&&(t=t.concat(e.class.split(" "))),t.filter(Boolean).join(" ")},click(e){e.preventDefault(),this.sendWidgetAction("_onTrigger")},template:function(e,t){var n=__widget_helpers.iconNode,r=[];r.push("\n"),e.icon&&(r.push("      "),r.push(n(e.icon)),r.push("\n")),r.push("    ");var i=[];return i.push("\n      "),i.push(this.transformed.label),i.push("\n    "),r.push(virtualDom.h("span",{className:"label",attributes:{}},i)),r.push("\n"),e.caret&&(r.push("      "),r.push(n("caret-down")),r.push("\n")),r.push("  "),r},_buildLabel:e=>e.translatedLabel?e.translatedLabel:o.default.t(e.label)};(0,s.createWidget)("widget-dropdown-header",a);const l={tagName:"div",transform:e=>({content:"separator"===e.item?"<hr>":e.item.html?e.item.html:e.item.translatedLabel?e.item.translatedLabel:o.default.t(e.item.label)}),buildAttributes:e=>({"data-id":e.item.id,tabindex:"separator"===e.item?-1:0}),buildClasses(e){const t=["widget-dropdown-item","separator"===e.item?"separator":`item-${e.item.id}`];return t.push(e.item.disabled?"disabled":""),t.join(" ")},keyDown(e){"Enter"===e.key&&(e.preventDefault(),this.sendWidgetAction("_onChange",this.attrs.item))},click(e){e.preventDefault(),this.sendWidgetAction("_onChange",this.attrs.item)},template:function(e,t){var n=__widget_helpers.iconNode,r=__widget_helpers.rawHtml,i=[];return i.push("\n"),e.item.icon&&(i.push("      "),i.push(n(e.item.icon)),i.push("\n")),i.push("    "),i.push(new r({html:"<span>"+this.transformed.content+"</span>"})),i.push("\n  "),i}};(0,s.createWidget)("widget-dropdown-item",l);const c={tagName:"div",buildClasses:e=>`widget-dropdown-body ${e.class||""}`,clickOutside(){this.sendWidgetAction("hideBody")},template:function(e,t){var n=[];return n.push("\n"),e.content&&e.content.length&&e.content.forEach((e=>{n.push("      "),n.push(this.attach("widget-dropdown-item",{item:e},void 0,void 0)),n.push("\n")})),n.push("  "),n}};(0,s.createWidget)("widget-dropdown-body",c);const u={tagName:"div",init(e){if(!e)throw"A widget-dropdown expects attributes.";if(!e.id)throw"A widget-dropdown expects a unique `id` attribute.";if(!e.label&&!e.translatedLabel)throw"A widget-dropdown expects at least a `label` or `translatedLabel`"},buildKey:e=>e.id,buildAttributes:e=>({id:e.id}),defaultState:e=>({opened:!1,disabled:e.options&&e.options.disabled||!1}),buildClasses(e){const t=["widget-dropdown"];return t.push(this.state.opened?"opened":"closed"),t.push(this.state.disabled?"disabled":""),t.join(" ")+" "+(e.class||"")},transform(e){return{options:e.options||{},isDropdownVisible:!this.state.disabled&&this.state.opened}},hideBody(){this.state.opened=!1},_onChange(e){e.disabled||(this.state.opened=!1,this.attrs.onChange&&("string"==typeof this.attrs.onChange?this.sendWidgetAction(this.attrs.onChange,e):this.attrs.onChange(e)))},destroy(){this._popper&&(this._popper.destroy(),this._popper=null)},willRerenderWidget(){this._popper&&this._popper.destroy()},didRenderWidget(){this.state.opened&&(0,r.schedule)("afterRender",(()=>{const e=document.querySelector(`#${this.attrs.id} .widget-dropdown-header`);if(!e)return;const t=document.querySelector(`#${this.attrs.id} .widget-dropdown-body`);t&&(this._popper=(0,i.fi)(e,t,{strategy:"absolute",placement:"bottom-start",modifiers:[{name:"preventOverflow"},{name:"offset",options:{offset:[0,5]}}]}))}))},_onTrigger(){this.state.opened=!this.state.opened},template:function(e,t){var n=[];return n.push("\n"),e.content&&(n.push("      "),n.push(this.attach("widget-dropdown-header",{icon:e.icon,label:e.label,translatedLabel:e.translatedLabel,class:this.transformed.options.headerClass,caret:this.transformed.options.caret},void 0,void 0)),n.push("\n\n"),this.transformed.isDropdownVisible&&(n.push("        "),n.push(this.attach("widget-dropdown-body",{id:e.id,class:this.transformed.options.bodyClass,content:e.content},void 0,void 0)),n.push("\n"))),n.push("  "),n}},d=(0,s.createWidget)("widget-dropdown",u)},94473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDecorators:()=>w,changeSetting:()=>x,createWidget:()=>S,createWidgetFrom:()=>T,decorateWidget:()=>_,default:()=>P,deleteFromRegistry:()=>f,queryRegistry:()=>g,reopenWidget:()=>C,resetDecorators:()=>v,traverseCustomWidgets:()=>y});var r=n(72326),i=n(48163),s=n(16572),o=n(10425),a=n(41221),l=n(72393),c=n(72313),u=n(40406),d=n(34405),p=n(12757),h=n(82099);const m={};function g(e){return m[e]}function f(e){return delete m[e]}const b={};function _(e,t){const n=e.split(":")[0];m[n]||console.error((0,l.consolePrefix)(),`decorateWidget: Could not find widget '${n}' in registry`),b[e]??=[],b[e].push(t)}function y(e,t){e&&("CustomWidget"===e.__type&&t(e),(e.children||(e.vnode?e.vnode.children:[])).forEach((e=>{y(e,t)})))}function w(e,t,n,r){const i=b[`${e.name}:${t}`]||[];if(i.length){const t=new c.default(e,n,r);return i.map((e=>e(t)))}return[]}function v(){Object.keys(b).forEach((e=>delete b[e]))}const k={};function x(e,t,n){k[e]=k[e]||{},k[e][t]=n}function T(e,t,n){const r=class extends e{};return r.prototype.__type="CustomWidget",t&&(m[t]=r),n.name=t,n.template&&(n.html=n.template),Object.keys(n).forEach((e=>r.prototype[e]=n[e])),r}function S(e,t){return T(P,e,t)}function C(e,t){let n=m[e];if(n)return t.template&&(t.html=t.template),Object.keys(t).forEach((e=>{let r=n.prototype[e];n.prototype[e]=r instanceof Function?function(){var n=this;let i=Object.create(this);i._super=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r.apply(n,t)};for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return t[e].apply(i,o)}:t[e]})),n;console.error((0,l.consolePrefix)(),`reopenWidget: Could not find widget ${e} in registry`)}class P{constructor(e,t,n){if(n=n||{},this.attrs=e||{},this.mergeState=n.state,this.model=n.model,this.register=t,this.dirtyKeys=n.dirtyKeys,t.deprecateContainer(this),(0,r.setOwner)(this,(0,r.getOwner)(t)),this.key=this.buildKey?this.buildKey(e):null,this.site=t.lookup("service:site"),this.siteSettings=t.lookup("service:site-settings"),this.currentUser=t.lookup("service:current-user"),this.capabilities=t.lookup("service:capabilities"),this.store=t.lookup("service:store"),this.appEvents=t.lookup("service:app-events"),this.keyValueStore=t.lookup("service:key-value-store"),(this.services||[]).forEach((e=>{this[(0,s.camelize)(e)]=t.lookup(`service:${e}`)})),this.init(this.attrs),this.name){const e=k[this.name];e&&Object.keys(e).forEach((t=>this.settings[t]=e[t]))}}transform(){return{}}defaultState(){return{}}init(){}destroy(){}get(e){return(0,i.get)(this,e)}render(e){const{dirtyKeys:t}=this;if(e&&e.key&&e.key===this.key)this.state=e.state;else if(this.state=this.defaultState(this.attrs,this.state),!(0,d.isProduction)()){if("object"!=typeof this.state)throw new Error("defaultState must return an object");if(Object.keys(this.state).length>0&&!this.key)throw new Error(`you need a key when using state in ${this.name}`)}if(this.mergeState&&(this.state=(0,p.deepMerge)(this.state,this.mergeState)),e){const n=t.optionsFor(e.key);if(e.shadowTree&&(this.shadowTree=!0,!n.dirty&&!t.allDirty()))return e.vnode;e.key&&t.renderedKey(e.key);const r=n.onRefresh;r&&this.sendWidgetAction(r,n.refreshArg)}return this.draw(a.h,this.attrs,this.state)}_findAncestorWithProperty(e){let t=this;for(;t;){if(t[e])return t;t=t.parentWidget}}_findView(){const e=this._findAncestorWithProperty("_emberView");if(e)return e._emberView}lookupWidgetClass(e){let t=m[e];return t||(this.register?(t=this.register.lookupFactory(`widget:${e}`),t&&t.class?t.class:null):(console.error("couldn't find register"),null))}attach(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.lookupWidgetClass(e);if(!i&&r.fallbackWidgetName&&(i=this.lookupWidgetClass(r.fallbackWidgetName)),i){const e=new i(t,this.register,n);return e.parentWidget=this,e.dirtyKeys=this.dirtyKeys,r.tagName&&(e.tagName=r.tagName),e}throw new Error(`Couldn't find ${e} or fallback ${r.fallbackWidgetName}`)}didRenderWidget(){}willRerenderWidget(){}scheduleRerender(){let e=this;for(;e;){e.shadowTree&&this.dirtyKeys.keyDirty(e.key);const t=e._rerenderable;if(t)return t.queueRerender();e=e.parentWidget}}_sendComponentAction(e,t){let n;const r=this._findView();if(r){let i;if("function"==typeof e)i=e;else if(i=r.get(e),!i)return void console.warn(`${e} not found`);if("string"==typeof i)r[i](t),n=o.Promise.resolve();else{const e=r.get("target")||r;n=i.call(e,t),n&&n.then||(n=o.Promise.resolve(n))}}return this.rerenderResult((()=>n))}findAncestorModel(){const e=this._findAncestorWithProperty("model");if(e)return e.model}rerenderResult(e){this.scheduleRerender();const t=e();return t&&t.then?t.then((()=>this.scheduleRerender())):t}sendWidgetEvent(e,t){const n=`${e}Event`;return this.rerenderResult((()=>{const e=this._findAncestorWithProperty(n);if(e)return e[n](t)}))}callWidgetFunction(e,t){const n=this._findAncestorWithProperty(e);if(n)return n[e].call(n,t)}sendWidgetAction(e,t){return this.rerenderResult((()=>{const n=this._findAncestorWithProperty(e);return n?n[e].call(n,t):this._sendComponentAction(e,t||this.findAncestorModel())}))}html(){}draw(e,t,n){const r={};if(this.buildClasses){let e=this.buildClasses(t,n)||[];Array.isArray(e)||(e=[e]);const i=w(this,"classNames",t,n);i&&i.length&&(e=e.concat(i)),e.length&&(r.className=e.join(" "))}this.buildId&&(r.id=this.buildId(t)),this.buildAttributes&&(r.attributes=this.buildAttributes(t)),this.keyUp&&(r["widget-key-up"]=new u.WidgetKeyUpHook(this)),this.keyDown&&(r["widget-key-down"]=new u.WidgetKeyDownHook(this)),this.clickOutside&&(r["widget-click-outside"]=new u.WidgetClickOutsideHook(this)),this.click&&(r["widget-click"]=new u.WidgetClickHook(this)),this.doubleClick&&(r["widget-double-click"]=new u.WidgetDoubleClickHook(this)),this.mouseDownOutside&&(r["widget-mouse-down-outside"]=new u.WidgetMouseDownOutsideHook(this)),this.drag&&(r["widget-drag"]=new u.WidgetDragHook(this)),this.input&&(r["widget-input"]=new u.WidgetInputHook(this)),this.change&&(r["widget-change"]=new u.WidgetChangeHook(this)),this.mouseDown&&(r["widget-mouse-down"]=new u.WidgetMouseDownHook(this)),this.mouseUp&&(r["widget-mouse-up"]=new u.WidgetMouseUpHook(this)),this.mouseMove&&(r["widget-mouse-move"]=new u.WidgetMouseMoveHook(this)),this.mouseOver&&(r["widget-mouse-over"]=new u.WidgetMouseOverHook(this)),this.mouseOut&&(r["widget-mouse-out"]=new u.WidgetMouseOutHook(this)),this.touchStart&&(r["widget-touch-start"]=new u.WidgetTouchStartHook(this)),this.touchEnd&&(r["widget-touch-end"]=new u.WidgetTouchEndHook(this)),this.touchMove&&(r["widget-touch-move"]=new u.WidgetTouchMoveHook(this));const i=r.attributes||{};r.attributes=i,this.title&&("function"==typeof this.title?i.title=this.title(t,n):i.title=h.default.t(this.title)),this.transformed=this.transform(this.attrs,this.state);let s=this.html(t,n);if(this.name){const e=w(this,"before",t,n)||[],r=w(this,"after",t,n)||[];s=e.concat(s).concat(r)}return(0,a.h)(this.tagName||"div",r,s)}}P.prototype.type="Thunk"},62505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attribute:()=>s,attributeBindings:()=>u,className:()=>o,classNameBindings:()=>c,classNames:()=>l,layout:()=>p,tagName:()=>d}),n(95793);var r=n(29335),i=n(26046);const s=(0,i.decoratorWithParams)((function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if((0,r.default)(e),!e.hasOwnProperty("attributeBindings")){let t=e.attributeBindings;e.attributeBindings=Array.isArray(t)?t.slice():[]}let s=i[0]?`${t}:${i[0]}`:t;return e.attributeBindings.push(s),n&&(n.configurable=!0),n})),o=(0,i.decoratorWithParams)((function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if((0,r.default)(e),!e.hasOwnProperty("classNameBindings")){let t=e.classNameBindings;e.classNameBindings=Array.isArray(t)?t.slice():[]}let s=i.length>0?`${t}:${i.join(":")}`:t;return e.classNameBindings.push(s),n&&(n.configurable=!0),n}));function a(e){return(0,i.decoratorWithRequiredParams)(((t,n)=>{if((0,r.default)(t.prototype),e in t.prototype){let r=t.prototype[e];n.unshift(...r)}return t.prototype[e]=n,t}),e)}const l=a("classNames"),c=a("classNameBindings"),u=a("attributeBindings"),d=(0,i.decoratorWithRequiredParams)(((e,t)=>{let[n]=t;return e.prototype.tagName=n,e}),"tagName"),p=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let[n]=t;return e.prototype.layout=n,e}}},68406:(e,t,n)=>{"use strict";n.r(t),n.d(t,{observes:()=>a,off:()=>u,on:()=>c,unobserves:()=>l}),n(95793),n(48163);var r=n(6264),i=n(78560),s=n(21853),o=n(26046);const a=(0,o.decoratorWithRequiredParams)(((e,t,n,i)=>{for(let n of i)(0,r.expandProperties)(n,(n=>{(0,s.addObserver)(e,n,null,t)}));return n}),"observes"),l=(0,o.decoratorWithRequiredParams)(((e,t,n,i)=>{for(let n of i)(0,r.expandProperties)(n,(n=>{(0,s.removeObserver)(e,n,null,t)}));return n}),"unobserves"),c=(0,o.decoratorWithRequiredParams)(((e,t,n,r)=>{for(let n of r)(0,i.addListener)(e,n,null,t);return n}),"on"),u=(0,o.decoratorWithRequiredParams)(((e,t,n,r)=>{for(let n of r)(0,i.removeListener)(e,n,null,t);return n}),"off")},53754:(e,t,n)=>{"use strict";function r(e){let[t,n,r]=e;return 3===e.length&&"object"==typeof t&&null!==t&&"string"==typeof n&&("object"==typeof r&&null!==r&&"enumerable"in r&&"configurable"in r||void 0===r)}function i(e){return r(e)||function(e){let[t]=e;return 1===e.length&&"function"==typeof t&&"prototype"in t&&!t.__isComputedDecorator}(e)}n.r(t),n.d(t,{isDescriptor:()=>i,isFieldDescriptor:()=>r})},29335:(e,t,n)=>{"use strict";function r(e){"function"==typeof e.constructor.proto&&e.constructor.proto()}n.r(t),n.d(t,{default:()=>r})},26046:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decoratorWithParams:()=>i,decoratorWithRequiredParams:()=>s}),n(95793);var r=n(53754);function i(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(0,r.isDescriptor)(n)?e(...n):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e(...r,n)}}}function s(e,t){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e(...r,n)}}}},36644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r="object"==typeof self&&null!==self&&self.Object===Object&&"undefined"!=typeof Window&&self.constructor===Window&&"object"==typeof document&&null!==document&&self.document===document&&"object"==typeof location&&null!==location&&self.location===location&&"object"==typeof history&&null!==history&&self.history===history&&"object"==typeof navigator&&null!==navigator&&self.navigator===navigator&&"string"==typeof navigator.userAgent},25662:(e,t,n)=>{"use strict";function r(e){let t={};t[e]=1;for(let n in t)if(n===e)return n;return e}n.r(t),n.d(t,{HAS_BLOCK:()=>s,isSimpleClick:()=>o});const i=r(`__ember${Date.now()}`),s=r(`__HAS_BLOCK${i+Math.floor(Math.random()*Date.now())}__`);function o(e){let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1;return!t&&!n}},66737:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(48163),i=(n(95793),n(31691)),s=n.n(i);const o=(0,n(8620).createTemplateFactory)({id:"Ji0cmKcG",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.a35f770f/node_modules/@ember/legacy-built-in-components/components/checkbox.hbs",isStrictMode:!1}),a=s().extend({classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","indeterminate","disabled","tabindex","name","autofocus","required","form"],type:"checkbox",disabled:!1,indeterminate:!1,checked:!1,didInsertElement(){this._super(...arguments),this.element.indeterminate=Boolean(this.indeterminate)},change(){(0,r.set)(this,"checked",this.element.checked)}});a.toString=()=>"@ember/component/checkbox";const l=(0,i.setComponentTemplate)(o,a)},69978:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(6264),i=n(48163),s=n(72326),o=n(31691),a=n.n(o),l=n(95793),c=n(50096),u=n(17579),d=n(25662);const p=(0,n(8620).createTemplateFactory)({id:"jFeDqHCY",block:'[[[41,[48,[30,1]],[[[18,1,null]],[]],[[[1,[30,0,["linkTitle"]]]],[]]]],["&default"],false,["if","has-block","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.a35f770f/node_modules/@ember/legacy-built-in-components/components/link-to.hbs",isStrictMode:!1}),h=Object.freeze({toString:()=>"UNDEFINED"}),m=Object.freeze({}),g=a().extend({tagName:"a",route:h,model:h,models:h,query:h,"current-when":null,disabledWhen:void 0,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",replace:!1,preventDefault:!0,linkTitle:void 0,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init(){this._super(...arguments),this.assertLinkToOrigin();let{eventName:e}=this;this.on(e,this,this._invoke)},_routing:(0,u.inject)("-routing"),_currentRoute:(0,r.alias)("_routing.currentRouteName"),_currentRouterState:(0,r.alias)("_routing.currentState"),_targetRouterState:(0,r.alias)("_routing.targetState"),assertLinkToOrigin(){},_isEngine:(0,i.computed)((function(){return void 0!==(0,c.getEngineParent)((0,s.getOwner)(this))})),_engineMountPoint:(0,i.computed)((function(){return(0,s.getOwner)(this).mountPoint})),_route:(0,i.computed)("route","_currentRouterState",(function(){let{route:e}=this;return e===h?this._currentRoute:this._namespaceRoute(e)})),_models:(0,i.computed)("model","models",(function(){let{model:e,models:t}=this;return e!==h?[e]:t!==h?t:[]})),_query:(0,i.computed)("query",(function(){let{query:e}=this;return e===h?m:Object.assign({},e)})),disabled:(0,i.computed)({get:e=>!1,set(e,t){return this._isDisabled=t,!!t&&this.disabledClass}}),active:(0,i.computed)("activeClass","_active",(function(){return!!this._active&&this.activeClass})),_active:(0,i.computed)("_currentRouterState","_route","_models","_query","loading","current-when",(function(){let{_currentRouterState:e}=this;return!!e&&this._isActive(e)})),willBeActive:(0,i.computed)("_currentRouterState","_targetRouterState","_route","_models","_query","loading","current-when",(function(){let{_currentRouterState:e,_targetRouterState:t}=this;if(e!==t)return this._isActive(t)})),_isActive(e){if(this.loading)return!1;let t=this["current-when"];if("boolean"==typeof t)return t;let{_models:n,_routing:r}=this;return"string"==typeof t?t.split(" ").some((t=>r.isActiveForRoute(n,void 0,this._namespaceRoute(t),e))):r.isActiveForRoute(n,this._query,this._route,e)},transitioningIn:(0,i.computed)("_active","willBeActive",(function(){return!0===this.willBeActive&&!this._active&&"ember-transitioning-in"})),transitioningOut:(0,i.computed)("_active","willBeActive",(function(){return!(!1!==this.willBeActive||!this._active)&&"ember-transitioning-out"})),_namespaceRoute(e){let{_engineMountPoint:t}=this;return void 0===t?e:"application"===e?t:`${t}.${e}`},_invoke(e){if(!(0,d.isSimpleClick)(e))return!0;let{bubbles:t,preventDefault:n}=this,r=this.element.target,i=!r||"_self"===r;if(!1!==n&&i&&e.preventDefault(),!1===t&&e.stopPropagation(),this._isDisabled)return!1;if(this.loading)return!1;if(!i)return!1;let{_route:s,_models:o,_query:a,replace:l}=this,c={queryParams:a,routeName:s};return this._generateTransition(c,s,o,a,l),!1},_generateTransition(e,t,n,r,i){let{_routing:s}=this;e.transition=s.transitionTo(t,n,r,i)},href:(0,i.computed)("_currentRouterState","_route","_models","_query","tagName","loading","loadingHref",(function(){if("a"!==this.tagName)return;if(this.loading)return this.loadingHref;let{_route:e,_models:t,_query:n,_routing:r}=this;return r.generateURL(e,t,n)})),loading:(0,i.computed)("_route","_modelsAreLoaded","loadingClass",(function(){let{_route:e,_modelsAreLoaded:t}=this;if(!t||null==e)return this.loadingClass})),_modelsAreLoaded:(0,i.computed)("_models",(function(){let{_models:e}=this;for(let t=0;t<e.length;t++){if(null==e[t])return!1}return!0})),loadingHref:"#",didReceiveAttrs(){let{disabledWhen:e}=this;void 0!==e&&this.set("disabled",e);let{params:t}=this;if(!t||0===t.length){let{_models:e}=this;if(e.length>0){let t=e[e.length-1];"object"==typeof t&&null!==t&&t.isQueryParams&&(this.query=t.values,e.pop())}return}let n=this[d.HAS_BLOCK];t=t.slice(),n||this.set("linkTitle",t.shift());let r=t[t.length-1];r&&r.isQueryParams?this.set("query",t.pop().values):this.set("query",h),0===t.length?this.set("route",h):this.set("route",t.shift()),this.set("model",h),this.set("models",t),(0,l.runInDebug)((()=>{t=this.params.slice();let e=[],r=!1;n||t.shift();let i=t[t.length-1];if(i&&i.isQueryParams&&(t.pop(),r=!0),t.length>0&&(t.shift(),e.push("`@route`")),1===t.length?e.push("`@model`"):t.length>1&&e.push("`@models`"),r&&e.push("`@query`"),e.length>0){let t="Invoking the `<LinkTo>` component with positional arguments is deprecated.";t+=`Please use the equivalent named arguments (${e.join(", ")})`,r&&(t+=" along with the `hash` helper"),n||(t+=" and pass a block for the link's content."),t+=".",(0,l.deprecate)(t,!1,{id:"ember-glimmer.link-to.positional-arguments",until:"4.0.0",for:"ember-source",url:"https://deprecations.emberjs.com/v3.x#toc_ember-glimmer-link-to-positional-arguments",since:{available:"3.26.0-beta.1",enabled:"3.26.0-beta.1"}})}}))}});g.toString=()=>"@ember/routing/link-component",g.reopenClass({positionalParams:"params"});const f=(0,o.setComponentTemplate)(p,g)},43683:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(36644),i=n(48163),s=n(31691),o=n.n(s),a=n(57399);const l=r.default?Object.create(null):null,c=o().extend(a.default,{classNames:["ember-text-field"],tagName:"input",attributeBindings:["accept","autocomplete","autosave","dir","formaction","formenctype","formmethod","formnovalidate","formtarget","height","inputmode","lang","list","type","max","min","multiple","name","pattern","size","step","value","width"],value:"",type:(0,i.computed)({get:()=>"text",set(e,t){let n="text";return function(e){if(!r.default)return Boolean(e);if(e in l)return l[e];let t=document.createElement("input");try{t.type=e}catch(e){}return l[e]=t.type===e}(t)&&(n=t),n}}),size:null,pattern:null,min:null,max:null});c.toString=()=>"@ember/component/text-field";const u=c},54226:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(57399),i=n(31691),s=n.n(i),o=n(73350);const a=s().extend(r.default,{classNames:["ember-text-area"],layout:o.default,tagName:"textarea",attributeBindings:["rows","cols","name","selectionEnd","selectionStart","autocomplete","wrap","lang","dir","value"],rows:null,cols:null});a.toString=()=>"@ember/component/text-area";const l=a},89906:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Checkbox:()=>i,LinkComponent:()=>s,TextArea:()=>o,TextField:()=>a}),n(92375);var r=n(91649);let i,s,o,a;i=(0,r.Z)(n(66737)).default,s=(0,r.Z)(n(69978)).default,o=(0,r.Z)(n(54226)).default,a=(0,r.Z)(n(43683)).default},92630:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(48163),i=n(39791),s=n.n(i);n(95793);const o=s().create({target:null,action:null,actionContext:null,actionContextObject:(0,r.computed)("actionContext",(function(){let e=(0,r.get)(this,"actionContext");return"string"==typeof e?(0,r.get)(this,e):e})),triggerAction(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{action:t,target:n,actionContext:i}=e;if(t=t||(0,r.get)(this,"action"),n=n||function(e){let t=(0,r.get)(e,"target");if(t){if("string"==typeof t){let n=(0,r.get)(e,t);return void 0===n&&(n=(0,r.get)(context.lookup,t)),n}return t}return e._target?e._target:null}(this),void 0===i&&(i=(0,r.get)(this,"actionContextObject")||this),n&&t){let e;if(e=n.send?n.send(...[t].concat(i)):n[t](...[].concat(i)),!1!==e)return!0}return!1}})},57399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n(39791),s=n.n(i),o=n(92630),a=n(66375);const l={Enter:"insertNewline",Escape:"cancel"},c=s().create(o.default,{value:"",attributeBindings:["autocapitalize","autocorrect","autofocus","disabled","form","maxlength","minlength","placeholder","readonly","required","selectionDirection","spellcheck","tabindex","title"],placeholder:null,disabled:!1,maxlength:null,init(){this._super(...arguments),this.on("paste",this,this._elementValueDidChange),this.on("cut",this,this._elementValueDidChange),this.on("input",this,this._elementValueDidChange)},bubbles:!1,interpretKeyEvents(e){let t=l[e.key];if(this._elementValueDidChange(),t)return this[t](e)},_elementValueDidChange(){(0,r.set)(this,"value",this.element.value)},change(e){this._elementValueDidChange(e)},insertNewline(e){u("enter",this,e),u("insert-newline",this,e)},cancel(e){u("escape-press",this,e)},focusIn(e){u("focus-in",this,e)},focusOut(e){this._elementValueDidChange(e),u("focus-out",this,e)},keyPress(e){u("key-press",this,e)},keyUp(e){this.interpretKeyEvents(e),u("key-up",this,e)},keyDown(e){u("key-down",this,e)}});function u(e,t,n){let i=(0,r.get)(t,`attrs.${e}`);null!==i&&"object"==typeof i&&!0===i[a.MUTABLE_CELL]&&(i=i.value),void 0===i&&(i=(0,r.get)(t,e));let s=t.value;"function"==typeof i&&i(s,n),i&&!t.bubbles&&n.stopPropagation()}},53843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(88242)},50992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(66373)},52474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(61738)},88242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(48581);const i=(0,r.setModifierManager)((()=>({capabilities:(0,r.capabilities)("3.22",{disableAutoTracking:!0}),createModifier(){},installModifier(e,t,n){let{positional:[r,...i],named:s}=n;r(t,i,s)},updateModifier(){},destroyModifier(){}})),class{})},66373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48581);const i=(0,n(91649).Z)(n(86358)).untrack,s=(0,r.setModifierManager)((()=>({capabilities:(0,r.capabilities)("3.22",{disableAutoTracking:!1}),createModifier:()=>({element:null}),installModifier(e,t,n){e.element=t,n.positional.forEach((()=>{})),n.named&&Object.values(n.named)},updateModifier(e,t){let{element:n}=e,[r,...s]=t.positional;t.positional.forEach((()=>{})),t.named&&Object.values(t.named),i((()=>{r(n,s,t.named)}))},destroyModifier(){}})),class{})},61738:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(48581);const i=(0,r.setModifierManager)((()=>({capabilities:(0,r.capabilities)("3.22",{disableAutoTracking:!0}),createModifier:()=>({element:null}),installModifier(e,t){e.element=t},updateModifier(){},destroyModifier(e,t){let{element:n}=e,[r,...i]=t.positional;r(n,i,t.named)}})),class{})},74441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(49246);class i{constructor(e,t,n){(0,r.Z)(this,"size",0),(0,r.Z)(this,"misses",0),(0,r.Z)(this,"hits",0),this.limit=e,this.func=t,this.store=n,this.store=n||new Map}get(e){let t=this.store.get(e);return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,t=this.set(e,this.func(e)),t)}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}},16572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{camelize:()=>P,capitalize:()=>D,classify:()=>O,dasherize:()=>C,decamelize:()=>S,getString:()=>a,getStrings:()=>o,htmlSafe:()=>I,isHTMLSafe:()=>j,setStrings:()=>s,underscore:()=>E,w:()=>T});var r=n(74441);let i={};function s(e){i=e}function o(){return i}function a(e){return i[e]}const l=/[ _]/g,c=new r.default(1e3,(e=>S(e).replace(l,"-"))),u=/(\-|\_|\.|\s)+(.)?/g,d=/(^|\/)([A-Z])/g,p=new r.default(1e3,(e=>e.replace(u,((e,t,n)=>n?n.toUpperCase():"")).replace(d,(e=>e.toLowerCase())))),h=/^(\-|_)+(.)?/,m=/(.)(\-|\_|\.|\s)+(.)?/g,g=/(^|\/|\.)([a-z])/g,f=new r.default(1e3,(e=>{const t=(e,t,n)=>n?`_${n.toUpperCase()}`:"",n=(e,t,n,r)=>t+(r?r.toUpperCase():""),r=e.split("/");for(let e=0;e<r.length;e++)r[e]=r[e].replace(h,t).replace(m,n);return r.join("/").replace(g,(e=>e.toUpperCase()))})),b=/([a-z\d])([A-Z]+)/g,_=/\-|\s+/g,y=new r.default(1e3,(e=>e.replace(b,"$1_$2").replace(_,"_").toLowerCase())),w=/(^|\/)([a-z\u00C0-\u024F])/g,v=new r.default(1e3,(e=>e.replace(w,(e=>e.toUpperCase())))),k=/([a-z\d])([A-Z])/g,x=new r.default(1e3,(e=>e.replace(k,"$1_$2").toLowerCase()));function T(e){return e.split(/\s+/)}function S(e){return x.get(e)}function C(e){return c.get(e)}function P(e){return p.get(e)}function O(e){return f.get(e)}function E(e){return y.get(e)}function D(e){return v.get(e)}function I(e){throw new Error("htmlSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.")}function j(e){throw new Error("isHTMLSafe is not implemented in the `@ember/string` package. Please import from `@ember/template` instead.")}},90089:(e,t,n)=>{"use strict";let r;function i(){r=new Set}n.r(t),n.d(t,{_resetWaiterNames:()=>i,default:()=>o}),n(95793),n(31855);class s{constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}function o(e){return new s(e)}},38103:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>i._reset,_resetWaiterNames:()=>i._resetWaiterNames,buildWaiter:()=>i.buildWaiter,getPendingWaiterState:()=>i.getPendingWaiterState,getWaiters:()=>i.getWaiters,hasPendingWaiters:()=>i.hasPendingWaiters,register:()=>i.register,unregister:()=>i.unregister,waitFor:()=>i.waitFor,waitForPromise:()=>i.waitForPromise});var r=n(95793),i=n(22902);(0,r.deprecate)("Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters",!1,{id:"ember-test-waiters-legacy-module-name",until:"3.0.0",for:"ember-test-waiters",since:{enabled:"2.2.0"}})},22902:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>r._reset,_resetWaiterNames:()=>i._resetWaiterNames,buildWaiter:()=>i.default,getPendingWaiterState:()=>r.getPendingWaiterState,getWaiters:()=>r.getWaiters,hasPendingWaiters:()=>r.hasPendingWaiters,register:()=>r.register,unregister:()=>r.unregister,waitFor:()=>o.default,waitForPromise:()=>s.default});var r=n(31855),i=n(90089),s=n(4404),o=n(17239)},85909:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{}},7719:(e,t,n)=>{"use strict";n.r(t)},4404:(e,t,n)=>{"use strict";function r(e,t){return e}n.r(t),n.d(t,{default:()=>r}),(0,n(90089).default)("@ember/test-waiters:promise-waiter")},17239:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<3){let[e,n]=t;return function(e,t){return e}(e)}{let[,,e,n]=t;return e}}n.r(t),n.d(t,{default:()=>r}),n(4404),(0,n(90089).default)("@ember/test-waiters:generator-waiter")},31855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>d,getPendingWaiterState:()=>p,getWaiters:()=>u,hasPendingWaiters:()=>h,register:()=>l,unregister:()=>c});var r=n(92375),i=n.n(r),s=n(3253);const o=function(){let e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,n=a(),r=n[t];return void 0===r&&(r=n[t]=new Map),r}();function a(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}function l(e){o.set(e.name,e)}function c(e){o.delete(e.name)}function u(){let e=[];return o.forEach((t=>{e.push(t)})),e}function d(){for(let e of u())e.isRegistered=!1;o.clear()}function p(){let e={pending:0,waiters:{}};return o.forEach((t=>{if(!t.waitUntil()){e.pending++;let n=t.debugInfo();e.waiters[t.name]=n||!0}})),e}function h(){return p().pending>0}i().Test&&(0,s.registerWaiter)((()=>!h()))},66299:(e,t,n)=>{"use strict";let r;function i(){r=new Set}n.r(t),n.d(t,{_resetWaiterNames:()=>i,default:()=>o}),n(95793),n(93543);class s{constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}function o(e){return new s(e)}},15399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>i._reset,_resetWaiterNames:()=>i._resetWaiterNames,buildWaiter:()=>i.buildWaiter,getPendingWaiterState:()=>i.getPendingWaiterState,getWaiters:()=>i.getWaiters,hasPendingWaiters:()=>i.hasPendingWaiters,register:()=>i.register,unregister:()=>i.unregister,waitFor:()=>i.waitFor,waitForPromise:()=>i.waitForPromise});var r=n(95793),i=n(15099);(0,r.deprecate)("Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters",!1,{id:"ember-test-waiters-legacy-module-name",until:"3.0.0",for:"ember-test-waiters",since:{enabled:"2.2.0"}})},15099:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>r._reset,_resetWaiterNames:()=>i._resetWaiterNames,buildWaiter:()=>i.default,getPendingWaiterState:()=>r.getPendingWaiterState,getWaiters:()=>r.getWaiters,hasPendingWaiters:()=>r.hasPendingWaiters,register:()=>r.register,unregister:()=>r.unregister,waitFor:()=>o.default,waitForPromise:()=>s.default});var r=n(93543),i=n(66299),s=n(51843),o=n(45655)},62763:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});class r{}},70049:(e,t,n)=>{"use strict";n.r(t)},51843:(e,t,n)=>{"use strict";function r(e,t){return e}n.r(t),n.d(t,{default:()=>r}),(0,n(66299).default)("@ember/test-waiters:promise-waiter")},45655:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<3){let[e,n]=t;return function(e,t){return e}(e)}{let[,,e,n]=t;return e}}n.r(t),n.d(t,{default:()=>r}),n(51843),(0,n(66299).default)("@ember/test-waiters:generator-waiter")},93543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>d,getPendingWaiterState:()=>p,getWaiters:()=>u,hasPendingWaiters:()=>h,register:()=>l,unregister:()=>c});var r=n(92375),i=n.n(r),s=n(3253);const o=function(){let e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,n=a(),r=n[t];return void 0===r&&(r=n[t]=new Map),r}();function a(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}function l(e){o.set(e.name,e)}function c(e){o.delete(e.name)}function u(){let e=[];return o.forEach((t=>{e.push(t)})),e}function d(){for(let e of u())e.isRegistered=!1;o.clear()}function p(){let e={pending:0,waiters:{}};return o.forEach((t=>{if(!t.waitUntil()){e.pending++;let n=t.debugInfo();e.waiters[t.name]=n||!0}})),e}function h(){return p().pending>0}i().Test&&(0,s.registerWaiter)((()=>!h()))},52314:(e,t,n)=>{"use strict";function r(e){return e?.__esModule?e:{default:e,...e}}n.r(t),n.d(t,{default:()=>r})},22261:(e,t,n)=>{"use strict";function r(e){if(!Array.isArray(e))throw new Error("the argument to the each() macro must be an array");return e}function i(e){return e}function s(e){return l.packages[e]}function o(){return l.global}function a(){let e=l.global,t=e&&e["@embroider/macros"];return Boolean(t&&t.isTesting)}n.r(t),n.d(t,{config:()=>s,each:()=>r,getGlobalConfig:()=>o,isTesting:()=>a,macroCondition:()=>i});const l={packages:{},global:{}};let c="undefined"!=typeof window?window._embroider_macros_runtime_config:void 0;if(c){let e={config:s,getGlobalConfig:o,setConfig(e,t){l.packages[e]=t},setGlobalConfig(e,t){l.global[e]=t}};for(let t of c)t(e)}},72708:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.EnsureSafeComponentHelper});var r=n(71373)},98348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(78796)},19336:(e,t,n)=>{"use strict";let r;n.r(t),n.d(t,{isCurriedComponentDefinition:()=>i,lookupCurriedComponentDefinition:()=>l}),r=(0,n(91649).Z)(n(11555));let{isCurriedComponentDefinition:i,CurriedComponentDefinition:s,curry:o,CurriedValue:a}=r;function l(e,t){let n=function(e){let t=e.lookup("renderer:-dom")._runtimeResolver;if(t)return t;let n=Object.entries(e.__container__.cache).find((e=>e[0].startsWith("template-compiler:main-")));if(n)return n[1].resolver.resolver;throw new Error("@embroider/util couldn't locate the runtime resolver on this ember version")}(t);if("function"==typeof n.lookupComponentHandle){let r=n.lookupComponentHandle(e,t);if(null!=r)return new s(n.resolve(r),null)}if(!n.lookupComponent(e,t))throw new Error(`Attempted to resolve \`${e}\` via ensureSafeComponent, but nothing was found.`);return o(0,e,t,{named:{},positional:[]})}i||(i=function(e){return e instanceof a})},71373:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EnsureSafeComponentHelper:()=>c,ensureSafeComponent:()=>l});var r=n(95793),i=n(72326),s=n(19336),o=n(60859),a=n.n(o);function l(e,t){return"string"==typeof e?function(e,t){(0,r.deprecate)(`You're trying to invoke the component "${e}" by passing its name as a string. This won't work under Embroider.`,!1,{id:"ensure-safe-component.string",url:"https://github.com/embroider-build/embroider/blob/main/docs/replacing-component-helper.md#when-youre-passing-a-component-to-someone-else",until:"embroider",for:"@embroider/util",since:"0.27.0"});let n=(0,i.getOwner)(t);return(0,s.lookupCurriedComponentDefinition)(e,n)}(e,t):((0,s.isCurriedComponentDefinition)(e),e)}class c extends(a()){compute(e){let[t]=e;return l(t,this)}}},78796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(17579),i=n.n(r),s=n(72326);function o(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a extends(i()){constructor(){super(...arguments),o(this,"classNonces",new WeakMap),o(this,"nonceCounter",0)}register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.getOwner)(this),n=this.classNonces.get(e);return null==n&&(n="-ensure"+this.nonceCounter++,this.classNonces.set(e,n),t.register(`component:${n}`,e)),n}}},37860:(e,t,n)=>{"use strict";function r(e,t,n){return class{static create(e){return new this(t(e))}constructor(t){var r,i,s,o;r=this,s=n,(i="symbol"==typeof(o=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i="capabilities"))?o:String(o))in r?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s,e(this,t)}createComponent(e,n){return new e(t(this),n.named)}getContext(e){return e}}}n.r(t),n.d(t,{default:()=>r}),n(49288)},49288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ARGS_SET:()=>{},default:()=>s});var r=n(14110),i=n(86291);class s{constructor(e,t){var n,i,s,o;n=this,s=void 0,(i="symbol"==typeof(o=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i="args"))?o:String(o))in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,this.args=t,(0,r.setOwner)(this,e)}get isDestroying(){return(0,i.isDestroying)(this)}get isDestroyed(){return(0,i.isDestroyed)(this)}willDestroy(){}}},86291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isDestroyed:()=>o,isDestroying:()=>s});var r=n(92375),i=n.n(r);const s=i()._isDestroying,o=i()._isDestroyed},89461:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(92375),i=n.n(r),s=(n(48163),n(72326)),o=n(31691),a=(n(51372),n(37860)),l=n(86291);const{setDestroyed:c,setDestroying:u}=l,d=(0,o.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),p=i().destroy,h=i()._registerDestructor;class m extends((0,a.default)(s.setOwner,s.getOwner,d)){createComponent(e,t){const n=super.createComponent(e,t);return h(n,(()=>{n.willDestroy()})),n}destroyComponent(e){p(e)}}const g=m},14110:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setOwner:()=>r.setOwner});var r=n(72326)},11148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(89461)},82006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n(89461);let s=n(49288).default;(0,r.setComponentManager)((e=>new i.default(e)),s);const o=s},23183:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cached:()=>i,tracked:()=>s});var r=n(85356);const{cached:i,tracked:s}=r},85393:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(59401)},62048:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(91417)},59401:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(82006),i=n(48163),s=n(17579);const o=(0,n(8620).createTemplateFactory)({id:"mav/IOiq",block:'[[[10,0],[14,1,"dialog-holder"],[15,0,[29,["dialog-container ",[30,0,["dialog","class"]]]]],[15,"aria-labelledby",[30,0,["dialog","titleElementId"]]],[14,"aria-hidden","true"],[12],[1,"\\n  "],[10,0],[14,0,"dialog-overlay"],[14,"data-a11y-dialog-hide",""],[12],[13],[1,"\\n\\n"],[41,[30,0,["dialog","type"]],[[[1,"    "],[10,0],[14,0,"dialog-content"],[14,"role","document"],[12],[1,"\\n"],[41,[30,0,["dialog","title"]],[[[1,"        "],[10,0],[14,0,"dialog-header"],[12],[1,"\\n          "],[10,"h3"],[15,1,[30,0,["dialog","titleElementId"]]],[12],[1,[30,0,["dialog","title"]]],[13],[1,"\\n          "],[8,[39,1],[[24,0,"btn-flat dialog-close close"]],[["@icon","@action","@title"],["times",[28,[37,2],[[30,0],[30,0,["dialog","cancel"]]],null],"modal.close"]],null],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,3],[[30,0,["dialog","message"]],[30,0,["dialog","bodyComponent"]]],null],[[[1,"        "],[10,0],[14,0,"dialog-body"],[12],[1,"\\n"],[41,[30,0,["dialog","bodyComponent"]],[[[1,"            "],[8,[30,0,["dialog","bodyComponent"]],null,[["@model"],[[30,0,["dialog","bodyComponentModel"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["dialog","message"]],[[[1,"            "],[10,2],[12],[1,[28,[35,4],[[30,0,["dialog","message"]]],null]],[13],[1,"\\n          "]],[]],null]],[]]],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,5],[[30,0,["dialog","type"]],"notice"],null],[[[1,"        "],[10,0],[14,0,"dialog-footer"],[12],[1,"\\n"],[42,[28,[37,7],[[28,[37,7],[[30,0,["dialog","buttons"]]],null]],null],null,[[[1,"            "],[8,[39,1],[[16,0,[30,1,["class"]]]],[["@icon","@action","@translatedLabel"],[[30,1,["icon"]],[28,[37,8],[[30,0,["handleButtonAction"]],[30,1]],null],[30,1,["label"]]]],null],[1,"\\n"]],[1]],[[[1,"            "],[8,[39,1],[[16,0,[30,0,["dialog","confirmButtonClass"]]]],[["@disabled","@action","@icon","@label"],[[30,0,["dialog","confirmButtonDisabled"]],[30,0,["dialog","didConfirmWrapped"]],[30,0,["dialog","confirmButtonIcon"]],[30,0,["dialog","confirmButtonLabel"]]]],null],[1,"\\n"],[41,[30,0,["dialog","shouldDisplayCancel"]],[[[1,"              "],[8,[39,1],[[16,0,[30,0,["dialog","cancelButtonClass"]]]],[["@action","@label"],[[30,0,["dialog","cancel"]],[30,0,["dialog","cancelButtonLabel"]]]],null],[1,"\\n"]],[]],null]],[]]],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n"]],[]],null],[13]],["button"],false,["if","d-button","action","or","html-safe","notEq","each","-track-array","fn"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/dialog-holder.bad43450/node_modules/dialog-holder/components/dialog-holder.hbs",isStrictMode:!1});var a,l,c=n(31691);function u(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let d=(a=class extends r.default{constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"dialog",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,l,this)}async handleButtonAction(e){e.action&&"function"==typeof e.action&&await e.action(),this.dialog.cancel()}},l=u(a.prototype,"dialog",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u(a.prototype,"handleButtonAction",[i.action],Object.getOwnPropertyDescriptor(a.prototype,"handleButtonAction"),a.prototype),a);(0,c.setComponentTemplate)(o,d)},91417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r,i=n(51372),s=n(17579),o=n.n(s),a=n(19311),l=n(57555);function c(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let d=(u((r=class extends(o()){constructor(){super(...arguments),c(this,"dialogInstance",null),c(this,"message",null),c(this,"title",null),c(this,"titleElementId",null),c(this,"type",null),c(this,"bodyComponent",null),c(this,"bodyComponentModel",null),c(this,"confirmButtonIcon",null),c(this,"confirmButtonLabel",null),c(this,"confirmButtonClass",null),c(this,"confirmButtonDisabled",!1),c(this,"cancelButtonLabel",null),c(this,"cancelButtonClass",null),c(this,"shouldDisplayCancel",null),c(this,"didConfirm",null),c(this,"didCancel",null),c(this,"buttons",null),c(this,"class",null),c(this,"_confirming",!1)}async dialog(e){const{message:t,bodyComponent:n,bodyComponentModel:r,type:s,title:o,confirmButtonClass:l="btn-primary",confirmButtonIcon:c,confirmButtonLabel:u="ok_value",confirmButtonDisabled:d=!1,cancelButtonClass:p="btn-default",cancelButtonLabel:h="cancel_value",shouldDisplayCancel:m,didConfirm:g,didCancel:f,buttons:b}=e;this.setProperties({message:t,bodyComponent:n,bodyComponentModel:r,type:s,title:o,titleElementId:null!==o?"dialog-title":null,confirmButtonClass:l,confirmButtonDisabled:d,confirmButtonIcon:c,confirmButtonLabel:u,cancelButtonClass:p,cancelButtonLabel:h,shouldDisplayCancel:m,didConfirm:g,didCancel:f,buttons:b,class:e.class}),await new Promise((e=>(0,i.schedule)("afterRender",e)));const _=document.getElementById("dialog-holder");if(!_){const t="dialog-holder wrapper element not found. Unable to render dialog";throw console.error(t,e),new Error(t)}this.dialogInstance=new a.default(_),this.dialogInstance.show(),this.dialogInstance.on("hide",(()=>{!this._confirming&&this.didCancel&&this.didCancel(),this.reset()}))}alert(e){return"string"==typeof e?this.dialog({message:e,type:"alert"}):this.dialog({...e,type:"alert"})}confirm(e){return this.dialog({...e,shouldDisplayCancel:!0,buttons:null,type:"confirm"})}notice(e){return this.dialog({message:e,type:"notice"})}yesNoConfirm(e){return this.confirm({...e,confirmButtonLabel:"yes_value",cancelButtonLabel:"no_value"})}deleteConfirm(e){return this.confirm({...e,confirmButtonClass:"btn-danger",confirmButtonLabel:e.confirmButtonLabel||"delete"})}reset(){this.setProperties({message:null,bodyComponent:null,bodyComponentModel:null,type:null,dialogInstance:null,title:null,titleElementId:null,confirmButtonDisabled:!1,confirmButtonIcon:null,confirmButtonLabel:null,cancelButtonClass:null,cancelButtonLabel:null,shouldDisplayCancel:null,didConfirm:null,didCancel:null,buttons:null,class:null,_confirming:!1})}willDestroy(){this.dialogInstance?.destroy(),this.reset()}didConfirmWrapped(){this.didConfirm&&this.didConfirm(),this._confirming=!0,this.dialogInstance.hide()}cancel(){this.dialogInstance.hide()}enableConfirmButton(){this.set("confirmButtonDisabled",!1)}}).prototype,"didConfirmWrapped",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"didConfirmWrapped"),r.prototype),u(r.prototype,"cancel",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"cancel"),r.prototype),u(r.prototype,"enableConfirmButton",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"enableConfirmButton"),r.prototype),r)},34405:(e,t,n)=>{"use strict";n.r(t),n.d(t,{INPUT_DELAY:()=>i,isDevelopment:()=>c,isLegacyEmber:()=>l,isProduction:()=>u,isTesting:()=>a,setEnvironment:()=>o});var r=n(54736);const i=250;let s="unknown";function o(e){s=a()?"testing":e}function a(){return"testing"===s}function l(){return(0,r.default)("`isLegacyEmber()` is now deprecated and always returns false",{id:"discourse.is-legacy-ember",dropFrom:"3.0.0.beta1"}),!1}function c(){return"development"===s}function u(){return"production"===s}},42805:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(47582);function i(){return(0,r.default)("")}(0,n(61369).registerRawHelper)("base-path",i)},61407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(54736),i=n(47582);function s(){return(0,r.default)("Use `{{base-path}}` instead of `{{base-url}}`"),(0,i.default)("")}(0,n(61369).registerRawHelper)("base-url",s)},1276:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(24434),i=n(82099);function s(e,t){return(0,r.htmlSafe)(i.default.t(e,t))}},90058:(e,t,n)=>{"use strict";function r(e,t){return t.modifyComponentForCollection(e)}n.r(t),n.d(t,{default:()=>r}),(0,n(61369).registerRawHelper)("component-for-collection",r)},3765:(e,t,n)=>{"use strict";function r(e,t,n){return n.modifyComponentForRow(e,t)}n.r(t),n.d(t,{default:()=>r}),(0,n(61369).registerRawHelper)("component-for-row",r)},40098:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(24434),i=n(61369),s=n(3961);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.htmlSafe)((0,s.renderIcon)("string",e,t))}(0,i.registerRawHelper)("d-icon",o)},68953:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,iconHTML:()=>a});var r=n(24434),i=n(54736),s=n(61369),o=n(3961);function a(e,t){return(0,o.renderIcon)("string",e,t)}function l(e,t){return(0,i.default)("Use `{{d-icon}}` instead of `{{fa-icon}}"),(0,r.htmlSafe)(a(e,t))}(0,s.registerRawHelper)("fa-icon",l)},22499:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(47582);function i(e){return(0,r.default)(e)}(0,n(61369).registerRawHelper)("get-url",i)},2935:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(24434);function i(e){return(0,r.htmlSafe)(e)}(0,n(61369).registerRawHelper)("html-safe",i)},56849:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(61369),i=n(82099);function s(e,t){return i.default.t(e?"yes_value":"no_value",t)}(0,r.registerRawHelper)("i18n-yes-no",s)},91423:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(61369),i=n(82099);function s(e,t){return i.default.t(e,t)}(0,r.registerRawHelper)("i18n",s)},96049:(e,t,n)=>{"use strict";function r(e,t){if(!(this instanceof r))return new r(e,t);this.namespace=e,this.value=t}n.r(t),n.d(t,{default:()=>i}),r.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},r.prototype.unhook=function(e,t,n){if(n&&"AttributeHook"===n.type&&n.namespace===this.namespace)return;let r=t.indexOf(":"),i=r>-1?t.slice(r+1):t;e.removeAttributeNS(this.namespace,i)},r.prototype.type="AttributeHook";const i=r},80709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{avatarImg:()=>p,avatarUrl:()=>d,getRawAvatarSize:()=>u,getRawSize:()=>c,tinyAvatar:()=>h,translateSize:()=>l});var r=n(53134),i=n(47582),s=n(61369),o=n(12757);let a=null;function l(e){switch(e){case"tiny":case"small":return 24;case"medium":case"large":return 48;case"extra_large":return 96;case"huge":return 144}return e}function c(e){const t=window.devicePixelRatio||1;let n=1;return t>1.1&&t<2.1?n=2:t>=2.1&&(n=3),e*n}function u(e){a??=(0,s.helperContext)().siteSettings.avatar_sizes.split("|").map((e=>parseInt(e,10))).sort(((e,t)=>e-t)),e=c(e);for(let t=0;t<a.length;t++)if(a[t]>=e)return a[t];return a[a.length-1]}function d(e,t){let{customGetURL:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return"";const r=u(l(t)),s=e.replace(/\{size\}/g,r);return(n||i.getURLWithCDN)(s)}function p(e,t){const n=l(e.size);let i=d(e.avatarTemplate,n,{customGetURL:t});if(!i)return"";const s="avatar"+(e.extraClasses?" "+e.extraClasses:"");let o="";return e.title&&(o=` title='${(0,r.default)(e.title||"")}'`),`<img loading='lazy' alt='' width='${n}' height='${n}' src='${i}' class='${s}'${o}>`}function h(e,t){return p((0,o.deepMerge)({avatarTemplate:e,size:"tiny"},t))}},56111:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(51372),i=n(34405);function s(){if((0,i.isTesting)()){const e=arguments[arguments.length-1],t="boolean"==typeof e;let n=[].slice.call(arguments,0,t?-2:-1);return n.push(10),t&&n.push(e),r.debounce.apply(void 0,n)}return(0,r.debounce)(...arguments)}},54736:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,registerDeprecationHandler:()=>c,withSilencedDeprecations:()=>u,withSilencedDeprecationsAsync:()=>d});const r=[],i=new Set,s=window.deprecationWorkflow,o=s?.config?.workflow;let a;function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{id:n,since:a,dropFrom:l,url:c,raiseError:u}=t;if(n&&i.has(n))return;e=["Deprecation notice:",e],a&&e.push(`[deprecated since Discourse ${a}]`),l&&e.push(`[removal in Discourse ${l}]`),n&&e.push(`[deprecation id: ${n}]`),c&&e.push(`[info: ${c}]`),e=e.join(" ");let d="";window.require.has("discourse/lib/source-identifier")&&(d=window.require("discourse/lib/source-identifier").consolePrefix()||""),r.forEach((n=>n(e,t)));const p=o?.find((e=>e.matchId===n));if(u||"throw"===p?.handler||!p&&s?.throwOnUnhandled)throw e;"silence"!==p?.handler&&console.warn(...[d,e].filter(Boolean))}function c(e){r.push(e)}function u(e,t){p();const n=[].concat(e);try{n.forEach((e=>i.add(e)));const e=t();if(e instanceof Promise)throw new Error("withSilencedDeprecations callback returned a promise. Use withSilencedDeprecationsAsync instead.");return e}finally{n.forEach((e=>i.delete(e)))}}async function d(e,t){p();const n=[].concat(e);try{return n.forEach((e=>i.add(e))),await t()}finally{n.forEach((e=>i.delete(e)))}}function p(){a||(a=(e,t,n)=>{t?.id&&i.has(t.id)||n(e,t)},window.require.has("@ember/debug")&&window.require("@ember/debug").registerDeprecationHandler(a))}},50542:(e,t,n)=>{"use strict";function r(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}n.r(t),n.d(t,{default:()=>p});const s=/^discourse\/plugins\/([^\/]+)\/(.*)$/,o=/^discourse\/theme-([^\/]+)\/(.*)$/,a=["discourse/","admin/"];function l(e){for(const t of a)if(e.startsWith(t))return!0;return!1}function c(e){return e.includes("/templates/")}var u=new WeakSet;function d(e){let t,n,r,i=e;(t=i.match(s))?(i=t[2],r=this.pluginTemplates):(n=i.match(o))?(i=n[2],r=this.themeTemplates):r=this.coreTemplates,i=i.replace(/^discourse\/templates\//,""),function(e,t,n){let r=e.get(t);r??=[],r.push(n),e.set(t,r)}(r,i,e)}const p=new class{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=u),t.add(e),r(this,"coreTemplates",new Map),r(this,"pluginTemplates",new Map),r(this,"themeTemplates",new Map),r(this,"prioritizedCaches",[this.themeTemplates,this.pluginTemplates,this.coreTemplates])}setModuleNames(e){this.coreTemplates.clear(),this.pluginTemplates.clear(),this.themeTemplates.clear();for(const t of e)l(t)&&c(t)&&i(this,u,d).call(this,t)}resolve(e){for(const t of this.prioritizedCaches){const n=t.get(e);if(n)return n[n.length-1]}}keys(){return[...new Set([...this.coreTemplates.keys(),...this.pluginTemplates.keys(),...this.themeTemplates.keys()])]}}},33057:(e,t,n)=>{"use strict";function r(e){const t=document.createElement("template");return e=e.trim(),t.innerHTML=e,t.content.children}n.r(t),n.d(t,{default:()=>r})},53134:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/[&<>"'`]/g,s=/[&<>"'`]/;function o(e){return r[e]}function a(e){return null===e?"":e?(e=""+e,s.test(e)?e.replace(i,o):e):e+""}},37080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getOwner:()=>a,getOwnerWithFallback:()=>o,getRegister:()=>c,setDefaultOwner:()=>l});var r=n(72326),i=n(54736);let s={};function o(e){return r.getOwner?(0,r.getOwner)(e||s)||(0,r.getOwner)(s):e.container}function a(e){return(0,i.default)("Importing getOwner from `discourse-common/lib/get-owner` is deprecated. See the alternatives on meta.",{since:"3.2",id:"discourse.get-owner-with-fallback",url:"https://meta.discourse.org/t/292080"}),o(e)}function l(e){(0,r.setOwner)(s,e)}function c(e){const t=o(e),n={lookup:function(){return t.lookup(...arguments)},lookupFactory:function(){return t.factoryFor?t.factoryFor(...arguments):t._lookupFactory?t._lookupFactory(...arguments):void 0},deprecateContainer(e){Object.defineProperty(e,"container",{get:()=>((0,i.default)("Use `this.register` or `getOwner` instead of `this.container`",{id:"discourse.this-container"}),n)})}};return(0,r.setOwner)(n,t),n}},47582:(e,t,n)=>{"use strict";let r,i,s,o,a,l,c;function u(e){return void 0===s&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||""),e?"/"===e||/^\/[^\/]/.test(e)?o.test(e)?e:("/"!==e[0]&&(e="/"+e),s+e):e:"/"===s?"":s}function d(e){return e=u(e),r&&/^\/[^\/]/.test(e)?e=r+e:l&&e.startsWith(a)&&(e=e.replace(a,l)),e}function p(e){return i+m(e)}function h(e){return e.startsWith(i)}function m(e){return s?e.replace(o,"$1"):e}function g(e){s=e,o=new RegExp(`^${s}(/|$)`)}function f(e,t,n,a){a=a||{},r=e,i=t,g(n),a?.snapshot&&(c={cdn:r,baseUri:s,baseUrl:i,configBaseUrl:t,baseUriMatcher:o})}function b(){c&&(r=c.cdn,s=c.baseUri,i=c.baseUrl,o=c.baseUriMatcher,a=c.S3BaseUrl,l=c.S3CDN)}function _(e,t,n){a=e,l=t,n?.snapshot&&(c=c||{},c.S3BaseUrl=a,c.S3CDN=l)}function y(e){void 0===s&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||"");let t=window.location.origin,n="/"===e[0]?s||"/":t+s||t;return e.startsWith(n)}n.r(t),n.d(t,{default:()=>u,getAbsoluteURL:()=>p,getURLWithCDN:()=>d,isAbsoluteURL:()=>h,restoreBaseUri:()=>b,samePrefix:()=>y,setPrefix:()=>g,setupS3CDN:()=>_,setupURL:()=>f,withoutPrefix:()=>m})},61369:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createHelperContext:()=>_,findHelper:()=>g,helperContext:()=>y,htmlHelper:()=>d,makeArray:()=>u,registerHelper:()=>m,registerHelpers:()=>f,registerRawHelper:()=>v,registerUnbound:()=>w});var r=n(60859),i=n.n(r),s=n(48163),o=n(16572),a=n(24434),l=n(54736),c=n(11205);function u(e){return null==e?[]:Array.isArray(e)?e:[e]}function d(e){return i().helper((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n=n.length>1?n[0].concat({hash:n[n.length-1]}):n,(0,a.htmlSafe)(e.apply(this,n)||"")}))}const p={};function h(e,t,n){if(n.types&&n.data.view){let e=n.data.view;return e.getStream?e.getStream(t).value():e.getAttr(t)}return(0,s.get)(e,t)}function m(e,t){p[e]=i().helper(t)}function g(e){return p[e]||p[(0,o.dasherize)(e)]}function f(e){Object.keys(p).forEach((t=>{e.register(`helper:${t}`,p[t],{singleton:!1})}))}let b;function _(e){b=e}function y(){return b}function w(e,t){(0,l.default)(`[registerUnbound ${e}] registerUnbound is deprecated. Instead, you should export a default function from 'discourse/helpers/${e}.js'. If the helper is also used in raw-hbs, you can register it using 'registerRawHelper'.`,{id:"discourse.register-unbound"}),p[e]=i().extend({compute:(e,n)=>t(...e,n)}),v(e,t)}function v(e,t){c.default.registerHelper(e,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];const i=n.pop(),s=n;for(let e=0;e<s.length;e++)!i.types||"ID"!==i.types[e]&&"PathExpression"!==i.types[e]||(s[e]=h(this,s[e],i));return t.call(this,...s,function(e,t){let n={};const r=t.hash;return r&&(t.hashTypes?Object.keys(r).forEach((function(i){const s=t.hashTypes[i];"STRING"===s||"StringLiteral"===s||"SubExpression"===s?n[i]=r[i]:"ID"!==s&&"PathExpression"!==s||(n[i]=h(e,r[i],t))})):n=r),n}(this,i))}))}},3961:(e,t,n)=>{"use strict";n.r(t),n.d(t,{REPLACEMENTS:()=>h,SVG_NAMESPACE:()=>c,convertIconClass:()=>w,disableMissingIconWarning:()=>g,enableMissingIconWarning:()=>f,iconHTML:()=>_,iconNode:()=>y,isExistingIconId:()=>T,registerIconRenderer:()=>v,renderIcon:()=>b,replaceIcon:()=>m,setIconList:()=>x});var r=n(41221),i=n(34405),s=n(96049),o=n(54736),a=n(53134),l=n(82099);const c="http://www.w3.org/2000/svg";let u,d=[],p=!0;const h={"d-tracking":"bell","d-muted":"discourse-bell-slash","d-regular":"far-bell","d-watching":"discourse-bell-exclamation","d-watching-first":"discourse-bell-one","d-drop-expanded":"caret-down","d-drop-collapsed":"caret-right","d-unliked":"far-heart","d-liked":"heart","d-post-share":"link","d-topic-share":"link","notification.mentioned":"at","notification.group_mentioned":"users","notification.quoted":"quote-right","notification.replied":"reply","notification.posted":"discourse-bell-exclamation","notification.watching_category_or_tag":"discourse-bell-exclamation","notification.edited":"pencil-alt","notification.bookmark_reminder":"discourse-bookmark-clock","notification.liked":"heart","notification.liked_2":"heart","notification.liked_many":"heart","notification.liked_consolidated":"heart","notification.private_message":"envelope","notification.invited_to_private_message":"envelope","notification.invited_to_topic":"hand-point-right","notification.invitee_accepted":"user","notification.moved_post":"sign-out-alt","notification.linked":"link","notification.granted_badge":"certificate","notification.topic_reminder":"far-clock","notification.watching_first_post":"discourse-bell-one","notification.group_message_summary":"users","notification.post_approved":"check","notification.membership_request_accepted":"user-plus","notification.membership_request_consolidated":"users","notification.reaction":"bell","notification.votes_released":"plus","notification.chat_quoted":"quote-right"};function m(e,t){h[e]=t}function g(){p=!1}function f(){p=!1}function b(e,t,n){n||={};for(const r of d){const i=r[e];if(!i)continue;const s=i({id:t,replacementId:h[t]},n);if(s)return s}}function _(e,t){return b("string",e,t)}function y(e,t){return b("node",e,t)}function w(e){return e.replace("far fa-","far-").replace("fab fa-","fab-").replace("fas fa-","").replace("fa-","").trim()}function v(e){d.unshift(e)}function k(e,t){let n=`fa d-icon d-icon-${e.replacementId&&e.id.includes("notification.")?e.replacementId:e.id} svg-icon`;return t&&t.class&&(n+=" "+t.class),n}function x(e){u=e}function T(e){return u?.includes(e)}function S(e){let t=e.replacementId||e.id||"";return t=t.replace(" unpinned",""),function(e){p&&(0,i.isDevelopment)()&&!T(e)&&console.warn(`The icon "${e}" is missing from the SVG subset.`)}(t),t}v({name:"font-awesome",string(e,t){const n=(0,a.default)(S(e));let r=`<svg class='${(0,a.default)(k(e,t))} svg-string'`;return t.label?r+=" aria-hidden='true'":t["aria-label"]&&(r+=` aria-hidden='false' aria-label='${(0,a.default)(t["aria-label"])}'`),r+=` xmlns="${c}"><use href="#${n}" /></svg>`,t.label&&(r+=`<span class='sr-only'>${(0,a.default)(t.label)}</span>`),t.title&&(r=`<span class="svg-icon-title" title='${(0,a.default)(l.default.t(t.title))}'>${r}</span>`),t.translatedtitle&&((0,o.default)("use 'translatedTitle' option instead of 'translatedtitle'",{since:"2.9.0.beta6",dropFrom:"2.10.0.beta1",id:"discourse.icon-renderer-translatedtitle"}),t.translatedTitle=t.translatedtitle),t.translatedTitle&&(r=`<span class="svg-icon-title" title='${(0,a.default)(t.translatedTitle)}'>${r}</span>`),r},node(e,t){const n=S(e),i=k(e,t)+" svg-node",o=(0,r.h)("svg",{attributes:{class:i,"aria-hidden":!0},namespace:c},[(0,r.h)("use",{href:(0,s.default)("http://www.w3.org/1999/xlink",`#${(0,a.default)(n)}`),namespace:c})]);return t.title?(0,r.h)("span",{title:t.title,attributes:{class:"svg-icon-title"}},[o]):o}})},12933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(51372),i=n(34405);function s(){if((0,i.isTesting)()&&"number"==typeof[...arguments].at(-1)){let e=[].slice.call(arguments,0,-1);return e.push(10),r.later.apply(void 0,e)}return(0,r.later)(...arguments)}},543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});let{define:r,require:i}=globalThis;function s(e,t){i.has(e)||r(e,t)}},12757:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e}function i(){function e(t,n){return Object.keys(n).forEach((i=>{const s=t[i],o=n[i];Array.isArray(s)&&Array.isArray(o)?t[i]=s.concat(o):r(s)&&r(o)?t[i]=e(Object.assign({},s),o):t[i]=o})),t}for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(n.some((e=>e&&!r(e))))throw new Error('deepMerge: all values should be of type "object"');const s=n.shift();let o;for(;o=n.shift();)e(s,o||{});return s}function s(e,t){if(e===t)return!0;if(r(e)&&r(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!s(e[n],t[n]))return!1;return!0}}function o(e){return JSON.parse(JSON.stringify(e))}function a(e){const t=Reflect.ownKeys(e);for(const n of t){const t=e[n];(t&&"object"==typeof t||"function"==typeof t)&&a(t)}return Object.freeze(e)}n.r(t),n.d(t,{cloneJSON:()=>o,deepEqual:()=>s,deepFreeze:()=>a,deepMerge:()=>i})},48181:(e,t,n)=>{"use strict";n.r(t),n.d(t,{POPULAR_THEMES:()=>r});const r=[{name:"Air",value:"https://github.com/discourse/discourse-air",preview:"https://discourse.theme-creator.io/theme/awesomerobot/air-theme",description:"A clean and modern theme for Discourse.",meta_url:"https://meta.discourse.org/t/discourse-air-theme/197703"},{name:"Graceful",value:"https://github.com/discourse/graceful",preview:"https://discourse.theme-creator.io/theme/awesomerobot/graceful",description:"A light and graceful theme for Discourse.",meta_url:"https://meta.discourse.org/t/a-graceful-theme-for-discourse/93040"},{name:"Material Design Theme",value:"https://github.com/discourse/material-design-stock-theme",preview:"https://discourse.theme-creator.io/theme/tshenry/material-design",description:"Inspired by Material Design, this theme comes with several color palettes.",meta_url:"https://meta.discourse.org/t/material-design-stock-theme/47142"},{name:"Mint",value:"https://github.com/discourse/discourse-mint-theme",preview:"https://discourse.theme-creator.io/theme/awesomerobot/mint",description:"A minty colored theme with featured homepage categories and a search banner.",meta_url:"https://meta.discourse.org/t/mint-a-modern-theme-for-discourse/202822"},{name:"Sam's Simple Theme",value:"https://github.com/discourse/discourse-simple-theme",preview:"https://discourse.theme-creator.io/theme/sam/simple",description:"Simplified front page design with classic colors and typography.",meta_url:"https://meta.discourse.org/t/sams-personal-minimal-topic-list-design/23552"},{name:"Brand Header",value:"https://github.com/discourse/discourse-brand-header",preview:"https://discourse.theme-creator.io/theme/vinothkannans/brand-header",description:"Add an extra top header with your logo, navigation links and social icons.",meta_url:"https://meta.discourse.org/t/brand-header-theme-component/77977",component:!0},{name:"Custom Header Links",value:"https://github.com/discourse/discourse-custom-header-links",preview:"https://discourse.theme-creator.io/theme/awesomerobot/custom-header-links",description:"Easily add custom text-based links to the header.",meta_url:"https://meta.discourse.org/t/custom-header-links/90588",component:!0},{name:"GIFs Search",value:"https://github.com/discourse/discourse-gifs",description:"Adds a button to easily search and insert GIFs in posts.",meta_url:"https://meta.discourse.org/t/discourse-gifs-component/158738",component:!0},{name:"Category Banners",value:"https://github.com/discourse/discourse-category-banners",preview:"https://discourse.theme-creator.io/theme/awesomerobot/discourse-category-banners",description:"Show banners on category pages using your existing category details.",meta_url:"https://meta.discourse.org/t/discourse-category-banners/86241",component:!0},{name:"Tag Banners",value:"https://github.com/discourse/discourse-tag-banners",preview:"https://discourse.theme-creator.io/theme/awesomerobot/tag-banners",description:"Show banners on tag pages using your existing tag details.",meta_url:"https://meta.discourse.org/t/tag-banners/124240",component:!0},{name:"Kanban Board",value:"https://github.com/discourse/discourse-kanban-theme",preview:"https://discourse.theme-creator.io/theme/david/kanban",description:"Display and organize topics using a Kanban board interface.",meta_url:"https://meta.discourse.org/t/kanban-board-theme-component/118164",component:!0},{name:"Sidebar Theme Toggle",value:"https://github.com/discourse/discourse-sidebar-theme-toggle",description:"Displays a theme selector in the sidebar menu’s footer provided there is more than one user-selectable theme.",meta_url:"https://meta.discourse.org/t/sidebar-theme-toggle/242802",component:!0},{name:"Header Submenus",value:"https://github.com/discourse/discourse-header-submenus",preview:"https://discourse.theme-creator.io/theme/awesomerobot/header-submenus",description:"Lets you build a header menu with submenus (dropdowns).",meta_url:"https://meta.discourse.org/t/header-submenus/94584",component:!0},{name:"Automatic Table of Contents",value:"https://github.com/discourse/DiscoTOC",description:"Generates an interactive table of contents on the sidebar of your topic with a simple click in the composer.",meta_url:"https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143",component:!0},{name:"Easy Responsive Footer",value:"https://github.com/discourse/Discourse-easy-footer",preview:"https://discourse.theme-creator.io/theme/Johani/easy-footer",description:"Add a fully responsive footer without writing any HTML.",meta_url:"https://meta.discourse.org/t/easy-responsive-footer/95818",component:!0}]},24816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RUNTIME_OPTIONS:()=>i,registerRawHelpers:()=>s});var r=n(48163);const i={allowProtoPropertiesByDefault:!0};function s(e,t,n){if(e.helpers||(e.helpers=Object.create(t.helpers)),function(e,t){e.registerHelper("helperMissing",(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const s=r[r.length-1];if(s?.name)return t.lookup(`helper:${s.name}`),e.helpers[s.name]?e.helpers[s.name]?.call(this,...arguments):e.helpers.get.call(this,...arguments)}))}(e,n),e.__helpers_registered)return;function i(t){const n=e.helpers[t];e.helpers[t]=function(t,r){return n.apply(this,[e.helpers.get(t,r),r])}}e.__helpers_registered=!0,e.helpers.get=function(e,t){if(!e||!t.contexts)return;if("string"!=typeof e)return e;let n=t.contexts[0],i=n[e];return e.toString().startsWith("controller.")&&(e=e.slice(e.indexOf(".")+1)),void 0===i?(0,r.get)(n,e):i},e.registerHelper("each",(function(e,t,n,i){if(void 0===n)return;let s=(0,r.get)(this,n),o=[];for(let t=0;t<s.length;t++){let n={};n[e]=s[t],o.push(i.fn(n))}return o.join("")}));const s=e.helpers.if;e.helpers.unless=function(t,n){return s.apply(this,[e.helpers.get(t,n),{fn:n.inverse,inverse:n.fn,hash:n.hash}])},i("if"),i("with")}},11205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compile:()=>u,default:()=>d,precompile:()=>c,template:()=>l});var r=n(31706),i=n.n(r);const s=i().create();function o(e,t){let n={type:"PathExpression",data:!1,depth:e.path.depth,loc:e.path.loc};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function a(e){let t=new(i().Visitor);t.mutating=!0,t.MustacheStatement=function(e){return e.params.length||e.hash||(e.params[0]=e.path,e.path=o(e,{parts:["get"],original:"get",strict:!0,falsy:!0})),i().Visitor.prototype.MustacheStatement.call(this,e)},t.BlockStatement=function(e){if("each"===e.path.original&&1===e.params.length){let t=e.program.blockParams[0];e.params=[o(e,{original:t}),{type:"CommentStatement",value:"in"},e.params[0]],delete e.program.blockParams}return i().Visitor.prototype.BlockStatement.call(this,e)},t.accept(e)}function l(){return s.template.apply(this,arguments)}function c(){return s.precompile.apply(this,arguments)}function u(){return s.compile.apply(this,arguments)}i().Compiler&&(s.Compiler=function(){},s.Compiler.prototype=Object.create(i().Compiler.prototype),s.Compiler.prototype.compiler=s.Compiler,s.JavaScriptCompiler=function(){},s.JavaScriptCompiler.prototype=Object.create(i().JavaScriptCompiler.prototype),s.JavaScriptCompiler.prototype.compiler=s.JavaScriptCompiler,s.JavaScriptCompiler.prototype.namespace="RawHandlebars",s.precompile=function(e,t){let{plugins:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i().parse(e);a(r),n.forEach((e=>e(r)));let o={knownHelpers:{get:!0},data:!0,stringParams:!0};t=void 0===t||t;let l=(new s.Compiler).compile(r,o);return(new s.JavaScriptCompiler).compile(l,o,void 0,t)},s.compile=function(e){let{plugins:t=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i().parse(e);a(n),t.forEach((e=>e(n)));let r={data:!0,stringParams:!0},o=(new s.Compiler).compile(n,r),l=(new s.JavaScriptCompiler).compile(o,r,void 0,!0),c=s.template(l);return c.isMethod=!1,c});const d=s},21896:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__DISCOURSE_RAW_TEMPLATES:()=>o,addRawTemplate:()=>a,buildRawConnectorCache:()=>u,eagerLoadRawTemplateModules:()=>d,findRawTemplate:()=>c,removeRawTemplate:()=>l});var r=n(99134),i=n.n(r),s=n(71384);const o={};function a(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).core&&o[e]||(o[e]=t)}function l(e){delete o[e]}function c(e){return(0,s.getResolverOption)("mobileView")?o[`javascripts/mobile/${e}`]||o[`javascripts/${e}`]||o[`mobile/${e}`]||o[e]:o[`javascripts/${e}`]||o[e]}function u(){let e={};return Object.keys(o).forEach((t=>{const n=t.split("/"),r=n.indexOf("connectors");if(r>=0){const i=n[r+1];e[i]??=[],e[i].push({template:o[t]})}})),e}function d(){for(const e of Object.keys(requirejs.entries))e.includes("/raw-templates/")&&i()(e)}},30132:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class r{constructor(e,t){this.name=e,this.parent=t,this.children=new Map,this.leafIndex=null}}class i{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this._trie=new r,this.separator=e,this._nextIndex=0}add(e){const t=e.split(this.separator);let n=this._trie;for(let e=t.length-1;e>=0;e--){let i=n.children.get(t[e]);i||(i=new r(t[e],n),n.children.set(t[e],i)),n=i}n.leafIndex=this._nextIndex++}withSuffix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=e.split(this.separator);let r=this._trie;for(let e=n.length-1;e>=0;e--)if(r=r.children.get(n[e]),!r)return[];const i=[],s=[r];for(;s.length>0;){const e=s.pop();null!==e.leafIndex&&i.push(e),s.push(...e.children.values())}return i.sort(((e,t)=>e.leafIndex<t.leafIndex?-1:1)),null!==t&&i.splice(t),i.map((e=>{const t=[e.name];let n=e;for(;"string"==typeof n.parent?.name;)t.push(n.parent.name),n=n.parent;return t.join(this.separator)}))}}},71384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildResolver:()=>b,clearResolverOptions:()=>m,expireModuleTrieCache:()=>f,getResolverOption:()=>h,setResolverOption:()=>p});var r=n(16572),i=n(57242),s=n(54736),o=n(50542),a=n(61369),l=n(30132);let c={},u=null;const d=new Map(Object.entries({"controller:discovery.categoryWithID":{newName:"controller:discovery.category",since:"2.6.0"},"controller:discovery.parentCategory":{newName:"controller:discovery.category",since:"2.6.0"},"controller:tags-show":{newName:"controller:tag-show",since:"2.6.0"},"controller:tags.show":{newName:"controller:tag.show",since:"2.6.0"},"controller:tagsShow":{newName:"controller:tagShow",since:"2.6.0"},"route:discovery.categoryWithID":{newName:"route:discovery.category",since:"2.6.0"},"route:discovery.parentCategory":{newName:"route:discovery.category",since:"2.6.0"},"route:tags-show":{newName:"route:tag-show",since:"2.6.0"},"route:tags.show":{newName:"route:tag.show",since:"2.6.0"},"route:tagsShow":{newName:"route:tagShow",since:"2.6.0"},"app-events:main":{newName:"service:app-events",since:"2.4.0",dropFrom:"2.9.0.beta1"},"store:main":{newName:"service:store",since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",silent:!0},"search-service:main":{newName:"service:search",since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",silent:!0},"key-value-store:main":{newName:"service:key-value-store",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"pm-topic-tracking-state:main":{newName:"service:pm-topic-tracking-state",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"message-bus:main":{newName:"service:message-bus",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"site-settings:main":{newName:"service:site-settings",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"capabilities:main":{newName:"service:capabilities",since:"3.1.0.beta4",dropFrom:"3.2.0.beta1",silent:!0},"current-user:main":{newName:"service:current-user",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"session:main":{newName:"service:session",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"site:main":{newName:"service:site",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"topic-tracking-state:main":{newName:"service:topic-tracking-state",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"controller:composer":{newName:"service:composer",since:"3.1.0.beta3",dropFrom:"3.2.0",silent:!0}}));function p(e,t){c[e]=t}function h(e){return c[e]}function m(){c={}}function g(e){if(!u){u=new l.default("/");const e=["discourse/","discourse-common/","select-kit/","admin/","truth-helpers/"];Object.keys(requirejs.entries).forEach((t=>{e.some((e=>t.startsWith(e)))&&!t.includes("/templates/")&&u.add(t)}))}return u.withSuffix(e,1)[0]||u.withSuffix(`${e}/index`,1)[0]}function f(){u=null}function b(e){return class extends i.default{resolveRouter(){const t=`${e}/router`;if(requirejs.entries[t])return requirejs(t,null,null,!0).default}_normalize(e){const t=d.get(e);t&&(t.silent||(0,s.default)(`"${e}" is deprecated, use "${t.newName}" instead`,{since:t.since,dropFrom:t.dropFrom,id:"discourse.resolver-resolutions"}),e=t.newName);const n=e.split(":"),i=n[0];let o;if(o="template"===i&&n[1]?.includes("connectors/")?"template:"+n[1].replace(/_/g,"-"):super._normalize(e),n.length>1&&("controller"===i||"route"===i||"template"===i)){let e;if(n[1].includes(".")||n[1].includes("/")){const t=(0,r.dasherize)(n[1].replace(/[\.\/]/g,"-")),s=`admin/${i}s/`;(g(`${i}s/${t}`)||requirejs.entries[s+t]||requirejs.entries[s+t.replace(/^admin[-]/,"")]||requirejs.entries[s+t.replace(/^admin[-]/,"").replace(/-/g,"_")])&&(e=i+":"+t)}e&&e!==o&&(o=e)}return o}chooseModuleName(e,t){let n=super.chooseModuleName(e,t);if(n)return n;const i=t.fullNameWithoutType;let s=[i];i.includes("/")&&s.push(t.fullNameWithoutType.replace(/\//g,"-"));for(let e of s){const i=t.type+"s/"+e;if(n=g((0,r.dasherize)(i)),n)return n}}resolveHelper(e){return(0,a.findHelper)(e.fullNameWithoutType)}resolveRoute(e){if("basic"===e.fullNameWithoutType)return requirejs("discourse/routes/discourse",null,null,!0).default}resolveTemplate(e){return this.findMobileTemplate(e)||this.findTemplate(e)||this.findAdminTemplate(e)||this.findLoadingTemplate(e)||this.findConnectorTemplate(e)||this.discourseTemplateModule("not_found")}findLoadingTemplate(e){if(e.fullNameWithoutType.match(/loading$/))return this.discourseTemplateModule("loading")}findConnectorTemplate(e){if(e.fullName.startsWith("template:connectors/")){const t=this.parseName(e.fullName.replace("template:connectors/","template:").replace("components/",""));return this.findTemplate(t)}}findMobileTemplate(e){if(c.mobileView)return this.findTemplate(e,"mobile/")}discourseTemplateModule(e){const t=o.default.resolve(e);if(t)return window.require(t).default}findTemplate(e,t){t=t||"";const n=e.fullNameWithoutType,i=(0,r.decamelize)(n).replace(/-/g,"_"),s=n.split("/");return this.discourseTemplateModule(t+n.replace(/[\.-]/g,"/"))||this.discourseTemplateModule(t+n)||this.discourseTemplateModule(t+i)||this.discourseTemplateModule(t+i.replace("_","/"))||this.discourseTemplateModule(`${t}${s.slice(0,-1).join("/")}/${s[s.length-1].replace(/-/g,"_")}`)||this.discourseTemplateModule(t+n.replace(/\//g,"-"))}findAdminTemplate(e){if("admin"===e.fullNameWithoutType)return this.discourseTemplateModule("admin/templates/admin");let t,n,r;if(e.fullNameWithoutType.startsWith("components/"))return this.findTemplate(e,"admin/templates/")||this.findTemplate(e,"admin/");if(/^admin[_\.-]/.test(e.fullNameWithoutType)?t=e.fullNameWithoutType.slice(6):(n=e.fullNameWithoutType.match(/^admin([A-Z])(.+)$/))&&(t=`${n[1].toLowerCase()}${n[2]}`),t){let n=this.parseName(`template:${t}`);r=this.findTemplate(n,"admin/templates/")||this.findTemplate(e,"admin/templates/")||this.findTemplate(n,"admin/")}return r}}}},70586:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(63546);function i(e,t){return function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];if(0===i.length)throw new Error(t);return function(t,n,s){return{enumerable:s.enumerable,configurable:s.configurable,writable:s.writable,initializer(){let t=(0,r.default)(s);return e.apply(null,i.concat(t))}}}}}},57555:(e,t,n)=>{"use strict";n.r(t),n.d(t,{afterRender:()=>_,alias:()=>T,and:()=>S,bind:()=>y,bool:()=>C,collect:()=>P,debounce:()=>v,default:()=>b,empty:()=>O,equal:()=>E,filter:()=>D,filterBy:()=>I,gt:()=>j,gte:()=>Z,lt:()=>A,lte:()=>M,map:()=>N,mapBy:()=>z,match:()=>L,max:()=>F,min:()=>U,none:()=>R,not:()=>B,notEmpty:()=>$,observes:()=>x,on:()=>k,oneWay:()=>q,or:()=>H,readOnly:()=>w,reads:()=>W,setDiff:()=>K,sort:()=>V,sum:()=>G,union:()=>Y,uniq:()=>Q});var r=n(48163),i=n(6264),s=n(74529),o=n.n(s),a=n(40375),l=n(51372),c=n(68406),u=n(56111),d=n(54736),p=n(70586),h=n(63546),m=n(64891),g=n(27072),f=n(34662);function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,g.default)(t[t.length-1])?(0,m.default)(...arguments):function(){return(0,m.default)(...arguments,t)}}function _(e,t,n){const r=n.value;n.value=function(){(0,l.schedule)("afterRender",(()=>{if(!this.isDestroying&&!this.isDestroyed)return r.apply(this,arguments)}))}}function y(e,t,n){return{configurable:!0,get(){const e=(0,l.bind)(this,n.value),r={...n,value:e};return Object.defineProperty(this,t,r),e}}}function w(e,t,n){return{writable:!1,enumerable:n.enumerable,configurable:n.configurable,initializer:()=>(0,h.default)(n).readOnly()}}function v(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){return{enumerable:i.enumerable,configurable:i.configurable,get:function(){var n=this;const s=i.value,o=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(0,u.default)(n,s,...i,e,t)};return Object.defineProperty(this,r,{value:o,enumerable:i.enumerable,configurable:i.configurable}),o}}}}function k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e instanceof o()?((0,d.default)("Using 'on' from 'discourse-common/utils/decorators' as a class property decorator is deprecated. You should import it from '@ember-decorators/object' instead.",{id:"discourse.utils-decorators-on",from:"3.1.0.beta2"}),(0,c.on)(...t)(...arguments)):(0,p.default)(a.on,"Can not `on` without event names")(...t)(...arguments)}}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e instanceof o()?((0,d.default)("Using 'observes' from 'discourse-common/utils/decorators' as a class property decorator is deprecated. You should import it from '@ember-decorators/object' instead.",{id:"discourse.utils-decorators-observes",from:"3.1.0.beta2"}),(0,c.observes)(...t)(...arguments)):(0,p.default)(r.observer,"Can not `observe` without property names")(...t)(...arguments)}}const T=(0,f.default)(i.alias),S=(0,f.default)(i.and),C=(0,f.default)(i.bool),P=(0,f.default)(i.collect),O=(0,f.default)(i.empty),E=(0,f.default)(i.equal),D=(0,f.default)(i.filter),I=(0,f.default)(i.filterBy),j=(0,f.default)(i.gt),Z=(0,f.default)(i.gte),A=(0,f.default)(i.lt),M=(0,f.default)(i.lte),N=(0,f.default)(i.map),z=(0,f.default)(i.mapBy),L=(0,f.default)(i.match),F=(0,f.default)(i.max),U=(0,f.default)(i.min),R=(0,f.default)(i.none),B=(0,f.default)(i.not),$=(0,f.default)(i.notEmpty),q=(0,f.default)(i.oneWay),H=(0,f.default)(i.or),W=(0,f.default)(i.reads),K=(0,f.default)(i.setDiff),V=(0,f.default)(i.sort),G=(0,f.default)(i.sum),Y=(0,f.default)(i.union),Q=(0,f.default)(i.uniq)},26730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={offset:function(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX}},position:function(e){return{top:e.offsetTop,left:e.offsetLeft}}}},98233:(e,t,n)=>{"use strict";function r(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}n.r(t),n.d(t,{default:()=>r})},63546:(e,t,n)=>{"use strict";function r(e){return e.value||"function"==typeof e.initializer&&e.initializer()}n.r(t),n.d(t,{default:()=>r})},64891:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(74529),s=n.n(i),o=n(63546);function a(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const a=(0,o.default)(n);return"function"==typeof a&&e instanceof s()?(n.writable=!1,n.initializer=void 0,n.value=void 0,n.get=c(i,a),(0,r.computed)(...i)(e,t,n)):{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,initializer(){let e;if(!n.writable)throw new Error("ember-computed-decorators does not support using getters and setters");if("object"==typeof a){let t={};a.get&&(t.get=c(i,a.get)),a.set&&(t.set=function(e,t){return e=e.map(l),function(n,i){let s=e.map((e=>(0,r.get)(this,e)));return s.unshift(i),t.apply(this,s)}}(i,a.set)),e=t}else e=c(i,a);return r.computed.apply(null,i.concat(e))}}}function l(e){const t=e.split(".");let n;for(n=0;n<t.length&&"@each"!==t[n]&&"[]"!==t[n]&&!t[n].includes("{");n++);return t.slice(0,n).join(".")}function c(e,t){return e=e.map(l),function(){let n=e.map((e=>(0,r.get)(this,e)));return t.apply(this,n)}}},27072:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e&&"writable"in e&&"enumerable"in e&&"configurable"in e}n.r(t),n.d(t,{default:()=>r})},34662:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(54736),i=n(27072);function s(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,initializer:()=>r(...i)}}function o(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(0,i.default)(n[n.length-1])?s(...n,e):((0,r.default)(`Importing ${e.name} from 'discourse-common/utils/decorators' is deprecated. You should instead import it from '@ember/object/computed' directly.`,{id:"discourse.utils-decorators-import"}),function(t,r,i){return s(t,r,i,e,n)})}}},99492:(e,t,n)=>{"use strict";function r(e){const t=e.case_sensitive?"":"i";return new RegExp(e.regexp,`${t}gu`)}function i(e){const[[t,n]]=Object.entries(e);return{...n,regexp:t}}n.r(t),n.d(t,{createWatchedWordRegExp:()=>r,toWatchedWord:()=>i})},91707:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(42240),i=n(97202),s=n(57848),o=n.n(s),a=n(3961);const l={avatar:i.avatarFor,dateNode:r.dateNode,iconNode:a.iconNode,rawHtml:o()}},71927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{aliasMethod:()=>i,empty:()=>s});const r=Object.prototype.hasOwnProperty;function i(e){return function(){return this[e].apply(this,arguments)}}function s(e){let t;for(t in e)if(r.call(e,t))return!1;return!0}},29155:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(92375),i=n.n(r),s=n(39791),o=n.n(s),a=n(38307),l=n(6264),c=n(48163),u=n(71927);const{meta:d}=i(),p=Object.prototype.hasOwnProperty;function h(e,t){(0,c.notifyPropertyChange)(e,t)}const m=o().create({buffer:null,hasBufferedChanges:!1,hasChanges:(0,l.readOnly)("hasBufferedChanges"),applyChanges:(0,u.aliasMethod)("applyBufferedChanges"),discardChanges:(0,u.aliasMethod)("discardBufferedChanges"),init(){this.initializeBuffer(),(0,c.set)(this,"hasBufferedChanges",!1),this._super(...arguments)},initializeBuffer(e){(0,a.isArray)(e)&&!(0,u.empty)(e)?e.forEach((e=>delete this.buffer[e])):(0,c.set)(this,"buffer",Object.create(null))},unknownProperty(e){const t=(0,c.get)(this,"buffer");return p.call(t,e)?t[e]:this._super(e)},setUnknownProperty(e,t){const n=d(this);if(n.proto===this||n.isInitializing&&n.isInitializing())return(0,c.defineProperty)(this,e,null,t),t;const{buffer:r,content:i}=(0,c.getProperties)(this,["buffer","content"]);let s,o;return null!=i&&(s=(0,c.get)(i,e)),o=p.call(r,e)?r[e]:s,o!==t?(s===t?(delete r[e],(0,u.empty)(r)&&(0,c.set)(this,"hasBufferedChanges",!1)):(r[e]=t,(0,c.set)(this,"hasBufferedChanges",!0)),h(this,e),t):void 0},applyBufferedChanges(e){const{buffer:t,content:n}=(0,c.getProperties)(this,["buffer","content"]);Object.keys(t).forEach((r=>{(0,a.isArray)(e)&&-1===e.indexOf(r)||(0,c.set)(n,r,t[r])})),this.initializeBuffer(e),(0,u.empty)((0,c.get)(this,"buffer"))&&(0,c.set)(this,"hasBufferedChanges",!1)},discardBufferedChanges(e){const t=(0,c.get)(this,"buffer");this.initializeBuffer(e),Object.keys(t).forEach((t=>{(0,a.isArray)(e)&&-1===e.indexOf(t)||h(this,t)})),(0,u.empty)((0,c.get)(this,"buffer"))&&(0,c.set)(this,"hasBufferedChanges",!1)},hasChanged(e){const{buffer:t,content:n}=(0,c.getProperties)(this,["buffer","content"]);return"string"==typeof e&&void 0!==(0,c.get)(t,e)&&(0,c.get)(t,e)!==(0,c.get)(n,e)}})},33488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(40261),i=n.n(r),s=n(29155);const o=i().extend(s.default)},49572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cached:()=>i});var r=n(85356);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[i,s,o]=t,a=new WeakMap,l=o.get;o.get=function(){return a.has(this)||a.set(this,(0,r.createCache)(l.bind(this))),(0,r.getValue)(a.get(this))}}n(95793)},44669:(e,t,n)=>{"use strict";n.r(t),n.d(t,{appVersion:()=>o,default:()=>a});var r=n(60859),i=n(49860),s=n(68449);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=i.default.APP.version;let r=t.versionOnly||t.hideSha,o=t.shaOnly||t.hideVersion,a=null;return r&&(t.showExtended&&(a=n.match(s.versionExtendedRegExp)),a||(a=n.match(s.versionRegExp))),o&&(a=n.match(s.shaRegExp)),a?a[0]:n}const a=(0,r.helper)(o)},70587:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(95533),i=n(49860);let s,o;i.default.APP&&(s=i.default.APP.name,o=i.default.APP.version);const a={name:"App Version",initialize:(0,r.default)(s,o)}},95533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(92375),i=n.n(r);const{libraries:s}=i();function o(e,t){let n=!1;return function(){!n&&e&&t&&(s.register(e,t),n=!0)}}},68449:(e,t,n)=>{"use strict";n.r(t),n.d(t,{shaRegExp:()=>s,versionExtendedRegExp:()=>i,versionRegExp:()=>r});const r=/\d+[.]\d+[.]\d+/,i=/\d+[.]\d+[.]\d+-[a-z]*([.]\d+)?/,s=/[a-z\d]{8}$/},19915:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(99134),i=n.n(r);function s(e){var t=i()(e,null,null,!0);if(!t)throw new Error(e+" must export an initializer.");var n=t.default;if(!n)throw new Error(e+" must have a default export");return n.name||(n.name=e.slice(e.lastIndexOf("/")+1)),n}function o(e,t){return-1!==e.indexOf(t,e.length-t.length)}function a(e,t){for(var n=t+"/initializers/",r=t+"/instance-initializers/",i=[],a=[],l=Object.keys(requirejs._eak_seen),c=0;c<l.length;c++){var u=l[c];0===u.lastIndexOf(n,0)?o(u,"-test")||i.push(u):0===u.lastIndexOf(r,0)&&(o(u,"-test")||a.push(u))}!function(e,t){for(var n=0;n<t.length;n++)e.initializer(s(t[n]))}(e,i),function(e,t){for(var n=0;n<t.length;n++)e.instanceInitializer(s(t[n]))}(e,a)}},39359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(35894)},35894:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i,s=n(42465),o=n(17579),a=(n(95793),n(76786));function l(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let c=(r=class extends s.default{constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"resizeObserver",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this),l(this,"callback",null),l(this,"element",null),(0,a.registerDestructor)(this,(()=>{this.resizeObserver.unobserve(this.element,this.callback)}))}modify(e,t){let[n]=t;this.resizeObserver.observe(e,n),this.resizeObserver.unobserve(this.element,this.callback),this.callback=n,this.element=e}},u=r.prototype,d="resizeObserver",p=[o.inject],h={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={},Object.keys(h).forEach((function(e){m[e]=h[e]})),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),void 0===(m=p.slice().reverse().reduce((function(e,t){return t(u,d,e)||e}),m)).initializer&&(Object.defineProperty(u,d,m),m=null),i=m,r);var u,d,p,h,m},94982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(11821)},11821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(17579),s=n.n(i),o=n(48163),a=(n(95793),n(45303));let l=(function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}((r=class extends(s()){constructor(){super(...arguments),this._setup()}_setup(){this.callbacks=null,this.observer=null,"undefined"==typeof FastBoot&&"undefined"!=typeof window&&window.ResizeObserver&&((0,a.default)(),this.callbacks=new WeakMap,this.observer=new window.ResizeObserver(this.handleResize))}get isEnabled(){return!!this.observer}observe(e,t){if(!this.isEnabled)return;const n=this.callbacks.get(e);n?n.add(t):(this.callbacks.set(e,new Set([t])),this.observer.observe(e))}unobserve(e,t){if(!this.isEnabled)return;const n=this.callbacks.get(e);n&&(n.delete(t),t&&n.size||(this.callbacks.delete(e),this.observer.unobserve(e)))}clear(){this.isEnabled&&(this.callbacks=new WeakMap,this.observer.disconnect())}willDestroy(){this.clear()}handleResize(e){for(const t of e){const e=this.callbacks.get(t.target);if(e)for(const n of e)n(t)}}}).prototype,"handleResize",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"handleResize"),r.prototype),r)},45303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});const r=["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."];function i(){if("function"!=typeof window.onerror)return;const e=window.onerror;window.onerror=function(t){if(r.includes(t))return!0;for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];e(t,...i)}}},68151:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(77277);const i={name:"container-debug-adapter",initialize(){(arguments[1]||arguments[0]).register("container-debug-adapter:main",r.default)}}},63207:()=>{},57242:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(68853)},19634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(68853)},77277:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(38307),i=n(27075),s=n.n(i),o=n(68853),a=n(72326);function l(e,t,n){let r=t.match(new RegExp("^/?"+n+"/(.+)/"+e+"$"));if(null!==r)return r[1]}const c=s().extend({_moduleRegistry:null,init(){this._super(...arguments),this.namespace=(0,a.getOwner)(this).lookup("application:main"),this._moduleRegistry||(this._moduleRegistry=new o.ModuleRegistry)},canCatalogEntriesByType(e){return"model"===e||this._super(...arguments)},catalogEntriesByType(e){let t=this._moduleRegistry.moduleNames(),n=(0,r.A)(),i=this.namespace.modulePrefix;for(let r=0,s=t.length;r<s;r++){let s=t[r];if(-1!==s.indexOf(e)){let t=l(e,s,this.namespace.podModulePrefix||i);t||(t=s.split(e+"s/").pop()),n.addObject(t)}}return n}})},68853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModuleRegistry:()=>d,default:()=>h});var r=n(49246),i=n(92375),s=n.n(i),o=n(95793),a=n(48163),l=n.n(a),c=n(16572),u=n(83020);void 0===requirejs.entries&&(requirejs.entries=requirejs._eak_seen);class d{constructor(e){this._entries=e||requirejs.entries}moduleNames(){return Object.keys(this._entries)}has(e){return e in this._entries}get(){return window.require(...arguments)}}class p extends(l()){constructor(){super(...arguments),(0,r.Z)(this,"moduleBasedResolver",!0),(0,r.Z)(this,"_deprecatedPodModulePrefix",!1),(0,r.Z)(this,"_normalizeCache",Object.create(null)),(0,r.Z)(this,"moduleNameLookupPatterns",[this.podBasedModuleName,this.podBasedComponentsInSubdir,this.mainModuleName,this.defaultModuleName,this.nestedColocationComponentModuleName]),this._moduleRegistry||(this._moduleRegistry=new d),this.pluralizedTypes=this.pluralizedTypes||Object.create(null),this.pluralizedTypes.config||(this.pluralizedTypes.config="config")}makeToString(e,t){return this.namespace.modulePrefix+"@"+t+":"}shouldWrapInClassFactory(){return!1}parseName(e){if(!0===e.parsedName)return e;let t,n,r,i=e.split("@");if(3===i.length){if(0===i[0].length){t=`@${i[1]}`;let e=i[2].split(":");n=e[0],r=e[1]}else t=`@${i[1]}`,n=i[0].slice(0,-1),r=i[2];"template:components"===n&&(r=`components/${r}`,n="template")}else if(2===i.length){let e=i[0].split(":");if(2===e.length)0===e[1].length?(n=e[0],r=`@${i[1]}`):(t=e[1],n=e[0],r=i[1]);else{let e=i[1].split(":");t=i[0],n=e[0],r=e[1]}"template"===n&&0===t.lastIndexOf("components/",0)&&(r=`components/${r}`,t=t.slice(11))}else i=e.split(":"),n=i[0],r=i[1];let s=r,o=this.namespace;return{parsedName:!0,fullName:e,prefix:t||this.prefix({type:n}),type:n,fullNameWithoutType:s,name:r,root:o,resolveMethodName:"resolve"+(0,c.classify)(n)}}resolveOther(e){let t=this.findModuleName(e);if(t){let n=this._extractDefaultExport(t,e);if(void 0===n)throw new Error(` Expected to find: '${e.fullName}' within '${t}' but got 'undefined'. Did you forget to 'export default' within '${t}'?`);return this.shouldWrapInClassFactory(n,e)&&(n=(0,u.default)(n)),n}}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this._normalize(e))}resolve(e){let t,n=this.parseName(e),r=n.resolveMethodName;return"function"==typeof this[r]&&(t=this[r](n)),null==t&&(t=this.resolveOther(n)),t}_normalize(e){let t=e.split(":");if(t.length>1){let e=t[0];return"component"===e||"helper"===e||"modifier"===e||"template"===e&&0===t[1].indexOf("components/")?e+":"+t[1].replace(/_/g,"-"):e+":"+(0,c.dasherize)(t[1].replace(/\./g,"/"))}return e}pluralize(e){return this.pluralizedTypes[e]||(this.pluralizedTypes[e]=e+"s")}podBasedLookupWithPrefix(e,t){let n=t.fullNameWithoutType;return"template"===t.type&&(n=n.replace(/^components\//,"")),e+"/"+n+"/"+t.type}podBasedModuleName(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix;return this.podBasedLookupWithPrefix(t,e)}podBasedComponentsInSubdir(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix;if(t+="/components","component"===e.type||/^components/.test(e.fullNameWithoutType))return this.podBasedLookupWithPrefix(t,e)}resolveEngine(e){let t=e.fullNameWithoutType+"/engine";if(this._moduleRegistry.has(t))return this._extractDefaultExport(t)}resolveRouteMap(e){let t=e.fullNameWithoutType+"/routes";if(this._moduleRegistry.has(t))return this._extractDefaultExport(t)}resolveTemplate(e){let t=this.resolveOther(e);return null==t&&(t=s().TEMPLATES[e.fullNameWithoutType]),t}mainModuleName(e){if("main"===e.fullNameWithoutType)return e.prefix+"/"+e.type}defaultModuleName(e){return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType}nestedColocationComponentModuleName(e){if("component"===e.type)return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType+"/index"}prefix(e){let t=this.namespace.modulePrefix;return this.namespace[e.type+"Prefix"]&&(t=this.namespace[e.type+"Prefix"]),t}findModuleName(e,t){let n,r=this.moduleNameLookupPatterns;for(let i=0,s=r.length;i<s;i++){let s=r[i].call(this,e);if(s&&(s=this.chooseModuleName(s,e)),s&&this._moduleRegistry.has(s)&&(n=s),t||this._logLookup(n,e,s),n)return n}}chooseModuleName(e,t){let n=(0,c.underscore)(e);if(e!==n&&this._moduleRegistry.has(e)&&this._moduleRegistry.has(n))throw new TypeError(`Ambiguous module names: '${e}' and '${n}'`);if(this._moduleRegistry.has(e))return e;if(this._moduleRegistry.has(n))return n;let r=e.replace(/\/-([^/]*)$/,"/_$1");return this._moduleRegistry.has(r)?((0,o.deprecate)('Modules should not contain underscores. Attempted to lookup "'+e+'" which was not found. Please rename "'+r+'" to "'+e+'" instead.',!1,{id:"ember-resolver.underscored-modules",until:"3.0.0",for:"ember-resolver",since:"0.1.0"}),r):void 0}lookupDescription(e){let t=this.parseName(e);return this.findModuleName(t,!0)}_logLookup(e,t,n){if(!s().ENV.LOG_MODULE_RESOLVER&&!t.root.LOG_RESOLVER)return;let r,i=e?"[✓]":"[ ]";r=t.fullName.length>60?".":new Array(60-t.fullName.length).join("."),n||(n=this.lookupDescription(t)),console&&console.info&&console.info(i,t.fullName,r,n)}knownForType(e){let t=this._moduleRegistry.moduleNames(),n=Object.create(null);for(let r=0,i=t.length;r<i;r++){let i=t[r],s=this.translateToContainerFullname(e,i);s&&(n[s]=!0)}return n}translateToContainerFullname(e,t){let n=this.prefix({type:e}),r=n+"/",i="/"+e,s=t.indexOf(r),o=t.indexOf(i);if(0===s&&o===t.length-i.length&&t.length>r.length+i.length)return e+":"+t.slice(s+r.length,o);let a=n+"/"+this.pluralize(e)+"/";return 0===t.indexOf(a)&&t.length>a.length?e+":"+t.slice(a.length):void 0}_extractDefaultExport(e){let t=this._moduleRegistry.get(e,null,null,!0);return t&&t.default&&(t=t.default),t}}(0,r.Z)(p,"moduleBasedResolver",!0);const h=p},83020:(e,t,n)=>{"use strict";function r(e){return{create:t=>"function"==typeof e.extend?e.extend(t):e}}n.r(t),n.d(t,{default:()=>r})},18357:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default,initialize:()=>r.initialize});var r=n(22721)},22721:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SHOULD_POLYFILL_ROUTER_SERVICE_REFRESH:()=>i,default:()=>o,initialize:()=>s}),n(95793);var r=n(72326);const i=!0;function s(e){e.resolveRegistration("service:router").reopen({refresh(e){if(!e)return this._router._routerMicrolib.refresh();let t=(0,r.getOwner)(this).lookup(`route:${e}`);return this._router._routerMicrolib.refresh(t)}})}const o={initialize:s}},95401:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(60859),i=n(95793),s=n(77712);const o=(0,r.helper)((e=>{let[t]=e;const n=(0,s.assertIsDeprecations)(JSON.parse(t));for(const e of n)(0,i.deprecate)(...e)}))},28327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getOwner:()=>i});var r=n(72326);function i(e){return(0,r.getOwner)(e)}},52563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(60859),i=n.n(r),s=n(28327),o=n(78400);class a extends(i()){compute(e){let[t]=e;const n=(0,o.assertExists)((0,s.getOwner)(this),"Could not find owner");return Boolean(n.factoryFor(`component:${t}`))}}},4855:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(60859),i=n(95793),s=n(48163),o=n(77712);const a=(0,r.helper)((e=>{let[t,n,r]=e;if(r){const e=(0,o.assertIsDeprecation)(JSON.parse(r));(0,i.deprecate)(...e)}return(0,s.get)(t,n)}))},6781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(60859),i=n.n(r),s=n(28327),o=n(78400);class a extends(i()){compute(e){let[t]=e;const n=(0,o.assertExists)((0,s.getOwner)(this),"Could not find owner");return n.factoryFor(`helper:${t}`)?.class}}},77712:(e,t,n)=>{"use strict";function r(e){return e}function i(e){return e}n.r(t),n.d(t,{assertIsDeprecation:()=>r,assertIsDeprecations:()=>i}),n(95793),n(78400)},78400:(e,t,n)=>{"use strict";function r(e){return e}function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function s(e){return"string"==typeof e}n.r(t),n.d(t,{assertExists:()=>r,isRecord:()=>i,isString:()=>s}),n(95793)},76734:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createStorage:()=>a,getValue:()=>l,setValue:()=>c});var r=n(9043),i=(n(95793),function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o});class s{constructor(e,t){this._value=this._lastValue=e,this._isEqual=t}}function o(e,t){return e===t}function a(e){return new s(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:o)}function l(e){return e._value}function c(e,t){const{_isEqual:n,_lastValue:r}=e;n(t,r)||(e._value=e._lastValue=t)}i([r.tracked],s.prototype,"_value",void 0)},79859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(84296)},68259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(53360)},9515:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(79234)},66767:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(94907)},18556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(20757)},13579:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(41224)},82151:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(49337)},26371:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(81354)},3266:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(36779)},79802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(47445)},20786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(49215)},89810:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(40121)},13775:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(43058)},12876:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.default});var r=n(84032)},84296:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(8620),i=n(31691),s=n(91138),o=n.n(s);const a=(0,i.setComponentTemplate)((0,r.createTemplateFactory)({id:"v6dcKbDm",block:'[[[1,"\\n  "],[11,0],[24,0,"fk-d-button-tooltip"],[17,1],[12],[1,"\\n    "],[18,2,null],[1,"\\n    "],[18,3,null],[1,"\\n  "],[13],[1,"\\n"]],["&attrs","&button","&tooltip"],false,["yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-button-tooltip.js",isStrictMode:!0}),o()())},53360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(55071),i=n(8922),s=n.n(i),o=n(18270),a=n.n(o),l=n(40098),c=n(61777),u=n(8620),d=n(31691),p=n(91138),h=n.n(p);const m=(0,d.setComponentTemplate)((0,u.createTemplateFactory)({id:"JCIKpQw7",block:'[[[1,"\\n  "],[11,0],[16,0,[28,[32,0],["fk-d-default-toast",[28,[32,1],["-",[28,[32,2],[[30,1,["theme"]],"default"],null]],null]],null]],[17,2],[12],[1,"\\n"],[41,[30,1,["icon"]],[[[1,"      "],[10,0],[14,0,"fk-d-default-toast__icon-container"],[12],[1,"\\n        "],[1,[28,[32,3],[[30,1,["icon"]]],null]],[1,"\\n      "],[13],[1,"\\n"]],[]],null],[1,"    "],[10,0],[14,0,"fk-d-default-toast__main-container"],[12],[1,"\\n      "],[10,0],[14,0,"fk-d-default-toast__texts"],[12],[1,"\\n"],[41,[30,1,["title"]],[[[1,"          "],[10,0],[14,0,"fk-d-default-toast__title"],[12],[1,"\\n            "],[1,[30,1,["title"]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[41,[30,1,["message"]],[[[1,"          "],[10,0],[14,0,"fk-d-default-toast__message"],[12],[1,"\\n            "],[1,[30,1,["message"]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n\\n"],[41,[30,1,["actions"]],[[[1,"        "],[10,0],[14,0,"fk-d-default-toast__actions"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["actions"]]],null]],null],null,[[[41,[30,3,["action"]],[[[1,"              "],[8,[32,4],[[16,0,[30,3,["class"]]],[24,"tabindex","0"]],[["@icon","@translatedLabel","@action"],[[30,3,["icon"]],[30,3,["label"]],[28,[32,5],[[30,3,["action"]],[28,[32,6],null,[["data","close"],[[30,1],[30,4]]]]],null]]],null],[1,"\\n"]],[]],null]],[3]],null],[1,"        "],[13],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n    "],[10,0],[14,0,"fk-d-default-toast__close-container"],[12],[1,"\\n      "],[8,[32,4],[[24,0,"btn-flat"]],[["@icon","@action"],["times",[30,4]]],null],[1,"\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],["@data","&attrs","toastAction","@close"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-default-toast.js",scope:()=>[a(),r.concat,c.default,l.default,s(),r.fn,r.hash],isStrictMode:!0}),h()())},7659:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,i=n(82006),s=n(55071),o=n(24434),a=n(42465),l=n(18270),c=n.n(l),u=n(86902),d=n.n(u),p=n(48944),h=n(39083),m=n(90804),g=n(79721),f=n(27569),b=n(8620),_=n(31691);class y extends i.default{constructor(){var e,t,n,r;super(...arguments),e=this,t="closeOnScroll",n=(0,a.modifier)((()=>{const e=(0,h.getScrollParent)(this.trigger),t=()=>{this.args.instance.close()};return e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t)}})),(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}get supportsCloseOnClickOutside(){return this.args.instance.expanded&&this.options.closeOnClickOutside}get supportsCloseOnEscape(){return this.args.instance.expanded&&this.options.closeOnEscape}get supportsCloseOnScroll(){return this.args.instance.expanded&&this.options.closeOnScroll}get trigger(){return this.args.instance.trigger}get options(){return this.args.instance.options}}r=y,(0,_.setComponentTemplate)((0,b.createTemplateFactory)({id:"szzywHPK",block:'[[[1,"\\n    "],[8,[32,0],null,[["@inline","@portalOutletElement"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n      "],[11,0],[16,0,[28,[32,1],[[30,3],[52,[30,0,["options","animated"]],"-animated"],[52,[30,4,["expanded"]],"-expanded"],[30,0,["options","extraClassName"]]],null]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-content",""],[16,"aria-labelledby",[30,4,["id"]]],[16,"aria-expanded",[52,[30,4,["expanded"]],"true","false"]],[16,"role",[30,5]],[16,5,[28,[32,2],[[28,[32,3],["max-width: ",[30,0,["options","maxWidth"]],"px"],null]],null]],[17,6],[4,[32,4],[[30,0,["trigger"]],[30,0,["options"]],[30,4]],null],[4,[52,[30,7],[50,[32,5],2,null,[["autofocus"],[false]]]],null,null],[4,[52,[30,0,["supportsCloseOnClickOutside"]],[50,[32,6],2,[[30,0,["trigger"]],[30,4,["close"]]],null]],null,null],[4,[52,[30,0,["supportsCloseOnEscape"]],[50,[32,7],2,[[30,4,["close"]]],null]],null,null],[4,[52,[30,0,["supportsCloseOnScroll"]],[50,[30,0,["closeOnScroll"]],2,null,null]],null,null],[12],[1,"\\n        "],[10,0],[15,0,[30,8]],[12],[1,"\\n          "],[18,9,null],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],["@inline","@portalOutletElement","@mainClass","@instance","@role","&attrs","@trapTab","@innerClass","&default"],false,["if","modifier","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-float-body.js",scope:()=>[p.default,c(),o.htmlSafe,s.concat,m.default,d(),g.default,f.default],isStrictMode:!0}),r)},48944:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(82006),s=n(34405),o=n(8620),a=n(31691);class l extends i.default{get inline(){return this.args.inline??(0,s.isTesting)()}}r=l,(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:"cBToFFeR",block:'[[[1,"\\n"],[41,[30,0,["inline"]],[[[1,"      "],[18,2,null],[1,"\\n"]],[]],[[[40,[[[1,"        "],[18,2,null],[1,"\\n"]],[]],"%cursor:0%",[28,[31,3],[[30,1]],null]]],[]]],[1,"  "]],["@portalOutletElement","&default"],false,["if","yield","in-element","-in-el-null"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-float-portal.js",isStrictMode:!0}),r)},71161:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(7659),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"7KHgXQmx",block:'[[[1,"\\n"],[41,[30,1,["expanded"]],[[[1,"    "],[8,[32,0],null,[["@instance","@trapTab","@mainClass","@innerClass","@role","@portalOutletElement","@inline"],[[30,1],[30,2],[30,3],[30,4],[30,5],[30,6],[30,7]]],[["default"],[[[[1,"\\n"],[41,[30,1,["options","component"]],[[[1,"        "],[8,[30,1,["options","component"]],null,[["@data","@close"],[[30,1,["options","data"]],[30,1,["close"]]]],null],[1,"\\n"]],[]],[[[1,"        "],[1,[30,1,["options","content"]]],[1,"\\n"]],[]]],[1,"    "]],[]]]]],[1,"\\n"]],[]],null]],["@instance","@trapTab","@mainClass","@innerClass","@role","@portalOutletElement","@inline"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-inline-float.js",scope:()=>[r.default],isStrictMode:!0}),a()())},79234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s,o=n(82006),a=n(88242),l=n(17579),c=n(71161),u=n(28570),d=n(8620),p=n(31691);let h=(s=class extends o.default{constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"menu",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this)}},(0,p.setComponentTemplate)((0,d.createTemplateFactory)({id:"NtMcYgbK",block:'[[[1,"\\n    "],[11,0],[16,1,[32,0,["portalOutletId"]]],[4,[32,1],[[30,0,["menu","registerPortalOutletElement"]]],null],[12],[13],[1,"\\n\\n    "],[8,[32,2],null,[["@instance","@portalOutletElement","@trapTab","@mainClass","@innerClass","@role","@inline"],[[30,0,["menu","activeMenu"]],[30,0,["menu","portalOutletElement"]],[30,0,["menu","activeMenu","options","trapTab"]],"fk-d-menu","fk-d-menu__inner-content","dialog",[30,1]]],null],[1,"\\n  "]],["@inline"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-inline-menu.js",scope:()=>[u.MENU,a.default,c.default],isStrictMode:!0}),s),m=(r=s).prototype,g="menu",f=[l.inject],b={configurable:!0,enumerable:!0,writable:!0,initializer:null},_={},Object.keys(b).forEach((function(e){_[e]=b[e]})),_.enumerable=!!_.enumerable,_.configurable=!!_.configurable,("value"in _||_.initializer)&&(_.writable=!0),void 0===(_=f.slice().reverse().reduce((function(e,t){return t(m,g,e)||e}),_)).initializer&&(Object.defineProperty(m,g,_),_=null),i=_,r);var m,g,f,b,_},94907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s,o=n(82006),a=n(88242),l=n(17579),c=n(71161),u=n(28570),d=n(44057),p=n(8620),h=n(31691);let m=(s=class extends o.default{constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"tooltip",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this)}},(0,h.setComponentTemplate)((0,p.createTemplateFactory)({id:"NMO18Y3u",block:'[[[1,"\\n    "],[11,0],[16,1,[32,0,["portalOutletId"]]],[4,[32,1],[[30,0,["tooltip","registerPortalOutletElement"]]],null],[12],[13],[1,"\\n\\n    "],[8,[32,2],null,[["@instance","@portalOutletElement","@trapTab","@mainClass","@innerClass","@role","@inline"],[[30,0,["tooltip","activeTooltip"]],[30,0,["tooltip","portalOutletElement"]],[28,[32,3],[[30,0,["tooltip","activeTooltip","options","interactive"]],[30,0,["tooltip","activeTooltip","options","trapTab"]]],null],"fk-d-tooltip","fk-d-tooltip__inner-content","tooltip",[30,1]]],null],[1,"\\n  "]],["@inline"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-inline-tooltip.js",scope:()=>[u.TOOLTIP,a.default,c.default,d.default],isStrictMode:!0}),s),g=(r=s).prototype,f="tooltip",b=[l.inject],_={configurable:!0,enumerable:!0,writable:!0,initializer:null},y={},Object.keys(_).forEach((function(e){y[e]=_[e]})),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),void 0===(y=b.slice().reverse().reduce((function(e,t){return t(g,f,e)||e}),y)).initializer&&(Object.defineProperty(g,f,y),y=null),i=y,r);var g,f,b,_,y},20757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,i,s,o,a=n(82006),l=n(9043),c=n(72326),u=n(17579),d=n(42465),p=n(8922),h=n.n(p),m=n(18270),g=n.n(m),f=n(7659),b=n(36779),_=n(8620),y=n(31691);function w(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function v(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let k=(o=class extends a.default{constructor(){var e,t,n,r;super(...arguments),w(this,"menu",i,this),w(this,"menuInstance",s,this),e=this,t="registerTrigger",n=(0,d.modifier)((e=>{const t={...this.args,autoUpdate:!0,listeners:!0,beforeTrigger:()=>{this.menu.close()}},n=new b.default((0,c.getOwner)(this),e,t);return this.menuInstance=n,()=>{n.destroy(),this.isDestroying&&(this.menuInstance=null)}})),(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}get menuId(){return`d-menu-${this.menuInstance.id}`}get options(){return this.menuInstance?.options??{}}get componentArgs(){return{close:this.menuInstance.close,data:this.options.data}}},(0,y.setComponentTemplate)((0,_.createTemplateFactory)({id:"rglu19sr",block:'[[[1,"\\n    "],[8,[32,0],[[16,0,[28,[32,1],["fk-d-menu__trigger",[52,[30,0,["menuInstance","expanded"]],"-expanded"]],null]],[16,1,[30,0,["menuInstance","id"]]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-trigger",""],[16,"aria-expanded",[52,[30,0,["menuInstance","expanded"]],"true","false"]],[17,1],[4,[30,0,["registerTrigger"]],null,null]],[["@icon","@translatedAriaLabel","@translatedLabel","@translatedTitle","@disabled"],[[30,2],[30,3],[30,4],[30,5],[30,6]]],[["default"],[[[[1,"\\n"],[41,[48,[30,7]],[[[1,"        "],[18,7,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["menuInstance","expanded"]],[[[1,"      "],[8,[32,2],null,[["@instance","@trapTab","@mainClass","@innerClass","@role","@inline","@portalOutletElement"],[[30,0,["menuInstance"]],[30,0,["options","trapTab"]],"fk-d-menu","fk-d-menu__inner-content","dialog",[30,0,["options","inline"]],[30,0,["menu","portalOutletElement"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,8]],[[[1,"          "],[18,8,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[48,[30,9]],[[[1,"          "],[18,9,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[30,0,["options","component"]],[[[1,"          "],[8,[30,0,["options","component"]],null,[["@data","@close"],[[30,0,["options","data"]],[30,0,["menuInstance","close"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["options","content"]],[[[1,"          "],[1,[30,0,["options","content"]]],[1,"\\n        "]],[]],null]],[]]]],[]]]],[]]],[1,"      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],["&attrs","@icon","@ariaLabel","@label","@title","@disabled","&trigger","&default","&content"],false,["if","has-block","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-menu.js",scope:()=>[h(),g(),f.default],isStrictMode:!0}),o),i=v((r=o).prototype,"menu",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=v(r.prototype,"menuInstance",[l.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),r)},41224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s,o=n(82006),a=n(17579),l=n(42465),c=n(54736),u=n(8620),d=n(31691);let p=(s=class extends o.default{constructor(){var e,t,n,r;super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"tooltip",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this),e=this,t="registerDTooltip",n=(0,l.modifier)((e=>{(0,c.default)("`<DPopover />` is deprecated. Use `<DTooltip />` or the `tooltip` service instead.",{id:"discourse.d-popover"});const t=e.children[0],n=e.children[1];if(!t||!n)return;const r=this.tooltip.register(t,{content:n});return n.remove(),()=>{r.destroy()}})),(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}},(0,d.setComponentTemplate)((0,u.createTemplateFactory)({id:"3ZjcrrVx",block:'[[[1,"\\n    "],[11,0],[24,5,"display:inline-flex;"],[4,[30,0,["registerDTooltip"]],null,null],[12],[1,"\\n      "],[18,1,null],[1,"\\n    "],[13],[1,"\\n  "]],["&default"],false,["yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-popover.js",isStrictMode:!0}),s),h=(r=s).prototype,m="tooltip",g=[a.inject],f={configurable:!0,enumerable:!0,writable:!0,initializer:null},b={},Object.keys(f).forEach((function(e){b[e]=f[e]})),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),void 0===(b=g.slice().reverse().reduce((function(e,t){return t(h,m,e)||e}),b)).initializer&&(Object.defineProperty(h,m,b),b=null),i=b,r);var h,m,g,f,b},49337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r,i,s,o,a=n(82006),l=n(76786),c=n(51372),u=n(17579),d=n(42465),p=n(18270),h=n.n(p),m=n(12933),g=n(57555),f=n(8620),b=n(31691);function _(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let w=(y((r=class extends d.default{constructor(e,t){super(e,t),_(this,"element",void 0),_(this,"close",void 0),_(this,"duration",void 0),_(this,"transitionLaterHandler",void 0),_(this,"closeLaterHandler",void 0),(0,l.registerDestructor)(this,(e=>e.cleanup()))}modify(e,t,n){let{close:r,duration:i}=n;this.element=e,this.close=r,this.duration=i,this.element.addEventListener("mouseenter",this.stopTimer,{passive:!0}),this.element.addEventListener("mouseleave",this.startTimer,{passive:!0}),this.startTimer()}startTimer(){this.transitionLaterHandler=(0,m.default)((()=>{this.element.classList.add("-fade-out"),this.closeLaterHandler=(0,m.default)((()=>{this.close()}),300)}),this.duration)}stopTimer(){(0,c.cancel)(this.transitionLaterHandler),(0,c.cancel)(this.closeLaterHandler)}cleanup(){this.stopTimer(),this.element.removeEventListener("mouseenter",this.stopTimer),this.element.removeEventListener("mouseleave",this.startTimer)}}).prototype,"startTimer",[g.bind],Object.getOwnPropertyDescriptor(r.prototype,"startTimer"),r.prototype),y(r.prototype,"stopTimer",[g.bind],Object.getOwnPropertyDescriptor(r.prototype,"stopTimer"),r.prototype),r),v=(o=class extends a.default{constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"toasts",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,s,this)}},(0,b.setComponentTemplate)((0,f.createTemplateFactory)({id:"oBaOkP2J",block:'[[[1,"\\n    "],[10,"section"],[14,0,"fk-d-toasts"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["toasts","activeToasts"]]],null]],null],null,[[[1,"        "],[11,"output"],[16,"role",[52,[30,1,["options","autoClose"]],"status","log"]],[16,"key",[30,1,["id"]]],[16,0,[28,[32,0],["fk-d-toast",[30,1,["options","class"]]],null]],[4,[52,[30,1,["options","autoClose"]],[50,[32,1],2,null,[["close","duration"],[[30,1,["close"]],[30,1,["options","duration"]]]]]],null,null],[12],[1,"\\n          "],[8,[30,1,["options","component"]],null,[["@data","@close"],[[30,1,["options","data"]],[30,1,["close"]]]],null],[1,"\\n        "],[13],[1,"\\n"]],[1]],null],[1,"    "],[13],[1,"\\n  "]],["toast"],false,["each","-track-array","if","modifier"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-toasts.js",scope:()=>[h(),w],isStrictMode:!0}),o),s=y((i=o).prototype,"toasts",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)},81354:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r,i,s,o,a,l=n(82006),c=n(9043),u=n(72326),d=n(17579),p=n(42465),h=n(18270),m=n.n(h),g=n(40098),f=n(7659),b=n(47445),_=n(44057),y=n(8620),w=n(31691);function v(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function k(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let x=(a=class extends l.default{constructor(){var e,t,n,r;super(...arguments),v(this,"tooltip",i,this),v(this,"internalTooltip",s,this),v(this,"tooltipInstance",o,this),e=this,t="registerTrigger",n=(0,p.modifier)((e=>{const t={...this.args,listeners:!0,beforeTrigger:e=>{this.internalTooltip.activeTooltip?.close?.(),this.internalTooltip.activeTooltip=e}},n=new b.default((0,u.getOwner)(this),e,t);return this.tooltipInstance=n,()=>{n.destroy(),this.isDestroying&&(this.tooltipInstance=null)}})),(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}get options(){return this.tooltipInstance?.options}get componentArgs(){return{close:this.tooltip.close,data:this.options.data}}},(0,w.setComponentTemplate)((0,y.createTemplateFactory)({id:"H/8o/+nm",block:'[[[1,"\\n    "],[11,1],[16,0,[28,[32,0],["fk-d-tooltip__trigger",[52,[30,0,["tooltipInstance","expanded"]],"-expanded"]],null]],[24,"role","button"],[16,1,[30,0,["tooltipInstance","id"]]],[16,"data-identifier",[30,0,["options","identifier"]]],[24,"data-trigger",""],[16,"aria-expanded",[52,[30,0,["tooltipInstance","expanded"]],"true","false"]],[17,1],[4,[30,0,["registerTrigger"]],null,null],[12],[1,"\\n      "],[10,0],[14,0,"fk-d-tooltip__trigger-container"],[12],[1,"\\n"],[41,[48,[30,4]],[[[1,"          "],[10,0],[12],[1,"\\n            "],[18,4,[[30,0,["componentArgs"]]]],[1,"\\n          "],[13],[1,"\\n"]],[]],[[[41,[30,2],[[[1,"            "],[10,1],[14,0,"fk-d-tooltip__icon"],[12],[1,[28,[32,1],[[30,2]],null]],[13],[1,"\\n"]],[]],null],[41,[30,3],[[[1,"            "],[10,1],[14,0,"fk-d-tooltip__label"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],null]],[]]],[1,"      "],[13],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["tooltipInstance","expanded"]],[[[1,"      "],[8,[32,2],null,[["@instance","@trapTab","@mainClass","@innerClass","@role","@inline","@portalOutletElement"],[[30,0,["tooltipInstance"]],[28,[32,3],[[30,0,["options","interactive"]],[30,0,["options","trapTab"]]],null],"fk-d-tooltip","fk-d-tooltip__inner-content","tooltip",[30,0,["options","inline"]],[30,0,["tooltip","portalOutletElement"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,5]],[[[1,"          "],[18,5,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[48,[30,6]],[[[1,"          "],[18,6,[[30,0,["componentArgs"]]]],[1,"\\n"]],[]],[[[41,[30,0,["options","component"]],[[[1,"          "],[8,[30,0,["options","component"]],null,[["@data","@close"],[[30,0,["options","data"]],[30,0,["tooltipInstance","close"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["options","content"]],[[[1,"          "],[1,[30,0,["options","content"]]],[1,"\\n        "]],[]],null]],[]]]],[]]]],[]]],[1,"      "]],[]]]]],[1,"\\n"]],[]],null],[1,"  "]],["&attrs","@icon","@label","&trigger","&default","&content"],false,["if","has-block","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.b1c8f5d2/node_modules/float-kit/components/d-tooltip.js",scope:()=>[m(),g.default,f.default,_.default],isStrictMode:!0}),a),i=k((r=a).prototype,"tooltip",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=k(r.prototype,"internalTooltip",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=k(r.prototype,"tooltipInstance",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),r)},28570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FLOAT_UI_PLACEMENTS:()=>i,MENU:()=>o,TOAST:()=>a,TOOLTIP:()=>s});var r=n(53360);const i=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],s={options:{animated:!0,arrow:!0,beforeTrigger:null,closeOnClickOutside:!0,closeOnEscape:!0,closeOnScroll:!0,component:null,content:null,identifier:null,interactive:!1,listeners:!1,maxWidth:350,data:null,offset:10,triggers:["hover","click"],untriggers:["hover","click"],placement:"top",fallbackPlacements:i,autoUpdate:!0,trapTab:!0},portalOutletId:"d-tooltip-portal-outlet"},o={options:{animated:!0,arrow:!1,beforeTrigger:null,closeOnEscape:!0,closeOnClickOutside:!0,closeOnScroll:!1,component:null,content:null,identifier:null,interactive:!0,listeners:!1,maxWidth:400,data:null,offset:10,triggers:["click"],untriggers:["click"],placement:"bottom",fallbackPlacements:i,autoUpdate:!0,trapTab:!0,extraClassName:null},portalOutletId:"d-menu-portal-outlet"},a={options:{autoClose:!0,duration:3e3,component:r.default}}},36779:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(72326),o=n(48163),a=n(78582),l=n(17579),c=n(28570),u=n(41961);function d(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let p=(r=class extends u.default{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"menu",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this),(0,s.setOwner)(this,e),this.options={...c.MENU.options,...n},this.id=t.id||(0,a.guidFor)(t),this.trigger=t,this.setupListeners()}onMouseMove(e){this.trigger.contains(e.target)&&this.expanded||this.onTrigger(e)}onClick(e){this.expanded&&this.untriggers.includes("click")?this.onUntrigger(e):this.onTrigger(e)}onMouseLeave(e){this.untriggers.includes("hover")&&this.onUntrigger(e)}async onTrigger(){this.options.beforeTrigger?.(this),await this.show()}async onUntrigger(){await this.close()}async destroy(){await this.close(),this.tearDownListeners()}},i=d(r.prototype,"menu",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(r.prototype,"onMouseMove",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onMouseMove"),r.prototype),d(r.prototype,"onClick",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onClick"),r.prototype),d(r.prototype,"onMouseLeave",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onMouseLeave"),r.prototype),d(r.prototype,"onTrigger",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onTrigger"),r.prototype),d(r.prototype,"onUntrigger",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onUntrigger"),r.prototype),d(r.prototype,"destroy",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"destroy"),r.prototype),r)},87870:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i,s=n(72326),o=n(48163),a=n(17579),l=n(99876),c=n.n(l),u=n(28570);function d(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let h=(i=p((r=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t,n,r){n&&Object.defineProperty(e,"toasts",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this),d(this,"options",null),d(this,"id",c()()),(0,s.setOwner)(this,e),this.options={...u.TOAST.options,...t}}close(){this.toasts.close(this)}}).prototype,"toasts",[a.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(r.prototype,"close",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"close"),r.prototype),r)},47445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r,i,s=n(72326),o=n(48163),a=n(78582),l=n(17579),c=n(28570),u=n(41961);function d(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let p=(r=class extends u.default{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"tooltip",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this),(0,s.setOwner)(this,e),this.options={...c.TOOLTIP.options,...n},this.id=t.id||(0,a.guidFor)(t),this.trigger=t,this.setupListeners()}onMouseMove(e){this.trigger.contains(e.target)&&this.expanded||this.onTrigger(e)}onClick(e){this.expanded&&this.untriggers.includes("click")?this.onUntrigger(e):this.onTrigger(e)}onMouseLeave(e){this.untriggers.includes("hover")&&this.onUntrigger(e)}async onTrigger(){this.options.beforeTrigger?.(this),await this.show()}async onUntrigger(){await this.close()}destroy(){this.close(),this.tearDownListeners()}},i=d(r.prototype,"tooltip",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(r.prototype,"onMouseMove",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onMouseMove"),r.prototype),d(r.prototype,"onClick",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onClick"),r.prototype),d(r.prototype,"onMouseLeave",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onMouseLeave"),r.prototype),d(r.prototype,"onTrigger",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onTrigger"),r.prototype),d(r.prototype,"onUntrigger",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"onUntrigger"),r.prototype),d(r.prototype,"destroy",[o.action],Object.getOwnPropertyDescriptor(r.prototype,"destroy"),r.prototype),r)},41961:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r,i,s,o=n(9043),a=n(48163),l=n(51372),c=n(61369),u=n(12933),d=n(57555);function p(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function h(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const g={passive:!0,capture:!0};function f(e){e.preventDefault(),e.stopImmediatePropagation()}let b=(i=m((r=class{constructor(){p(this,"expanded",i,this),p(this,"id",s,this),h(this,"trigger",null),h(this,"content",null)}show(){this.expanded=!0}close(){this.expanded=!1}onFocus(e){this.onTrigger(e)}onBlur(e){this.onTrigger(e)}onFocusIn(e){this.onTrigger(e)}onFocusOut(e){this.onTrigger(e)}onTouchStart(e){e.touches.length>1?this.onTouchCancel():(e.stopPropagation(),this.trigger.addEventListener("touchmove",this.onTouchCancel,g),this.trigger.addEventListener("touchcancel",this.onTouchCancel,g),this.trigger.addEventListener("touchend",this.onTouchCancel,g),this.touchTimeout=(0,u.default)((()=>{this.isDestroying||this.isDestroyed||(this.trigger.addEventListener("touchend",f,{once:!0,capture:!0}),this.onTrigger(e))}),500))}onTouchCancel(){(0,l.cancel)(this.touchTimeout),this.trigger.removeEventListener("touchmove",this.onTouchCancel),this.trigger.removeEventListener("touchend",this.onTouchCancel),this.trigger.removeEventListener("touchcancel",this.onTouchCancel)}tearDownListeners(){this.options.listeners&&((0,c.makeArray)(this.triggers).filter(Boolean).forEach((e=>{switch(e){case"hold":this.trigger.addEventListener("touchstart",this.onTouchStart);break;case"focus":this.trigger.removeEventListener("focus",this.onFocus),this.trigger.removeEventListener("blur",this.onBlur);break;case"focusin":this.trigger.removeEventListener("focusin",this.onFocusIn),this.trigger.removeEventListener("focusout",this.onFocusOut);break;case"hover":this.trigger.removeEventListener("mousemove",this.onMouseMove),this.options.interactive||this.trigger.removeEventListener("mouseleave",this.onMouseLeave);break;case"click":this.trigger.removeEventListener("click",this.onClick)}})),(0,l.cancel)(this.touchTimeout))}setupListeners(){this.options.listeners&&(0,c.makeArray)(this.triggers).filter(Boolean).forEach((e=>{switch(e){case"hold":this.trigger.addEventListener("touchstart",this.onTouchStart,g);break;case"focus":this.trigger.addEventListener("focus",this.onFocus,{passive:!0}),this.trigger.addEventListener("blur",this.onBlur,{passive:!0});break;case"focusin":this.trigger.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.trigger.addEventListener("focusout",this.onFocusOut,{passive:!0});break;case"hover":this.trigger.addEventListener("mousemove",this.onMouseMove,{passive:!0}),this.options.interactive||this.trigger.addEventListener("mouseleave",this.onMouseLeave,{passive:!0});break;case"click":this.trigger.addEventListener("click",this.onClick,{passive:!0})}}))}get triggers(){return this.options.triggers??["click"]}get untriggers(){return this.options.untriggers??["click"]}}).prototype,"expanded",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s=m(r.prototype,"id",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m(r.prototype,"show",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"show"),r.prototype),m(r.prototype,"close",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"close"),r.prototype),m(r.prototype,"onFocus",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"onFocus"),r.prototype),m(r.prototype,"onBlur",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"onBlur"),r.prototype),m(r.prototype,"onFocusIn",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"onFocusIn"),r.prototype),m(r.prototype,"onFocusOut",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"onFocusOut"),r.prototype),m(r.prototype,"onTouchStart",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"onTouchStart"),r.prototype),m(r.prototype,"onTouchCancel",[d.bind],Object.getOwnPropertyDescriptor(r.prototype,"onTouchCancel"),r.prototype),r)},39083:(e,t,n)=>{"use strict";function r(e){const t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY,n="visible"!==t&&"hidden"!==t;return e&&e!==document.documentElement?n&&e.scrollHeight>=e.clientHeight?e:r(e.parentNode)||window:null}n.r(t),n.d(t,{getScrollParent:()=>r})},99569:(e,t,n)=>{"use strict";n.r(t),n.d(t,{updatePosition:()=>u});var r=n(67351),i=n(19325),s=n(17961),o=n(34405),a=n(33057),l=n(3961),c=n(28570);async function u(e,t,n){let u=0;(0,o.isTesting)()||(u=n.padding||{top:(0,s.headerOffset)(),left:10,right:10,bottom:10});const d={fallbackPlacements:n.fallbackPlacements??c.FLOAT_UI_PLACEMENTS,padding:u},p=[(0,r.cv)(n.offset?parseInt(n.offset,10):10)];let h;n.inline&&p.push((0,i.Qo)()),p.push((0,i.RR)(d)),p.push((0,i.uY)({padding:u})),n.arrow&&(h=t.querySelector(".arrow"),h||(h=(0,a.default)((0,l.iconHTML)("tippy-rounded-arrow",{class:"arrow"}))[0],t.appendChild(h)),p.push((0,i.x7)({element:h}))),t.dataset.strategy=n.strategy||"absolute";const{x:m,y:g,placement:f,middlewareData:b}=await(0,i.oo)(e,t,{placement:n.placement,strategy:n.strategy||"absolute",middleware:p});if(n.computePosition)n.computePosition(t,{x:m,y:g,placement:f,middlewareData:b,arrowElement:h});else if(t.dataset.placement=f,Object.assign(t.style,{left:`${m}px`,top:`${g}px`}),b.arrow&&h){const e=b.arrow.x,t=b.arrow.y;Object.assign(h.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:""})}}},90804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(76786),s=n(19325),o=n(42465),a=n(57555),l=n(99569);let c=(function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}((r=class extends o.default{constructor(e,t){super(e,t),(0,i.registerDestructor)(this,(e=>e.teardown()))}modify(e,t){let[n,r,i]=t;i.content=e,this.instance=i,this.options=r??{},this.options.autoUpdate?this.cleanup=(0,s.Me)(n,e,this.update):this.update()}async update(){await(0,l.updatePosition)(this.instance.trigger,this.instance.content,this.options)}teardown(){this.cleanup?.()}}).prototype,"update",[a.bind],Object.getOwnPropertyDescriptor(r.prototype,"update"),r.prototype),r)},79721:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r,i=n(76786),s=n(42465),o=n(57555);let a=(function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}((r=class extends s.default{constructor(e,t){super(e,t),(0,i.registerDestructor)(this,(e=>e.cleanup()))}modify(e,t){let[n,r]=t;this.closeFn=r,this.trigger=n,this.element=e,document.addEventListener("pointerdown",this.check,{passive:!0})}check(e){this.element.contains(e.target)||this.trigger instanceof HTMLElement&&this.trigger.contains(e.target)||this.closeFn()}cleanup(){document.removeEventListener("pointerdown",this.check)}}).prototype,"check",[o.bind],Object.getOwnPropertyDescriptor(r.prototype,"check"),r.prototype),r)},27569:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r,i,s=n(76786),o=n(17579),a=n(42465),l=n(57555);function c(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let u=(r=class extends a.default{constructor(e,t){super(e,t),function(e,t,n,r){n&&Object.defineProperty(e,"menu",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this),(0,s.registerDestructor)(this,(e=>e.cleanup()))}modify(e,t){let[n]=t;this.closeFn=n,this.element=e,document.addEventListener("keydown",this.check)}check(e){"Escape"===e.key&&(e.stopPropagation(),e.preventDefault(),this.closeFn())}cleanup(){document.removeEventListener("keydown",this.check)}},i=c(r.prototype,"menu",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c(r.prototype,"check",[l.bind],Object.getOwnPropertyDescriptor(r.prototype,"check"),r.prototype),r)},49215:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i,s=n(9043),o=n(17579),a=n.n(o);let l=(r=class extends(a()){constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"activeTooltip",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this)}},c=r.prototype,u="activeTooltip",d=[s.tracked],p={configurable:!0,enumerable:!0,writable:!0,initializer:null},h={},Object.keys(p).forEach((function(e){h[e]=p[e]})),h.enumerable=!!h.enumerable,h.configurable=!!h.configurable,("value"in h||h.initializer)&&(h.writable=!0),void 0===(h=d.slice().reverse().reduce((function(e,t){return t(c,u,e)||e}),h)).initializer&&(Object.defineProperty(c,u,h),h=null),i=h,r);var c,u,d,p,h},40121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o=n(9043),a=n(72326),l=n(48163),c=n(78582),u=n(17579),d=n.n(u),p=n(36779),h=n(99569);function m(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function g(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let f=(r=class extends(d()){constructor(){super(...arguments),m(this,"activeMenu",i,this),m(this,"portalOutletElement",s,this)}async show(){let e;if(arguments[0]instanceof p.default){if(e=arguments[0],this.activeMenu===e&&this.activeMenu.expanded)return}else{const t=arguments[0];if(this.activeMenu&&this.activeMenu.id===(t?.id?.length?t.id:(0,c.guidFor)(t))&&this.activeMenu.expanded)return void this.activeMenu?.close();e=new p.default((0,a.getOwner)(this),t,arguments[1])}return await this.replace(e),e.expanded=!0,e}async replace(e){await(this.activeMenu?.close()),this.activeMenu=e}async close(e){this.activeMenu&&e&&this.activeMenu.id!==e.id||(await(this.activeMenu?.close()),this.activeMenu=null)}async update(e){const t=e||this.activeMenu;t&&(await(0,h.updatePosition)(t.trigger,t.content,t.options),await t.show())}register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new p.default((0,a.getOwner)(this),e,{...t,listeners:!0,beforeTrigger:async e=>{await this.replace(e)}})}registerPortalOutletElement(e){this.portalOutletElement=e}},i=g(r.prototype,"activeMenu",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=g(r.prototype,"portalOutletElement",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(r.prototype,"show",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"show"),r.prototype),g(r.prototype,"replace",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"replace"),r.prototype),g(r.prototype,"close",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"close"),r.prototype),g(r.prototype,"update",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"update"),r.prototype),g(r.prototype,"register",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"register"),r.prototype),g(r.prototype,"registerPortalOutletElement",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"registerPortalOutletElement"),r.prototype),r)},43058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,i,s=n(9043),o=n(72326),a=n(48163),l=n(17579),c=n.n(l),u=n(57959),d=n(53360),p=n(87870);function h(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let m=(r=class extends(c()){constructor(){super(...arguments),function(e,t,n,r){n&&Object.defineProperty(e,"activeToasts",{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}(this,0,i,this)}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new p.default((0,o.getOwner)(this),e);return this.activeToasts.push(t),t}default(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="default",this.show({...e,component:d.default})}success(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="success",e.data.icon="check",this.show({...e,component:d.default})}error(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="error",e.data.icon="exclamation-triangle",this.show({...e,component:d.default})}warning(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="warning",e.data.icon="exclamation-circle",this.show({...e,component:d.default})}info(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.data.theme="info",e.data.icon="info-circle",this.show({...e,component:d.default})}close(e){this.activeToasts=new u.TrackedArray(this.activeToasts.filter((t=>t.id!==e.id)))}},i=h(r.prototype,"activeToasts",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u.TrackedArray}}),h(r.prototype,"show",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"show"),r.prototype),h(r.prototype,"default",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"default"),r.prototype),h(r.prototype,"success",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"success"),r.prototype),h(r.prototype,"error",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),h(r.prototype,"warning",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"warning"),r.prototype),h(r.prototype,"info",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"info"),r.prototype),h(r.prototype,"close",[a.action],Object.getOwnPropertyDescriptor(r.prototype,"close"),r.prototype),r)},84032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r,i,s,o=n(9043),a=n(72326),l=n(48163),c=n(78582),u=n(17579),d=n.n(u),p=n(47445),h=n(99569);function m(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function g(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let f=(r=class extends(d()){constructor(){super(...arguments),m(this,"activeTooltip",i,this),m(this,"portalOutletElement",s,this)}async show(){let e;if(arguments[0]instanceof p.default){if(e=arguments[0],this.activeTooltip===e&&this.activeTooltip.expanded)return}else{const t=arguments[0];if(this.activeTooltip&&this.activeTooltip.id===(t?.id?.length?t.id:(0,c.guidFor)(t))&&this.activeTooltip.expanded)return void this.activeTooltip?.close();e=new p.default((0,a.getOwner)(this),t,arguments[1])}return await this.replace(e),e.expanded=!0,e}async replace(e){await(this.activeTooltip?.close()),this.activeTooltip=e}async close(e){this.activeTooltip&&e&&this.activeTooltip.id!==e.id||(await(this.activeTooltip?.close()),this.activeTooltip=null)}async update(e){const t=e||this.activeTooltip;t&&(await(0,h.updatePosition)(t.trigger,t.content,t.options),await t.show())}register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new p.default((0,a.getOwner)(this),e,{...t,listeners:!0,beforeTrigger:async e=>{await this.replace(e)}})}registerPortalOutletElement(e){this.portalOutletElement=e}},i=g(r.prototype,"activeTooltip",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=g(r.prototype,"portalOutletElement",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(r.prototype,"show",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"show"),r.prototype),g(r.prototype,"replace",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"replace"),r.prototype),g(r.prototype,"close",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"close"),r.prototype),g(r.prototype,"update",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"update"),r.prototype),g(r.prototype,"register",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"register"),r.prototype),g(r.prototype,"registerPortalOutletElement",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"registerPortalOutletElement"),r.prototype),r)},83312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_LIST:()=>s,default:()=>i});const r=/([^\[]+)(\[([^=]+)(=(.*))?\])?/;class i{constructor(e){this._enabled={default:!0},this._allowedHrefSchemes=e&&e.allowedHrefSchemes||[],this._allowedIframes=e&&e.allowedIframes||[],this._rawFeatures=[["default",s]],this._cache=null,e&&e.features&&Object.keys(e.features).forEach((t=>{e.features[t]&&(this._enabled[t]=!0)}))}allowListFeature(e,t){this._rawFeatures.push([e,t])}disable(e){this._enabled[e]=!1,this._cache=null}enable(e){this._enabled[e]=!0,this._cache=null}_buildCache(){const e={},t={},n=[];this._rawFeatures.forEach((i=>{let[s,o]=i;this._enabled[s]&&(o.custom?n.push(o.custom):("string"==typeof o&&(o=[o]),(o||[]).forEach((n=>{const i=n.split("."),s=i.shift(),o=r.exec(s);if(o){const[,n,,r,,s]=o;e[n]=[];let a=t[n]=t[n]||{};if(i.length>0&&(a.class=(a.class||[]).concat(i)),r){let e=a[r]=a[r]||[];s?e.push(s):a[r]=["*"]}}}))))})),this._cache={custom:n,allowList:{tagList:e,attrList:t}}}_ensureCache(){this._cache||this._buildCache()}getAllowList(){return this._ensureCache(),this._cache.allowList}getCustom(){return this._ensureCache(),this._cache.custom}getAllowedHrefSchemes(){return this._allowedHrefSchemes}getAllowedIframes(){return this._allowedIframes}}const s=["a.anchor","a.attachment","a.hashtag","a.mention","a.mention-group","a.onebox","a.inline-onebox","a.inline-onebox-loading","a[data-bbcode]","a[data-word]","a[name]","a[rel=nofollow]","a[rel=ugc]","a[target=_blank]","a[title]","abbr[title]","aside.quote","aside[data-*]","audio","audio[controls]","audio[preload]","b","big","blockquote","br","code","dd","del","div","div.quote-controls","div.title","div[align]","div[lang]","div[data-*]","div[dir]","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","iframe","iframe[frameborder]","iframe[height]","iframe[marginheight]","iframe[marginwidth]","iframe[width]","iframe[allowfullscreen]","iframe[allow]","img[alt]","img[role]","img[height]","img[title]","img[width]","img[data-thumbnail]","ins","kbd","li","mark","ol","ol[reversed]","ol[start]","ol[type]","p","p[lang]","picture","pre","s","small","span[lang]","span.excerpt","div.excerpt","div.video-container","div.video-placeholder-container","div.onebox-placeholder-container","span.placeholder-icon video","span.hashtag","span.mention","strike","strong","sub","sup","source[data-orig-src]","source[type]","track","track[default]","track[label]","track[kind]","track[srclang]","ul","video","video[controls]","video[controlslist]","video[crossorigin]","video[height]","video[loop]","video[muted]","video[playsinline]","video[poster]","video[preload]","video[width]","ruby","ruby[lang]","rb","rb[lang]","rp","rt","rt[lang]"]},27926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{censor:()=>s,censorFn:()=>i});var r=n(99492);function i(e,t){if(e?.length){t=t||"&#9632;";let n=e.map((e=>(0,r.createWatchedWordRegExp)((0,r.toWatchedWord)(e))));return function(e){return n.forEach((n=>{e=e.replace(n,(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=r.find((e=>"string"==typeof e));return e.replace(s,new Array(s.length+1).join(t))}))})),e}}return function(e){return e}}function s(e,t,n){return i(t,n)(e)}},8253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildEmojiUrl:()=>f,emojiExists:()=>b,emojiReplacementRegex:()=>c,emojiSearch:()=>y,extendedEmojiList:()=>a,isCustomEmoji:()=>g,isSkinTonableEmoji:()=>w,performEmojiEscape:()=>m,performEmojiUnescape:()=>h,registerEmoji:()=>o});var r=n(33469),i=n(81741);const s=new Map;function o(e,t,n){e=e.toLowerCase(),s.set(e,{url:t,group:n})}function a(){return s}const l=new Map,c="☻|♡|[#*0-9]️?⃣|[©®‼⁉™ℹ↔-↙↩↪⌚⌛⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼◾☀-☄☎☑☔☕☘☠☢☣☦☪☮☯☸-☺♀♂♈-♓♟♠♣♥♦♨♻♾♿⚒⚔-⚗⚙⚛⚜⚠⚧⚪⚰⚱⚽⚾⛄⛈⛏⛑⛓⛩⛰-⛵⛷⛸⛺✂✈✉✏✒✔✖✝✡✳✴❄❇❗❣➡⤴⤵⬅-⬇⬛⬜⭕〰〽㊗㊙]️?|[☝✌✍](?:️|\ud83c[\udffb-\udfff])?|[✊✋](?:\ud83c[\udffb-\udfff])?|[⏩-⏬⏰⏳◽⚓⚡⚫⛅⛎⛔⛪⛽✅✨❌❎❓-❕➕-➗➰➿⭐]|⛹(?:️|\ud83c[\udffb-\udfff])?(?:‍[♀♂]️?)?|❤️?(?:‍(?:🔥|🩹))?|\ud83c(?:[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff5\udff7]️?|[\udf85\udfc2\udfc7](?:\ud83c[\udffb-\udfff])?|[\udfc3\udfc4\udfca](?:\ud83c[\udffb-\udfff])?(?:‍[♀♂]️?)?|[\udfcb\udfcc](?:️|\ud83c[\udffb-\udfff])?(?:‍[♀♂]️?)?|[\udccf\udd8e\udd91-\udd9a\ude01\ude1a\ude2f\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff8-\udfff]|\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\uddf4🇲|\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\uddf6🇦|\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\uddfc\ud83c[\uddeb\uddf8]|\uddfd🇰|\uddfe\ud83c[\uddea\uddf9]|\uddff\ud83c[\udde6\uddf2\uddfc]|\udff3️?(?:‍(?:⚧️?|🌈))?|\udff4(?:‍☠️?|󠁧󠁢\udb40(?:\udc65󠁮󠁧|\udc73󠁣󠁴|\udc77󠁬󠁳)󠁿)?)|\ud83d(?:[\udc3f\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]️?|[\udc42\udc43\udc46-\udc50\udc66\udc67\udc6b-\udc6d\udc72\udc74-\udc76\udc78\udc7c\udc83\udc85\udc8f\udc91\udcaa\udd7a\udd95\udd96\ude4c\ude4f\udec0\udecc](?:\ud83c[\udffb-\udfff])?|[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6](?:\ud83c[\udffb-\udfff])?(?:‍[♀♂]️?)?|[\udd74\udd90](?:️|\ud83c[\udffb-\udfff])?|[\udc00-\udc07\udc09-\udc14\udc16-\udc3a\udc3c-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude2d\ude2f-\ude34\ude37-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udedd-\udedf\udeeb\udeec\udef4-\udefc\udfe0-\udfeb\udff0]|\udc08(?:‍⬛)?|\udc15(?:‍🦺)?|\udc3b(?:‍❄️?)?|\udc41️?(?:‍🗨️?)?|\udc68(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?\udc68|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d(?:[\udc68\udc69]‍\ud83d(?:\udc66(?:‍👦)?|\udc67(?:‍\ud83d[\udc66\udc67])?)|[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\udc66(?:‍👦)?|\udc67(?:‍\ud83d[\udc66\udc67])?)|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|\ud83c(?:\udffb(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?\udc68\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍👨\ud83c[\udffc-\udfff])))?|\udffc(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?\udc68\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍👨\ud83c[\udffb\udffd-\udfff])))?|\udffd(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?\udc68\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍👨\ud83c[\udffb\udffc\udffe\udfff])))?|\udffe(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?\udc68\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍👨\ud83c[\udffb-\udffd\udfff])))?|\udfff(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?\udc68\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍👨\ud83c[\udffb-\udffe])))?))?|\udc69(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:\udc8b‍\ud83d)?[\udc68\udc69]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d(?:[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\udc66(?:‍👦)?|\udc67(?:‍\ud83d[\udc66\udc67])?|\udc69‍\ud83d(?:\udc66(?:‍👦)?|\udc67(?:‍\ud83d[\udc66\udc67])?))|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|\ud83c(?:\udffb(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:[\udc68\udc69]|\udc8b‍\ud83d[\udc68\udc69])\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍\ud83d[\udc68\udc69]\ud83c[\udffc-\udfff])))?|\udffc(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:[\udc68\udc69]|\udc8b‍\ud83d[\udc68\udc69])\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍\ud83d[\udc68\udc69]\ud83c[\udffb\udffd-\udfff])))?|\udffd(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:[\udc68\udc69]|\udc8b‍\ud83d[\udc68\udc69])\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍\ud83d[\udc68\udc69]\ud83c[\udffb\udffc\udffe\udfff])))?|\udffe(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:[\udc68\udc69]|\udc8b‍\ud83d[\udc68\udc69])\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍\ud83d[\udc68\udc69]\ud83c[\udffb-\udffd\udfff])))?|\udfff(?:‍(?:[⚕⚖✈]️?|❤️?‍\ud83d(?:[\udc68\udc69]|\udc8b‍\ud83d[\udc68\udc69])\ud83c[\udffb-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍\ud83d[\udc68\udc69]\ud83c[\udffb-\udffe])))?))?|\udc6f(?:‍[♀♂]️?)?|\udd75(?:️|\ud83c[\udffb-\udfff])?(?:‍[♀♂]️?)?|\ude2e(?:‍💨)?|\ude35(?:‍💫)?|\ude36(?:‍🌫️?)?)|\ud83e(?:[\udd0c\udd0f\udd18-\udd1f\udd30-\udd34\udd36\udd77\uddb5\uddb6\uddbb\uddd2\uddd3\uddd5\udec3-\udec5\udef0\udef2-\udef6](?:\ud83c[\udffb-\udfff])?|[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd](?:\ud83c[\udffb-\udfff])?(?:‍[♀♂]️?)?|[\uddde\udddf](?:‍[♀♂]️?)?|[\udd0d\udd0e\udd10-\udd17\udd20-\udd25\udd27-\udd2f\udd3a\udd3f-\udd45\udd47-\udd76\udd78-\uddb4\uddb7\uddba\uddbc-\uddcc\uddd0\udde0-\uddff\ude70-\ude74\ude78-\ude7c\ude80-\ude86\ude90-\udeac\udeb0-\udeba\udec0-\udec2\uded0-\uded9\udee0-\udee7]|\udd3c(?:‍[♀♂]️?|\ud83c[\udffb-\udfff])?|\uddd1(?:‍(?:[⚕⚖✈]️?|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍🧑))|\ud83c(?:\udffb(?:‍(?:[⚕⚖✈]️?|❤️?‍(?:💋‍)?🧑\ud83c[\udffc-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍🧑\ud83c[\udffb-\udfff])))?|\udffc(?:‍(?:[⚕⚖✈]️?|❤️?‍(?:💋‍)?🧑\ud83c[\udffb\udffd-\udfff]|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍🧑\ud83c[\udffb-\udfff])))?|\udffd(?:‍(?:[⚕⚖✈]️?|❤️?‍(?:💋‍)?🧑\ud83c[\udffb\udffc\udffe\udfff]|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍🧑\ud83c[\udffb-\udfff])))?|\udffe(?:‍(?:[⚕⚖✈]️?|❤️?‍(?:💋‍)?🧑\ud83c[\udffb-\udffd\udfff]|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍🧑\ud83c[\udffb-\udfff])))?|\udfff(?:‍(?:[⚕⚖✈]️?|❤️?‍(?:💋‍)?🧑\ud83c[\udffb-\udffe]|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e(?:[\uddaf-\uddb3\uddbc\uddbd]|\udd1d‍🧑\ud83c[\udffb-\udfff])))?))?|\udef1(?:\ud83c(?:\udffb(?:‍🫲\ud83c[\udffc-\udfff])?|\udffc(?:‍🫲\ud83c[\udffb\udffd-\udfff])?|\udffd(?:‍🫲\ud83c[\udffb\udffc\udffe\udfff])?|\udffe(?:‍🫲\ud83c[\udffb-\udffd\udfff])?|\udfff(?:‍🫲\ud83c[\udffb-\udffe])?))?)";function u(e){return e?/:[^\s:]+(?::t\d)?:?/g:/\B:[^\s:]+(?::t\d)?:?\B/g}r.emojis.forEach((e=>l.set(e,!0)));const d=new Map;function p(e,t,n){if(n)return!0;const r=e.slice(0,t);return 0===r.length||/(?:\s|[>.,\/#!$%^&*;:{}=\-_`~()])$/.test(r)||new RegExp(`(?:${c})$`,"g").test(r)}function h(e,t){if(!e)return;const n=Object.assign({},r.translations,t.customEmojiTranslation||{}),i=(i,s)=>{const o=t.enableEmojiShortcuts&&!!n[i],a=!!r.replacements[i]||!!r.replacements[i[0]];let l;l=o?n[i]:a?r.replacements[i]||r.replacements[i[0]]:i.slice(1,i.length-1);const c=i.lastIndexOf(":")===i.length-1,u=f(l,t);let d=g(l,t)?"emoji emoji-custom":"emoji";if(t.class&&(d+=` ${t.class}`),t.emojiDenyList?.includes(l))return"";const h=(o||c||a)&&p(e,s,t.inlineEmoji),m=t.title??l,b=t.tabIndex?` tabindex='${t.tabIndex}'`:"";return u&&h?`<img width="20" height="20" src='${u}' ${t.skipTitle?"":`title='${m}'`} ${t.lazy?"loading='lazy' ":""}alt='${m}' class='${d}'${b}>`:i};return e.replace(new RegExp(c,"g"),i).replace(u(t.inlineEmoji),i)}function m(e,t){const n=Object.assign({},r.translations,t.customEmojiTranslation||{}),i=(i,s)=>{if(p(e,s,t.inlineEmoji)){if(n[i])return t.emojiShortcuts?`:${n[i]}:`:i;if(r.replacements[i])return`:${r.replacements[i]}:`;if(r.replacements[i[0]])return`:${r.replacements[i[0]]}:`}return i};return e.replace(new RegExp(c,"g"),i).replace(u(t.inlineEmoji),i)}function g(e,t){return e=e.toLowerCase(),s.has(e)||t?.customEmoji?.hasOwnProperty(e)}function f(e,t){let n;e=String(e).toLowerCase(),s.has(e)&&(n=s.get(e).url),t.customEmoji?.[e]&&(n=t.customEmoji[e].url||t.customEmoji[e]);const r=e.match(/([^:]+):?/);let o="/images/emoji";return t.emojiCDNUrl&&(o=t.emojiCDNUrl),t.getURL&&t.emojiSet&&r&&!n&&(l.has(r[1])||d.has(r[1]))&&(n=t.getURL(`${o}/${t.emojiSet}/${e.replace(/:t/,"/")}.png`)),n&&(n=`${n}?v=${i.IMAGE_VERSION}`),n}function b(e){return e=e.toLowerCase(),s.has(e)||l.has(e)||d.has(e)}let _;function y(e,t){const n=t?.maxResults,i=t?.diversity,o=t?.exclude||[];if(0===n)return[];_||(_=[...l.keys(),...s.keys(),...d.keys()].sort());const a=[];function c(e){const t=d.get(e)||e;a.includes(t)||o.includes(t)||(i&&i>1&&w(t)?a.push(`${t}:t${i}`):a.push(t))}for(const t of _)t.startsWith(e)&&c(t);for(const[t,n]of Object.entries(r.searchAliases))if(t.startsWith(e))for(const e of n)c(e);for(const t of _)t.indexOf(e)>0&&c(t);return n?a.slice(0,n):a}function w(e){const t=e.split(":").filter(Boolean)[0];return!!t&&r.tonableEmojis.includes(t)}Object.entries(r.aliases).forEach((e=>{let[t,n]=e;n.forEach((e=>d.set(e,t)))}))},33469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{aliases:()=>s,emojis:()=>r,replacements:()=>l,searchAliases:()=>o,tonableEmojis:()=>i,translations:()=>a});const r=["grinning","grimacing","grin","joy","rofl","smiley","smile","sweat_smile","laughing","innocent","wink","blush","slightly_smiling_face","upside_down_face","yum","relieved","heart_eyes","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","stuck_out_tongue","money_mouth_face","nerd_face","sunglasses","clown_face","cowboy_hat_face","hugs","smirk","no_mouth","neutral_face","expressionless","unamused","roll_eyes","thinking","lying_face","flushed","disappointed","worried","angry","rage","pensive","confused","slightly_frowning_face","frowning_face","persevere","confounded","tired_face","weary","triumph","open_mouth","scream","fearful","cold_sweat","hushed","frowning_with_open_mouth","anguished","cry","disappointed_relieved","drooling_face","sleepy","sweat","sob","dizzy_face","astonished","zipper_mouth_face","nauseated_face","sneezing_face","mask","face_with_thermometer","face_with_head_bandage","sleeping","zzz","poop","smiling_imp","imp","japanese_ogre","japanese_goblin","skull","ghost","alien","robot","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","raised_hands","clap","wave","call_me_hand","+1","-1","facepunch","fist","fist_left","fist_right","v","ok_hand","raised_hand","raised_back_of_hand","open_hands","muscle","pray","handshake","point_up","point_up_2","point_down","point_left","point_right","fu","raised_hand_with_fingers_splayed","metal","crossed_fingers","vulcan_salute","writing_hand","selfie","nail_care","lips","tongue","ear","nose","eye","eyes","bust_in_silhouette","busts_in_silhouette","speaking_head","baby","boy","girl","man","woman","blonde_woman","blonde_man","older_man","older_woman","man_with_gua_pi_mao","woman_with_turban","man_with_turban","policewoman","policeman","construction_worker_woman","construction_worker_man","guardswoman","guardsman","female_detective","male_detective","woman_health_worker","man_health_worker","woman_farmer","man_farmer","woman_cook","man_cook","woman_student","man_student","woman_singer","man_singer","woman_teacher","man_teacher","woman_factory_worker","man_factory_worker","woman_technologist","man_technologist","woman_office_worker","man_office_worker","woman_mechanic","man_mechanic","woman_scientist","man_scientist","woman_artist","man_artist","woman_firefighter","man_firefighter","woman_pilot","man_pilot","woman_astronaut","man_astronaut","woman_judge","man_judge","mrs_claus","santa","angel","pregnant_woman","princess","prince","bride_with_veil","person_in_tuxedo","running_woman","running_man","walking_woman","walking_man","dancer","man_dancing","dancing_women","dancing_men","couple","two_men_holding_hands","two_women_holding_hands","bowing_woman","bowing_man","man_facepalming","woman_facepalming","woman_shrugging","man_shrugging","tipping_hand_woman","tipping_hand_man","no_good_woman","no_good_man","ok_woman","ok_man","raising_hand_woman","raising_hand_man","pouting_woman","pouting_man","frowning_woman","frowning_man","haircut_woman","haircut_man","massage_woman","massage_man","couple_with_heart","couple_with_heart_woman_woman","couple_with_heart_man_man","couplekiss_man_woman","couplekiss_woman_woman","couplekiss_man_man","family","family_man_woman_girl","family_man_woman_girl_boy","family_man_woman_boy_boy","family_man_woman_girl_girl","family_woman_woman_boy","family_woman_woman_girl","family_woman_woman_girl_boy","family_woman_woman_boy_boy","family_woman_woman_girl_girl","family_man_man_boy","family_man_man_girl","family_man_man_girl_boy","family_man_man_boy_boy","family_man_man_girl_girl","family_woman_boy","family_woman_girl","family_woman_girl_boy","family_woman_boy_boy","family_woman_girl_girl","family_man_boy","family_man_girl","family_man_girl_boy","family_man_boy_boy","family_man_girl_girl","womans_clothes","tshirt","jeans","necktie","dress","bikini","kimono","lipstick","kiss","footprints","high_heel","sandal","boot","mans_shoe","athletic_shoe","womans_hat","tophat","rescue_worker_helmet","mortar_board","crown","school_satchel","pouch","purse","handbag","briefcase","eyeglasses","dark_sunglasses","ring","closed_umbrella","dog","cat","mouse","hamster","rabbit","fox_face","bear","panda_face","koala","tiger","lion","cow","pig","pig_nose","frog","squid","octopus","shrimp","monkey_face","gorilla","see_no_evil","hear_no_evil","speak_no_evil","monkey","chicken","penguin","bird","baby_chick","hatching_chick","hatched_chick","duck","eagle","owl","bat","wolf","boar","horse","unicorn","honeybee","bug","butterfly","snail","lady_beetle","ant","spider","scorpion","crab","snake","lizard","turtle","tropical_fish","fish","blowfish","dolphin","shark","whale","whale2","crocodile","leopard","tiger2","water_buffalo","ox","cow2","deer","dromedary_camel","camel","elephant","rhinoceros","goat","ram","sheep","racehorse","pig2","rat","mouse2","rooster","turkey","dove","dog2","poodle","cat2","rabbit2","chipmunk","paw_prints","dragon","dragon_face","cactus","christmas_tree","evergreen_tree","deciduous_tree","palm_tree","seedling","herb","shamrock","four_leaf_clover","bamboo","tanabata_tree","leaves","fallen_leaf","maple_leaf","ear_of_rice","hibiscus","sunflower","rose","wilted_flower","tulip","blossom","cherry_blossom","bouquet","mushroom","chestnut","jack_o_lantern","shell","spider_web","earth_americas","earth_africa","earth_asia","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","crescent_moon","star","star2","dizzy","sparkles","comet","sunny","sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","cloud","cloud_with_rain","cloud_with_lightning_and_rain","cloud_with_lightning","zap","fire","boom","snowflake","cloud_with_snow","snowman","snowman_with_snow","wind_face","dash","tornado","fog","open_umbrella","umbrella","droplet","sweat_drops","ocean","green_apple","apple","pear","tangerine","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","pineapple","kiwi_fruit","avocado","tomato","eggplant","cucumber","carrot","hot_pepper","potato","corn","sweet_potato","peanuts","honey_pot","croissant","bread","baguette_bread","cheese","egg","bacon","pancakes","poultry_leg","meat_on_bone","fried_shrimp","fried_egg","hamburger","fries","stuffed_flatbread","hotdog","pizza","spaghetti","taco","burrito","green_salad","shallow_pan_of_food","ramen","stew","fish_cake","sushi","bento","curry","rice_ball","rice","rice_cracker","oden","dango","shaved_ice","ice_cream","icecream","cake","birthday","custard","candy","lollipop","chocolate_bar","popcorn","doughnut","cookie","milk_glass","beer","beers","clinking_glasses","wine_glass","tumbler_glass","cocktail","tropical_drink","champagne","sake","tea","coffee","baby_bottle","spoon","fork_and_knife","plate_with_cutlery","soccer","basketball","football","baseball","tennis","volleyball","rugby_football","8ball","golf","golfing_woman","golfing_man","ping_pong","badminton","goal_net","ice_hockey","field_hockey","cricket_bat_and_ball","ski","skier","snowboarder","person_fencing","women_wrestling","men_wrestling","woman_cartwheeling","man_cartwheeling","woman_playing_handball","man_playing_handball","ice_skate","bow_and_arrow","fishing_pole_and_fish","boxing_glove","martial_arts_uniform","rowing_woman","rowing_man","swimming_woman","swimming_man","woman_playing_water_polo","man_playing_water_polo","surfing_woman","surfing_man","bath","basketball_woman","basketball_man","weight_lifting_woman","weight_lifting_man","biking_woman","biking_man","mountain_biking_woman","mountain_biking_man","horse_racing","business_suit_levitating","trophy","running_shirt_with_sash","medal_sports","medal_military","1st_place_medal","2nd_place_medal","3rd_place_medal","reminder_ribbon","rosette","ticket","tickets","performing_arts","art","circus_tent","woman_juggling","man_juggling","microphone","headphones","musical_score","musical_keyboard","drum","saxophone","trumpet","guitar","violin","clapper","video_game","space_invader","dart","game_die","slot_machine","bowling","red_car","taxi","blue_car","bus","trolleybus","racing_car","police_car","ambulance","fire_engine","minibus","truck","articulated_lorry","tractor","kick_scooter","motorcycle","bike","motor_scooter","rotating_light","oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi","aerial_tramway","mountain_cableway","suspension_railway","railway_car","train","monorail","bullettrain_side","bullettrain_front","light_rail","mountain_railway","steam_locomotive","train2","metro","tram","station","helicopter","small_airplane","airplane","flight_departure","flight_arrival","sailboat","motor_boat","speedboat","ferry","passenger_ship","rocket","artificial_satellite","seat","canoe","anchor","construction","fuelpump","busstop","vertical_traffic_light","traffic_light","checkered_flag","ship","ferris_wheel","roller_coaster","carousel_horse","building_construction","foggy","tokyo_tower","factory","fountain","rice_scene","mountain","mountain_snow","mount_fuji","volcano","japan","camping","tent","national_park","motorway","railway_track","sunrise","sunrise_over_mountains","desert","beach_umbrella","desert_island","city_sunrise","city_sunset","cityscape","night_with_stars","bridge_at_night","milky_way","stars","sparkler","fireworks","rainbow","houses","european_castle","japanese_castle","stadium","statue_of_liberty","house","house_with_garden","derelict_house","office","department_store","post_office","european_post_office","hospital","bank","hotel","convenience_store","school","love_hotel","wedding","classical_building","church","mosque","synagogue","kaaba","shinto_shrine","watch","iphone","calling","computer","keyboard","desktop_computer","printer","computer_mouse","trackball","joystick","clamp","minidisc","floppy_disk","cd","dvd","vhs","camera","camera_flash","video_camera","movie_camera","film_projector","film_strip","telephone_receiver","phone","pager","fax","tv","radio","studio_microphone","level_slider","control_knobs","stopwatch","timer_clock","alarm_clock","mantelpiece_clock","hourglass_flowing_sand","hourglass","satellite","battery","electric_plug","bulb","flashlight","candle","wastebasket","oil_drum","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","gem","balance_scale","wrench","hammer","hammer_and_pick","hammer_and_wrench","pick","nut_and_bolt","gear","chains","gun","bomb","hocho","dagger","crossed_swords","shield","smoking","skull_and_crossbones","coffin","funeral_urn","amphora","crystal_ball","prayer_beads","barber","alembic","telescope","microscope","hole","pill","syringe","thermometer","label","bookmark","toilet","shower","bathtub","key","old_key","couch_and_lamp","sleeping_bed","bed","door","bellhop_bell","framed_picture","world_map","parasol_on_ground","moyai","shopping","shopping_cart","balloon","flags","ribbon","gift","confetti_ball","tada","dolls","wind_chime","crossed_flags","izakaya_lantern","email","envelope_with_arrow","incoming_envelope","e-mail","love_letter","postbox","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","package","postal_horn","inbox_tray","outbox_tray","scroll","page_with_curl","bookmark_tabs","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","page_facing_up","date","calendar","spiral_calendar","card_index","card_file_box","ballot_box","file_cabinet","clipboard","spiral_notepad","file_folder","open_file_folder","card_index_dividers","newspaper_roll","newspaper","notebook","closed_book","green_book","blue_book","orange_book","notebook_with_decorative_cover","ledger","books","open_book","link","paperclip","paperclips","scissors","triangular_ruler","straight_ruler","pushpin","round_pushpin","triangular_flag_on_post","white_flag","black_flag","rainbow_flag","closed_lock_with_key","lock","unlock","lock_with_ink_pen","pen","fountain_pen","black_nib","memo","pencil2","crayon","paintbrush","mag","mag_right","heart","yellow_heart","green_heart","blue_heart","purple_heart","black_heart","broken_heart","heavy_heart_exclamation","two_hearts","revolving_hearts","heartbeat","heartpulse","sparkling_heart","cupid","gift_heart","heart_decoration","peace_symbol","latin_cross","star_and_crescent","om","wheel_of_dharma","star_of_david","six_pointed_star","menorah","yin_yang","orthodox_cross","place_of_worship","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","id","atom_symbol","u7a7a","u5272","radioactive","biohazard","mobile_phone_off","vibration_mode","u6709","u7121","u7533","u55b6","u6708","eight_pointed_black_star","vs","accept","white_flower","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","a","b","ab","cl","o2","sos","no_entry","name_badge","no_entry_sign","x","o","stop_sign","anger","hotsprings","no_pedestrians","do_not_litter","no_bicycles","non-potable_water","underage","no_mobile_phones","exclamation","grey_exclamation","question","grey_question","bangbang","interrobang","100","low_brightness","high_brightness","trident","fleur_de_lis","part_alternation_mark","warning","children_crossing","beginner","recycle","u6307","chart","sparkle","eight_spoked_asterisk","negative_squared_cross_mark","white_check_mark","diamond_shape_with_a_dot_inside","cyclone","loop","globe_with_meridians","m","atm","sa","passport_control","customs","baggage_claim","left_luggage","wheelchair","no_smoking","wc","parking","potable_water","mens","womens","baby_symbol","restroom","put_litter_in_its_place","cinema","signal_strength","koko","ng","ok","up","cool","new","free","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","asterisk","1234","arrow_forward","pause_button","next_track_button","stop_button","record_button","play_or_pause_button","previous_track_button","fast_forward","rewind","twisted_rightwards_arrows","repeat","repeat_one","arrow_backward","arrow_up_small","arrow_down_small","arrow_double_up","arrow_double_down","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrows_counterclockwise","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","hash","information_source","abc","abcd","capital_abcd","symbols","musical_note","notes","wavy_dash","curly_loop","heavy_check_mark","arrows_clockwise","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","heavy_dollar_sign","currency_exchange","copyright","registered","tm","end","back","on","top","soon","ballot_box_with_check","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","small_red_triangle","black_small_square","white_small_square","black_large_square","white_large_square","small_red_triangle_down","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button","speaker","sound","loud_sound","mute","mega","loudspeaker","bell","no_bell","black_joker","mahjong","spades","clubs","hearts","diamonds","flower_playing_cards","thought_balloon","right_anger_bubble","speech_balloon","left_speech_bubble","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230","afghanistan","aland_islands","albania","algeria","american_samoa","andorra","angola","anguilla","antarctica","antigua_barbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","caribbean_netherlands","bosnia_herzegovina","botswana","brazil","british_indian_ocean_territory","british_virgin_islands","brunei","bulgaria","burkina_faso","burundi","cape_verde","cambodia","cameroon","canada","canary_islands","cayman_islands","central_african_republic","chad","chile","cn","christmas_island","cocos_islands","colombia","comoros","congo_brazzaville","congo_kinshasa","cook_islands","costa_rica","croatia","cuba","curacao","cyprus","czech_republic","denmark","djibouti","dominica","dominican_republic","ecuador","egypt","el_salvador","equatorial_guinea","eritrea","estonia","ethiopia","eu","falkland_islands","faroe_islands","fiji","finland","fr","french_guiana","french_polynesia","french_southern_territories","gabon","gambia","georgia","de","ghana","gibraltar","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guinea_bissau","guyana","haiti","honduras","hong_kong","hungary","iceland","india","indonesia","iran","iraq","ireland","isle_of_man","israel","it","cote_divoire","jamaica","jp","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshall_islands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","new_caledonia","new_zealand","nicaragua","niger","nigeria","niue","norfolk_island","northern_mariana_islands","north_korea","norway","oman","pakistan","palau","palestinian_territories","panama","papua_new_guinea","paraguay","peru","philippines","pitcairn_islands","poland","portugal","puerto_rico","qatar","reunion","romania","ru","rwanda","st_barthelemy","st_helena","st_kitts_nevis","st_lucia","st_pierre_miquelon","st_vincent_grenadines","samoa","san_marino","sao_tome_principe","saudi_arabia","senegal","serbia","seychelles","sierra_leone","singapore","sint_maarten","slovakia","slovenia","solomon_islands","somalia","south_africa","south_georgia_south_sandwich_islands","kr","south_sudan","es","sri_lanka","sudan","suriname","swaziland","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timor_leste","togo","tokelau","tonga","trinidad_tobago","tunisia","tr","turkmenistan","turks_caicos_islands","tuvalu","uganda","ukraine","united_arab_emirates","uk","us","us_virgin_islands","uruguay","uzbekistan","vanuatu","vatican_city","venezuela","vietnam","wallis_futuna","western_sahara","yemen","zambia","zimbabwe","star_struck","face_with_raised_eyebrow","exploding_head","crazy_face","face_with_symbols_over_mouth","face_vomiting","shushing_face","face_with_hand_over_mouth","face_with_monocle","child","adult","older_adult","woman_with_headscarf","bearded_person","breast_feeding","mage","woman_mage","fairy","vampire","merperson","merman","elf","genie","woman_genie","zombie","woman_zombie","person_in_steamy_room","woman_in_steamy_room","person_climbing","woman_climbing","person_in_lotus_position","woman_in_lotus_position","love_you_gesture","palms_up_together","brain","orange_heart","scarf","gloves","coat","socks","billed_cap","zebra","giraffe","hedgehog","sauropod","t_rex","cricket","coconut","broccoli","pretzel","cut_of_meat","sandwich","bowl_with_spoon","canned_food","dumpling","fortune_cookie","takeout_box","pie","cup_with_straw","chopsticks","flying_saucer","sled","curling_stone","svalbard_and_jan_mayen","st_martin","us_outlying_islands","tristan_da_cunha","heard_and_mc_donald_islands","ceuta_and_melilla","diego_garcia","ascension_island","bouvet_island","clipperton_island","united_nations","smiling_face_with_three_hearts","hot_face","cold_face","partying_face","woozy_face","pleading_face","man_red_haired","man_curly_haired","man_white_haired","man_bald","woman_red_haired","woman_curly_haired","woman_white_haired","woman_bald","superhero","man_superhero","woman_superhero","supervillain","woman_supervillain","man_supervillain","leg","foot","bone","tooth","goggles","lab_coat","hiking_boot","flat_shoe","raccoon","llama","hippopotamus","kangaroo","badger","swan","peacock","parrot","lobster","mosquito","microbe","mango","leafy_green","bagel","salt","moon_cake","cupcake","compass","brick","skateboard","luggage","firecracker","red_gift_envelope","softball","flying_disc","lacrosse","nazar_amulet","jigsaw","teddy_bear","chess_pawn","thread","yarn","abacus","receipt","toolbox","magnet","test_tube","petri_dish","dna","lotion_bottle","safety_pin","broom","basket","roll_of_toilet_paper","soap","sponge","fire_extinguisher","infinity","pirate_flag","waffle","otter","sloth","ice_cube","ringer_planet","flamingo","yawning_face","pinching_hand","service_dog","orangutan","auto_rickshaw","parachute","yo-yo","kite","brown_square","purple_square","blue_square","green_square","yellow_square","orange_square","red_square","brown_circle","purple_circle","green_circle","yellow_circle","orange_circle","razor","chair","stethoscope","adhesive_bandage","drop_of_blood","probing_cane","axe","diya_lamp","banjo","ballet_shoes","shorts","briefs","one_piece_swimsuit","sari","safety_vest","diving_mask","motorized_wheelchair","manual_wheelchair","hindu_temple","maté","beverage_box","oyster","butter","falafel","onion","garlic","skunk","guide_dog","people_holding_hands","woman_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_with_probing_cane","man_with_probing_cane","woman_kneeling","man_kneeling","man_standing","woman_standing","deaf_woman","deaf_man","hear_with_hearing_aid","mechanical_leg","mechanical_arm","white_heart","brown_heart","transgender_flag","smiling_face_with_tear","disguised_face","pinched_fingers","anatomical_heart","lungs","ninja","mx_claus","people_hugging","black_cat","bison","mammoth","beaver","dodo","feather","seal","beetle","cockroach","fly","worm","potted_plant","blueberries","olive","bell_pepper","flatbread","tamale","fondue","teapot","bubble_tea","rock","wood","hut","pickup_truck","roller_skate","magic_wand","piñata","nesting_dolls","sewing_needle","knot","thong_sandal","military_helmet","accordion","long_drum","coin","boomerang","carpentry_saw","screwdriver","hook","ladder","mirror","window","plunger","mouse_trap","bucket","toothbrush","headstone","placard","transgender_symbol","man_feeding_baby","person_feeding_baby","polar_bear","melting_face","smiling_face","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","saluting_face","dotted_line_face","face_in_clouds","face_exhaling","face_with_spiral_eyes","face_with_diagonal_mouth","frowning_face","face_holding_back_tears","heart_on_fire","mending_heart","eye_in_speech_bubble","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","hand_with_index_finger_and_thumb_crossed","index_pointing_at_the_viewer","heart_hands","biting_lip","man_beard","woman_beard","person_red_hair","person_curly_hair","person_white_hair","person_bald","man_blond_hair","person_frowning","person_pouting","person_gesturing_no","person_gesturing_ok","person_tipping_hand","person_raising_hand","deaf_person","man_bowing","person_facepalming","person_shrugging","health_worker","student","teacher","judge","farmer","cook","mechanic","factory_worker","office_worker","scientist","technologist","singer","artist","pilot","astronaut","firefighter","man_police_officer","man_detective","man_guard","man_construction_worker","person_with_crown","man_wearing_turban","man_in_tuxedo","woman_in_tuxedo","man_with_veil","woman_with_veil","pregnant_man","pregnant_person","woman_feeding_baby","man_mage","man_fairy","woman_fairy","man_vampire","woman_vampire","mermaid","man_elf","woman_elf","man_genie","man_zombie","troll","person_getting_massage","person_getting_haircut","man_walking","person_standing","person_kneeling","person_with_white_cane","person_in_motorized_wheelchair","person_in_manual_wheelchair","man_running","women_with_bunny_ears","man_in_steamy_room","man_climbing","man_golfing","man_surfing","man_rowing_boat","man_swimming","man_bouncing_ball","man_lifting_weights","man_biking","man_mountain_biking","person_cartwheeling","people_wrestling","person_playing_water_polo","person_playing_handball","person_juggling","man_in_lotus_position","kiss_woman_man","couple_with_heart_woman_man","family_man_woman_boy","red_hair","curly_hair","white_hair","bald","coral","lotus","empty_nest","nest_with_eggs","beans","pouring_liquid","jar","playground_slide","wheel","ring_buoy","hamsa","mirror_ball","low_battery","crutch","xray","elevator","bubbles","identification_card","eject_button","female_sign","male_sign","heavy_equals_sign","medical_symbol","england","scotland","wales"],i=["raised_hands","clap","wave","call_me_hand","+1","-1","facepunch","fist","fist_left","fist_right","v","ok_hand","raised_hand","raised_back_of_hand","open_hands","muscle","pray","handshake","point_up","point_up_2","point_down","point_left","point_right","fu","raised_hand_with_fingers_splayed","metal","crossed_fingers","vulcan_salute","writing_hand","selfie","nail_care","ear","nose","baby","boy","girl","man","woman","blonde_woman","blonde_man","older_man","older_woman","man_with_gua_pi_mao","woman_with_turban","man_with_turban","policewoman","policeman","construction_worker_woman","construction_worker_man","guardswoman","guardsman","male_detective","woman_health_worker","man_health_worker","woman_farmer","man_farmer","woman_cook","man_cook","woman_student","man_student","woman_singer","man_singer","woman_teacher","man_teacher","woman_factory_worker","man_factory_worker","woman_technologist","man_technologist","woman_office_worker","man_office_worker","woman_mechanic","man_mechanic","woman_scientist","man_scientist","woman_artist","man_artist","woman_firefighter","man_firefighter","woman_pilot","man_pilot","woman_astronaut","man_astronaut","woman_judge","man_judge","mrs_claus","santa","angel","pregnant_woman","princess","prince","bride_with_veil","person_in_tuxedo","running_woman","running_man","walking_woman","walking_man","dancer","man_dancing","couple","two_men_holding_hands","two_women_holding_hands","bowing_woman","bowing_man","man_facepalming","woman_facepalming","woman_shrugging","man_shrugging","tipping_hand_woman","tipping_hand_man","no_good_woman","no_good_man","ok_woman","ok_man","raising_hand_woman","raising_hand_man","pouting_woman","pouting_man","frowning_woman","frowning_man","haircut_woman","haircut_man","massage_woman","massage_man","golfing_man","snowboarder","woman_cartwheeling","man_cartwheeling","woman_playing_handball","man_playing_handball","rowing_woman","rowing_man","swimming_woman","swimming_man","woman_playing_water_polo","man_playing_water_polo","surfing_woman","surfing_man","bath","basketball_man","weight_lifting_man","biking_woman","biking_man","mountain_biking_woman","mountain_biking_man","horse_racing","business_suit_levitating","woman_juggling","man_juggling","sleeping_bed","child","adult","older_adult","woman_with_headscarf","bearded_person","breast_feeding","mage","woman_mage","fairy","vampire","merperson","merman","elf","person_in_steamy_room","woman_in_steamy_room","person_climbing","woman_climbing","person_in_lotus_position","woman_in_lotus_position","love_you_gesture","palms_up_together","man_red_haired","man_curly_haired","man_white_haired","man_bald","woman_red_haired","woman_curly_haired","woman_white_haired","woman_bald","superhero","man_superhero","woman_superhero","supervillain","woman_supervillain","man_supervillain","leg","foot","pinching_hand","people_holding_hands","woman_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_with_probing_cane","man_with_probing_cane","woman_kneeling","man_kneeling","man_standing","woman_standing","deaf_woman","deaf_man","hear_with_hearing_aid","pinched_fingers","ninja","mx_claus","man_feeding_baby","person_feeding_baby","person_red_hair","person_curly_hair","person_white_hair","person_bald","man_blond_hair","person_frowning","person_pouting","person_gesturing_no","person_gesturing_ok","person_tipping_hand","person_raising_hand","deaf_person","man_bowing","person_facepalming","person_shrugging","health_worker","student","teacher","judge","farmer","cook","mechanic","factory_worker","office_worker","scientist","technologist","singer","artist","pilot","astronaut","firefighter","man_police_officer","man_detective","man_guard","man_construction_worker","man_wearing_turban","man_in_tuxedo","woman_in_tuxedo","man_with_veil","woman_with_veil","woman_feeding_baby","man_mage","man_fairy","woman_fairy","man_vampire","woman_vampire","mermaid","man_elf","woman_elf","person_getting_massage","person_getting_haircut","man_walking","person_standing","person_kneeling","person_with_white_cane","person_in_motorized_wheelchair","person_in_manual_wheelchair","man_running","man_in_steamy_room","man_climbing","man_golfing","man_surfing","man_rowing_boat","man_swimming","man_bouncing_ball","man_lifting_weights","man_biking","man_mountain_biking","person_cartwheeling","person_playing_water_polo","person_playing_handball","person_juggling","man_in_lotus_position"],s={right_anger_bubble:["anger_right"],ballot_box:["ballot_box_with_ballot"],basketball_man:["basketball_player","person_with_ball"],beach_umbrella:["umbrella_on_ground","beach","beach_with_umbrella"],parasol_on_ground:["umbrella_on_ground"],bellhop_bell:["bellhop"],biohazard:["biohazard_sign"],bow_and_arrow:["archery"],spiral_calendar:["calendar_spiral","spiral_calendar_pad"],card_file_box:["card_box"],champagne:["bottle_with_popping_cork"],cheese:["cheese_wedge"],city_sunset:["city_dusk"],couch_and_lamp:["couch"],crayon:["lower_left_crayon"],cricket_bat_and_ball:["cricket_bat_ball"],latin_cross:["cross"],dagger:["dagger_knife"],desktop_computer:["desktop"],card_index_dividers:["dividers"],dove:["dove_of_peace"],footprints:["feet"],fire:["flame"],black_flag:["flag_black","waving_black_flag"],cn:["flag_cn"],de:["flag_de"],es:["flag_es"],fr:["flag_fr"],uk:["gb","flag_gb"],it:["flag_it"],jp:["flag_jp"],kr:["flag_kr"],ru:["flag_ru"],us:["flag_us"],white_flag:["flag_white","waving_white_flag"],plate_with_cutlery:["fork_knife_plate","fork_and_knife_with_plate"],framed_picture:["frame_photo","frame_with_picture"],hammer_and_pick:["hammer_pick"],heavy_heart_exclamation:["heart_exclamation","heavy_heart_exclamation_mark_ornament"],houses:["homes","house_buildings"],hotdog:["hot_dog"],derelict_house:["house_abandoned","derelict_house_building"],desert_island:["island"],old_key:["key2"],laughing:["satisfied"],business_suit_levitating:["levitate","man_in_business_suit_levitating"],weight_lifting_man:["lifter","weight_lifter"],medal_sports:["medal","sports_medal"],metal:["sign_of_the_horns"],fu:["middle_finger","reversed_hand_with_middle_finger_extended"],motorcycle:["racing_motorcycle"],mountain_snow:["snow_capped_mountain"],newspaper_roll:["newspaper2","rolled_up_newspaper"],spiral_notepad:["notepad_spiral","spiral_note_pad"],oil_drum:["oil"],older_woman:["grandma"],paintbrush:["lower_left_paintbrush"],paperclips:["linked_paperclips"],pause_button:["double_vertical_bar"],peace_symbol:["peace"],fountain_pen:["pen_fountain","lower_left_fountain_pen"],ping_pong:["table_tennis"],place_of_worship:["worship_symbol"],poop:["shit","hankey","poo"],radioactive:["radioactive_sign"],railway_track:["railroad_track"],robot:["robot_face"],skull:["skeleton"],skull_and_crossbones:["skull_crossbones"],speaking_head:["speaking_head_in_silhouette"],male_detective:["spy","sleuth_or_spy"],thinking:["thinking_face"],"-1":["thumbsdown"],"+1":["thumbsup"],cloud_with_lightning_and_rain:["thunder_cloud_rain","thunder_cloud_and_rain"],tickets:["admission_tickets"],next_track_button:["track_next","next_track"],previous_track_button:["track_previous","previous_track"],unicorn:["unicorn_face"],funeral_urn:["urn"],sun_behind_large_cloud:["white_sun_cloud","white_sun_behind_cloud"],sun_behind_rain_cloud:["white_sun_rain_cloud","white_sun_behind_cloud_with_rain"],partly_sunny:["white_sun_small_cloud","white_sun_with_small_cloud"],open_umbrella:["umbrella2"],hammer_and_wrench:["tools"],face_with_thermometer:["thermometer_face"],timer_clock:["timer"],keycap_ten:["ten"],memo:["pencil"],rescue_worker_helmet:["helmet_with_cross","helmet_with_white_cross"],slightly_smiling_face:["slightly_smiling","slight_smile"],construction_worker_man:["construction_worker"],upside_down_face:["upside_down"],money_mouth_face:["money_mouth"],nerd_face:["nerd"],hugs:["hugging","hugging_face"],roll_eyes:["rolling_eyes","face_with_rolling_eyes"],slightly_frowning_face:["frowning","slight_frown"],frowning_face:["frowning2","white_frowning_face"],zipper_mouth_face:["zipper_mouth"],face_with_head_bandage:["head_bandage"],raised_hand_with_fingers_splayed:["hand_splayed"],raised_hand:["hand"],vulcan_salute:["vulcan","raised_hand_with_part_between_middle_and_ring_fingers"],policeman:["cop"],running_man:["runner"],walking_man:["walking"],bowing_man:["bow"],no_good_woman:["no_good"],raising_hand_woman:["raising_hand"],pouting_woman:["person_with_pouting_face"],frowning_woman:["person_frowning"],haircut_woman:["haircut"],massage_woman:["massage"],tshirt:["shirt"],biking_man:["bicyclist"],mountain_biking_man:["mountain_bicyclist"],passenger_ship:["cruise_ship"],motor_boat:["motorboat","boat"],flight_arrival:["airplane_arriving"],flight_departure:["airplane_departure"],small_airplane:["airplane_small"],racing_car:["race_car"],family_man_woman_boy_boy:["family_man_woman_boys"],family_man_woman_girl_girl:["family_man_woman_girls"],family_woman_woman_boy:["family_women_boy"],family_woman_woman_girl:["family_women_girl"],family_woman_woman_girl_boy:["family_women_girl_boy"],family_woman_woman_boy_boy:["family_women_boys"],family_woman_woman_girl_girl:["family_women_girls"],family_man_man_boy:["family_men_boy"],family_man_man_girl:["family_men_girl"],family_man_man_girl_boy:["family_men_girl_boy"],family_man_man_boy_boy:["family_men_boys"],family_man_man_girl_girl:["family_men_girls"],cloud_with_lightning:["cloud_lightning"],tornado:["cloud_tornado","cloud_with_tornado"],cloud_with_rain:["cloud_rain"],cloud_with_snow:["cloud_snow"],asterisk:["keycap_star"],studio_microphone:["microphone2"],medal_military:["military_medal"],couple_with_heart_woman_woman:["female_couple_with_heart"],couple_with_heart_man_man:["male_couple_with_heart"],couplekiss_woman_woman:["female_couplekiss"],couplekiss_man_man:["male_couplekiss"],honeybee:["bee"],lion:["lion_face"],artificial_satellite:["satellite_orbital"],computer_mouse:["mouse_three_button","three_button_mouse"],hocho:["knife"],swimming_man:["swimmer"],wind_face:["wind_blowing_face"],golfing_man:["golfer"],facepunch:["punch"],building_construction:["construction_site"],family_man_woman_girl_boy:["family"],ice_hockey:["hockey"],snowman_with_snow:["snowman2"],play_or_pause_button:["play_pause"],film_projector:["projector"],shopping:["shopping_bags"],open_book:["book"],national_park:["park"],world_map:["map"],pen:["pen_ballpoint","lower_left_ballpoint_pen"],email:["envelope","e-mail"],phone:["telephone"],atom_symbol:["atom"],mantelpiece_clock:["clock"],camera_flash:["camera_with_flash"],film_strip:["film_frames"],balance_scale:["scales"],surfing_man:["surfer"],couplekiss_man_woman:["couplekiss"],couple_with_heart_woman_man:["couple_with_heart"],clamp:["compression"],dancing_women:["dancers"],blonde_man:["person_with_blond_hair"],sleeping_bed:["sleeping_accommodation"],om:["om_symbol"],tipping_hand_woman:["information_desk_person"],rowing_man:["rowboat"],new_moon:["moon"],oncoming_automobile:["car","automobile"],fleur_de_lis:["fleur-de-lis"],face_vomiting:["puke"],smile:["grinning_face_with_smiling_eyes"],frowning_with_open_mouth:["frowning_face_with_open_mouth"],smiling_face:["relaxed"]},o={sad:["frowning_face","slightly_frowning_face","sob","crying_cat_face","cry","face_holding_back_tears"],cry:["sob","crying_cat_face","face_holding_back_tears"],face:["grinning","grimacing","grin","joy","rofl","smiley","smile","sweat_smile","laughing","innocent","wink","blush","slightly_smiling_face","upside_down_face","yum","relieved","heart_eyes","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","stuck_out_tongue","money_mouth_face","nerd_face","sunglasses","clown_face","cowboy_hat_face","hugs","smirk","no_mouth","neutral_face","expressionless","unamused","roll_eyes","thinking","lying_face","flushed","disappointed","worried","angry","rage","pensive","confused","slightly_frowning_face","persevere","confounded","tired_face","weary","triumph","open_mouth","scream","fearful","cold_sweat","hushed","frowning_with_open_mouth","anguished","cry","disappointed_relieved","drooling_face","sleepy","sweat","sob","dizzy_face","astonished","zipper_mouth_face","nauseated_face","sneezing_face","mask","face_with_thermometer","face_with_head_bandage","sleeping","poop","smiling_imp","imp","japanese_ogre","japanese_goblin","skull","ghost","alien","robot","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","eyes","speaking_head","angel","rescue_worker_helmet","dog","cat","mouse","hamster","rabbit","fox_face","bear","panda_face","koala","tiger","lion","cow","pig","pig_nose","frog","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","wolf","horse","unicorn","whale","dragon_face","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","wind_face","space_invader","skull_and_crossbones","moyai","star_struck","face_with_monocle","disguised_face","smiling_face","frowning_face","person_facepalming","person_getting_massage"],grin:["grinning","smile_cat"],"grinning face":["grinning"],grimace:["grimacing"],"grimacing face":["grimacing"],"beaming face with smiling eyes":["grin"],eye:["grin","smile","blush","heart_eyes","kissing_smiling_eyes","kissing_closed_eyes","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","smile_cat","heart_eyes_cat","kissing_cat","eyes","eyeglasses","dark_sunglasses","crazy_face"],smile:["grin","smiley","sweat_smile","laughing","blush","slightly_smiling_face","yum","heart_eyes","kissing_smiling_eyes","smiling_imp","smiley_cat","smile_cat","heart_eyes_cat","smirk_cat","smiling_face"],"face with tears of joy":["joy"],laugh:["joy","rofl","laughing"],tear:["joy","cry","sob","joy_cat","crying_cat_face","smiling_face_with_tear"],floor:["rofl"],rolling:["rofl","roll_eyes"],"rolling on the floor laughing":["rofl"],rotfl:["rofl"],"grinning face with big eyes":["smiley"],mouth:["smiley","smile","laughing","money_mouth_face","no_mouth","open_mouth","frowning_with_open_mouth","zipper_mouth_face","smiley_cat","lips"],open:["smiley","smile","sweat_smile","open_mouth","frowning_with_open_mouth","smiley_cat","open_hands","mailbox_with_mail","mailbox_with_no_mail","open_file_folder","open_book","unlock"],"grinning face with smiling eyes":["smile"],cold:["sweat_smile","cold_sweat","sweat","mask","snowflake","cloud_with_snow","snowman","snowman_with_snow","droplet","mountain_snow","cold_face","ice_cube"],"grinning face with sweat":["sweat_smile"],sweat:["sweat_smile","cold_sweat","droplet","sweat_drops"],"grinning squinting face":["laughing"],satisfied:["laughing"],angel:["innocent"],fantasy:["innocent","smiling_imp","imp","japanese_ogre","japanese_goblin","ghost","alien","angel","princess","crystal_ball","troll"],halo:["innocent"],"smiling face with halo":["innocent"],"winking face":["wink"],"smiling face with smiling eyes":["blush"],"upside-down":["upside_down_face"],"upside-down face":["upside_down_face"],delicious:["yum"],"face savoring food":["yum"],savouring:["yum"],"relieved face":["relieved"],love:["heart_eyes","heart_eyes_cat","couple_with_heart","love_hotel","love_letter","two_hearts","hand_with_index_finger_and_thumb_crossed","heart_hands"],"smiling face with heart-eyes":["heart_eyes"],"face blowing a kiss":["kissing_heart"],kiss:["kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","kissing_cat","couplekiss_man_woman"],"kissing face":["kissing"],"kissing face with smiling eyes":["kissing_smiling_eyes"],closed:["kissing_closed_eyes","mailbox_closed","mailbox","closed_book","closed_lock_with_key","lock"],"kissing face with closed eyes":["kissing_closed_eyes"],joke:["stuck_out_tongue_winking_eye"],tongue:["stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","stuck_out_tongue"],wink:["stuck_out_tongue_winking_eye"],"winking face with tongue":["stuck_out_tongue_winking_eye"],horrible:["stuck_out_tongue_closed_eyes"],"squinting face with tongue":["stuck_out_tongue_closed_eyes"],taste:["stuck_out_tongue_closed_eyes"],"face with tongue":["stuck_out_tongue"],money:["money_mouth_face","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","chart","heavy_dollar_sign","currency_exchange","red_gift_envelope","coin","hand_with_index_finger_and_thumb_crossed"],"money-mouth face":["money_mouth_face"],geek:["nerd_face"],nerd:["nerd_face"],bright:["sunglasses","full_moon_with_face","sun_with_face","sunny","high_brightness"],cool:["sunglasses"],"smiling face with sunglasses":["sunglasses"],sun:["sunglasses","sunflower","sun_with_face","sunny","sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","sunrise","sunrise_over_mountains","city_sunrise","parasol_on_ground"],clown:["clown_face"],cowboy:["cowboy_hat_face"],cowgirl:["cowboy_hat_face"],hat:["cowboy_hat_face","man_with_gua_pi_mao","construction_worker_man","womans_hat","tophat","rescue_worker_helmet","mortar_board","partying_face"],hug:["hugs","people_hugging"],hugging:["hugs"],"open hands":["hugs"],"smiling face":["hugs"],"smiling face with open hands":["hugs"],"smirking face":["smirk"],"face without mouth":["no_mouth"],quiet:["no_mouth","mute","no_bell","shushing_face"],silent:["no_mouth","mute","no_bell"],deadpan:["neutral_face"],meh:["neutral_face","expressionless","confused","face_with_diagonal_mouth"],neutral:["neutral_face"],inexpressive:["expressionless"],unexpressive:["expressionless"],"expressionless face":["expressionless"],unhappy:["unamused"],"unamused face":["unamused"],eyeroll:["roll_eyes"],eyes:["roll_eyes","star_struck"],"face with rolling eyes":["roll_eyes"],"thinking face":["thinking"],lie:["lying_face"],pinocchio:["lying_face"],dazed:["flushed"],"flushed face":["flushed"],"disappointed face":["disappointed"],"worried face":["worried"],anger:["angry"],mad:["angry","rage","anger","right_anger_bubble"],"angry face":["angry"],angry:["rage","anger","right_anger_bubble","face_holding_back_tears"],enraged:["rage"],pouting:["rage","pouting_cat","person_pouting"],red:["rage","apple","cherries","izakaya_lantern","o","arrow_up_small","arrow_down_small","red_circle","small_red_triangle","small_red_triangle_down","mahjong","red_square"],"enraged face":["rage"],dejected:["pensive"],"pensive face":["pensive"],"confused face":["confused"],frown:["slightly_frowning_face","frowning_with_open_mouth","frowning_face","person_frowning"],"persevering face":["persevere"],"confounded face":["confounded"],tired:["tired_face","weary","yawning_face"],"weary face":["weary"],"face with steam from nose":["triumph"],won:["triumph"],"face with open mouth":["open_mouth"],sympathy:["open_mouth"],"face screaming in fear":["scream"],fear:["scream","fearful","biting_lip"],munch:["scream"],scared:["scream","fearful","face_with_open_eyes_and_hand_over_mouth"],"fearful face":["fearful"],"anxious face with sweat":["cold_sweat"],blue:["cold_sweat","blue_book","blue_heart","large_blue_circle","small_blue_diamond","large_blue_diamond","blue_square","blueberries"],rushed:["cold_sweat"],stunned:["hushed"],surprised:["hushed","scream_cat"],"hushed face":["hushed"],"frowning face with open mouth":["frowning_with_open_mouth"],"anguished face":["anguished"],"crying face":["cry"],disappointed:["disappointed_relieved","face_with_diagonal_mouth"],relieved:["disappointed_relieved","smiling_face_with_tear"],"sad but relieved face":["disappointed_relieved"],whew:["disappointed_relieved"],drooling:["drooling_face"],"good night":["sleepy","sleeping","zzz","sleeping_bed"],sleep:["sleepy","sleeping","zzz","sleeping_bed","bed"],"sleepy face":["sleepy"],"downcast face with sweat":["sweat"],"loudly crying face":["sob"],"crossed-out eyes":["dizzy_face"],dead:["dizzy_face"],"face with crossed-out eyes":["dizzy_face"],"knocked out":["dizzy_face"],shocked:["astonished","exploding_head"],totally:["astonished"],"astonished face":["astonished"],zipper:["zipper_mouth_face"],"zipper-mouth face":["zipper_mouth_face"],nauseated:["nauseated_face"],vomit:["nauseated_face","face_vomiting"],gesundheit:["sneezing_face"],sneeze:["sneezing_face"],doctor:["mask","hospital","pill","lab_coat","stethoscope","xray"],"face with medical mask":["mask"],sick:["mask","face_with_thermometer","pill","syringe","face_vomiting"],ill:["face_with_thermometer"],thermometer:["face_with_thermometer"],bandage:["face_with_head_bandage","adhesive_bandage"],"face with head-bandage":["face_with_head_bandage"],hurt:["face_with_head_bandage","crutch"],injury:["face_with_head_bandage","drop_of_blood"],"sleeping face":["sleeping"],ZZZ:["sleeping","zzz"],comic:["zzz","muscle","dizzy","boom","dash","droplet","sweat_drops","bulb","bomb","anger","diamond_shape_with_a_dot_inside","thought_balloon","speech_balloon"],dung:["poop"],monster:["poop","japanese_ogre","japanese_goblin","skull","ghost","robot","space_invader","skull_and_crossbones","troll"],"pile of poo":["poop"],poo:["poop"],"fairy tale":["smiling_imp","japanese_ogre","japanese_goblin","skull","ghost","angel","princess","dragon","dragon_face","crystal_ball","troll"],horns:["smiling_imp","metal"],"smiling face with horns":["smiling_imp"],"angry face with horns":["imp"],demon:["imp"],devil:["imp"],creature:["japanese_ogre","japanese_goblin","ghost","alien","space_invader"],ogre:["japanese_ogre"],goblin:["japanese_goblin"],death:["skull","skull_and_crossbones","coffin","funeral_urn"],extraterrestrial:["alien","space_invader"],ufo:["alien","space_invader"],cat:["smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","cat2","black_cat"],grinning:["smiley_cat","star_struck"],"grinning cat":["smiley_cat"],"grinning cat with smiling eyes":["smile_cat"],"cat with tears of joy":["joy_cat"],joy:["joy_cat"],heart:["heart_eyes_cat","love_letter","heart_decoration","stethoscope","white_heart","brown_heart","anatomical_heart","hand_with_index_finger_and_thumb_crossed"],"smiling cat with heart-eyes":["heart_eyes_cat"],"cat with wry smile":["smirk_cat"],ironic:["smirk_cat"],wry:["smirk_cat"],oh:["scream_cat"],weary:["scream_cat"],"weary cat":["scream_cat"],"crying cat":["crying_cat_face"],celebration:["raised_hands","mrs_claus","santa","mortar_board","christmas_tree","bamboo","tanabata_tree","jack_o_lantern","birthday","medal_military","reminder_ribbon","rice_scene","sparkler","fireworks","balloon","flags","ribbon","gift","confetti_ball","tada","dolls","wind_chime","crossed_flags","partying_face","piñata"],gesture:["raised_hands","bowing_man","person_frowning","person_pouting","person_gesturing_no","person_gesturing_ok","person_raising_hand"],hand:["raised_hands","clap","wave","call_me_hand","+1","-1","facepunch","fist","v","ok_hand","raised_hand","open_hands","pray","handshake","point_up","point_up_2","point_down","point_left","point_right","fu","raised_hand_with_fingers_splayed","metal","crossed_fingers","vulcan_salute","writing_hand","couple","two_women_holding_hands","love_you_gesture","gloves","people_holding_hands","rightwards_hand","leftwards_hand","person_gesturing_no","person_gesturing_ok","person_tipping_hand","person_raising_hand","hamsa"],hooray:["raised_hands"],raised:["raised_hands","raised_back_of_hand","person_raising_hand"],"raising hands":["raised_hands"],"clapping hands":["clap"],waving:["wave","white_flag","black_flag"],"waving hand":["wave"],call:["call_me_hand"],"hang loose":["call_me_hand"],Shaka:["call_me_hand"],thumb:["+1","-1"],"thumbs up":["+1"],up:["+1","point_up","point_up_2","top"],down:["-1","point_down","chart_with_downwards_trend","arrow_down_small","arrow_double_down","arrow_down","arrow_heading_down","small_red_triangle_down"],"thumbs down":["-1"],clenched:["facepunch","fist"],fist:["facepunch","fist_left","fist_right"],"oncoming fist":["facepunch"],punch:["facepunch","fist"],"raised fist":["fist"],"left-facing fist":["fist_left"],leftwards:["fist_left"],"right-facing fist":["fist_right"],rightwards:["fist_right"],victory:["v"],"victory hand":["v"],OK:["ok_hand","ok","saluting_face","person_gesturing_ok"],"OK hand":["ok_hand"],"high 5":["raised_hand","pray"],"high five":["raised_hand","pray"],backhand:["raised_back_of_hand","point_up_2","point_down","point_left","point_right"],biceps:["muscle"],flex:["muscle"],"flexed biceps":["muscle"],ask:["pray"],"folded hands":["pray"],please:["pray"],thanks:["pray","people_hugging"],agreement:["handshake"],meeting:["handshake"],shake:["handshake"],finger:["point_up","point_up_2","point_down","point_left","point_right","fu","raised_hand_with_fingers_splayed","metal","crossed_fingers","vulcan_salute"],index:["point_up","point_left","point_right","card_index","card_index_dividers"],"index pointing up":["point_up"],point:["point_up","point_up_2","point_down","point_left","point_right","index_pointing_at_the_viewer"],"backhand index pointing up":["point_up_2"],"backhand index pointing down":["point_down"],"backhand index pointing left":["point_left"],"backhand index pointing right":["point_right"],"middle finger":["fu"],"hand with fingers splayed":["raised_hand_with_fingers_splayed"],splayed:["raised_hand_with_fingers_splayed"],"rock-on":["metal"],"sign of the horns":["metal"],cross:["crossed_fingers","rescue_worker_helmet","church","crossed_flags","latin_cross","orthodox_cross","x"],luck:["crossed_fingers"],spock:["vulcan_salute"],vulcan:["vulcan_salute"],write:["writing_hand"],camera:["selfie","camera_flash","video_camera","movie_camera","cinema"],phone:["selfie","iphone","calling","telephone_receiver","mobile_phone_off","vibration_mode","no_mobile_phones","signal_strength"],care:["nail_care"],cosmetics:["nail_care","lipstick"],manicure:["nail_care"],nail:["nail_care"],polish:["nail_care"],"nail polish":["nail_care"],body:["tongue","ear","nose","eye"],bust:["bust_in_silhouette","busts_in_silhouette"],silhouette:["bust_in_silhouette","busts_in_silhouette","speaking_head"],head:["speaking_head"],speak:["speaking_head","speak_no_evil"],speaking:["speaking_head"],young:["baby","boy","girl","seedling","child"],Virgo:["girl","virgo"],zodiac:["girl","two_men_holding_hands","lion","scorpion","crab","snake","fish","ox","goat","ram","bow_and_arrow","balance_scale","amphora","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces"],adult:["man","woman","older_man","older_woman","older_adult"],blond:["blonde_man"],"blond-haired person":["blonde_man"],hair:["blonde_man","white_hair"],"person: blond hair":["blonde_man"],man:["older_man","man_farmer","man_cook","man_student","man_singer","man_teacher","man_factory_worker","man_technologist","man_office_worker","man_mechanic","man_scientist","man_artist","man_firefighter","man_astronaut","man_dancing","couple","two_men_holding_hands","mans_shoe","mens","man_in_manual_wheelchair","man_in_motorized_wheelchair","man_with_probing_cane","man_feeding_baby","male_sign"],old:["older_man","older_woman","old_key","older_adult","white_hair"],"old man":["older_man"],woman:["older_woman","woman_farmer","woman_cook","woman_student","woman_singer","woman_teacher","woman_factory_worker","woman_technologist","woman_office_worker","woman_mechanic","woman_scientist","woman_artist","woman_firefighter","woman_astronaut","pregnant_woman","dancer","couple","womans_clothes","high_heel","sandal","boot","womans_hat","womens","woman_in_manual_wheelchair","woman_in_motorized_wheelchair","woman_with_probing_cane","woman_feeding_baby","female_sign"],"old woman":["older_woman"],cap:["man_with_gua_pi_mao","mortar_board"],"gua pi mao":["man_with_gua_pi_mao"],person:["man_with_gua_pi_mao","bride_with_veil","person_in_tuxedo","business_suit_levitating","adult","bearded_person","people_holding_hands","person_feeding_baby"],"person with skullcap":["man_with_gua_pi_mao"],skullcap:["man_with_gua_pi_mao"],"person wearing turban":["man_with_turban"],turban:["man_with_turban"],cop:["policeman"],officer:["policeman"],police:["policeman","police_car","rotating_light","oncoming_police_car"],"police officer":["policeman"],construction:["construction_worker_man","building_construction"],worker:["construction_worker_man","woman_factory_worker","man_factory_worker","factory_worker"],"construction worker":["construction_worker_man"],guard:["guardsman"],detective:["male_detective"],sleuth:["male_detective"],spy:["male_detective"],farmer:["woman_farmer","man_farmer"],gardener:["woman_farmer","man_farmer","farmer"],rancher:["woman_farmer","man_farmer","farmer"],chef:["woman_cook","man_cook","cook"],cook:["woman_cook","man_cook"],graduate:["woman_student","man_student","student"],student:["woman_student","man_student"],actor:["woman_singer","man_singer","singer"],entertainer:["woman_singer","man_singer","singer"],rock:["woman_singer","man_singer","curling_stone","singer"],singer:["woman_singer","man_singer"],star:["woman_singer","man_singer","star2","dizzy","sparkles","night_with_stars","stars","star_of_david","six_pointed_star","eight_pointed_black_star","star_struck","singer"],instructor:["woman_teacher","man_teacher","teacher"],professor:["woman_teacher","man_teacher","teacher"],teacher:["woman_teacher","man_teacher"],assembly:["woman_factory_worker","man_factory_worker","factory_worker"],factory:["woman_factory_worker","man_factory_worker","factory_worker"],industrial:["woman_factory_worker","man_factory_worker","factory_worker"],coder:["woman_technologist","man_technologist","technologist"],developer:["woman_technologist","man_technologist","technologist"],inventor:["woman_technologist","man_technologist","technologist"],software:["woman_technologist","man_technologist","technologist"],technologist:["woman_technologist","man_technologist"],architect:["woman_office_worker","man_office_worker","office_worker"],business:["woman_office_worker","man_office_worker","business_suit_levitating","office_worker"],manager:["woman_office_worker","man_office_worker","office_worker"],"white-collar":["woman_office_worker","man_office_worker","office_worker"],electrician:["woman_mechanic","man_mechanic","mechanic"],mechanic:["woman_mechanic","man_mechanic","toolbox"],plumber:["woman_mechanic","man_mechanic","plunger","mechanic"],tradesperson:["woman_mechanic","man_mechanic","mechanic"],biologist:["woman_scientist","man_scientist","petri_dish","dna","scientist"],chemist:["woman_scientist","man_scientist","test_tube","scientist"],engineer:["woman_scientist","man_scientist","scientist"],physicist:["woman_scientist","man_scientist","scientist"],scientist:["woman_scientist","man_scientist","lab_coat"],artist:["woman_artist","man_artist"],palette:["woman_artist","man_artist","art","artist"],firefighter:["woman_firefighter","man_firefighter"],firetruck:["woman_firefighter","man_firefighter","firefighter"],astronaut:["woman_astronaut","man_astronaut"],rocket:["woman_astronaut","man_astronaut","astronaut"],Christmas:["mrs_claus","santa","christmas_tree"],claus:["mrs_claus","santa"],mother:["mrs_claus"],"Mrs.":["mrs_claus"],"Mrs. Claus":["mrs_claus"],father:["santa"],"Santa Claus":["santa"],baby:["angel","baby_chick","hatching_chick","hatched_chick","baby_bottle","baby_symbol","breast_feeding","man_feeding_baby","person_feeding_baby","woman_feeding_baby"],"baby angel":["angel"],pregnant:["pregnant_woman","pregnant_man","pregnant_person"],bride:["bride_with_veil"],"person with veil":["bride_with_veil"],veil:["bride_with_veil"],wedding:["bride_with_veil"],groom:["person_in_tuxedo"],tuxedo:["person_in_tuxedo"],marathon:["running_man"],"person running":["running_man"],running:["running_man","dash","running_shirt_with_sash"],hike:["walking_man"],"person walking":["walking_man"],walk:["walking_man"],walking:["walking_man"],dance:["dancer","man_dancing","ballet_shoes","mirror_ball"],dancing:["dancer","man_dancing"],"woman dancing":["dancer"],"bunny ear":["dancing_women"],dancer:["dancing_women"],partying:["dancing_women"],"people with bunny ears":["dancing_women"],hold:["couple","people_holding_hands"],"holding hands":["couple","two_men_holding_hands","two_women_holding_hands","people_holding_hands"],"woman and man holding hands":["couple"],couple:["two_men_holding_hands","two_women_holding_hands","couple_with_heart","couplekiss_man_woman","people_holding_hands"],Gemini:["two_men_holding_hands","gemini"],men:["two_men_holding_hands"],"men holding hands":["two_men_holding_hands"],twins:["two_men_holding_hands","gemini"],women:["two_women_holding_hands"],"women holding hands":["two_women_holding_hands"],apology:["bowing_man"],bow:["bowing_man","bow_and_arrow"],"person bowing":["bowing_man"],sorry:["bowing_man"],clothing:["womans_clothes","tshirt","jeans","necktie","dress","bikini","kimono","footprints","high_heel","sandal","boot","mans_shoe","athletic_shoe","womans_hat","tophat","mortar_board","crown","pouch","purse","handbag","eyeglasses","closed_umbrella","open_umbrella","umbrella","prayer_beads","sari"],"woman’s clothes":["womans_clothes"],shirt:["tshirt","running_shirt_with_sash"],"t-shirt":["tshirt"],pants:["jeans","shorts"],trousers:["jeans"],tie:["necktie","knot"],swim:["bikini","swimming_man"],makeup:["lipstick"],"kiss mark":["kiss"],lips:["kiss"],footprint:["footprints"],print:["footprints","paw_prints"],heel:["high_heel"],"high-heeled shoe":["high_heel"],shoe:["high_heel","sandal","boot","mans_shoe","athletic_shoe"],"woman’s sandal":["sandal"],"woman’s boot":["boot"],"man’s shoe":["mans_shoe"],athletic:["athletic_shoe"],"running shoe":["athletic_shoe"],sneaker:["athletic_shoe"],"woman’s hat":["womans_hat"],top:["tophat"],"top hat":["tophat"],aid:["rescue_worker_helmet"],helmet:["rescue_worker_helmet","military_helmet"],"rescue worker’s helmet":["rescue_worker_helmet"],graduation:["mortar_board"],"graduation cap":["mortar_board"],king:["crown"],queen:["crown"],backpack:["school_satchel"],bag:["school_satchel","pouch","handbag","moneybag","shopping"],rucksack:["school_satchel"],satchel:["school_satchel"],school:["school_satchel"],"clutch bag":["pouch"],coin:["purse"],purse:["handbag"],eyewear:["eyeglasses","dark_sunglasses"],glasses:["eyeglasses","dark_sunglasses","disguised_face"],dark:["dark_sunglasses","new_moon"],sunglasses:["dark_sunglasses"],diamond:["ring","gem","diamond_shape_with_a_dot_inside","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond"],rain:["closed_umbrella","sun_behind_rain_cloud","cloud_with_rain","cloud_with_lightning_and_rain","open_umbrella","umbrella","rainbow","parasol_on_ground"],umbrella:["closed_umbrella","open_umbrella","beach_umbrella","parasol_on_ground"],pet:["dog","cat","hamster","rabbit","dog2","cat2","rabbit2"],"dog face":["dog"],"cat face":["cat"],"mouse face":["mouse"],bunny:["rabbit","rabbit2"],"rabbit face":["rabbit"],fox:["fox_face"],panda:["panda_face"],marsupial:["koala","kangaroo"],"tiger face":["tiger"],Leo:["lion","leo"],"cow face":["cow"],"pig face":["pig"],nose:["pig_nose","disguised_face"],pig:["pig_nose","boar","pig2"],food:["squid","shrimp","kiwi_fruit","avocado","cucumber","carrot","potato","peanuts","croissant","baguette_bread","egg","bacon","pancakes","stuffed_flatbread","green_salad","shallow_pan_of_food","olive","beans"],molusc:["squid"],shellfish:["shrimp"],small:["shrimp","crazy_face"],monkey:["monkey_face","see_no_evil","hear_no_evil","speak_no_evil"],evil:["see_no_evil","hear_no_evil","speak_no_evil","black_heart","supervillain"],forbidden:["see_no_evil","hear_no_evil","speak_no_evil","no_entry","no_entry_sign","no_pedestrians","do_not_litter","no_bicycles","no_mobile_phones","no_smoking","no_bell","person_gesturing_no"],see:["see_no_evil"],"see-no-evil monkey":["see_no_evil"],hear:["hear_no_evil","deaf_person"],"hear-no-evil monkey":["hear_no_evil"],"speak-no-evil monkey":["speak_no_evil"],bird:["chicken","penguin","baby_chick","hatching_chick","hatched_chick","duck","eagle","owl","rooster","turkey","dove","swan","peacock","parrot","feather"],chick:["baby_chick","hatching_chick","hatched_chick"],hatching:["hatching_chick"],"front-facing baby chick":["hatched_chick"],wise:["owl"],vampire:["bat"],"horse face":["horse"],bee:["honeybee"],insect:["honeybee","bug","butterfly","lady_beetle","ant","spider","beetle","cockroach"],pretty:["butterfly"],beetle:["lady_beetle"],ladybird:["lady_beetle"],ladybug:["lady_beetle"],scorpio:["scorpion"],Scorpio:["scorpion","scorpius"],Cancer:["crab","cancer"],bearer:["snake","ophiuchus","aquarius"],Ophiuchus:["snake","ophiuchus"],serpent:["snake","ophiuchus"],reptile:["lizard"],terrapin:["turtle"],tortoise:["turtle"],fish:["tropical_fish","blowfish","shark","fish_cake","fishing_pole_and_fish","pisces"],tropical:["tropical_fish","tropical_drink","mango","flamingo"],Pisces:["fish","pisces"],flipper:["dolphin"],spouting:["whale"],"spouting whale":["whale"],whale:["whale2"],tiger:["tiger2"],buffalo:["water_buffalo","bison"],water:["water_buffalo","ocean","gun","shower","aquarius","non-potable_water","wc","potable_water","person_playing_water_polo"],bull:["ox","taurus"],Taurus:["ox","taurus"],cow:["cow2"],camel:["dromedary_camel"],dromedary:["dromedary_camel"],hump:["dromedary_camel","camel"],bactrian:["camel"],"two-hump camel":["camel"],Capricorn:["goat","capricorn"],Aries:["ram","aries"],male:["ram"],sheep:["ram"],ewe:["sheep"],female:["sheep"],equestrian:["racehorse"],horse:["racehorse","horse_racing","carousel_horse"],racing:["racehorse","horse_racing","racing_car","motorcycle","checkered_flag"],sow:["pig2"],mouse:["mouse2"],fly:["dove","money_with_wings","kite"],peace:["dove","peace_symbol"],dog:["dog2","poodle","service_dog"],rabbit:["rabbit2"],squirrel:["chipmunk"],feet:["paw_prints"],paw:["paw_prints"],dragon:["dragon_face"],plant:["cactus","shamrock","chestnut","rosette","potted_plant"],tree:["christmas_tree","evergreen_tree","deciduous_tree","palm_tree","tanabata_tree"],"Christmas tree":["christmas_tree"],deciduous:["deciduous_tree"],shedding:["deciduous_tree"],palm:["palm_tree","coconut","person_facepalming"],leaf:["herb","four_leaf_clover","leaves","fallen_leaf","maple_leaf","beginner"],4:["four_leaf_clover","clock4","clock430"],clover:["four_leaf_clover"],four:["four_leaf_clover","clock4","clock430"],"four-leaf clover":["four_leaf_clover"],Japanese:["bamboo","tanabata_tree","rice_ball","dango","japanese_castle","post_office","dolls","crossed_flags","u7a7a","u5272","u6709","u7121","u7533","u55b6","u6708","accept","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","beginner","u6307","sa","koko","flower_playing_cards"],pine:["bamboo"],"pine decoration":["bamboo"],banner:["tanabata_tree"],blow:["leaves","wind_face"],flutter:["leaves"],"leaf fluttering in wind":["leaves"],wind:["leaves","wind_face","wind_chime"],falling:["fallen_leaf","maple_leaf","stars"],maple:["maple_leaf"],ear:["ear_of_rice","corn","deaf_person"],grain:["ear_of_rice"],rice:["ear_of_rice","curry","rice_ball","rice_cracker"],"sheaf of rice":["ear_of_rice"],flower:["hibiscus","sunflower","rose","wilted_flower","tulip","blossom","cherry_blossom","bouquet","white_flower","flower_playing_cards","lotus"],wilted:["wilted_flower"],blossom:["cherry_blossom"],cherry:["cherry_blossom","cherries"],toadstool:["mushroom"],halloween:["jack_o_lantern"],jack:["jack_o_lantern"],"jack-o-lantern":["jack_o_lantern"],lantern:["jack_o_lantern","izakaya_lantern"],spiral:["shell","spiral_calendar","spiral_notepad","face_with_spiral_eyes"],"spiral shell":["shell"],spider:["spider_web"],web:["spider_web"],Americas:["earth_americas"],earth:["earth_americas","earth_africa","earth_asia","globe_with_meridians"],globe:["earth_americas","earth_africa","earth_asia","globe_with_meridians"],"globe showing Americas":["earth_americas"],world:["earth_americas","earth_africa","earth_asia","world_map","globe_with_meridians"],Africa:["earth_africa"],Europe:["earth_africa"],"globe showing Europe-Africa":["earth_africa"],Asia:["earth_asia"],Australia:["earth_asia","kangaroo"],"globe showing Asia-Australia":["earth_asia"],full:["full_moon","full_moon_with_face","100","pregnant_man","pregnant_person"],moon:["full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","crescent_moon","rice_scene"],gibbous:["waning_gibbous_moon","waxing_gibbous_moon"],waning:["waning_gibbous_moon","waning_crescent_moon"],quarter:["last_quarter_moon","first_quarter_moon","first_quarter_moon_with_face","last_quarter_moon_with_face"],crescent:["waning_crescent_moon","waxing_crescent_moon","crescent_moon"],waxing:["waxing_crescent_moon","waxing_gibbous_moon"],"new moon face":["new_moon_with_face"],"full moon face":["full_moon_with_face"],"first quarter moon face":["first_quarter_moon_with_face"],"last quarter moon face":["last_quarter_moon_with_face"],glittery:["star2"],glow:["star2"],"glowing star":["star2"],shining:["star2"],sparkle:["star2","sparkles","sparkler","sparkling_heart"],"*":["sparkles","eight_pointed_black_star","sparkle","eight_spoked_asterisk"],space:["comet","rocket","artificial_satellite","milky_way"],rays:["sunny"],cloud:["sun_behind_small_cloud","partly_sunny","sun_behind_large_cloud","sun_behind_rain_cloud","cloud_with_rain","cloud_with_lightning_and_rain","cloud_with_lightning","cloud_with_snow","wind_face","tornado","fog"],"sun behind cloud":["partly_sunny"],weather:["cloud","thermometer"],thunder:["cloud_with_lightning_and_rain"],lightning:["cloud_with_lightning","zap"],danger:["zap"],electric:["zap","railway_car","electric_plug","bulb","flashlight"],"high voltage":["zap"],voltage:["zap"],flame:["fire"],tool:["fire","anchor","clamp","flashlight","wrench","hammer","hammer_and_pick","hammer_and_wrench","pick","nut_and_bolt","gear","gun","hocho","crystal_ball","alembic","telescope","microscope","scissors","mag","mag_right","trident","toolbox","carpentry_saw","screwdriver"],collision:["boom"],snow:["snowflake","cloud_with_snow","snowman","snowman_with_snow","ski","skier","snowboarder","mountain_snow"],"snowman without snow":["snowman"],snowman:["snowman_with_snow"],"dashing away":["dash"],whirlwind:["tornado"],drop:["umbrella","droplet","palm_down_hand"],"umbrella with rain drops":["umbrella"],splashing:["sweat_drops"],"sweat droplets":["sweat_drops"],wave:["ocean"],"water wave":["ocean"],apple:["green_apple"],fruit:["green_apple","apple","pear","tangerine","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","pineapple","kiwi_fruit","avocado","tomato","mango"],green:["green_apple","green_salad","green_book","green_heart","green_square","green_circle"],"red apple":["apple"],orange:["tangerine","orange_book","small_orange_diamond","large_orange_diamond","orange_heart","orange_square","orange_circle"],citrus:["lemon"],grape:["grapes"],berry:["strawberry","blueberries"],berries:["cherries"],kiwi:["kiwi_fruit"],vegetable:["tomato","eggplant","cucumber","carrot","potato","peanuts","bell_pepper"],aubergine:["eggplant"],pickle:["cucumber"],hot:["hot_pepper","coffee","hotsprings","hot_face"],pepper:["hot_pepper","bell_pepper"],"ear of corn":["corn"],maize:["corn"],maze:["corn"],potato:["sweet_potato"],roasted:["sweet_potato"],sweet:["sweet_potato","honey_pot","dango","shaved_ice","ice_cream","icecream","cake","birthday","custard","candy","lollipop","chocolate_bar","doughnut","cookie","cupcake","beverage_box"],"roasted sweet potato":["sweet_potato"],nut:["peanuts","nut_and_bolt"],peanut:["peanuts"],honey:["honey_pot"],honeypot:["honey_pot"],pot:["honey_pot","stew","fondue","teapot"],bread:["croissant","baguette_bread","sandwich"],breakfast:["croissant","egg","bacon","pancakes","fried_egg","doughnut","bowl_with_spoon","bagel","waffle"],french:["croissant","baguette_bread","fries"],roll:["croissant"],loaf:["bread"],baguette:["baguette_bread"],"cheese wedge":["cheese"],meat:["bacon","meat_on_bone"],crêpe:["pancakes"],hotcake:["pancakes"],pancake:["pancakes"],bone:["poultry_leg","meat_on_bone"],chicken:["poultry_leg"],drumstick:["poultry_leg"],leg:["poultry_leg"],poultry:["poultry_leg"],fried:["fried_shrimp"],prawn:["fried_shrimp"],shrimp:["fried_shrimp"],tempura:["fried_shrimp"],cooking:["fried_egg","fork_and_knife","plate_with_cutlery","hocho","amphora"],egg:["fried_egg"],frying:["fried_egg"],pan:["fried_egg","shallow_pan_of_food"],burger:["hamburger"],"french fries":["fries"],falafel:["stuffed_flatbread"],flatbread:["stuffed_flatbread"],gyro:["stuffed_flatbread"],kebab:["stuffed_flatbread","oden"],stuffed:["stuffed_flatbread","teddy_bear"],frankfurter:["hotdog"],"hot dog":["hotdog"],sausage:["hotdog"],cheese:["pizza","fondue"],slice:["pizza","cake"],pasta:["spaghetti"],mexican:["taco","burrito","tamale"],wrap:["burrito"],salad:["green_salad"],casserole:["shallow_pan_of_food"],paella:["shallow_pan_of_food"],shallow:["shallow_pan_of_food"],bowl:["ramen"],noodle:["ramen"],steaming:["ramen","coffee","hotsprings"],"steaming bowl":["ramen"],"pot of food":["stew"],cake:["fish_cake","birthday"],"fish cake with swirl":["fish_cake"],pastry:["fish_cake","cake","birthday","pie"],swirl:["fish_cake"],box:["bento","gift","package","inbox_tray","outbox_tray","card_file_box","ballot_box","ballot_box_with_check","beverage_box"],"bento box":["bento"],"curry rice":["curry"],ball:["rice_ball","soccer","basketball","football","baseball","tennis","volleyball","rugby_football","8ball","golfing_man","ping_pong","field_hockey","cricket_bat_and_ball","basketball_man","bowling","crystal_ball","confetti_ball","softball","lacrosse","yarn","person_playing_handball"],cooked:["rice"],"cooked rice":["rice"],cracker:["rice_cracker"],seafood:["oden","lobster"],skewer:["oden","dango"],stick:["oden","dango","ice_hockey","field_hockey","lacrosse","crutch"],dessert:["dango","shaved_ice","ice_cream","icecream","cake","birthday","custard","candy","lollipop","chocolate_bar","doughnut","cookie"],ice:["shaved_ice","ice_cream","icecream","ice_hockey","ice_skate","ice_cube"],shaved:["shaved_ice"],cream:["ice_cream","icecream"],soft:["icecream","speaker"],"soft ice cream":["icecream"],shortcake:["cake"],"birthday cake":["birthday"],pudding:["custard"],candy:["lollipop"],bar:["chocolate_bar","beer","beers","wine_glass","cocktail","tropical_drink","champagne","sake","izakaya_lantern","bar_chart","signal_strength","pause_button","soap"],chocolate:["chocolate_bar","fondue"],donut:["doughnut"],drink:["milk_glass","beer","beers","clinking_glasses","wine_glass","cocktail","tropical_drink","champagne","sake","tea","coffee","baby_bottle","amphora","maté","teapot","pouring_liquid"],glass:["milk_glass","clinking_glasses","wine_glass","tumbler_glass","cocktail","mag","mag_right","pouring_liquid"],"glass of milk":["milk_glass"],milk:["milk_glass","baby_bottle","bubble_tea"],mug:["beer","beers"],"beer mug":["beer"],beer:["beers"],clink:["beers","clinking_glasses"],"clinking beer mugs":["beers"],celebrate:["clinking_glasses"],beverage:["wine_glass","sake","tea","coffee","beverage_box"],wine:["wine_glass"],liquor:["tumbler_glass"],shot:["tumbler_glass","syringe"],tumbler:["tumbler_glass"],whisky:["tumbler_glass"],"cocktail glass":["cocktail"],bottle:["champagne","sake","baby_bottle"],"bottle with popping cork":["champagne"],cork:["champagne"],popping:["champagne"],cup:["sake","tea"],teacup:["tea"],"teacup without handle":["tea"],tea:["coffee","teapot","bubble_tea"],"hot beverage":["coffee"],tableware:["spoon"],cutlery:["fork_and_knife"],fork:["fork_and_knife","plate_with_cutlery"],knife:["fork_and_knife","plate_with_cutlery","hocho","dagger"],"fork and knife with plate":["plate_with_cutlery"],plate:["plate_with_cutlery"],football:["soccer","rugby_football"],"soccer ball":["soccer"],hoop:["basketball"],american:["football"],"american football":["football"],racquet:["tennis","badminton"],game:["volleyball","8ball","ping_pong","badminton","ice_hockey","field_hockey","cricket_bat_and_ball","video_game","dart","game_die","slot_machine","bowling","joystick","black_joker","mahjong","spades","clubs","hearts","diamonds","flower_playing_cards","curling_stone"],rugby:["rugby_football"],8:["8ball","clock8","clock830"],billiard:["8ball"],eight:["8ball","clock8","clock830"],"pool 8 ball":["8ball"],"flag in hole":["golf"],hole:["golf"],golf:["golfing_man"],"person golfing":["golfing_man"],bat:["ping_pong","cricket_bat_and_ball"],paddle:["ping_pong"],"table tennis":["ping_pong"],birdie:["badminton"],shuttlecock:["badminton"],goal:["goal_net","lacrosse"],net:["goal_net"],hockey:["ice_hockey","field_hockey"],puck:["ice_hockey"],field:["field_hockey"],"cricket game":["cricket_bat_and_ball"],skis:["ski"],ski:["skier","snowboarder"],snowboard:["snowboarder"],fencer:["person_fencing"],fencing:["person_fencing"],sword:["person_fencing"],skate:["ice_skate","roller_skate"],archer:["bow_and_arrow","sagittarius"],arrow:["bow_and_arrow","calling","envelope_with_arrow","cupid","arrow_forward","next_track_button","play_or_pause_button","previous_track_button","fast_forward","rewind","twisted_rightwards_arrows","repeat","repeat_one","arrow_backward","arrow_up_small","arrow_down_small","arrow_double_up","arrow_double_down","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrows_counterclockwise","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","end","back","on","top","soon"],Sagittarius:["bow_and_arrow","sagittarius"],"fishing pole":["fishing_pole_and_fish"],pole:["fishing_pole_and_fish","barber"],boxing:["boxing_glove"],glove:["boxing_glove","softball"],judo:["martial_arts_uniform"],karate:["martial_arts_uniform"],"martial arts":["martial_arts_uniform"],taekwondo:["martial_arts_uniform"],uniform:["martial_arts_uniform"],boat:["rowing_man","sailboat","motor_boat","speedboat","ferry","canoe","ship"],"person rowing boat":["rowing_man"],rowboat:["rowing_man"],"person swimming":["swimming_man"],"person surfing":["surfing_man"],surfing:["surfing_man"],bathtub:["bath"],"person taking bath":["bath"],"person bouncing ball":["basketball_man"],lifter:["weight_lifting_man"],"person lifting weights":["weight_lifting_man"],weight:["weight_lifting_man"],bicycle:["biking_man","mountain_biking_man","bike","no_bicycles"],biking:["biking_man"],cyclist:["biking_man","mountain_biking_man"],"person biking":["biking_man"],bicyclist:["mountain_biking_man"],bike:["mountain_biking_man","no_bicycles"],mountain:["mountain_biking_man","mountain_cableway","mountain_railway","mountain_snow","mount_fuji","volcano","sunrise_over_mountains"],"person mountain biking":["mountain_biking_man"],jockey:["horse_racing"],racehorse:["horse_racing"],"person in suit levitating":["business_suit_levitating"],suit:["business_suit_levitating"],prize:["trophy"],athletics:["running_shirt_with_sash"],sash:["running_shirt_with_sash"],"running shirt":["running_shirt_with_sash"],medal:["medal_sports","medal_military","1st_place_medal","2nd_place_medal","3rd_place_medal"],"sports medal":["medal_sports"],military:["medal_military","military_helmet"],"military medal":["medal_military"],first:["1st_place_medal"],gold:["1st_place_medal","coin"],second:["2nd_place_medal"],silver:["2nd_place_medal","coin"],bronze:["3rd_place_medal"],third:["3rd_place_medal"],reminder:["reminder_ribbon"],ribbon:["reminder_ribbon","gift_heart"],admission:["ticket","tickets"],"admission tickets":["tickets"],ticket:["tickets"],art:["performing_arts","framed_picture"],mask:["performing_arts"],performing:["performing_arts"],theater:["performing_arts"],theatre:["performing_arts"],"artist palette":["art"],museum:["art","framed_picture"],painting:["art","framed_picture","paintbrush"],circus:["circus_tent"],tent:["circus_tent"],karaoke:["microphone"],mic:["microphone","studio_microphone"],earbud:["headphones"],headphone:["headphones"],music:["musical_score","musical_keyboard","drum","saxophone","trumpet","guitar","violin","studio_microphone","level_slider","control_knobs","musical_note","notes","banjo"],score:["musical_score","100"],instrument:["musical_keyboard","saxophone","trumpet","guitar","violin"],keyboard:["musical_keyboard"],piano:["musical_keyboard"],drumsticks:["drum"],sax:["saxophone"],"clapper board":["clapper"],movie:["clapper","movie_camera","film_projector","film_strip","cinema"],controller:["video_game"],alien:["space_invader"],"alien monster":["space_invader"],bullseye:["dart"],"direct hit":["dart"],hit:["dart"],target:["dart"],dice:["game_die"],die:["game_die"],slot:["slot_machine"],automobile:["red_car","oncoming_automobile"],car:["red_car","racing_car","police_car","rotating_light","oncoming_police_car","oncoming_automobile","aerial_tramway","railway_car","train","mountain_railway"],vehicle:["taxi","bus","ambulance","tractor","monorail","helicopter"],recreational:["blue_car"],"sport utility":["blue_car"],"sport utility vehicle":["blue_car"],bus:["trolleybus","minibus","oncoming_bus","busstop"],tram:["trolleybus","railway_car","train"],trolley:["trolleybus","shopping_cart"],patrol:["police_car"],engine:["fire_engine","steam_locomotive"],fire:["fire_engine","fire_extinguisher"],truck:["fire_engine","articulated_lorry","pickup_truck"],delivery:["truck"],"delivery truck":["truck"],lorry:["articulated_lorry"],semi:["articulated_lorry"],kick:["kick_scooter","leg","foot"],scooter:["kick_scooter","motor_scooter"],motor:["motor_scooter"],beacon:["rotating_light"],light:["rotating_light","vertical_traffic_light","traffic_light","bulb","flashlight","candle","izakaya_lantern","feather"],revolving:["rotating_light","revolving_hearts"],"police car light":["rotating_light"],oncoming:["oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi"],taxi:["oncoming_taxi"],aerial:["aerial_tramway"],cable:["aerial_tramway","mountain_cableway"],gondola:["aerial_tramway","mountain_cableway"],tramway:["aerial_tramway"],railway:["suspension_railway","railway_car","bullettrain_side","bullettrain_front","light_rail","mountain_railway","steam_locomotive","train2","station","railway_track"],suspension:["suspension_railway"],train:["railway_car","bullettrain_side","bullettrain_front","steam_locomotive","train2","station","railway_track"],trolleybus:["railway_car","train","tram"],"tram car":["train"],"high-speed train":["bullettrain_side"],shinkansen:["bullettrain_side","bullettrain_front"],speed:["bullettrain_side","bullettrain_front"],bullet:["bullettrain_front"],"bullet train":["bullettrain_front"],locomotive:["steam_locomotive"],steam:["steam_locomotive"],subway:["metro"],aeroplane:["small_airplane","airplane","flight_departure","flight_arrival"],airplane:["small_airplane","flight_departure","flight_arrival"],"check-in":["flight_departure"],departure:["flight_departure"],departures:["flight_departure"],"airplane departure":["flight_departure"],"airplane arrival":["flight_arrival"],arrivals:["flight_arrival"],arriving:["flight_arrival"],landing:["flight_arrival"],resort:["sailboat"],sea:["sailboat"],yacht:["sailboat"],motorboat:["motor_boat"],passenger:["ferry","passenger_ship","ship"],ship:["passenger_ship","anchor","trident"],satellite:["artificial_satellite"],chair:["seat"],barrier:["construction"],diesel:["fuelpump"],fuel:["fuelpump"],gas:["fuelpump"],pump:["fuelpump"],station:["fuelpump"],"fuel pump":["fuelpump"],stop:["busstop","stop_sign","stop_button"],"bus stop":["busstop"],signal:["vertical_traffic_light","traffic_light"],traffic:["vertical_traffic_light","traffic_light","no_entry","children_crossing"],"horizontal traffic light":["traffic_light"],checkered:["checkered_flag"],chequered:["checkered_flag"],"chequered flag":["checkered_flag"],"amusement park":["ferris_wheel","roller_coaster","playground_slide"],ferris:["ferris_wheel"],wheel:["ferris_wheel","wheel_of_dharma"],coaster:["roller_coaster"],roller:["roller_coaster","roller_skate"],carousel:["carousel_horse"],fog:["foggy"],Tokyo:["tokyo_tower"],tower:["tokyo_tower"],"Tokyo tower":["tokyo_tower"],building:["factory","office","bank","hotel","school"],ceremony:["rice_scene"],"moon viewing ceremony":["rice_scene"],"snow-capped mountain":["mountain_snow"],fuji:["mount_fuji"],eruption:["volcano"],Japan:["japan"],map:["japan","world_map"],"map of Japan":["japan"],camping:["tent","hiking_boot"],park:["national_park"],highway:["motorway"],road:["motorway"],morning:["sunrise","sunrise_over_mountains"],sunrise:["sunrise_over_mountains"],beach:["beach_umbrella"],"beach with umbrella":["beach_umbrella"],desert:["desert_island"],island:["desert_island"],dusk:["city_sunrise","city_sunset"],sunset:["city_sunrise","city_sunset"],city:["city_sunset","cityscape"],"cityscape at dusk":["city_sunset"],evening:["city_sunset"],landscape:["city_sunset"],night:["night_with_stars","bridge_at_night"],bridge:["bridge_at_night"],shooting:["stars"],"shooting star":["stars"],fireworks:["sparkler","firecracker"],castle:["european_castle","japanese_castle"],European:["european_castle","european_post_office"],"Japanese castle":["japanese_castle"],liberty:["statue_of_liberty"],statue:["statue_of_liberty","moyai"],"Statue of Liberty":["statue_of_liberty"],home:["house","house_with_garden"],garden:["house_with_garden"],house:["house_with_garden","derelict_house","potted_plant","hut"],derelict:["derelict_house"],"office building":["office"],department:["department_store"],store:["department_store","convenience_store","jar"],"Japanese post office":["post_office"],post:["post_office","european_post_office","postal_horn","triangular_flag_on_post"],"post office":["european_post_office"],medicine:["hospital","pill","syringe","stethoscope","drop_of_blood","medical_symbol"],convenience:["convenience_store"],hotel:["love_hotel","couch_and_lamp","sleeping_bed","bed","bellhop_bell","shopping"],chapel:["wedding"],romance:["wedding"],classical:["classical_building"],Christian:["church","latin_cross","orthodox_cross"],religion:["church","mosque","synagogue","kaaba","shinto_shrine","prayer_beads","latin_cross","star_and_crescent","om","wheel_of_dharma","star_of_david","menorah","yin_yang","orthodox_cross","place_of_worship"],islam:["mosque","kaaba","star_and_crescent"],Muslim:["mosque","kaaba","star_and_crescent"],Jew:["synagogue","star_of_david"],Jewish:["synagogue","star_of_david"],temple:["synagogue","hindu_temple"],shinto:["shinto_shrine"],shrine:["shinto_shrine"],clock:["watch","stopwatch","timer_clock","alarm_clock","mantelpiece_clock","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230"],cell:["iphone","calling","mobile_phone_off","vibration_mode","no_mobile_phones","signal_strength"],mobile:["iphone","calling","mobile_phone_off","vibration_mode","no_mobile_phones","signal_strength"],telephone:["iphone","telephone_receiver","phone","mobile_phone_off","vibration_mode"],"mobile phone":["iphone"],"mobile phone with arrow":["calling"],receive:["calling","incoming_envelope","inbox_tray"],laptop:["computer"],pc:["computer"],personal:["computer"],computer:["keyboard","desktop_computer","printer","computer_mouse","trackball","minidisc","floppy_disk","cd","dvd"],desktop:["desktop_computer"],"video game":["joystick"],compress:["clamp"],vice:["clamp"],disk:["minidisc","floppy_disk","cd","dvd"],minidisk:["minidisc"],optical:["minidisc","cd","dvd"],"computer disk":["minidisc"],floppy:["floppy_disk"],CD:["cd"],"optical disk":["cd"],"Blu-ray":["dvd"],DVD:["dvd"],tape:["vhs"],video:["vhs","camera","camera_flash","video_camera","film_projector","tv","radio"],videocassette:["vhs"],"camera with flash":["camera_flash"],flash:["camera_flash"],cinema:["movie_camera","film_projector","film_strip"],film:["film_projector","film_strip","cinema"],projector:["film_projector"],frames:["film_strip"],"film frames":["film_strip"],receiver:["telephone_receiver"],"fax machine":["fax"],television:["tv"],microphone:["studio_microphone"],studio:["studio_microphone"],level:["level_slider"],slider:["level_slider"],control:["control_knobs","passport_control"],knobs:["control_knobs"],timer:["timer_clock","hourglass_flowing_sand","hourglass"],alarm:["alarm_clock"],hourglass:["hourglass_flowing_sand"],"hourglass not done":["hourglass_flowing_sand"],sand:["hourglass_flowing_sand","hourglass"],"hourglass done":["hourglass"],antenna:["satellite","signal_strength"],dish:["satellite"],"satellite antenna":["satellite"],electricity:["electric_plug"],plug:["electric_plug"],idea:["bulb"],"light bulb":["bulb"],torch:["flashlight"],drum:["oil_drum","long_drum"],oil:["oil_drum","diya_lamp"],banknote:["money_with_wings","dollar","yen","euro","pound"],bill:["money_with_wings","dollar","yen","euro","pound"],wings:["money_with_wings"],currency:["dollar","yen","euro","pound","heavy_dollar_sign","currency_exchange"],note:["dollar","yen","euro","pound","spiral_notepad","musical_note","notes"],"dollar banknote":["dollar"],"yen banknote":["yen"],"euro banknote":["euro"],"pound banknote":["pound"],dollar:["moneybag","heavy_dollar_sign"],"money bag":["moneybag"],card:["credit_card","card_index","card_file_box","card_index_dividers","black_joker","spades","clubs","hearts","diamonds","flower_playing_cards"],credit:["credit_card"],"gem stone":["gem"],jewel:["gem"],balance:["balance_scale","libra","person_juggling"],justice:["balance_scale","libra"],Libra:["balance_scale","libra"],scale:["balance_scale"],spanner:["wrench","hammer_and_wrench"],hammer:["hammer_and_pick","hammer_and_wrench"],pick:["hammer_and_pick"],wrench:["hammer_and_wrench"],mining:["pick"],bolt:["nut_and_bolt"],cog:["gear"],cogwheel:["gear"],chain:["chains"],handgun:["gun"],pistol:["gun"],revolver:["gun"],weapon:["gun","hocho","dagger","crossed_swords","shield"],"water pistol":["gun"],"kitchen knife":["hocho"],crossed:["crossed_swords","crossed_flags","twisted_rightwards_arrows"],swords:["crossed_swords"],cigarette:["smoking"],crossbones:["skull_and_crossbones"],skull:["skull_and_crossbones"],ashes:["funeral_urn"],funeral:["funeral_urn"],urn:["funeral_urn"],Aquarius:["amphora","aquarius"],jug:["amphora"],crystal:["crystal_ball"],fortune:["crystal_ball","six_pointed_star"],beads:["prayer_beads"],necklace:["prayer_beads"],prayer:["prayer_beads","palms_up_together"],haircut:["barber","person_getting_haircut"],"barber pole":["barber"],chemistry:["alembic","test_tube"],science:["telescope","microscope","test_tube"],needle:["syringe","thread","sewing_needle"],mark:["bookmark","bookmark_tabs","heavy_heart_exclamation","x","exclamation","grey_exclamation","question","grey_question","bangbang","interrobang","part_alternation_mark","negative_squared_cross_mark","white_check_mark","up","heavy_check_mark","tm","on"],bath:["bathtub"],lock:["key","old_key","closed_lock_with_key","unlock","lock_with_ink_pen"],password:["key"],clue:["old_key","jigsaw"],key:["old_key","closed_lock_with_key"],couch:["couch_and_lamp"],lamp:["couch_and_lamp","diya_lamp"],"person in bed":["sleeping_bed"],bell:["bellhop_bell","wind_chime","no_bell"],bellhop:["bellhop_bell"],frame:["framed_picture","window"],picture:["framed_picture"],"umbrella on ground":["parasol_on_ground"],moai:["moyai"],"shopping bags":["shopping"],cart:["shopping_cart"],shopping:["shopping_cart"],carp:["flags"],streamer:["flags"],"carp streamer":["flags"],present:["gift"],wrapped:["gift","tamale"],"wrapped gift":["gift"],confetti:["confetti_ball"],party:["tada","partying_face","piñata","mirror_ball"],popper:["tada"],"party popper":["tada"],doll:["dolls","nesting_dolls"],festival:["dolls","moon_cake"],"Japanese dolls":["dolls"],chime:["wind_chime"],"red paper lantern":["izakaya_lantern"],envelope:["email","envelope_with_arrow","incoming_envelope"],letter:["email","incoming_envelope","e-mail","love_letter","inbox_tray","outbox_tray"],"e-mail":["envelope_with_arrow","incoming_envelope"],email:["envelope_with_arrow","incoming_envelope","e-mail"],outgoing:["envelope_with_arrow"],incoming:["incoming_envelope"],mail:["e-mail","love_letter","postbox","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","inbox_tray","outbox_tray"],mailbox:["postbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail"],"closed mailbox with lowered flag":["mailbox_closed"],lowered:["mailbox_closed","mailbox_with_no_mail"],postbox:["mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail"],"closed mailbox with raised flag":["mailbox"],"open mailbox with raised flag":["mailbox_with_mail"],"open mailbox with lowered flag":["mailbox_with_no_mail"],parcel:["package"],horn:["postal_horn","partying_face"],postal:["postal_horn"],inbox:["inbox_tray"],tray:["inbox_tray","outbox_tray"],outbox:["outbox_tray"],sent:["outbox_tray"],paper:["scroll","newspaper_roll","newspaper"],curl:["page_with_curl","loop","curly_loop"],document:["page_with_curl","page_facing_up"],page:["page_with_curl","page_facing_up"],bookmark:["bookmark_tabs"],marker:["bookmark_tabs"],tabs:["bookmark_tabs"],chart:["bar_chart","chart_with_upwards_trend","chart_with_downwards_trend"],graph:["bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","chart"],"chart increasing":["chart_with_upwards_trend"],growth:["chart_with_upwards_trend","chart"],trend:["chart_with_upwards_trend","chart_with_downwards_trend"],upward:["chart_with_upwards_trend"],"chart decreasing":["chart_with_downwards_trend"],calendar:["date","spiral_calendar"],"tear-off calendar":["calendar"],pad:["spiral_calendar","spiral_notepad"],rolodex:["card_index"],file:["card_file_box","file_cabinet","file_folder","open_file_folder"],ballot:["ballot_box"],"ballot box with ballot":["ballot_box"],cabinet:["file_cabinet"],filing:["file_cabinet"],folder:["file_folder","open_file_folder"],dividers:["card_index_dividers"],news:["newspaper_roll","newspaper"],newspaper:["newspaper_roll"],rolled:["newspaper_roll"],"rolled-up newspaper":["newspaper_roll"],book:["closed_book","green_book","blue_book","orange_book","notebook_with_decorative_cover","books","open_book"],cover:["notebook_with_decorative_cover"],decorated:["notebook_with_decorative_cover"],notebook:["notebook_with_decorative_cover","ledger"],link:["paperclips"],"linked paperclips":["paperclips"],paperclip:["paperclips"],cutting:["scissors"],ruler:["triangular_ruler","straight_ruler"],set:["triangular_ruler"],triangle:["triangular_ruler","arrow_forward","next_track_button","play_or_pause_button","previous_track_button","arrow_backward"],"straight edge":["straight_ruler"],pin:["pushpin","round_pushpin"],pushpin:["round_pushpin"],"triangular flag":["triangular_flag_on_post"],"locked with key":["closed_lock_with_key"],secure:["closed_lock_with_key"],locked:["lock"],unlocked:["unlock"],ink:["lock_with_ink_pen"],"locked with pen":["lock_with_ink_pen"],nib:["lock_with_ink_pen","black_nib"],pen:["lock_with_ink_pen","fountain_pen","black_nib"],privacy:["lock_with_ink_pen"],ballpoint:["pen"],fountain:["fountain_pen"],pencil:["memo","pencil2"],magnifying:["mag","mag_right"],"magnifying glass tilted left":["mag"],search:["mag","mag_right"],"magnifying glass tilted right":["mag_right"],"red heart":["heart"],yellow:["yellow_heart","yellow_square","yellow_circle"],purple:["purple_heart","purple_square","purple_circle"],black:["black_heart","black_cat"],wicked:["black_heart"],break:["broken_heart"],broken:["broken_heart"],exclamation:["heavy_heart_exclamation","grey_exclamation","bangbang","interrobang"],"heart exclamation":["heavy_heart_exclamation"],punctuation:["heavy_heart_exclamation","exclamation","grey_exclamation","question","grey_question","interrobang","wavy_dash"],beating:["heartbeat"],"beating heart":["heartbeat"],pulsating:["heartbeat"],excited:["heartpulse","sparkling_heart"],growing:["heartpulse"],"growing heart":["heartpulse"],nervous:["heartpulse","biting_lip"],pulse:["heartpulse","anatomical_heart"],"heart with arrow":["cupid"],"heart with ribbon":["gift_heart"],valentine:["gift_heart"],Hindu:["om"],Buddhist:["wheel_of_dharma"],dharma:["wheel_of_dharma"],David:["star_of_david"],"star of David":["star_of_david"],"dotted six-pointed star":["six_pointed_star"],candelabrum:["menorah"],candlestick:["menorah"],tao:["yin_yang"],taoist:["yin_yang"],yang:["yin_yang"],yin:["yin_yang"],worship:["place_of_worship"],snake:["ophiuchus"],ram:["aries"],ox:["taurus"],crab:["cancer"],lion:["leo"],scales:["libra"],scorpion:["scorpius"],goat:["capricorn"],ID:["id","identification_card"],"ID button":["id"],identity:["id"],atheist:["atom_symbol"],atom:["atom_symbol"],"“vacancy”":["u7a7a"],ideograph:["u7a7a","u5272","u6709","u7121","u7533","u55b6","u6708","accept","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","u6307"],"Japanese “vacancy” button":["u7a7a"],空:["u7a7a"],"“discount”":["u5272"],"Japanese “discount” button":["u5272"],割:["u5272"],sign:["radioactive","biohazard","stop_sign","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","placard"],off:["mobile_phone_off"],mode:["vibration_mode"],vibration:["vibration_mode"],"“not free of charge”":["u6709"],"Japanese “not free of charge” button":["u6709"],有:["u6709"],"“free of charge”":["u7121"],"Japanese “free of charge” button":["u7121"],無:["u7121"],"“application”":["u7533"],"Japanese “application” button":["u7533"],申:["u7533"],"“open for business”":["u55b6"],"Japanese “open for business” button":["u55b6"],営:["u55b6"],"“monthly amount”":["u6708"],"Japanese “monthly amount” button":["u6708"],月:["u6708"],"eight-pointed star":["eight_pointed_black_star"],versus:["vs"],VS:["vs"],"VS button":["vs"],"“acceptable”":["accept"],"Japanese “acceptable” button":["accept"],可:["accept"],"“bargain”":["ideograph_advantage"],"Japanese “bargain” button":["ideograph_advantage"],得:["ideograph_advantage"],"“secret”":["secret"],"Japanese “secret” button":["secret"],秘:["secret"],"“congratulations”":["congratulations"],"Japanese “congratulations” button":["congratulations"],祝:["congratulations"],"“passing grade”":["u5408"],"Japanese “passing grade” button":["u5408"],合:["u5408"],"“no vacancy”":["u6e80"],"Japanese “no vacancy” button":["u6e80"],満:["u6e80"],"“prohibited”":["u7981"],"Japanese “prohibited” button":["u7981"],禁:["u7981"],A:["a"],"A button (blood type)":["a"],"blood type":["a","b","ab","o2"],B:["b"],"B button (blood type)":["b"],AB:["ab"],"AB button (blood type)":["ab"],CL:["cl"],"CL button":["cl"],O:["o2"],"O button (blood type)":["o2"],help:["sos","person_tipping_hand"],SOS:["sos"],"SOS button":["sos"],entry:["no_entry","no_entry_sign"],no:["no_entry","no_entry_sign","no_pedestrians","do_not_litter","no_bicycles","no_mobile_phones","no_smoking"],not:["no_entry","no_entry_sign","no_pedestrians","do_not_litter","no_smoking"],prohibited:["no_entry","no_entry_sign","no_pedestrians","do_not_litter","no_bicycles","underage","no_smoking","person_gesturing_no"],badge:["name_badge"],name:["name_badge"],"×":["x","negative_squared_cross_mark","heavy_multiplication_x"],cancel:["x","heavy_multiplication_x"],multiplication:["x","heavy_multiplication_x"],multiply:["x","heavy_multiplication_x"],"cross mark":["x"],circle:["o","m","record_button","white_circle","black_circle","red_circle","large_blue_circle","brown_circle","purple_circle","green_circle","yellow_circle","orange_circle","wheel"],"hollow red circle":["o"],large:["o","crazy_face","mammoth","dodo"],octagonal:["stop_sign"],"anger symbol":["anger"],springs:["hotsprings"],"hot springs":["hotsprings"],pedestrian:["no_pedestrians","children_crossing"],litter:["do_not_litter","put_litter_in_its_place"],"no littering":["do_not_litter"],"non-drinking":["non-potable_water"],"non-potable":["non-potable_water"],18:["underage"],"age restriction":["underage"],eighteen:["underage"],"no one under eighteen":["underage"],"!":["exclamation","grey_exclamation","bangbang","interrobang"],"red exclamation mark":["exclamation"],outlined:["grey_exclamation","grey_question","white_square_button","smiling_face"],"white exclamation mark":["grey_exclamation"],"?":["question","grey_question","interrobang"],"red question mark":["question"],question:["grey_question","interrobang"],"white question mark":["grey_question"],"!!":["bangbang"],"double exclamation mark":["bangbang"],"!?":["interrobang"],"exclamation question mark":["interrobang"],hundred:["100"],"hundred points":["100"],brightness:["low_brightness","high_brightness"],dim:["low_brightness"],"dim button":["low_brightness"],low:["low_brightness"],"bright button":["high_brightness"],anchor:["trident"],emblem:["trident"],"trident emblem":["trident"],"fleur-de-lis":["fleur_de_lis"],part:["part_alternation_mark"],child:["children_crossing"],crossing:["children_crossing"],chevron:["beginner"],"Japanese symbol for beginner":["beginner"],"recycling symbol":["recycle"],"“reserved”":["u6307"],"Japanese “reserved” button":["u6307"],指:["u6307"],"chart increasing with yen":["chart"],yen:["chart"],asterisk:["eight_spoked_asterisk"],"eight-spoked asterisk":["eight_spoked_asterisk"],"cross mark button":["negative_squared_cross_mark"],square:["negative_squared_cross_mark","stop_button","black_small_square","white_small_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button","brown_square","purple_square","blue_square","green_square","yellow_square","orange_square","red_square"],x:["negative_squared_cross_mark","heavy_multiplication_x"],"✓":["white_check_mark","heavy_check_mark","ballot_box_with_check"],button:["white_check_mark","arrow_up_small","arrow_down_small","radio_button","black_square_button","white_square_button"],check:["white_check_mark","heavy_check_mark","ballot_box_with_check"],"check mark button":["white_check_mark"],"diamond with a dot":["diamond_shape_with_a_dot_inside"],geometric:["diamond_shape_with_a_dot_inside","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","small_red_triangle","black_small_square","white_small_square","black_large_square","white_large_square","small_red_triangle_down","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button"],inside:["diamond_shape_with_a_dot_inside"],dizzy:["cyclone","woozy_face","face_with_spiral_eyes"],hurricane:["cyclone"],twister:["cyclone"],typhoon:["cyclone"],double:["loop","pause_button","fast_forward","rewind","arrow_double_up","arrow_double_down"],"double curly loop":["loop"],meridians:["globe_with_meridians"],"circled M":["m"],M:["m"],ATM:["atm"],"ATM sign":["atm"],automated:["atm"],bank:["atm","currency_exchange"],teller:["atm"],"“service charge”":["sa"],"Japanese “service charge” button":["sa"],katakana:["sa","koko"],サ:["sa"],passport:["passport_control"],baggage:["baggage_claim","left_luggage"],claim:["baggage_claim"],locker:["left_luggage"],luggage:["left_luggage"],access:["wheelchair"],"wheelchair symbol":["wheelchair"],smoking:["no_smoking"],bathroom:["wc","mens","womens","restroom","toothbrush"],closet:["wc"],lavatory:["wc","mens","womens","restroom"],restroom:["wc","mens","womens"],toilet:["wc","mens","womens","restroom","plunger"],WC:["wc","mens","womens","restroom"],"water closet":["wc"],P:["parking"],"P button":["parking"],drinking:["potable_water"],potable:["potable_water"],"men’s room":["mens"],"women’s room":["womens"],changing:["baby_symbol"],"litter bin":["put_litter_in_its_place"],"litter in bin sign":["put_litter_in_its_place"],"antenna bars":["signal_strength"],"“here”":["koko"],"Japanese “here” button":["koko"],ココ:["koko"],NG:["ng"],"NG button":["ng"],"OK button":["ok"],UP:["up"],"UP!":["up"],"UP! button":["up"],COOL:["cool"],"COOL button":["cool"],NEW:["new"],"NEW button":["new"],FREE:["free"],"FREE button":["free"],input:["1234","abc","abcd","capital_abcd","symbols"],numbers:["1234"],"input numbers":["1234"],play:["arrow_forward","play_or_pause_button","playground_slide"],"play button":["arrow_forward"],right:["arrow_forward","play_or_pause_button","rightwards_hand"],pause:["pause_button","play_or_pause_button"],vertical:["pause_button"],"next scene":["next_track_button"],"next track":["next_track_button"],record:["record_button"],"last track button":["previous_track_button"],"previous scene":["previous_track_button"],"previous track":["previous_track_button"],fast:["fast_forward"],"fast-forward button":["fast_forward"],forward:["fast_forward"],"fast reverse button":["rewind"],"shuffle tracks button":["twisted_rightwards_arrows"],clockwise:["repeat","repeat_one","arrows_clockwise"],"repeat button":["repeat"],once:["repeat_one"],"repeat single button":["repeat_one"],left:["arrow_backward","leftwards_hand"],reverse:["arrow_backward"],"reverse button":["arrow_backward"],"upwards button":["arrow_up_small"],"downwards button":["arrow_down_small"],"fast up button":["arrow_double_up"],"fast down button":["arrow_double_down"],cardinal:["arrow_right","arrow_left","arrow_up","arrow_down"],direction:["arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left"],east:["arrow_right"],"right arrow":["arrow_right"],"left arrow":["arrow_left"],west:["arrow_left"],north:["arrow_up"],"up arrow":["arrow_up"],south:["arrow_down"],"down arrow":["arrow_down"],intercardinal:["arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left"],northeast:["arrow_upper_right"],"up-right arrow":["arrow_upper_right"],"down-right arrow":["arrow_lower_right"],southeast:["arrow_lower_right"],"down-left arrow":["arrow_lower_left"],southwest:["arrow_lower_left"],northwest:["arrow_upper_left"],"up-left arrow":["arrow_upper_left"],"up-down arrow":["arrow_up_down"],"left-right arrow":["left_right_arrow"],anticlockwise:["arrows_counterclockwise"],counterclockwise:["arrows_counterclockwise"],"counterclockwise arrows button":["arrows_counterclockwise"],withershins:["arrows_counterclockwise"],"left arrow curving right":["arrow_right_hook"],"right arrow curving left":["leftwards_arrow_with_hook"],"right arrow curving up":["arrow_heading_up"],"right arrow curving down":["arrow_heading_down"],i:["information_source"],information:["information_source","person_tipping_hand"],alphabet:["abc"],latin:["abc","abcd","capital_abcd"],letters:["abc","abcd","capital_abcd"],"input latin letters":["abc"],lowercase:["abcd"],"input latin lowercase":["abcd"],ABCD:["capital_abcd"],uppercase:["capital_abcd"],"input latin uppercase":["capital_abcd"],"〒♪&%":["symbols"],"input symbols":["symbols"],"musical notes":["notes"],dash:["wavy_dash"],wavy:["wavy_dash"],loop:["curly_loop"],"check mark":["heavy_check_mark"],"clockwise vertical arrows":["arrows_clockwise"],reload:["arrows_clockwise"],"+":["heavy_plus_sign"],math:["heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign"],plus:["heavy_plus_sign"],"-":["heavy_minus_sign"],"−":["heavy_minus_sign"],minus:["heavy_minus_sign"],"÷":["heavy_division_sign"],divide:["heavy_division_sign"],division:["heavy_division_sign"],exchange:["currency_exchange"],C:["copyright"],R:["registered"],TM:["tm"],"trade mark":["tm"],trademark:["tm"],END:["end"],"END arrow":["end"],BACK:["back"],"BACK arrow":["back"],ON:["on"],"ON!":["on"],"ON! arrow":["on"],TOP:["top"],"TOP arrow":["top"],SOON:["soon"],"SOON arrow":["soon"],"check box with check":["ballot_box_with_check"],radio:["radio_button"],"blue circle":["large_blue_circle"],"red triangle pointed up":["small_red_triangle"],"red triangle pointed down":["small_red_triangle_down"],"black medium-small square":["black_medium_small_square"],"white medium-small square":["white_medium_small_square"],"speaker low volume":["speaker"],medium:["sound"],"speaker medium volume":["sound"],loud:["loud_sound","loudspeaker"],"speaker high volume":["loud_sound"],"muted speaker":["mute"],speaker:["mute"],cheering:["mega"],megaphone:["mega"],"public address":["loudspeaker"],"bell with slash":["no_bell"],mute:["no_bell"],joker:["black_joker"],wildcard:["black_joker"],"mahjong red dragon":["mahjong"],"spade suit":["spades"],"club suit":["clubs"],"heart suit":["hearts"],"diamond suit":["diamonds"],playing:["flower_playing_cards"],balloon:["thought_balloon","right_anger_bubble","speech_balloon","left_speech_bubble"],bubble:["thought_balloon","right_anger_bubble","speech_balloon","left_speech_bubble","bubble_tea"],thought:["thought_balloon"],dialog:["speech_balloon","left_speech_bubble"],speech:["speech_balloon","left_speech_bubble"],"00":["clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12"],1:["clock1","clock130"],"1:00":["clock1"],"o’clock":["clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12"],one:["clock1","clock130"],"one o’clock":["clock1"],2:["clock2","clock230"],"2:00":["clock2"],two:["clock2","clock230"],"two o’clock":["clock2"],3:["clock3","clock330"],"3:00":["clock3"],three:["clock3","clock330"],"three o’clock":["clock3"],"4:00":["clock4"],"four o’clock":["clock4"],5:["clock5","clock530"],"5:00":["clock5"],five:["clock5","clock530"],"five o’clock":["clock5"],6:["clock6","clock630"],"6:00":["clock6"],six:["clock6","clock630"],"six o’clock":["clock6"],7:["clock7","clock730"],"7:00":["clock7"],seven:["clock7","clock730"],"seven o’clock":["clock7"],"8:00":["clock8"],"eight o’clock":["clock8"],9:["clock9","clock930"],"9:00":["clock9"],nine:["clock9","clock930"],"nine o’clock":["clock9"],10:["clock10","clock1030"],"10:00":["clock10"],ten:["clock10","clock1030"],"ten o’clock":["clock10"],11:["clock11","clock1130"],"11:00":["clock11"],eleven:["clock11","clock1130"],"eleven o’clock":["clock11"],12:["clock12","clock1230"],"12:00":["clock12"],twelve:["clock12","clock1230"],"twelve o’clock":["clock12"],"1:30":["clock130"],"one-thirty":["clock130"],thirty:["clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230"],"2:30":["clock230"],"two-thirty":["clock230"],"3:30":["clock330"],"three-thirty":["clock330"],"4:30":["clock430"],"four-thirty":["clock430"],"5:30":["clock530"],"five-thirty":["clock530"],"6:30":["clock630"],"six-thirty":["clock630"],"7:30":["clock730"],"seven-thirty":["clock730"],"8:30":["clock830"],"eight-thirty":["clock830"],"9:30":["clock930"],"nine-thirty":["clock930"],"10:30":["clock1030"],"ten-thirty":["clock1030"],"11:30":["clock1130"],"eleven-thirty":["clock1130"],"12:30":["clock1230"],"twelve-thirty":["clock1230"],"star-struck":["star_struck"],distrust:["face_with_raised_eyebrow"],skeptic:["face_with_raised_eyebrow"],"mind blown":["exploding_head"],goofy:["crazy_face"],"zany face":["crazy_face"],"face with symbols on mouth":["face_with_symbols_over_mouth"],swearing:["face_with_symbols_over_mouth"],puke:["face_vomiting"],shush:["shushing_face"],whoops:["face_with_hand_over_mouth"],monocle:["face_with_monocle"],stuffy:["face_with_monocle"],"gender-neutral":["child","adult","older_adult"],"unspecified gender":["child","adult","older_adult"],"older person":["older_adult"],headscarf:["woman_with_headscarf"],hijab:["woman_with_headscarf"],mantilla:["woman_with_headscarf"],tichel:["woman_with_headscarf"],beard:["bearded_person"],"person: beard":["bearded_person"],breast:["breast_feeding"],"breast-feeding":["breast_feeding"],nursing:["breast_feeding","man_feeding_baby","person_feeding_baby","woman_feeding_baby"],sorcerer:["mage"],sorceress:["mage"],witch:["mage","broom","magic_wand"],wizard:["mage","magic_wand"],Oberon:["fairy"],Puck:["fairy"],Titania:["fairy"],Dracula:["vampire"],undead:["vampire","zombie"],mermaid:["merperson"],merman:["merperson"],merwoman:["merperson"],magical:["elf"],djinn:["genie"],"walking dead":["zombie"],sauna:["person_in_steamy_room"],"steam room":["person_in_steamy_room"],climber:["person_climbing"],meditation:["person_in_lotus_position"],yoga:["person_in_lotus_position"],ILY:["love_you_gesture"],"love-you gesture":["love_you_gesture"],intelligent:["brain"],neck:["scarf"],jacket:["coat"],stocking:["socks"],"baseball cap":["billed_cap"],stripe:["zebra"],spots:["giraffe"],spiny:["hedgehog"],brachiosaurus:["sauropod"],brontosaurus:["sauropod"],diplodocus:["sauropod"],"T-Rex":["t_rex"],"Tyrannosaurus Rex":["t_rex"],grasshopper:["cricket"],"piña colada":["coconut"],"wild cabbage":["broccoli"],twisted:["pretzel"],chop:["cut_of_meat","axe"],lambchop:["cut_of_meat"],porkchop:["cut_of_meat"],steak:["cut_of_meat"],cereal:["bowl_with_spoon"],congee:["bowl_with_spoon"],can:["canned_food"],empanada:["dumpling"],gyōza:["dumpling"],jiaozi:["dumpling"],pierogi:["dumpling"],potsticker:["dumpling"],prophecy:["fortune_cookie"],"oyster pail":["takeout_box"],filling:["pie"],juice:["cup_with_straw","beverage_box"],soda:["cup_with_straw"],hashi:["chopsticks"],UFO:["flying_saucer"],sledge:["sled"],sleigh:["sled"],adore:["smiling_face_with_three_hearts"],crush:["smiling_face_with_three_hearts"],hearts:["smiling_face_with_three_hearts"],"in love":["smiling_face_with_three_hearts"],"smiling face with hearts":["smiling_face_with_three_hearts"],feverish:["hot_face"],"heat stroke":["hot_face"],"red-faced":["hot_face"],sweating:["hot_face"],"blue-faced":["cold_face"],freezing:["cold_face"],frostbite:["cold_face"],icicles:["cold_face"],intoxicated:["woozy_face"],tipsy:["woozy_face"],"uneven eyes":["woozy_face"],"wavy mouth":["woozy_face"],begging:["pleading_face"],mercy:["pleading_face"],"puppy eyes":["pleading_face"],good:["superhero"],hero:["superhero"],heroine:["superhero"],superpower:["superhero","supervillain"],criminal:["supervillain"],villain:["supervillain"],limb:["leg"],stomp:["foot"],skeleton:["bone","xray"],dentist:["tooth"],"eye protection":["goggles"],swimming:["goggles"],welding:["goggles"],experiment:["lab_coat","test_tube"],backpacking:["hiking_boot"],boot:["hiking_boot"],hiking:["hiking_boot"],"ballet flat":["flat_shoe"],"slip-on":["flat_shoe"],slipper:["flat_shoe"],curious:["raccoon"],sly:["raccoon"],alpaca:["llama"],guanaco:["llama"],vicuña:["llama"],wool:["llama"],hippo:["hippopotamus"],joey:["kangaroo"],jump:["kangaroo"],"honey badger":["badger"],pester:["badger"],cygnet:["swan"],"ugly duckling":["swan"],ostentatious:["peacock"],peahen:["peacock"],proud:["peacock","smiling_face_with_tear","face_holding_back_tears"],pirate:["parrot"],talk:["parrot"],bisque:["lobster"],claws:["lobster"],disease:["mosquito","fly"],fever:["mosquito"],malaria:["mosquito"],pest:["mosquito","cockroach","fly"],virus:["mosquito","microbe"],amoeba:["microbe"],bacteria:["microbe","petri_dish"],"bok choy":["leafy_green"],cabbage:["leafy_green"],kale:["leafy_green"],lettuce:["leafy_green"],bakery:["bagel","cupcake"],schmear:["bagel"],condiment:["salt","jar"],shaker:["salt"],autumn:["moon_cake"],yuèbǐng:["moon_cake"],magnetic:["compass","magnet"],navigation:["compass"],orienteering:["compass"],bricks:["brick"],clay:["brick"],mortar:["brick"],wall:["brick"],board:["skateboard"],packing:["luggage"],travel:["luggage"],dynamite:["firecracker"],explosive:["firecracker"],gift:["red_gift_envelope"],"good luck":["red_gift_envelope"],hóngbāo:["red_gift_envelope"],"lai see":["red_gift_envelope"],"red envelope":["red_gift_envelope"],underarm:["softball"],ultimate:["flying_disc"],bead:["nazar_amulet"],charm:["nazar_amulet"],"evil-eye":["nazar_amulet"],nazar:["nazar_amulet"],talisman:["nazar_amulet"],interlocking:["jigsaw"],piece:["jigsaw"],puzzle:["jigsaw"],"puzzle piece":["jigsaw"],plaything:["teddy_bear"],plush:["teddy_bear"],toy:["teddy_bear","yo-yo"],chess:["chess_pawn"],dupe:["chess_pawn"],expendable:["chess_pawn"],sewing:["thread","sewing_needle"],spool:["thread"],string:["thread"],crochet:["yarn"],knit:["yarn"],calculation:["abacus"],accounting:["receipt"],bookkeeping:["receipt"],evidence:["receipt"],proof:["receipt"],chest:["toolbox"],attraction:["magnet"],horseshoe:["magnet"],lab:["test_tube","petri_dish"],biology:["petri_dish"],culture:["petri_dish"],evolution:["dna"],gene:["dna"],genetics:["dna"],life:["dna"],lotion:["lotion_bottle"],moisturizer:["lotion_bottle"],shampoo:["lotion_bottle"],sunscreen:["lotion_bottle"],diaper:["safety_pin"],"punk rock":["safety_pin"],cleaning:["broom","soap","sponge"],sweeping:["broom"],farming:["basket"],laundry:["basket"],picnic:["basket"],"paper towels":["roll_of_toilet_paper"],"roll of paper":["roll_of_toilet_paper"],"toilet paper":["roll_of_toilet_paper"],bathing:["soap"],lather:["soap"],soapdish:["soap"],absorbing:["sponge"],porous:["sponge"],extinguish:["fire_extinguisher"],quench:["fire_extinguisher"],forever:["infinity"],unbounded:["infinity"],universal:["infinity"],indecisive:["waffle"],iron:["waffle"],fishing:["otter"],playful:["otter"],lazy:["sloth"],slow:["sloth"],iceberg:["ice_cube"],"ringed planet":["ringer_planet"],saturn:["ringer_planet"],saturnine:["ringer_planet"],flamboyant:["flamingo"],bored:["yawning_face"],yawn:["yawning_face"],"small amount":["pinching_hand"],accessibility:["service_dog","probing_cane","motorized_wheelchair","manual_wheelchair","guide_dog","woman_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_with_probing_cane","man_with_probing_cane","hear_with_hearing_aid","mechanical_leg","mechanical_arm","deaf_person","person_with_white_cane","person_in_motorized_wheelchair","person_in_manual_wheelchair","elevator"],assistance:["service_dog"],service:["service_dog"],ape:["orangutan"],"tuk tuk":["auto_rickshaw"],"hang-glide":["parachute"],parasail:["parachute"],skydive:["parachute"],fluctuate:["yo-yo"],soar:["kite"],brown:["brown_square","brown_circle","brown_heart"],sharp:["razor"],shave:["razor"],seat:["chair"],sit:["chair"],bleed:["drop_of_blood"],"blood donation":["drop_of_blood"],menstruation:["drop_of_blood"],blind:["probing_cane","guide_dog","woman_with_probing_cane","man_with_probing_cane","person_with_white_cane"],"white cane":["probing_cane"],hatchet:["axe"],split:["axe"],wood:["axe"],diya:["diya_lamp"],stringed:["banjo"],ballet:["ballet_shoes"],"bathing suit":["shorts","briefs","one_piece_swimsuit"],underwear:["shorts","briefs"],"one-piece":["briefs"],swimsuit:["briefs"],"one-piece swimsuit":["one_piece_swimsuit"],dress:["sari"],emergency:["safety_vest"],safety:["safety_vest","ring_buoy"],vest:["safety_vest"],diving:["diving_mask","oyster"],scuba:["diving_mask"],snorkeling:["diving_mask"],hindu:["hindu_temple"],mate:["maté"],straw:["beverage_box"],pearl:["oyster","bubble_tea"],dairy:["butter"],chickpea:["falafel"],meatball:["falafel"],flavoring:["onion","garlic"],stink:["skunk"],guide:["guide_dog"],wheelchair:["woman_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_motorized_wheelchair","man_in_motorized_wheelchair","person_in_motorized_wheelchair","person_in_manual_wheelchair"],"woman with white cane":["woman_with_probing_cane"],"man with white cane":["man_with_probing_cane"],"ear with hearing aid":["hear_with_hearing_aid"],"hard of hearing":["hear_with_hearing_aid"],prosthetic:["mechanical_leg","mechanical_arm"],white:["white_heart","white_hair"],grateful:["smiling_face_with_tear"],smiling:["smiling_face_with_tear"],touched:["smiling_face_with_tear"],disguise:["disguised_face"],incognito:["disguised_face"],fingers:["pinched_fingers"],"hand gesture":["pinched_fingers"],interrogation:["pinched_fingers"],pinched:["pinched_fingers"],sarcastic:["pinched_fingers"],anatomical:["anatomical_heart"],cardiology:["anatomical_heart"],organ:["anatomical_heart","lungs"],breath:["lungs"],exhalation:["lungs"],inhalation:["lungs"],respiration:["lungs"],fighter:["ninja"],hidden:["ninja"],stealth:["ninja"],"Claus, christmas":["mx_claus"],goodbye:["people_hugging"],hello:["people_hugging"],unlucky:["black_cat"],herd:["bison"],wisent:["bison"],extinction:["mammoth","dodo"],tusk:["mammoth"],woolly:["mammoth"],dam:["beaver"],Mauritius:["dodo"],flight:["feather"],plumage:["feather"],"sea lion":["seal"],bug:["beetle"],roach:["cockroach"],maggot:["fly"],rotting:["fly"],annelid:["worm"],earthworm:["worm"],parasite:["worm"],boring:["potted_plant"],grow:["potted_plant"],nurturing:["potted_plant"],useless:["potted_plant"],bilberry:["blueberries"],blueberry:["blueberries"],capsicum:["bell_pepper"],arepa:["flatbread"],lavash:["flatbread"],naan:["flatbread"],pita:["flatbread"],melted:["fondue"],Swiss:["fondue"],boulder:["rock"],heavy:["rock"],solid:["rock"],stone:["rock"],log:["wood"],lumber:["wood","carpentry_saw"],timber:["wood"],roundhouse:["hut"],yurt:["hut"],"pick-up":["pickup_truck"],pickup:["pickup_truck"],magic:["magic_wand"],nesting:["nesting_dolls","empty_nest","nest_with_eggs"],russia:["nesting_dolls"],embroidery:["sewing_needle"],stitches:["sewing_needle"],sutures:["sewing_needle"],tailoring:["sewing_needle"],rope:["knot"],tangled:["knot"],twine:["knot"],twist:["knot"],"beach sandals":["thong_sandal"],sandals:["thong_sandal"],"thong sandals":["thong_sandal"],thongs:["thong_sandal"],zōri:["thong_sandal"],army:["military_helmet"],soldier:["military_helmet"],warrior:["military_helmet"],concertina:["accordion"],"squeeze box":["accordion"],beat:["long_drum"],conga:["long_drum"],rhythm:["long_drum"],metal:["coin"],treasure:["coin"],australia:["boomerang"],rebound:["boomerang"],repercussion:["boomerang"],carpenter:["carpentry_saw"],saw:["carpentry_saw"],screw:["screwdriver"],catch:["hook","palm_up_hand"],crook:["hook"],curve:["hook"],ensnare:["hook"],"selling point":["hook"],climb:["ladder"],rung:["ladder"],step:["ladder"],reflection:["mirror"],reflector:["mirror"],speculum:["mirror"],"fresh air":["window"],opening:["window"],transparent:["window"],view:["window"],"force cup":["plunger"],suction:["plunger"],bait:["mouse_trap"],mousetrap:["mouse_trap"],snare:["mouse_trap"],trap:["mouse_trap"],cask:["bucket"],pail:["bucket"],vat:["bucket"],brush:["toothbrush"],clean:["toothbrush","bubbles"],dental:["toothbrush"],hygiene:["toothbrush"],teeth:["toothbrush"],cemetery:["headstone"],grave:["headstone"],graveyard:["headstone"],tombstone:["headstone"],demonstration:["placard"],picket:["placard"],protest:["placard"],transgender:["transgender_symbol"],feeding:["man_feeding_baby","person_feeding_baby","woman_feeding_baby"],disappear:["melting_face","dotted_line_face"],dissolve:["melting_face"],liquid:["melting_face"],melt:["melting_face"],relaxed:["smiling_face"],amazement:["face_with_open_eyes_and_hand_over_mouth"],awe:["face_with_open_eyes_and_hand_over_mouth"],disbelief:["face_with_open_eyes_and_hand_over_mouth","person_facepalming"],embarrass:["face_with_open_eyes_and_hand_over_mouth"],surprise:["face_with_open_eyes_and_hand_over_mouth"],captivated:["face_with_peeking_eye"],peep:["face_with_peeking_eye"],stare:["face_with_peeking_eye"],salute:["saluting_face"],sunny:["saluting_face"],troops:["saluting_face"],yes:["saluting_face"],depressed:["dotted_line_face"],hide:["dotted_line_face"],introvert:["dotted_line_face"],invisible:["dotted_line_face"],exhale:["face_exhaling"],gasp:["face_exhaling"],groan:["face_exhaling"],relief:["face_exhaling"],whisper:["face_exhaling"],whistle:["face_exhaling"],hypnotized:["face_with_spiral_eyes"],trouble:["face_with_spiral_eyes"],whoa:["face_with_spiral_eyes"],skeptical:["face_with_diagonal_mouth"],unsure:["face_with_diagonal_mouth"],resist:["face_holding_back_tears"],rightward:["rightwards_hand"],leftward:["leftwards_hand"],dismiss:["palm_down_hand"],shoo:["palm_down_hand"],beckon:["palm_up_hand"],come:["palm_up_hand"],offer:["palm_up_hand"],expensive:["hand_with_index_finger_and_thumb_crossed"],snap:["hand_with_index_finger_and_thumb_crossed"],you:["index_pointing_at_the_viewer"],anxious:["biting_lip"],flirting:["biting_lip"],uncomfortable:["biting_lip"],worried:["biting_lip"],"person gesturing NO":["person_gesturing_no"],"person gesturing OK":["person_gesturing_ok"],sassy:["person_tipping_hand"],tipping:["person_tipping_hand"],happy:["person_raising_hand"],deaf:["deaf_person"],exasperation:["person_facepalming"],doubt:["person_shrugging"],ignorance:["person_shrugging"],indifference:["person_shrugging"],shrug:["person_shrugging"],monarch:["person_with_crown"],noble:["person_with_crown"],regal:["person_with_crown"],royalty:["person_with_crown"],belly:["pregnant_man","pregnant_person"],bloated:["pregnant_man","pregnant_person"],massage:["person_getting_massage"],salon:["person_getting_massage"],barber:["person_getting_haircut"],beauty:["person_getting_haircut"],parlor:["person_getting_haircut"],stand:["person_standing"],standing:["person_standing"],kneel:["person_kneeling"],kneeling:["person_kneeling"],cartwheel:["person_cartwheeling"],gymnastics:["person_cartwheeling"],wrestle:["people_wrestling"],wrestler:["people_wrestling"],polo:["person_playing_water_polo"],handball:["person_playing_handball"],juggle:["person_juggling"],multitask:["person_juggling"],skill:["person_juggling"],ginger:["red_hair"],redhead:["red_hair"],afro:["curly_hair"],curly:["curly_hair"],ringlets:["curly_hair"],gray:["white_hair"],chemotherapy:["bald"],hairless:["bald"],"no hair":["bald"],shaven:["bald"],ocean:["coral"],reef:["coral"],Buddhism:["lotus"],Hinduism:["lotus"],India:["lotus"],purity:["lotus"],Vietnam:["lotus"],kidney:["beans"],legume:["beans"],empty:["pouring_liquid","jar"],spill:["pouring_liquid"],container:["jar"],sauce:["jar"],tire:["wheel"],turn:["wheel"],float:["ring_buoy"],"life preserver":["ring_buoy"],"life saver":["ring_buoy"],rescue:["ring_buoy"],amulet:["hamsa"],Fatima:["hamsa"],Mary:["hamsa"],Miriam:["hamsa"],protection:["hamsa"],disco:["mirror_ball"],glitter:["mirror_ball"],electronic:["low_battery"],"low energy":["low_battery"],cane:["crutch"],disability:["crutch"],"mobility aid":["crutch"],bones:["xray"],medical:["xray"],"x-ray":["xray"],hoist:["elevator"],lift:["elevator"],burp:["bubbles"],soap:["bubbles"],underwater:["bubbles"],credentials:["identification_card"],license:["identification_card"],security:["identification_card"],eject:["eject_button"],equality:["heavy_equals_sign"],aesculapius:["medical_symbol"],staff:["medical_symbol"]},a={":)":"slight_smile",":-)":"slight_smile","^_^":"slight_smile","^__^":"slight_smile",":(":"frowning",":-(":"frowning",";)":"wink",";-)":"wink",":'(":"cry",":'-(":"cry",":-'(":"cry",":p":"stuck_out_tongue",":P":"stuck_out_tongue",":-P":"stuck_out_tongue",":O":"open_mouth",":-O":"open_mouth",":D":"smiley",":-D":"smiley",":|":"expressionless",":-|":"expressionless",":/":"confused","8-)":"sunglasses",";P":"stuck_out_tongue_winking_eye",";-P":"stuck_out_tongue_winking_eye",":$":"blush",":-$":"blush"},l={"😀":"grinning","😬":"grimacing","😁":"grin","😂":"joy","🤣":"rofl","😃":"smiley","😄":"smile","😅":"sweat_smile","😆":"laughing","😇":"innocent","😉":"wink","😊":"blush","🙂":"slightly_smiling_face","🙃":"upside_down_face","☺":"smiling_face","😋":"yum","😌":"relieved","😍":"heart_eyes","😘":"kissing_heart","😗":"kissing","😙":"kissing_smiling_eyes","😚":"kissing_closed_eyes","😜":"stuck_out_tongue_winking_eye","😝":"stuck_out_tongue_closed_eyes","😛":"stuck_out_tongue","🤑":"money_mouth_face","🤓":"nerd_face","😎":"sunglasses","🤡":"clown_face","🤠":"cowboy_hat_face","🤗":"hugs","😏":"smirk","😶":"no_mouth","😐":"neutral_face","😑":"expressionless","😒":"unamused","🙄":"roll_eyes","🤔":"thinking","🤥":"lying_face","😳":"flushed","😞":"disappointed","😟":"worried","😠":"angry","😡":"rage","😔":"pensive","😕":"confused","🙁":"slightly_frowning_face","☹":"frowning","😣":"persevere","😖":"confounded","😫":"tired_face","😩":"weary","😤":"triumph","😮":"open_mouth","😱":"scream","😨":"fearful","😰":"cold_sweat","😯":"hushed","😦":"frowning_with_open_mouth","😧":"anguished","😢":"cry","😥":"disappointed_relieved","🤤":"drooling_face","😪":"sleepy","😓":"sweat","😭":"sob","😵":"dizzy_face","😲":"astonished","🤐":"zipper_mouth_face","🤢":"nauseated_face","🤧":"sneezing_face","😷":"mask","🤒":"face_with_thermometer","🤕":"face_with_head_bandage","😴":"sleeping","💤":"zzz","💩":"poop","😈":"smiling_imp","👿":"imp","👹":"japanese_ogre","👺":"japanese_goblin","💀":"skull","👻":"ghost","👽":"alien","🤖":"robot","😺":"smiley_cat","😸":"smile_cat","😹":"joy_cat","😻":"heart_eyes_cat","😼":"smirk_cat","😽":"kissing_cat","🙀":"scream_cat","😿":"crying_cat_face","😾":"pouting_cat","🙌":"raised_hands","🙌🏻":"raised_hands:t2","🙌🏼":"raised_hands:t3","🙌🏽":"raised_hands:t4","🙌🏾":"raised_hands:t5","🙌🏿":"raised_hands:t6","👏":"clap","👏🏻":"clap:t2","👏🏼":"clap:t3","👏🏽":"clap:t4","👏🏾":"clap:t5","👏🏿":"clap:t6","👋":"wave","👋🏻":"wave:t2","👋🏼":"wave:t3","👋🏽":"wave:t4","👋🏾":"wave:t5","👋🏿":"wave:t6","🤙":"call_me_hand","🤙🏻":"call_me_hand:t2","🤙🏼":"call_me_hand:t3","🤙🏽":"call_me_hand:t4","🤙🏾":"call_me_hand:t5","🤙🏿":"call_me_hand:t6","👍":"+1","👍🏻":"+1:t2","👍🏼":"+1:t3","👍🏽":"+1:t4","👍🏾":"+1:t5","👍🏿":"+1:t6","👎":"-1","👎🏻":"-1:t2","👎🏼":"-1:t3","👎🏽":"-1:t4","👎🏾":"-1:t5","👎🏿":"-1:t6","👊":"facepunch","👊🏻":"facepunch:t2","👊🏼":"facepunch:t3","👊🏽":"facepunch:t4","👊🏾":"facepunch:t5","👊🏿":"facepunch:t6","✊":"fist","✊🏻":"fist:t2","✊🏼":"fist:t3","✊🏽":"fist:t4","✊🏾":"fist:t5","✊🏿":"fist:t6","🤛":"fist_left","🤛🏻":"fist_left:t2","🤛🏼":"fist_left:t3","🤛🏽":"fist_left:t4","🤛🏾":"fist_left:t5","🤛🏿":"fist_left:t6","🤜":"fist_right","🤜🏻":"fist_right:t2","🤜🏼":"fist_right:t3","🤜🏽":"fist_right:t4","🤜🏾":"fist_right:t5","🤜🏿":"fist_right:t6","✌":"v","✌🏻":"v:t2","✌🏼":"v:t3","✌🏽":"v:t4","✌🏾":"v:t5","✌🏿":"v:t6","👌":"ok_hand","👌🏻":"ok_hand:t2","👌🏼":"ok_hand:t3","👌🏽":"ok_hand:t4","👌🏾":"ok_hand:t5","👌🏿":"ok_hand:t6","✋":"raised_hand","✋🏻":"raised_hand:t2","✋🏼":"raised_hand:t3","✋🏽":"raised_hand:t4","✋🏾":"raised_hand:t5","✋🏿":"raised_hand:t6","🤚":"raised_back_of_hand","🤚🏻":"raised_back_of_hand:t2","🤚🏼":"raised_back_of_hand:t3","🤚🏽":"raised_back_of_hand:t4","🤚🏾":"raised_back_of_hand:t5","🤚🏿":"raised_back_of_hand:t6","👐":"open_hands","👐🏻":"open_hands:t2","👐🏼":"open_hands:t3","👐🏽":"open_hands:t4","👐🏾":"open_hands:t5","👐🏿":"open_hands:t6","💪":"muscle","💪🏻":"muscle:t2","💪🏼":"muscle:t3","💪🏽":"muscle:t4","💪🏾":"muscle:t5","💪🏿":"muscle:t6","🙏":"pray","🙏🏻":"pray:t2","🙏🏼":"pray:t3","🙏🏽":"pray:t4","🙏🏾":"pray:t5","🙏🏿":"pray:t6","🤝":"handshake","🤝🏻":"handshake:t2","🤝🏼":"handshake:t3","🤝🏽":"handshake:t4","🤝🏾":"handshake:t5","🤝🏿":"handshake:t6","☝":"point_up","☝🏻":"point_up:t2","☝🏼":"point_up:t3","☝🏽":"point_up:t4","☝🏾":"point_up:t5","☝🏿":"point_up:t6","👆":"point_up_2","👆🏻":"point_up_2:t2","👆🏼":"point_up_2:t3","👆🏽":"point_up_2:t4","👆🏾":"point_up_2:t5","👆🏿":"point_up_2:t6","👇":"point_down","👇🏻":"point_down:t2","👇🏼":"point_down:t3","👇🏽":"point_down:t4","👇🏾":"point_down:t5","👇🏿":"point_down:t6","👈":"point_left","👈🏻":"point_left:t2","👈🏼":"point_left:t3","👈🏽":"point_left:t4","👈🏾":"point_left:t5","👈🏿":"point_left:t6","👉":"point_right","👉🏻":"point_right:t2","👉🏼":"point_right:t3","👉🏽":"point_right:t4","👉🏾":"point_right:t5","👉🏿":"point_right:t6","🖕":"fu","🖕🏻":"fu:t2","🖕🏼":"fu:t3","🖕🏽":"fu:t4","🖕🏾":"fu:t5","🖕🏿":"fu:t6","🖐":"raised_hand_with_fingers_splayed","🖐🏻":"raised_hand_with_fingers_splayed:t2","🖐🏼":"raised_hand_with_fingers_splayed:t3","🖐🏽":"raised_hand_with_fingers_splayed:t4","🖐🏾":"raised_hand_with_fingers_splayed:t5","🖐🏿":"raised_hand_with_fingers_splayed:t6","🤘":"metal","🤘🏻":"metal:t2","🤘🏼":"metal:t3","🤘🏽":"metal:t4","🤘🏾":"metal:t5","🤘🏿":"metal:t6","🤞":"crossed_fingers","🤞🏻":"crossed_fingers:t2","🤞🏼":"crossed_fingers:t3","🤞🏽":"crossed_fingers:t4","🤞🏾":"crossed_fingers:t5","🤞🏿":"crossed_fingers:t6","🖖":"vulcan_salute","🖖🏻":"vulcan_salute:t2","🖖🏼":"vulcan_salute:t3","🖖🏽":"vulcan_salute:t4","🖖🏾":"vulcan_salute:t5","🖖🏿":"vulcan_salute:t6","✍":"writing_hand","✍🏻":"writing_hand:t2","✍🏼":"writing_hand:t3","✍🏽":"writing_hand:t4","✍🏾":"writing_hand:t5","✍🏿":"writing_hand:t6","🤳":"selfie","🤳🏻":"selfie:t2","🤳🏼":"selfie:t3","🤳🏽":"selfie:t4","🤳🏾":"selfie:t5","🤳🏿":"selfie:t6","💅":"nail_care","💅🏻":"nail_care:t2","💅🏼":"nail_care:t3","💅🏽":"nail_care:t4","💅🏾":"nail_care:t5","💅🏿":"nail_care:t6","👄":"lips","👅":"tongue","👂":"ear","👂🏻":"ear:t2","👂🏼":"ear:t3","👂🏽":"ear:t4","👂🏾":"ear:t5","👂🏿":"ear:t6","👃":"nose","👃🏻":"nose:t2","👃🏼":"nose:t3","👃🏽":"nose:t4","👃🏾":"nose:t5","👃🏿":"nose:t6","👁":"eye","👀":"eyes","👤":"bust_in_silhouette","👥":"busts_in_silhouette","🗣":"speaking_head","👶":"baby","👶🏻":"baby:t2","👶🏼":"baby:t3","👶🏽":"baby:t4","👶🏾":"baby:t5","👶🏿":"baby:t6","👦":"boy","👦🏻":"boy:t2","👦🏼":"boy:t3","👦🏽":"boy:t4","👦🏾":"boy:t5","👦🏿":"boy:t6","👧":"girl","👧🏻":"girl:t2","👧🏼":"girl:t3","👧🏽":"girl:t4","👧🏾":"girl:t5","👧🏿":"girl:t6","👨":"man","👨🏻":"man:t2","👨🏼":"man:t3","👨🏽":"man:t4","👨🏾":"man:t5","👨🏿":"man:t6","👩":"woman","👩🏻":"woman:t2","👩🏼":"woman:t3","👩🏽":"woman:t4","👩🏾":"woman:t5","👩🏿":"woman:t6","👱‍♀️":"blonde_woman","👱🏻‍♀️":"blonde_woman:t2","👱🏼‍♀️":"blonde_woman:t3","👱🏽‍♀️":"blonde_woman:t4","👱🏾‍♀️":"blonde_woman:t5","👱🏿‍♀️":"blonde_woman:t6","👱":"blonde_man","👱🏻":"blonde_man:t2","👱🏼":"blonde_man:t3","👱🏽":"blonde_man:t4","👱🏾":"blonde_man:t5","👱🏿":"blonde_man:t6","👴":"older_man","👴🏻":"older_man:t2","👴🏼":"older_man:t3","👴🏽":"older_man:t4","👴🏾":"older_man:t5","👴🏿":"older_man:t6","👵":"older_woman","👵🏻":"older_woman:t2","👵🏼":"older_woman:t3","👵🏽":"older_woman:t4","👵🏾":"older_woman:t5","👵🏿":"older_woman:t6","👲":"man_with_gua_pi_mao","👲🏻":"man_with_gua_pi_mao:t2","👲🏼":"man_with_gua_pi_mao:t3","👲🏽":"man_with_gua_pi_mao:t4","👲🏾":"man_with_gua_pi_mao:t5","👲🏿":"man_with_gua_pi_mao:t6","👳‍♀️":"woman_with_turban","👳🏻‍♀️":"woman_with_turban:t2","👳🏼‍♀️":"woman_with_turban:t3","👳🏽‍♀️":"woman_with_turban:t4","👳🏾‍♀️":"woman_with_turban:t5","👳🏿‍♀️":"woman_with_turban:t6","👳":"man_with_turban","👳🏻":"man_with_turban:t2","👳🏼":"man_with_turban:t3","👳🏽":"man_with_turban:t4","👳🏾":"man_with_turban:t5","👳🏿":"man_with_turban:t6","👮‍♀️":"policewoman","👮🏻‍♀️":"policewoman:t2","👮🏼‍♀️":"policewoman:t3","👮🏽‍♀️":"policewoman:t4","👮🏾‍♀️":"policewoman:t5","👮🏿‍♀️":"policewoman:t6","👮":"policeman","👮🏻":"policeman:t2","👮🏼":"policeman:t3","👮🏽":"policeman:t4","👮🏾":"policeman:t5","👮🏿":"policeman:t6","👷‍♀️":"construction_worker_woman","👷🏻‍♀️":"construction_worker_woman:t2","👷🏼‍♀️":"construction_worker_woman:t3","👷🏽‍♀️":"construction_worker_woman:t4","👷🏾‍♀️":"construction_worker_woman:t5","👷🏿‍♀️":"construction_worker_woman:t6","👷":"construction_worker_man","👷🏻":"construction_worker_man:t2","👷🏼":"construction_worker_man:t3","👷🏽":"construction_worker_man:t4","👷🏾":"construction_worker_man:t5","👷🏿":"construction_worker_man:t6","💂‍♀️":"guardswoman","💂🏻‍♀️":"guardswoman:t2","💂🏼‍♀️":"guardswoman:t3","💂🏽‍♀️":"guardswoman:t4","💂🏾‍♀️":"guardswoman:t5","💂🏿‍♀️":"guardswoman:t6","💂":"guardsman","💂🏻":"guardsman:t2","💂🏼":"guardsman:t3","💂🏽":"guardsman:t4","💂🏾":"guardsman:t5","💂🏿":"guardsman:t6","🕵️‍♀":"female_detective","🕵":"male_detective","🕵🏻":"male_detective:t2","🕵🏼":"male_detective:t3","🕵🏽":"male_detective:t4","🕵🏾":"male_detective:t5","🕵🏿":"male_detective:t6","👩‍⚕️":"woman_health_worker","👩🏻‍⚕️":"woman_health_worker:t2","👩🏼‍⚕️":"woman_health_worker:t3","👩🏽‍⚕️":"woman_health_worker:t4","👩🏾‍⚕️":"woman_health_worker:t5","👩🏿‍⚕️":"woman_health_worker:t6","👨‍⚕️":"man_health_worker","👨🏻‍⚕️":"man_health_worker:t2","👨🏼‍⚕️":"man_health_worker:t3","👨🏽‍⚕️":"man_health_worker:t4","👨🏾‍⚕️":"man_health_worker:t5","👨🏿‍⚕️":"man_health_worker:t6","👩‍🌾":"woman_farmer","👩🏻‍🌾":"woman_farmer:t2","👩🏼‍🌾":"woman_farmer:t3","👩🏽‍🌾":"woman_farmer:t4","👩🏾‍🌾":"woman_farmer:t5","👩🏿‍🌾":"woman_farmer:t6","👨‍🌾":"man_farmer","👨🏻‍🌾":"man_farmer:t2","👨🏼‍🌾":"man_farmer:t3","👨🏽‍🌾":"man_farmer:t4","👨🏾‍🌾":"man_farmer:t5","👨🏿‍🌾":"man_farmer:t6","👩‍🍳":"woman_cook","👩🏻‍🍳":"woman_cook:t2","👩🏼‍🍳":"woman_cook:t3","👩🏽‍🍳":"woman_cook:t4","👩🏾‍🍳":"woman_cook:t5","👩🏿‍🍳":"woman_cook:t6","👨‍🍳":"man_cook","👨🏻‍🍳":"man_cook:t2","👨🏼‍🍳":"man_cook:t3","👨🏽‍🍳":"man_cook:t4","👨🏾‍🍳":"man_cook:t5","👨🏿‍🍳":"man_cook:t6","👩‍🎓":"woman_student","👩🏻‍🎓":"woman_student:t2","👩🏼‍🎓":"woman_student:t3","👩🏽‍🎓":"woman_student:t4","👩🏾‍🎓":"woman_student:t5","👩🏿‍🎓":"woman_student:t6","👨‍🎓":"man_student","👨🏻‍🎓":"man_student:t2","👨🏼‍🎓":"man_student:t3","👨🏽‍🎓":"man_student:t4","👨🏾‍🎓":"man_student:t5","👨🏿‍🎓":"man_student:t6","👩‍🎤":"woman_singer","👩🏻‍🎤":"woman_singer:t2","👩🏼‍🎤":"woman_singer:t3","👩🏽‍🎤":"woman_singer:t4","👩🏾‍🎤":"woman_singer:t5","👩🏿‍🎤":"woman_singer:t6","👨‍🎤":"man_singer","👨🏻‍🎤":"man_singer:t2","👨🏼‍🎤":"man_singer:t3","👨🏽‍🎤":"man_singer:t4","👨🏾‍🎤":"man_singer:t5","👨🏿‍🎤":"man_singer:t6","👩‍🏫":"woman_teacher","👩🏻‍🏫":"woman_teacher:t2","👩🏼‍🏫":"woman_teacher:t3","👩🏽‍🏫":"woman_teacher:t4","👩🏾‍🏫":"woman_teacher:t5","👩🏿‍🏫":"woman_teacher:t6","👨‍🏫":"man_teacher","👨🏻‍🏫":"man_teacher:t2","👨🏼‍🏫":"man_teacher:t3","👨🏽‍🏫":"man_teacher:t4","👨🏾‍🏫":"man_teacher:t5","👨🏿‍🏫":"man_teacher:t6","👩‍🏭":"woman_factory_worker","👩🏻‍🏭":"woman_factory_worker:t2","👩🏼‍🏭":"woman_factory_worker:t3","👩🏽‍🏭":"woman_factory_worker:t4","👩🏾‍🏭":"woman_factory_worker:t5","👩🏿‍🏭":"woman_factory_worker:t6","👨‍🏭":"man_factory_worker","👨🏻‍🏭":"man_factory_worker:t2","👨🏼‍🏭":"man_factory_worker:t3","👨🏽‍🏭":"man_factory_worker:t4","👨🏾‍🏭":"man_factory_worker:t5","👨🏿‍🏭":"man_factory_worker:t6","👩‍💻":"woman_technologist","👩🏻‍💻":"woman_technologist:t2","👩🏼‍💻":"woman_technologist:t3","👩🏽‍💻":"woman_technologist:t4","👩🏾‍💻":"woman_technologist:t5","👩🏿‍💻":"woman_technologist:t6","👨‍💻":"man_technologist","👨🏻‍💻":"man_technologist:t2","👨🏼‍💻":"man_technologist:t3","👨🏽‍💻":"man_technologist:t4","👨🏾‍💻":"man_technologist:t5","👨🏿‍💻":"man_technologist:t6","👩‍💼":"woman_office_worker","👩🏻‍💼":"woman_office_worker:t2","👩🏼‍💼":"woman_office_worker:t3","👩🏽‍💼":"woman_office_worker:t4","👩🏾‍💼":"woman_office_worker:t5","👩🏿‍💼":"woman_office_worker:t6","👨‍💼":"man_office_worker","👨🏻‍💼":"man_office_worker:t2","👨🏼‍💼":"man_office_worker:t3","👨🏽‍💼":"man_office_worker:t4","👨🏾‍💼":"man_office_worker:t5","👨🏿‍💼":"man_office_worker:t6","👩‍🔧":"woman_mechanic","👩🏻‍🔧":"woman_mechanic:t2","👩🏼‍🔧":"woman_mechanic:t3","👩🏽‍🔧":"woman_mechanic:t4","👩🏾‍🔧":"woman_mechanic:t5","👩🏿‍🔧":"woman_mechanic:t6","👨‍🔧":"man_mechanic","👨🏻‍🔧":"man_mechanic:t2","👨🏼‍🔧":"man_mechanic:t3","👨🏽‍🔧":"man_mechanic:t4","👨🏾‍🔧":"man_mechanic:t5","👨🏿‍🔧":"man_mechanic:t6","👩‍🔬":"woman_scientist","👩🏻‍🔬":"woman_scientist:t2","👩🏼‍🔬":"woman_scientist:t3","👩🏽‍🔬":"woman_scientist:t4","👩🏾‍🔬":"woman_scientist:t5","👩🏿‍🔬":"woman_scientist:t6","👨‍🔬":"man_scientist","👨🏻‍🔬":"man_scientist:t2","👨🏼‍🔬":"man_scientist:t3","👨🏽‍🔬":"man_scientist:t4","👨🏾‍🔬":"man_scientist:t5","👨🏿‍🔬":"man_scientist:t6","👩‍🎨":"woman_artist","👩🏻‍🎨":"woman_artist:t2","👩🏼‍🎨":"woman_artist:t3","👩🏽‍🎨":"woman_artist:t4","👩🏾‍🎨":"woman_artist:t5","👩🏿‍🎨":"woman_artist:t6","👨‍🎨":"man_artist","👨🏻‍🎨":"man_artist:t2","👨🏼‍🎨":"man_artist:t3","👨🏽‍🎨":"man_artist:t4","👨🏾‍🎨":"man_artist:t5","👨🏿‍🎨":"man_artist:t6","👩‍🚒":"woman_firefighter","👩🏻‍🚒":"woman_firefighter:t2","👩🏼‍🚒":"woman_firefighter:t3","👩🏽‍🚒":"woman_firefighter:t4","👩🏾‍🚒":"woman_firefighter:t5","👩🏿‍🚒":"woman_firefighter:t6","👨‍🚒":"man_firefighter","👨🏻‍🚒":"man_firefighter:t2","👨🏼‍🚒":"man_firefighter:t3","👨🏽‍🚒":"man_firefighter:t4","👨🏾‍🚒":"man_firefighter:t5","👨🏿‍🚒":"man_firefighter:t6","👩‍✈️":"woman_pilot","👩🏻‍✈️":"woman_pilot:t2","👩🏼‍✈️":"woman_pilot:t3","👩🏽‍✈️":"woman_pilot:t4","👩🏾‍✈️":"woman_pilot:t5","👩🏿‍✈️":"woman_pilot:t6","👨‍✈️":"man_pilot","👨🏻‍✈️":"man_pilot:t2","👨🏼‍✈️":"man_pilot:t3","👨🏽‍✈️":"man_pilot:t4","👨🏾‍✈️":"man_pilot:t5","👨🏿‍✈️":"man_pilot:t6","👩‍🚀":"woman_astronaut","👩🏻‍🚀":"woman_astronaut:t2","👩🏼‍🚀":"woman_astronaut:t3","👩🏽‍🚀":"woman_astronaut:t4","👩🏾‍🚀":"woman_astronaut:t5","👩🏿‍🚀":"woman_astronaut:t6","👨‍🚀":"man_astronaut","👨🏻‍🚀":"man_astronaut:t2","👨🏼‍🚀":"man_astronaut:t3","👨🏽‍🚀":"man_astronaut:t4","👨🏾‍🚀":"man_astronaut:t5","👨🏿‍🚀":"man_astronaut:t6","👩‍⚖️":"woman_judge","👩🏻‍⚖️":"woman_judge:t2","👩🏼‍⚖️":"woman_judge:t3","👩🏽‍⚖️":"woman_judge:t4","👩🏾‍⚖️":"woman_judge:t5","👩🏿‍⚖️":"woman_judge:t6","👨‍⚖️":"man_judge","👨🏻‍⚖️":"man_judge:t2","👨🏼‍⚖️":"man_judge:t3","👨🏽‍⚖️":"man_judge:t4","👨🏾‍⚖️":"man_judge:t5","👨🏿‍⚖️":"man_judge:t6","🤶":"mrs_claus","🤶🏻":"mrs_claus:t2","🤶🏼":"mrs_claus:t3","🤶🏽":"mrs_claus:t4","🤶🏾":"mrs_claus:t5","🤶🏿":"mrs_claus:t6","🎅":"santa","🎅🏻":"santa:t2","🎅🏼":"santa:t3","🎅🏽":"santa:t4","🎅🏾":"santa:t5","🎅🏿":"santa:t6","👼":"angel","👼🏻":"angel:t2","👼🏼":"angel:t3","👼🏽":"angel:t4","👼🏾":"angel:t5","👼🏿":"angel:t6","🤰":"pregnant_woman","🤰🏻":"pregnant_woman:t2","🤰🏼":"pregnant_woman:t3","🤰🏽":"pregnant_woman:t4","🤰🏾":"pregnant_woman:t5","🤰🏿":"pregnant_woman:t6","👸":"princess","👸🏻":"princess:t2","👸🏼":"princess:t3","👸🏽":"princess:t4","👸🏾":"princess:t5","👸🏿":"princess:t6","🤴":"prince","🤴🏻":"prince:t2","🤴🏼":"prince:t3","🤴🏽":"prince:t4","🤴🏾":"prince:t5","🤴🏿":"prince:t6","👰":"bride_with_veil","👰🏻":"bride_with_veil:t2","👰🏼":"bride_with_veil:t3","👰🏽":"bride_with_veil:t4","👰🏾":"bride_with_veil:t5","👰🏿":"bride_with_veil:t6","🤵":"person_in_tuxedo","🤵🏻":"person_in_tuxedo:t2","🤵🏼":"person_in_tuxedo:t3","🤵🏽":"person_in_tuxedo:t4","🤵🏾":"person_in_tuxedo:t5","🤵🏿":"person_in_tuxedo:t6","🏃‍♀️":"running_woman","🏃🏻‍♀️":"running_woman:t2","🏃🏼‍♀️":"running_woman:t3","🏃🏽‍♀️":"running_woman:t4","🏃🏾‍♀️":"running_woman:t5","🏃🏿‍♀️":"running_woman:t6","🏃":"running_man","🏃🏻":"running_man:t2","🏃🏼":"running_man:t3","🏃🏽":"running_man:t4","🏃🏾":"running_man:t5","🏃🏿":"running_man:t6","🚶‍♀️":"walking_woman","🚶🏻‍♀️":"walking_woman:t2","🚶🏼‍♀️":"walking_woman:t3","🚶🏽‍♀️":"walking_woman:t4","🚶🏾‍♀️":"walking_woman:t5","🚶🏿‍♀️":"walking_woman:t6","🚶":"walking_man","🚶🏻":"walking_man:t2","🚶🏼":"walking_man:t3","🚶🏽":"walking_man:t4","🚶🏾":"walking_man:t5","🚶🏿":"walking_man:t6","💃":"dancer","💃🏻":"dancer:t2","💃🏼":"dancer:t3","💃🏽":"dancer:t4","💃🏾":"dancer:t5","💃🏿":"dancer:t6","🕺":"man_dancing","🕺🏻":"man_dancing:t2","🕺🏼":"man_dancing:t3","🕺🏽":"man_dancing:t4","🕺🏾":"man_dancing:t5","🕺🏿":"man_dancing:t6","👯":"dancing_women","👯‍♂":"dancing_men","👫":"couple","👫🏻":"couple:t2","👫🏼":"couple:t3","👫🏽":"couple:t4","👫🏾":"couple:t5","👫🏿":"couple:t6","👬":"two_men_holding_hands","👬🏻":"two_men_holding_hands:t2","👬🏼":"two_men_holding_hands:t3","👬🏽":"two_men_holding_hands:t4","👬🏾":"two_men_holding_hands:t5","👬🏿":"two_men_holding_hands:t6","👭":"two_women_holding_hands","👭🏻":"two_women_holding_hands:t2","👭🏼":"two_women_holding_hands:t3","👭🏽":"two_women_holding_hands:t4","👭🏾":"two_women_holding_hands:t5","👭🏿":"two_women_holding_hands:t6","🙇‍♀️":"bowing_woman","🙇🏻‍♀️":"bowing_woman:t2","🙇🏼‍♀️":"bowing_woman:t3","🙇🏽‍♀️":"bowing_woman:t4","🙇🏾‍♀️":"bowing_woman:t5","🙇🏿‍♀️":"bowing_woman:t6","🙇":"bowing_man","🙇🏻":"bowing_man:t2","🙇🏼":"bowing_man:t3","🙇🏽":"bowing_man:t4","🙇🏾":"bowing_man:t5","🙇🏿":"bowing_man:t6","🤦‍♂️":"man_facepalming","🤦🏻‍♂️":"man_facepalming:t2","🤦🏼‍♂️":"man_facepalming:t3","🤦🏽‍♂️":"man_facepalming:t4","🤦🏾‍♂️":"man_facepalming:t5","🤦🏿‍♂️":"man_facepalming:t6","🤦‍♀️":"woman_facepalming","🤦🏻‍♀️":"woman_facepalming:t2","🤦🏼‍♀️":"woman_facepalming:t3","🤦🏽‍♀️":"woman_facepalming:t4","🤦🏾‍♀️":"woman_facepalming:t5","🤦🏿‍♀️":"woman_facepalming:t6","🤷‍♀️":"woman_shrugging","🤷🏻‍♀️":"woman_shrugging:t2","🤷🏼‍♀️":"woman_shrugging:t3","🤷🏽‍♀️":"woman_shrugging:t4","🤷🏾‍♀️":"woman_shrugging:t5","🤷🏿‍♀️":"woman_shrugging:t6","🤷‍♂️":"man_shrugging","🤷🏻‍♂️":"man_shrugging:t2","🤷🏼‍♂️":"man_shrugging:t3","🤷🏽‍♂️":"man_shrugging:t4","🤷🏾‍♂️":"man_shrugging:t5","🤷🏿‍♂️":"man_shrugging:t6","💁‍♀️":"tipping_hand_woman","💁🏻‍♀️":"tipping_hand_woman:t2","💁🏼‍♀️":"tipping_hand_woman:t3","💁🏽‍♀️":"tipping_hand_woman:t4","💁🏾‍♀️":"tipping_hand_woman:t5","💁🏿‍♀️":"tipping_hand_woman:t6","💁‍♂️":"tipping_hand_man","💁🏻‍♂️":"tipping_hand_man:t2","💁🏼‍♂️":"tipping_hand_man:t3","💁🏽‍♂️":"tipping_hand_man:t4","💁🏾‍♂️":"tipping_hand_man:t5","💁🏿‍♂️":"tipping_hand_man:t6","🙅‍♀️":"no_good_woman","🙅🏻‍♀️":"no_good_woman:t2","🙅🏼‍♀️":"no_good_woman:t3","🙅🏽‍♀️":"no_good_woman:t4","🙅🏾‍♀️":"no_good_woman:t5","🙅🏿‍♀️":"no_good_woman:t6","🙅‍♂️":"no_good_man","🙅🏻‍♂️":"no_good_man:t2","🙅🏼‍♂️":"no_good_man:t3","🙅🏽‍♂️":"no_good_man:t4","🙅🏾‍♂️":"no_good_man:t5","🙅🏿‍♂️":"no_good_man:t6","🙆‍♀️":"ok_woman","🙆🏻‍♀️":"ok_woman:t2","🙆🏼‍♀️":"ok_woman:t3","🙆🏽‍♀️":"ok_woman:t4","🙆🏾‍♀️":"ok_woman:t5","🙆🏿‍♀️":"ok_woman:t6","🙆‍♂️":"ok_man","🙆🏻‍♂️":"ok_man:t2","🙆🏼‍♂️":"ok_man:t3","🙆🏽‍♂️":"ok_man:t4","🙆🏾‍♂️":"ok_man:t5","🙆🏿‍♂️":"ok_man:t6","🙋‍♀️":"raising_hand_woman","🙋🏻‍♀️":"raising_hand_woman:t2","🙋🏼‍♀️":"raising_hand_woman:t3","🙋🏽‍♀️":"raising_hand_woman:t4","🙋🏾‍♀️":"raising_hand_woman:t5","🙋🏿‍♀️":"raising_hand_woman:t6","🙋‍♂️":"raising_hand_man","🙋🏻‍♂️":"raising_hand_man:t2","🙋🏼‍♂️":"raising_hand_man:t3","🙋🏽‍♂️":"raising_hand_man:t4","🙋🏾‍♂️":"raising_hand_man:t5","🙋🏿‍♂️":"raising_hand_man:t6","🙎‍♀️":"pouting_woman","🙎🏻‍♀️":"pouting_woman:t2","🙎🏼‍♀️":"pouting_woman:t3","🙎🏽‍♀️":"pouting_woman:t4","🙎🏾‍♀️":"pouting_woman:t5","🙎🏿‍♀️":"pouting_woman:t6","🙎‍♂️":"pouting_man","🙎🏻‍♂️":"pouting_man:t2","🙎🏼‍♂️":"pouting_man:t3","🙎🏽‍♂️":"pouting_man:t4","🙎🏾‍♂️":"pouting_man:t5","🙎🏿‍♂️":"pouting_man:t6","🙍‍♀️":"frowning_woman","🙍🏻‍♀️":"frowning_woman:t2","🙍🏼‍♀️":"frowning_woman:t3","🙍🏽‍♀️":"frowning_woman:t4","🙍🏾‍♀️":"frowning_woman:t5","🙍🏿‍♀️":"frowning_woman:t6","🙍‍♂️":"frowning_man","🙍🏻‍♂️":"frowning_man:t2","🙍🏼‍♂️":"frowning_man:t3","🙍🏽‍♂️":"frowning_man:t4","🙍🏾‍♂️":"frowning_man:t5","🙍🏿‍♂️":"frowning_man:t6","💇‍♀️":"haircut_woman","💇🏻‍♀️":"haircut_woman:t2","💇🏼‍♀️":"haircut_woman:t3","💇🏽‍♀️":"haircut_woman:t4","💇🏾‍♀️":"haircut_woman:t5","💇🏿‍♀️":"haircut_woman:t6","💇‍♂️":"haircut_man","💇🏻‍♂️":"haircut_man:t2","💇🏼‍♂️":"haircut_man:t3","💇🏽‍♂️":"haircut_man:t4","💇🏾‍♂️":"haircut_man:t5","💇🏿‍♂️":"haircut_man:t6","💆‍♀️":"massage_woman","💆🏻‍♀️":"massage_woman:t2","💆🏼‍♀️":"massage_woman:t3","💆🏽‍♀️":"massage_woman:t4","💆🏾‍♀️":"massage_woman:t5","💆🏿‍♀️":"massage_woman:t6","💆‍♂️":"massage_man","💆🏻‍♂️":"massage_man:t2","💆🏼‍♂️":"massage_man:t3","💆🏽‍♂️":"massage_man:t4","💆🏾‍♂️":"massage_man:t5","💆🏿‍♂️":"massage_man:t6","💑":"couple_with_heart","👩‍❤️‍👩":"couple_with_heart_woman_woman","👨‍❤️‍👨":"couple_with_heart_man_man","💏":"couplekiss_man_woman","👩‍❤️‍💋‍👩":"couplekiss_woman_woman","👨‍❤️‍💋‍👨":"couplekiss_man_man","👪":"family","👨‍👩‍👧":"family_man_woman_girl","👨‍👩‍👧‍👦":"family_man_woman_girl_boy","👨‍👩‍👦‍👦":"family_man_woman_boy_boy","👨‍👩‍👧‍👧":"family_man_woman_girl_girl","👩‍👩‍👦":"family_woman_woman_boy","👩‍👩‍👧":"family_woman_woman_girl","👩‍👩‍👧‍👦":"family_woman_woman_girl_boy","👩‍👩‍👦‍👦":"family_woman_woman_boy_boy","👩‍👩‍👧‍👧":"family_woman_woman_girl_girl","👨‍👨‍👦":"family_man_man_boy","👨‍👨‍👧":"family_man_man_girl","👨‍👨‍👧‍👦":"family_man_man_girl_boy","👨‍👨‍👦‍👦":"family_man_man_boy_boy","👨‍👨‍👧‍👧":"family_man_man_girl_girl","👩‍👦":"family_woman_boy","👩‍👧":"family_woman_girl","👩‍👧‍👦":"family_woman_girl_boy","👩‍👦‍👦":"family_woman_boy_boy","👩‍👧‍👧":"family_woman_girl_girl","👨‍👦":"family_man_boy","👨‍👧":"family_man_girl","👨‍👧‍👦":"family_man_girl_boy","👨‍👦‍👦":"family_man_boy_boy","👨‍👧‍👧":"family_man_girl_girl","👚":"womans_clothes","👕":"tshirt","👖":"jeans","👔":"necktie","👗":"dress","👙":"bikini","👘":"kimono","💄":"lipstick","💋":"kiss","👣":"footprints","👠":"high_heel","👡":"sandal","👢":"boot","👞":"mans_shoe","👟":"athletic_shoe","👒":"womans_hat","🎩":"tophat","⛑":"rescue_worker_helmet","🎓":"mortar_board","👑":"crown","🎒":"school_satchel","👝":"pouch","👛":"purse","👜":"handbag","💼":"briefcase","👓":"eyeglasses","🕶":"dark_sunglasses","💍":"ring","🌂":"closed_umbrella","🐶":"dog","🐱":"cat","🐭":"mouse","🐹":"hamster","🐰":"rabbit","🦊":"fox_face","🐻":"bear","🐼":"panda_face","🐨":"koala","🐯":"tiger","🦁":"lion","🐮":"cow","🐷":"pig","🐽":"pig_nose","🐸":"frog","🦑":"squid","🐙":"octopus","🦐":"shrimp","🐵":"monkey_face","🦍":"gorilla","🙈":"see_no_evil","🙉":"hear_no_evil","🙊":"speak_no_evil","🐒":"monkey","🐔":"chicken","🐧":"penguin","🐦":"bird","🐤":"baby_chick","🐣":"hatching_chick","🐥":"hatched_chick","🦆":"duck","🦅":"eagle","🦉":"owl","🦇":"bat","🐺":"wolf","🐗":"boar","🐴":"horse","🦄":"unicorn","🐝":"honeybee","🐛":"bug","🦋":"butterfly","🐌":"snail","🐞":"lady_beetle","🐜":"ant","🕷":"spider","🦂":"scorpion","🦀":"crab","🐍":"snake","🦎":"lizard","🐢":"turtle","🐠":"tropical_fish","🐟":"fish","🐡":"blowfish","🐬":"dolphin","🦈":"shark","🐳":"whale","🐋":"whale2","🐊":"crocodile","🐆":"leopard","🐅":"tiger2","🐃":"water_buffalo","🐂":"ox","🐄":"cow2","🦌":"deer","🐪":"dromedary_camel","🐫":"camel","🐘":"elephant","🦏":"rhinoceros","🐐":"goat","🐏":"ram","🐑":"sheep","🐎":"racehorse","🐖":"pig2","🐀":"rat","🐁":"mouse2","🐓":"rooster","🦃":"turkey","🕊":"dove","🐕":"dog2","🐩":"poodle","🐈":"cat2","🐇":"rabbit2","🐿":"chipmunk","🐾":"paw_prints","🐉":"dragon","🐲":"dragon_face","🌵":"cactus","🎄":"christmas_tree","🌲":"evergreen_tree","🌳":"deciduous_tree","🌴":"palm_tree","🌱":"seedling","🌿":"herb","☘":"shamrock","🍀":"four_leaf_clover","🎍":"bamboo","🎋":"tanabata_tree","🍃":"leaves","🍂":"fallen_leaf","🍁":"maple_leaf","🌾":"ear_of_rice","🌺":"hibiscus","🌻":"sunflower","🌹":"rose","🥀":"wilted_flower","🌷":"tulip","🌼":"blossom","🌸":"cherry_blossom","💐":"bouquet","🍄":"mushroom","🌰":"chestnut","🎃":"jack_o_lantern","🐚":"shell","🕸":"spider_web","🌎":"earth_americas","🌍":"earth_africa","🌏":"earth_asia","🌕":"full_moon","🌖":"waning_gibbous_moon","🌗":"last_quarter_moon","🌘":"waning_crescent_moon","🌑":"new_moon","🌒":"waxing_crescent_moon","🌓":"first_quarter_moon","🌔":"waxing_gibbous_moon","🌚":"new_moon_with_face","🌝":"full_moon_with_face","🌛":"first_quarter_moon_with_face","🌜":"last_quarter_moon_with_face","🌞":"sun_with_face","🌙":"crescent_moon","⭐":"star","🌟":"star2","💫":"dizzy","✨":"sparkles","☄":"comet","☀":"sunny","🌤":"sun_behind_small_cloud","⛅":"partly_sunny","🌥":"sun_behind_large_cloud","🌦":"sun_behind_rain_cloud","☁":"cloud","🌧":"cloud_with_rain","⛈":"cloud_with_lightning_and_rain","🌩":"cloud_with_lightning","⚡":"zap","🔥":"fire","💥":"boom","❄":"snowflake","🌨":"cloud_with_snow","⛄":"snowman","☃":"snowman_with_snow","🌬":"wind_face","💨":"dash","🌪":"tornado","🌫":"fog","☂":"open_umbrella","☔":"umbrella","💧":"droplet","💦":"sweat_drops","🌊":"ocean","🍏":"green_apple","🍎":"apple","🍐":"pear","🍊":"tangerine","🍋":"lemon","🍌":"banana","🍉":"watermelon","🍇":"grapes","🍓":"strawberry","🍈":"melon","🍒":"cherries","🍑":"peach","🍍":"pineapple","🥝":"kiwi_fruit","🥑":"avocado","🍅":"tomato","🍆":"eggplant","🥒":"cucumber","🥕":"carrot","🌶":"hot_pepper","🥔":"potato","🌽":"corn","🍠":"sweet_potato","🥜":"peanuts","🍯":"honey_pot","🥐":"croissant","🍞":"bread","🥖":"baguette_bread","🧀":"cheese","🥚":"egg","🥓":"bacon","🥞":"pancakes","🍗":"poultry_leg","🍖":"meat_on_bone","🍤":"fried_shrimp","🍳":"fried_egg","🍔":"hamburger","🍟":"fries","🥙":"stuffed_flatbread","🌭":"hotdog","🍕":"pizza","🍝":"spaghetti","🌮":"taco","🌯":"burrito","🥗":"green_salad","🥘":"shallow_pan_of_food","🍜":"ramen","🍲":"stew","🍥":"fish_cake","🍣":"sushi","🍱":"bento","🍛":"curry","🍙":"rice_ball","🍚":"rice","🍘":"rice_cracker","🍢":"oden","🍡":"dango","🍧":"shaved_ice","🍨":"ice_cream","🍦":"icecream","🍰":"cake","🎂":"birthday","🍮":"custard","🍬":"candy","🍭":"lollipop","🍫":"chocolate_bar","🍿":"popcorn","🍩":"doughnut","🍪":"cookie","🥛":"milk_glass","🍺":"beer","🍻":"beers","🥂":"clinking_glasses","🍷":"wine_glass","🥃":"tumbler_glass","🍸":"cocktail","🍹":"tropical_drink","🍾":"champagne","🍶":"sake","🍵":"tea","☕":"coffee","🍼":"baby_bottle","🥄":"spoon","🍴":"fork_and_knife","🍽":"plate_with_cutlery","⚽":"soccer","🏀":"basketball","🏈":"football","⚾":"baseball","🎾":"tennis","🏐":"volleyball","🏉":"rugby_football","🎱":"8ball","⛳":"golf","🏌️‍♀":"golfing_woman","🏌":"golfing_man","🏌🏻":"golfing_man:t2","🏌🏼":"golfing_man:t3","🏌🏽":"golfing_man:t4","🏌🏾":"golfing_man:t5","🏌🏿":"golfing_man:t6","🏓":"ping_pong","🏸":"badminton","🥅":"goal_net","🏒":"ice_hockey","🏑":"field_hockey","🏏":"cricket_bat_and_ball","🎿":"ski","⛷":"skier","🏂":"snowboarder","🏂🏻":"snowboarder:t2","🏂🏼":"snowboarder:t3","🏂🏽":"snowboarder:t4","🏂🏾":"snowboarder:t5","🏂🏿":"snowboarder:t6","🤺":"person_fencing","🤼‍♀":"women_wrestling","🤼‍♂":"men_wrestling","🤸‍♀️":"woman_cartwheeling","🤸🏻‍♀️":"woman_cartwheeling:t2","🤸🏼‍♀️":"woman_cartwheeling:t3","🤸🏽‍♀️":"woman_cartwheeling:t4","🤸🏾‍♀️":"woman_cartwheeling:t5","🤸🏿‍♀️":"woman_cartwheeling:t6","🤸‍♂️":"man_cartwheeling","🤸🏻‍♂️":"man_cartwheeling:t2","🤸🏼‍♂️":"man_cartwheeling:t3","🤸🏽‍♂️":"man_cartwheeling:t4","🤸🏾‍♂️":"man_cartwheeling:t5","🤸🏿‍♂️":"man_cartwheeling:t6","🤾‍♀️":"woman_playing_handball","🤾🏻‍♀️":"woman_playing_handball:t2","🤾🏼‍♀️":"woman_playing_handball:t3","🤾🏽‍♀️":"woman_playing_handball:t4","🤾🏾‍♀️":"woman_playing_handball:t5","🤾🏿‍♀️":"woman_playing_handball:t6","🤾‍♂️":"man_playing_handball","🤾🏻‍♂️":"man_playing_handball:t2","🤾🏼‍♂️":"man_playing_handball:t3","🤾🏽‍♂️":"man_playing_handball:t4","🤾🏾‍♂️":"man_playing_handball:t5","🤾🏿‍♂️":"man_playing_handball:t6","⛸":"ice_skate","🏹":"bow_and_arrow","🎣":"fishing_pole_and_fish","🥊":"boxing_glove","🥋":"martial_arts_uniform","🚣‍♀️":"rowing_woman","🚣🏻‍♀️":"rowing_woman:t2","🚣🏼‍♀️":"rowing_woman:t3","🚣🏽‍♀️":"rowing_woman:t4","🚣🏾‍♀️":"rowing_woman:t5","🚣🏿‍♀️":"rowing_woman:t6","🚣":"rowing_man","🚣🏻":"rowing_man:t2","🚣🏼":"rowing_man:t3","🚣🏽":"rowing_man:t4","🚣🏾":"rowing_man:t5","🚣🏿":"rowing_man:t6","🏊‍♀️":"swimming_woman","🏊🏻‍♀️":"swimming_woman:t2","🏊🏼‍♀️":"swimming_woman:t3","🏊🏽‍♀️":"swimming_woman:t4","🏊🏾‍♀️":"swimming_woman:t5","🏊🏿‍♀️":"swimming_woman:t6","🏊":"swimming_man","🏊🏻":"swimming_man:t2","🏊🏼":"swimming_man:t3","🏊🏽":"swimming_man:t4","🏊🏾":"swimming_man:t5","🏊🏿":"swimming_man:t6","🤽‍♀️":"woman_playing_water_polo","🤽🏻‍♀️":"woman_playing_water_polo:t2","🤽🏼‍♀️":"woman_playing_water_polo:t3","🤽🏽‍♀️":"woman_playing_water_polo:t4","🤽🏾‍♀️":"woman_playing_water_polo:t5","🤽🏿‍♀️":"woman_playing_water_polo:t6","🤽‍♂️":"man_playing_water_polo","🤽🏻‍♂️":"man_playing_water_polo:t2","🤽🏼‍♂️":"man_playing_water_polo:t3","🤽🏽‍♂️":"man_playing_water_polo:t4","🤽🏾‍♂️":"man_playing_water_polo:t5","🤽🏿‍♂️":"man_playing_water_polo:t6","🏄‍♀️":"surfing_woman","🏄🏻‍♀️":"surfing_woman:t2","🏄🏼‍♀️":"surfing_woman:t3","🏄🏽‍♀️":"surfing_woman:t4","🏄🏾‍♀️":"surfing_woman:t5","🏄🏿‍♀️":"surfing_woman:t6","🏄":"surfing_man","🏄🏻":"surfing_man:t2","🏄🏼":"surfing_man:t3","🏄🏽":"surfing_man:t4","🏄🏾":"surfing_man:t5","🏄🏿":"surfing_man:t6","🛀":"bath","🛀🏻":"bath:t2","🛀🏼":"bath:t3","🛀🏽":"bath:t4","🛀🏾":"bath:t5","🛀🏿":"bath:t6","⛹️‍♀":"basketball_woman","⛹":"basketball_man","⛹🏻":"basketball_man:t2","⛹🏼":"basketball_man:t3","⛹🏽":"basketball_man:t4","⛹🏾":"basketball_man:t5","⛹🏿":"basketball_man:t6","🏋️‍♀":"weight_lifting_woman","🏋":"weight_lifting_man","🏋🏻":"weight_lifting_man:t2","🏋🏼":"weight_lifting_man:t3","🏋🏽":"weight_lifting_man:t4","🏋🏾":"weight_lifting_man:t5","🏋🏿":"weight_lifting_man:t6","🚴‍♀️":"biking_woman","🚴🏻‍♀️":"biking_woman:t2","🚴🏼‍♀️":"biking_woman:t3","🚴🏽‍♀️":"biking_woman:t4","🚴🏾‍♀️":"biking_woman:t5","🚴🏿‍♀️":"biking_woman:t6","🚴":"biking_man","🚴🏻":"biking_man:t2","🚴🏼":"biking_man:t3","🚴🏽":"biking_man:t4","🚴🏾":"biking_man:t5","🚴🏿":"biking_man:t6","🚵‍♀️":"mountain_biking_woman","🚵🏻‍♀️":"mountain_biking_woman:t2","🚵🏼‍♀️":"mountain_biking_woman:t3","🚵🏽‍♀️":"mountain_biking_woman:t4","🚵🏾‍♀️":"mountain_biking_woman:t5","🚵🏿‍♀️":"mountain_biking_woman:t6","🚵":"mountain_biking_man","🚵🏻":"mountain_biking_man:t2","🚵🏼":"mountain_biking_man:t3","🚵🏽":"mountain_biking_man:t4","🚵🏾":"mountain_biking_man:t5","🚵🏿":"mountain_biking_man:t6","🏇":"horse_racing","🏇🏻":"horse_racing:t2","🏇🏼":"horse_racing:t3","🏇🏽":"horse_racing:t4","🏇🏾":"horse_racing:t5","🏇🏿":"horse_racing:t6","🕴":"business_suit_levitating","🕴🏻":"business_suit_levitating:t2","🕴🏼":"business_suit_levitating:t3","🕴🏽":"business_suit_levitating:t4","🕴🏾":"business_suit_levitating:t5","🕴🏿":"business_suit_levitating:t6","🏆":"trophy","🎽":"running_shirt_with_sash","🏅":"medal_sports","🎖":"medal_military","🥇":"1st_place_medal","🥈":"2nd_place_medal","🥉":"3rd_place_medal","🎗":"reminder_ribbon","🏵":"rosette","🎫":"ticket","🎟":"tickets","🎭":"performing_arts","🎨":"art","🎪":"circus_tent","🤹‍♀️":"woman_juggling","🤹🏻‍♀️":"woman_juggling:t2","🤹🏼‍♀️":"woman_juggling:t3","🤹🏽‍♀️":"woman_juggling:t4","🤹🏾‍♀️":"woman_juggling:t5","🤹🏿‍♀️":"woman_juggling:t6","🤹‍♂️":"man_juggling","🤹🏻‍♂️":"man_juggling:t2","🤹🏼‍♂️":"man_juggling:t3","🤹🏽‍♂️":"man_juggling:t4","🤹🏾‍♂️":"man_juggling:t5","🤹🏿‍♂️":"man_juggling:t6","🎤":"microphone","🎧":"headphones","🎼":"musical_score","🎹":"musical_keyboard","🥁":"drum","🎷":"saxophone","🎺":"trumpet","🎸":"guitar","🎻":"violin","🎬":"clapper","🎮":"video_game","👾":"space_invader","🎯":"dart","🎲":"game_die","🎰":"slot_machine","🎳":"bowling","🚗":"red_car","🚕":"taxi","🚙":"blue_car","🚌":"bus","🚎":"trolleybus","🏎":"racing_car","🚓":"police_car","🚑":"ambulance","🚒":"fire_engine","🚐":"minibus","🚚":"truck","🚛":"articulated_lorry","🚜":"tractor","🛴":"kick_scooter","🏍":"motorcycle","🚲":"bike","🛵":"motor_scooter","🚨":"rotating_light","🚔":"oncoming_police_car","🚍":"oncoming_bus","🚘":"oncoming_automobile","🚖":"oncoming_taxi","🚡":"aerial_tramway","🚠":"mountain_cableway","🚟":"suspension_railway","🚃":"railway_car","🚋":"train","🚝":"monorail","🚄":"bullettrain_side","🚅":"bullettrain_front","🚈":"light_rail","🚞":"mountain_railway","🚂":"steam_locomotive","🚆":"train2","🚇":"metro","🚊":"tram","🚉":"station","🚁":"helicopter","🛩":"small_airplane","✈":"airplane","🛫":"flight_departure","🛬":"flight_arrival","⛵":"sailboat","🛥":"motor_boat","🚤":"speedboat","⛴":"ferry","🛳":"passenger_ship","🚀":"rocket","🛰":"artificial_satellite","💺":"seat","🛶":"canoe","⚓":"anchor","🚧":"construction","⛽":"fuelpump","🚏":"busstop","🚦":"vertical_traffic_light","🚥":"traffic_light","🏁":"checkered_flag","🚢":"ship","🎡":"ferris_wheel","🎢":"roller_coaster","🎠":"carousel_horse","🏗":"building_construction","🌁":"foggy","🗼":"tokyo_tower","🏭":"factory","⛲":"fountain","🎑":"rice_scene","⛰":"mountain","🏔":"mountain_snow","🗻":"mount_fuji","🌋":"volcano","🗾":"japan","🏕":"camping","⛺":"tent","🏞":"national_park","🛣":"motorway","🛤":"railway_track","🌅":"sunrise","🌄":"sunrise_over_mountains","🏜":"desert","🏖":"beach_umbrella","🏝":"desert_island","🌇":"city_sunrise","🌆":"city_sunset","🏙":"cityscape","🌃":"night_with_stars","🌉":"bridge_at_night","🌌":"milky_way","🌠":"stars","🎇":"sparkler","🎆":"fireworks","🌈":"rainbow","🏘":"houses","🏰":"european_castle","🏯":"japanese_castle","🏟":"stadium","🗽":"statue_of_liberty","🏠":"house","🏡":"house_with_garden","🏚":"derelict_house","🏢":"office","🏬":"department_store","🏣":"post_office","🏤":"european_post_office","🏥":"hospital","🏦":"bank","🏨":"hotel","🏪":"convenience_store","🏫":"school","🏩":"love_hotel","💒":"wedding","🏛":"classical_building","⛪":"church","🕌":"mosque","🕍":"synagogue","🕋":"kaaba","⛩":"shinto_shrine","⌚":"watch","📱":"iphone","📲":"calling","💻":"computer","⌨":"keyboard","🖥":"desktop_computer","🖨":"printer","🖱":"computer_mouse","🖲":"trackball","🕹":"joystick","🗜":"clamp","💽":"minidisc","💾":"floppy_disk","💿":"cd","📀":"dvd","📼":"vhs","📷":"camera","📸":"camera_flash","📹":"video_camera","🎥":"movie_camera","📽":"film_projector","🎞":"film_strip","📞":"telephone_receiver","☎":"phone","📟":"pager","📠":"fax","📺":"tv","📻":"radio","🎙":"studio_microphone","🎚":"level_slider","🎛":"control_knobs","⏱":"stopwatch","⏲":"timer_clock","⏰":"alarm_clock","🕰":"mantelpiece_clock","⏳":"hourglass_flowing_sand","⌛":"hourglass","📡":"satellite","🔋":"battery","🔌":"electric_plug","💡":"bulb","🔦":"flashlight","🕯":"candle","🗑":"wastebasket","🛢":"oil_drum","💸":"money_with_wings","💵":"dollar","💴":"yen","💶":"euro","💷":"pound","💰":"moneybag","💳":"credit_card","💎":"gem","⚖":"balance_scale","🔧":"wrench","🔨":"hammer","⚒":"hammer_and_pick","🛠":"hammer_and_wrench","⛏":"pick","🔩":"nut_and_bolt","⚙":"gear","⛓":"chains","🔫":"gun","💣":"bomb","🔪":"hocho","🗡":"dagger","⚔":"crossed_swords","🛡":"shield","🚬":"smoking","☠":"skull_and_crossbones","⚰":"coffin","⚱":"funeral_urn","🏺":"amphora","🔮":"crystal_ball","📿":"prayer_beads","💈":"barber","⚗":"alembic","🔭":"telescope","🔬":"microscope","🕳":"hole","💊":"pill","💉":"syringe","🌡":"thermometer","🏷":"label","🔖":"bookmark","🚽":"toilet","🚿":"shower","🛁":"bathtub","🔑":"key","🗝":"old_key","🛋":"couch_and_lamp","🛌":"sleeping_bed","🛌🏻":"sleeping_bed:t2","🛌🏼":"sleeping_bed:t3","🛌🏽":"sleeping_bed:t4","🛌🏾":"sleeping_bed:t5","🛌🏿":"sleeping_bed:t6","🛏":"bed","🚪":"door","🛎":"bellhop_bell","🖼":"framed_picture","🗺":"world_map","⛱":"parasol_on_ground","🗿":"moyai","🛍":"shopping","🛒":"shopping_cart","🎈":"balloon","🎏":"flags","🎀":"ribbon","🎁":"gift","🎊":"confetti_ball","🎉":"tada","🎎":"dolls","🎐":"wind_chime","🎌":"crossed_flags","🏮":"izakaya_lantern","✉":"email","📩":"envelope_with_arrow","📨":"incoming_envelope","📧":"e-mail","💌":"love_letter","📮":"postbox","📪":"mailbox_closed","📫":"mailbox","📬":"mailbox_with_mail","📭":"mailbox_with_no_mail","📦":"package","📯":"postal_horn","📥":"inbox_tray","📤":"outbox_tray","📜":"scroll","📃":"page_with_curl","📑":"bookmark_tabs","📊":"bar_chart","📈":"chart_with_upwards_trend","📉":"chart_with_downwards_trend","📄":"page_facing_up","📅":"date","📆":"calendar","🗓":"spiral_calendar","📇":"card_index","🗃":"card_file_box","🗳":"ballot_box","🗄":"file_cabinet","📋":"clipboard","🗒":"spiral_notepad","📁":"file_folder","📂":"open_file_folder","🗂":"card_index_dividers","🗞":"newspaper_roll","📰":"newspaper","📓":"notebook","📕":"closed_book","📗":"green_book","📘":"blue_book","📙":"orange_book","📔":"notebook_with_decorative_cover","📒":"ledger","📚":"books","📖":"open_book","🔗":"link","📎":"paperclip","🖇":"paperclips","✂":"scissors","📐":"triangular_ruler","📏":"straight_ruler","📌":"pushpin","📍":"round_pushpin","🚩":"triangular_flag_on_post","🏳":"white_flag","🏴":"black_flag","🏳️‍🌈":"rainbow_flag","🔐":"closed_lock_with_key","🔒":"lock","🔓":"unlock","🔏":"lock_with_ink_pen","🖊":"pen","🖋":"fountain_pen","✒":"black_nib","📝":"memo","✏":"pencil2","🖍":"crayon","🖌":"paintbrush","🔍":"mag","🔎":"mag_right","❤":"heart","💛":"yellow_heart","💚":"green_heart","💙":"blue_heart","💜":"purple_heart","🖤":"black_heart","💔":"broken_heart","❣":"heavy_heart_exclamation","💕":"two_hearts","💞":"revolving_hearts","💓":"heartbeat","💗":"heartpulse","💖":"sparkling_heart","💘":"cupid","💝":"gift_heart","💟":"heart_decoration","☮":"peace_symbol","✝":"latin_cross","☪":"star_and_crescent","🕉":"om","☸":"wheel_of_dharma","✡":"star_of_david","🔯":"six_pointed_star","🕎":"menorah","☯":"yin_yang","☦":"orthodox_cross","🛐":"place_of_worship","⛎":"ophiuchus","♈":"aries","♉":"taurus","♊":"gemini","♋":"cancer","♌":"leo","♍":"virgo","♎":"libra","♏":"scorpius","♐":"sagittarius","♑":"capricorn","♒":"aquarius","♓":"pisces","🆔":"id","⚛":"atom_symbol","🈳":"u7a7a","🈹":"u5272","☢":"radioactive","☣":"biohazard","📴":"mobile_phone_off","📳":"vibration_mode","🈶":"u6709","🈚":"u7121","🈸":"u7533","🈺":"u55b6","🈷":"u6708","✴":"eight_pointed_black_star","🆚":"vs","🉑":"accept","💮":"white_flower","🉐":"ideograph_advantage","㊙":"secret","㊗":"congratulations","🈴":"u5408","🈵":"u6e80","🈲":"u7981","🅰":"a","🅱":"b","🆎":"ab","🆑":"cl","🅾":"o2","🆘":"sos","⛔":"no_entry","📛":"name_badge","🚫":"no_entry_sign","❌":"x","⭕":"o","🛑":"stop_sign","💢":"anger","♨":"hotsprings","🚷":"no_pedestrians","🚯":"do_not_litter","🚳":"no_bicycles","🚱":"non-potable_water","🔞":"underage","📵":"no_mobile_phones","❗":"exclamation","❕":"grey_exclamation","❓":"question","❔":"grey_question","‼":"bangbang","⁉":"interrobang","💯":"100","🔅":"low_brightness","🔆":"high_brightness","🔱":"trident","⚜":"fleur_de_lis","〽":"part_alternation_mark","⚠":"warning","🚸":"children_crossing","🔰":"beginner","♻":"recycle","🈯":"u6307","💹":"chart","❇":"sparkle","✳":"eight_spoked_asterisk","❎":"negative_squared_cross_mark","✅":"white_check_mark","💠":"diamond_shape_with_a_dot_inside","🌀":"cyclone","➿":"loop","🌐":"globe_with_meridians","Ⓜ":"m","🏧":"atm","🈂":"sa","🛂":"passport_control","🛃":"customs","🛄":"baggage_claim","🛅":"left_luggage","♿":"wheelchair","🚭":"no_smoking","🚾":"wc","🅿":"parking","🚰":"potable_water","🚹":"mens","🚺":"womens","🚼":"baby_symbol","🚻":"restroom","🚮":"put_litter_in_its_place","🎦":"cinema","📶":"signal_strength","🈁":"koko","🆖":"ng","🆗":"ok","🆙":"up","🆒":"cool","🆕":"new","🆓":"free","0️⃣":"zero","1️⃣":"one","2️⃣":"two","3️⃣":"three","4️⃣":"four","5️⃣":"five","6️⃣":"six","7️⃣":"seven","8️⃣":"eight","9️⃣":"nine","🔟":"keycap_ten","*️⃣":"asterisk","🔢":"1234","▶":"arrow_forward","⏸":"pause_button","⏭":"next_track_button","⏹":"stop_button","⏺":"record_button","⏯":"play_or_pause_button","⏮":"previous_track_button","⏩":"fast_forward","⏪":"rewind","🔀":"twisted_rightwards_arrows","🔁":"repeat","🔂":"repeat_one","◀":"arrow_backward","🔼":"arrow_up_small","🔽":"arrow_down_small","⏫":"arrow_double_up","⏬":"arrow_double_down","➡":"arrow_right","⬅":"arrow_left","⬆":"arrow_up","⬇":"arrow_down","↗":"arrow_upper_right","↘":"arrow_lower_right","↙":"arrow_lower_left","↖":"arrow_upper_left","↕":"arrow_up_down","🔄":"arrows_counterclockwise","↪":"arrow_right_hook","↩":"leftwards_arrow_with_hook","⤴":"arrow_heading_up","⤵":"arrow_heading_down","#️⃣":"hash",ℹ:"information_source","🔤":"abc","🔡":"abcd","🔠":"capital_abcd","🔣":"symbols","🎵":"musical_note","🎶":"notes","〰":"wavy_dash","➰":"curly_loop","✔":"heavy_check_mark","🔃":"arrows_clockwise","➕":"heavy_plus_sign","➖":"heavy_minus_sign","➗":"heavy_division_sign","✖":"heavy_multiplication_x","💲":"heavy_dollar_sign","💱":"currency_exchange","🔚":"end","🔙":"back","🔛":"on","🔝":"top","🔜":"soon","☑":"ballot_box_with_check","🔘":"radio_button","⚪":"white_circle","⚫":"black_circle","🔴":"red_circle","🔵":"large_blue_circle","🔸":"small_orange_diamond","🔹":"small_blue_diamond","🔶":"large_orange_diamond","🔷":"large_blue_diamond","🔺":"small_red_triangle","▪":"black_small_square","▫":"white_small_square","⬛":"black_large_square","⬜":"white_large_square","🔻":"small_red_triangle_down","◼":"black_medium_square","◻":"white_medium_square","◾":"black_medium_small_square","◽":"white_medium_small_square","🔲":"black_square_button","🔳":"white_square_button","🔈":"speaker","🔉":"sound","🔊":"loud_sound","🔇":"mute","📣":"mega","📢":"loudspeaker","🔔":"bell","🔕":"no_bell","🃏":"black_joker","🀄":"mahjong","♠":"spades","♣":"clubs","♥":"heart","♦":"diamonds","🎴":"flower_playing_cards","💭":"thought_balloon","🗯":"right_anger_bubble","💬":"speech_balloon","🗨":"left_speech_bubble","🕐":"clock1","🕑":"clock2","🕒":"clock3","🕓":"clock4","🕔":"clock5","🕕":"clock6","🕖":"clock7","🕗":"clock8","🕘":"clock9","🕙":"clock10","🕚":"clock11","🕛":"clock12","🕜":"clock130","🕝":"clock230","🕞":"clock330","🕟":"clock430","🕠":"clock530","🕡":"clock630","🕢":"clock730","🕣":"clock830","🕤":"clock930","🕥":"clock1030","🕦":"clock1130","🕧":"clock1230","🇦🇫":"afghanistan","🇦🇽":"aland_islands","🇦🇱":"albania","🇩🇿":"algeria","🇦🇸":"american_samoa","🇦🇩":"andorra","🇦🇴":"angola","🇦🇮":"anguilla","🇦🇶":"antarctica","🇦🇬":"antigua_barbuda","🇦🇷":"argentina","🇦🇲":"armenia","🇦🇼":"aruba","🇦🇺":"australia","🇦🇹":"austria","🇦🇿":"azerbaijan","🇧🇸":"bahamas","🇧🇭":"bahrain","🇧🇩":"bangladesh","🇧🇧":"barbados","🇧🇾":"belarus","🇧🇪":"belgium","🇧🇿":"belize","🇧🇯":"benin","🇧🇲":"bermuda","🇧🇹":"bhutan","🇧🇴":"bolivia","🇧🇶":"caribbean_netherlands","🇧🇦":"bosnia_herzegovina","🇧🇼":"botswana","🇧🇷":"brazil","🇮🇴":"british_indian_ocean_territory","🇻🇬":"british_virgin_islands","🇧🇳":"brunei","🇧🇬":"bulgaria","🇧🇫":"burkina_faso","🇧🇮":"burundi","🇨🇻":"cape_verde","🇰🇭":"cambodia","🇨🇲":"cameroon","🇨🇦":"canada","🇮🇨":"canary_islands","🇰🇾":"cayman_islands","🇨🇫":"central_african_republic","🇹🇩":"chad","🇨🇱":"chile","🇨🇳":"cn","🇨🇽":"christmas_island","🇨🇨":"cocos_islands","🇨🇴":"colombia","🇰🇲":"comoros","🇨🇬":"congo_brazzaville","🇨🇩":"congo_kinshasa","🇨🇰":"cook_islands","🇨🇷":"costa_rica","🇭🇷":"croatia","🇨🇺":"cuba","🇨🇼":"curacao","🇨🇾":"cyprus","🇨🇿":"czech_republic","🇩🇰":"denmark","🇩🇯":"djibouti","🇩🇲":"dominica","🇩🇴":"dominican_republic","🇪🇨":"ecuador","🇪🇬":"egypt","🇸🇻":"el_salvador","🇬🇶":"equatorial_guinea","🇪🇷":"eritrea","🇪🇪":"estonia","🇪🇹":"ethiopia","🇪🇺":"eu","🇫🇰":"falkland_islands","🇫🇴":"faroe_islands","🇫🇯":"fiji","🇫🇮":"finland","🇫🇷":"fr","🇬🇫":"french_guiana","🇵🇫":"french_polynesia","🇹🇫":"french_southern_territories","🇬🇦":"gabon","🇬🇲":"gambia","🇬🇪":"georgia","🇩🇪":"de","🇬🇭":"ghana","🇬🇮":"gibraltar","🇬🇷":"greece","🇬🇱":"greenland","🇬🇩":"grenada","🇬🇵":"guadeloupe","🇬🇺":"guam","🇬🇹":"guatemala","🇬🇬":"guernsey","🇬🇳":"guinea","🇬🇼":"guinea_bissau","🇬🇾":"guyana","🇭🇹":"haiti","🇭🇳":"honduras","🇭🇰":"hong_kong","🇭🇺":"hungary","🇮🇸":"iceland","🇮🇳":"india","🇮🇩":"indonesia","🇮🇷":"iran","🇮🇶":"iraq","🇮🇪":"ireland","🇮🇲":"isle_of_man","🇮🇱":"israel","🇮🇹":"it","🇨🇮":"cote_divoire","🇯🇲":"jamaica","🇯🇵":"jp","🇯🇪":"jersey","🇯🇴":"jordan","🇰🇿":"kazakhstan","🇰🇪":"kenya","🇰🇮":"kiribati","🇽🇰":"kosovo","🇰🇼":"kuwait","🇰🇬":"kyrgyzstan","🇱🇦":"laos","🇱🇻":"latvia","🇱🇧":"lebanon","🇱🇸":"lesotho","🇱🇷":"liberia","🇱🇾":"libya","🇱🇮":"liechtenstein","🇱🇹":"lithuania","🇱🇺":"luxembourg","🇲🇴":"macau","🇲🇰":"macedonia","🇲🇬":"madagascar","🇲🇼":"malawi","🇲🇾":"malaysia","🇲🇻":"maldives","🇲🇱":"mali","🇲🇹":"malta","🇲🇭":"marshall_islands","🇲🇶":"martinique","🇲🇷":"mauritania","🇲🇺":"mauritius","🇾🇹":"mayotte","🇲🇽":"mexico","🇫🇲":"micronesia","🇲🇩":"moldova","🇲🇨":"monaco","🇲🇳":"mongolia","🇲🇪":"montenegro","🇲🇸":"montserrat","🇲🇦":"morocco","🇲🇿":"mozambique","🇲🇲":"myanmar","🇳🇦":"namibia","🇳🇷":"nauru","🇳🇵":"nepal","🇳🇱":"netherlands","🇳🇨":"new_caledonia","🇳🇿":"new_zealand","🇳🇮":"nicaragua","🇳🇪":"niger","🇳🇬":"nigeria","🇳🇺":"niue","🇳🇫":"norfolk_island","🇲🇵":"northern_mariana_islands","🇰🇵":"north_korea","🇳🇴":"norway","🇴🇲":"oman","🇵🇰":"pakistan","🇵🇼":"palau","🇵🇸":"palestinian_territories","🇵🇦":"panama","🇵🇬":"papua_new_guinea","🇵🇾":"paraguay","🇵🇪":"peru","🇵🇭":"philippines","🇵🇳":"pitcairn_islands","🇵🇱":"poland","🇵🇹":"portugal","🇵🇷":"puerto_rico","🇶🇦":"qatar","🇷🇪":"reunion","🇷🇴":"romania","🇷🇺":"ru","🇷🇼":"rwanda","🇧🇱":"st_barthelemy","🇸🇭":"st_helena","🇰🇳":"st_kitts_nevis","🇱🇨":"st_lucia","🇵🇲":"st_pierre_miquelon","🇻🇨":"st_vincent_grenadines","🇼🇸":"samoa","🇸🇲":"san_marino","🇸🇹":"sao_tome_principe","🇸🇦":"saudi_arabia","🇸🇳":"senegal","🇷🇸":"serbia","🇸🇨":"seychelles","🇸🇱":"sierra_leone","🇸🇬":"singapore","🇸🇽":"sint_maarten","🇸🇰":"slovakia","🇸🇮":"slovenia","🇸🇧":"solomon_islands","🇸🇴":"somalia","🇿🇦":"south_africa","🇬🇸":"south_georgia_south_sandwich_islands","🇰🇷":"kr","🇸🇸":"south_sudan","🇪🇸":"es","🇱🇰":"sri_lanka","🇸🇩":"sudan","🇸🇷":"suriname","🇸🇿":"swaziland","🇸🇪":"sweden","🇨🇭":"switzerland","🇸🇾":"syria","🇹🇼":"taiwan","🇹🇯":"tajikistan","🇹🇿":"tanzania","🇹🇭":"thailand","🇹🇱":"timor_leste","🇹🇬":"togo","🇹🇰":"tokelau","🇹🇴":"tonga","🇹🇹":"trinidad_tobago","🇹🇳":"tunisia","🇹🇷":"tr","🇹🇲":"turkmenistan","🇹🇨":"turks_caicos_islands","🇹🇻":"tuvalu","🇺🇬":"uganda","🇺🇦":"ukraine","🇦🇪":"united_arab_emirates","🇬🇧":"uk","🇺🇸":"us","🇻🇮":"us_virgin_islands","🇺🇾":"uruguay","🇺🇿":"uzbekistan","🇻🇺":"vanuatu","🇻🇦":"vatican_city","🇻🇪":"venezuela","🇻🇳":"vietnam","🇼🇫":"wallis_futuna","🇪🇭":"western_sahara","🇾🇪":"yemen","🇿🇲":"zambia","🇿🇼":"zimbabwe","🤩":"star_struck","🤨":"face_with_raised_eyebrow","🤯":"exploding_head","🤪":"crazy_face","🤬":"face_with_symbols_over_mouth","🤮":"face_vomiting","🤫":"shushing_face","🤭":"face_with_hand_over_mouth","🧐":"face_with_monocle","🧒":"child","🧒🏻":"child:t2","🧒🏼":"child:t3","🧒🏽":"child:t4","🧒🏾":"child:t5","🧒🏿":"child:t6","🧑":"adult","🧑🏻":"adult:t2","🧑🏼":"adult:t3","🧑🏽":"adult:t4","🧑🏾":"adult:t5","🧑🏿":"adult:t6","🧓":"older_adult","🧓🏻":"older_adult:t2","🧓🏼":"older_adult:t3","🧓🏽":"older_adult:t4","🧓🏾":"older_adult:t5","🧓🏿":"older_adult:t6","🧕":"woman_with_headscarf","🧕🏻":"woman_with_headscarf:t2","🧕🏼":"woman_with_headscarf:t3","🧕🏽":"woman_with_headscarf:t4","🧕🏾":"woman_with_headscarf:t5","🧕🏿":"woman_with_headscarf:t6","🧔":"bearded_person","🧔🏻":"bearded_person:t2","🧔🏼":"bearded_person:t3","🧔🏽":"bearded_person:t4","🧔🏾":"bearded_person:t5","🧔🏿":"bearded_person:t6","🤱":"breast_feeding","🤱🏻":"breast_feeding:t2","🤱🏼":"breast_feeding:t3","🤱🏽":"breast_feeding:t4","🤱🏾":"breast_feeding:t5","🤱🏿":"breast_feeding:t6","🧙":"mage","🧙🏻":"mage:t2","🧙🏼":"mage:t3","🧙🏽":"mage:t4","🧙🏾":"mage:t5","🧙🏿":"mage:t6","🧙‍♀️":"woman_mage","🧙🏻‍♀️":"woman_mage:t2","🧙🏼‍♀️":"woman_mage:t3","🧙🏽‍♀️":"woman_mage:t4","🧙🏾‍♀️":"woman_mage:t5","🧙🏿‍♀️":"woman_mage:t6","🧚":"fairy","🧚🏻":"fairy:t2","🧚🏼":"fairy:t3","🧚🏽":"fairy:t4","🧚🏾":"fairy:t5","🧚🏿":"fairy:t6","🧛":"vampire","🧛🏻":"vampire:t2","🧛🏼":"vampire:t3","🧛🏽":"vampire:t4","🧛🏾":"vampire:t5","🧛🏿":"vampire:t6","🧜":"merperson","🧜🏻":"merperson:t2","🧜🏼":"merperson:t3","🧜🏽":"merperson:t4","🧜🏾":"merperson:t5","🧜🏿":"merperson:t6","🧜‍♂️":"merman","🧜🏻‍♂️":"merman:t2","🧜🏼‍♂️":"merman:t3","🧜🏽‍♂️":"merman:t4","🧜🏾‍♂️":"merman:t5","🧜🏿‍♂️":"merman:t6","🧝":"elf","🧝🏻":"elf:t2","🧝🏼":"elf:t3","🧝🏽":"elf:t4","🧝🏾":"elf:t5","🧝🏿":"elf:t6","🧞":"genie","🧞‍♀":"woman_genie","🧟":"zombie","🧟‍♀":"woman_zombie","🧖":"person_in_steamy_room","🧖🏻":"person_in_steamy_room:t2","🧖🏼":"person_in_steamy_room:t3","🧖🏽":"person_in_steamy_room:t4","🧖🏾":"person_in_steamy_room:t5","🧖🏿":"person_in_steamy_room:t6","🧖‍♀️":"woman_in_steamy_room","🧖🏻‍♀️":"woman_in_steamy_room:t2","🧖🏼‍♀️":"woman_in_steamy_room:t3","🧖🏽‍♀️":"woman_in_steamy_room:t4","🧖🏾‍♀️":"woman_in_steamy_room:t5","🧖🏿‍♀️":"woman_in_steamy_room:t6","🧗":"person_climbing","🧗🏻":"person_climbing:t2","🧗🏼":"person_climbing:t3","🧗🏽":"person_climbing:t4","🧗🏾":"person_climbing:t5","🧗🏿":"person_climbing:t6","🧗‍♀️":"woman_climbing","🧗🏻‍♀️":"woman_climbing:t2","🧗🏼‍♀️":"woman_climbing:t3","🧗🏽‍♀️":"woman_climbing:t4","🧗🏾‍♀️":"woman_climbing:t5","🧗🏿‍♀️":"woman_climbing:t6","🧘":"person_in_lotus_position","🧘🏻":"person_in_lotus_position:t2","🧘🏼":"person_in_lotus_position:t3","🧘🏽":"person_in_lotus_position:t4","🧘🏾":"person_in_lotus_position:t5","🧘🏿":"person_in_lotus_position:t6","🧘‍♀️":"woman_in_lotus_position","🧘🏻‍♀️":"woman_in_lotus_position:t2","🧘🏼‍♀️":"woman_in_lotus_position:t3","🧘🏽‍♀️":"woman_in_lotus_position:t4","🧘🏾‍♀️":"woman_in_lotus_position:t5","🧘🏿‍♀️":"woman_in_lotus_position:t6","🤟":"love_you_gesture","🤟🏻":"love_you_gesture:t2","🤟🏼":"love_you_gesture:t3","🤟🏽":"love_you_gesture:t4","🤟🏾":"love_you_gesture:t5","🤟🏿":"love_you_gesture:t6","🤲":"palms_up_together","🤲🏻":"palms_up_together:t2","🤲🏼":"palms_up_together:t3","🤲🏽":"palms_up_together:t4","🤲🏾":"palms_up_together:t5","🤲🏿":"palms_up_together:t6","🧠":"brain","🧡":"orange_heart","🧣":"scarf","🧤":"gloves","🧥":"coat","🧦":"socks","🧢":"billed_cap","🦓":"zebra","🦒":"giraffe","🦔":"hedgehog","🦕":"sauropod","🦖":"t_rex","🦗":"cricket","🥥":"coconut","🥦":"broccoli","🥨":"pretzel","🥩":"cut_of_meat","🥪":"sandwich","🥣":"bowl_with_spoon","🥫":"canned_food","🥟":"dumpling","🥠":"fortune_cookie","🥡":"takeout_box","🥧":"pie","🥤":"cup_with_straw","🥢":"chopsticks","🛸":"flying_saucer","🛷":"sled","🥌":"curling_stone","🇸🇯":"svalbard_and_jan_mayen","🇲🇫":"st_martin","🇺🇲":"us_outlying_islands","🇹🇦":"tristan_da_cunha","🇭🇲":"heard_and_mc_donald_islands","🇪🇦":"ceuta_and_melilla","🇩🇬":"diego_garcia","🇦🇨":"ascension_island","🇧🇻":"bouvet_island","🇨🇵":"clipperton_island","🇺🇳":"united_nations","🥰":"smiling_face_with_three_hearts","🥵":"hot_face","🥶":"cold_face","🥳":"partying_face","🥴":"woozy_face","🥺":"pleading_face","👨‍🦰":"man_red_haired","👨🏻‍🦰":"man_red_haired:t2","👨🏼‍🦰":"man_red_haired:t3","👨🏽‍🦰":"man_red_haired:t4","👨🏾‍🦰":"man_red_haired:t5","👨🏿‍🦰":"man_red_haired:t6","👨‍🦱":"man_curly_haired","👨🏻‍🦱":"man_curly_haired:t2","👨🏼‍🦱":"man_curly_haired:t3","👨🏽‍🦱":"man_curly_haired:t4","👨🏾‍🦱":"man_curly_haired:t5","👨🏿‍🦱":"man_curly_haired:t6","👨‍🦳":"man_white_haired","👨🏻‍🦳":"man_white_haired:t2","👨🏼‍🦳":"man_white_haired:t3","👨🏽‍🦳":"man_white_haired:t4","👨🏾‍🦳":"man_white_haired:t5","👨🏿‍🦳":"man_white_haired:t6","👨‍🦲":"man_bald","👨🏻‍🦲":"man_bald:t2","👨🏼‍🦲":"man_bald:t3","👨🏽‍🦲":"man_bald:t4","👨🏾‍🦲":"man_bald:t5","👨🏿‍🦲":"man_bald:t6","👩‍🦰":"woman_red_haired","👩🏻‍🦰":"woman_red_haired:t2","👩🏼‍🦰":"woman_red_haired:t3","👩🏽‍🦰":"woman_red_haired:t4","👩🏾‍🦰":"woman_red_haired:t5","👩🏿‍🦰":"woman_red_haired:t6","👩‍🦱":"woman_curly_haired","👩🏻‍🦱":"woman_curly_haired:t2","👩🏼‍🦱":"woman_curly_haired:t3","👩🏽‍🦱":"woman_curly_haired:t4","👩🏾‍🦱":"woman_curly_haired:t5","👩🏿‍🦱":"woman_curly_haired:t6","👩‍🦳":"woman_white_haired","👩🏻‍🦳":"woman_white_haired:t2","👩🏼‍🦳":"woman_white_haired:t3","👩🏽‍🦳":"woman_white_haired:t4","👩🏾‍🦳":"woman_white_haired:t5","👩🏿‍🦳":"woman_white_haired:t6","👩‍🦲":"woman_bald","👩🏻‍🦲":"woman_bald:t2","👩🏼‍🦲":"woman_bald:t3","👩🏽‍🦲":"woman_bald:t4","👩🏾‍🦲":"woman_bald:t5","👩🏿‍🦲":"woman_bald:t6","🦸":"superhero","🦸🏻":"superhero:t2","🦸🏼":"superhero:t3","🦸🏽":"superhero:t4","🦸🏾":"superhero:t5","🦸🏿":"superhero:t6","🦸‍♂️":"man_superhero","🦸🏻‍♂️":"man_superhero:t2","🦸🏼‍♂️":"man_superhero:t3","🦸🏽‍♂️":"man_superhero:t4","🦸🏾‍♂️":"man_superhero:t5","🦸🏿‍♂️":"man_superhero:t6","🦸‍♀️":"woman_superhero","🦸🏻‍♀️":"woman_superhero:t2","🦸🏼‍♀️":"woman_superhero:t3","🦸🏽‍♀️":"woman_superhero:t4","🦸🏾‍♀️":"woman_superhero:t5","🦸🏿‍♀️":"woman_superhero:t6","🦹":"supervillain","🦹🏻":"supervillain:t2","🦹🏼":"supervillain:t3","🦹🏽":"supervillain:t4","🦹🏾":"supervillain:t5","🦹🏿":"supervillain:t6","🦹‍♀️":"woman_supervillain","🦹🏻‍♀️":"woman_supervillain:t2","🦹🏼‍♀️":"woman_supervillain:t3","🦹🏽‍♀️":"woman_supervillain:t4","🦹🏾‍♀️":"woman_supervillain:t5","🦹🏿‍♀️":"woman_supervillain:t6","🦹‍♂️":"man_supervillain","🦹🏻‍♂️":"man_supervillain:t2","🦹🏼‍♂️":"man_supervillain:t3","🦹🏽‍♂️":"man_supervillain:t4","🦹🏾‍♂️":"man_supervillain:t5","🦹🏿‍♂️":"man_supervillain:t6","🦵":"leg","🦵🏻":"leg:t2","🦵🏼":"leg:t3","🦵🏽":"leg:t4","🦵🏾":"leg:t5","🦵🏿":"leg:t6","🦶":"foot","🦶🏻":"foot:t2","🦶🏼":"foot:t3","🦶🏽":"foot:t4","🦶🏾":"foot:t5","🦶🏿":"foot:t6","🦴":"bone","🦷":"tooth","🥽":"goggles","🥼":"lab_coat","🥾":"hiking_boot","🥿":"flat_shoe","🦝":"raccoon","🦙":"llama","🦛":"hippopotamus","🦘":"kangaroo","🦡":"badger","🦢":"swan","🦚":"peacock","🦜":"parrot","🦞":"lobster","🦟":"mosquito","🦠":"microbe","🥭":"mango","🥬":"leafy_green","🥯":"bagel","🧂":"salt","🥮":"moon_cake","🧁":"cupcake","🧭":"compass","🧱":"brick","🛹":"skateboard","🧳":"luggage","🧨":"firecracker","🧧":"red_gift_envelope","🥎":"softball","🥏":"flying_disc","🥍":"lacrosse","🧿":"nazar_amulet","🧩":"jigsaw","🧸":"teddy_bear","♟":"chess_pawn","🧵":"thread","🧶":"yarn","🧮":"abacus","🧾":"receipt","🧰":"toolbox","🧲":"magnet","🧪":"test_tube","🧫":"petri_dish","🧬":"dna","🧴":"lotion_bottle","🧷":"safety_pin","🧹":"broom","🧺":"basket","🧻":"roll_of_toilet_paper","🧼":"soap","🧽":"sponge","🧯":"fire_extinguisher","♾":"infinity","🏴‍☠":"pirate_flag","🧇":"waffle","🦦":"otter","🦥":"sloth","🧊":"ice_cube","🪐":"ringer_planet","🦩":"flamingo","🥱":"yawning_face","🤏":"pinching_hand","🤏🏻":"pinching_hand:t2","🤏🏼":"pinching_hand:t3","🤏🏽":"pinching_hand:t4","🤏🏾":"pinching_hand:t5","🤏🏿":"pinching_hand:t6","🐕‍🦺":"service_dog","🦧":"orangutan","🛺":"auto_rickshaw","🪂":"parachute","🪀":"yo-yo","🪁":"kite","🟫":"brown_square","🟪":"purple_square","🟦":"blue_square","🟩":"green_square","🟨":"yellow_square","🟧":"orange_square","🟥":"red_square","🟤":"brown_circle","🟣":"purple_circle","🟢":"green_circle","🟡":"yellow_circle","🟠":"orange_circle","🪒":"razor","🪑":"chair","🩺":"stethoscope","🩹":"adhesive_bandage","🩸":"drop_of_blood","🦯":"probing_cane","🪓":"axe","🪔":"diya_lamp","🪕":"banjo","🩰":"ballet_shoes","🩳":"shorts","🩲":"briefs","🩱":"one_piece_swimsuit","🥻":"sari","🦺":"safety_vest","🤿":"diving_mask","🦼":"motorized_wheelchair","🦽":"manual_wheelchair","🛕":"hindu_temple","🧉":"maté","🧃":"beverage_box","🦪":"oyster","🧈":"butter","🧆":"falafel","🧅":"onion","🧄":"garlic","🦨":"skunk","🦮":"guide_dog","🧑‍🤝‍🧑":"people_holding_hands","🧑🏻‍🤝‍🧑":"people_holding_hands:t2","🧑🏼‍🤝‍🧑":"people_holding_hands:t3","🧑🏽‍🤝‍🧑":"people_holding_hands:t4","🧑🏾‍🤝‍🧑":"people_holding_hands:t5","🧑🏿‍🤝‍🧑":"people_holding_hands:t6","👩‍🦽":"woman_in_manual_wheelchair","👩🏻‍🦽":"woman_in_manual_wheelchair:t2","👩🏼‍🦽":"woman_in_manual_wheelchair:t3","👩🏽‍🦽":"woman_in_manual_wheelchair:t4","👩🏾‍🦽":"woman_in_manual_wheelchair:t5","👩🏿‍🦽":"woman_in_manual_wheelchair:t6","👨‍🦽":"man_in_manual_wheelchair","👨🏻‍🦽":"man_in_manual_wheelchair:t2","👨🏼‍🦽":"man_in_manual_wheelchair:t3","👨🏽‍🦽":"man_in_manual_wheelchair:t4","👨🏾‍🦽":"man_in_manual_wheelchair:t5","👨🏿‍🦽":"man_in_manual_wheelchair:t6","👩‍🦼":"woman_in_motorized_wheelchair","👩🏻‍🦼":"woman_in_motorized_wheelchair:t2","👩🏼‍🦼":"woman_in_motorized_wheelchair:t3","👩🏽‍🦼":"woman_in_motorized_wheelchair:t4","👩🏾‍🦼":"woman_in_motorized_wheelchair:t5","👩🏿‍🦼":"woman_in_motorized_wheelchair:t6","👨‍🦼":"man_in_motorized_wheelchair","👨🏻‍🦼":"man_in_motorized_wheelchair:t2","👨🏼‍🦼":"man_in_motorized_wheelchair:t3","👨🏽‍🦼":"man_in_motorized_wheelchair:t4","👨🏾‍🦼":"man_in_motorized_wheelchair:t5","👨🏿‍🦼":"man_in_motorized_wheelchair:t6","👩‍🦯":"woman_with_probing_cane","👩🏻‍🦯":"woman_with_probing_cane:t2","👩🏼‍🦯":"woman_with_probing_cane:t3","👩🏽‍🦯":"woman_with_probing_cane:t4","👩🏾‍🦯":"woman_with_probing_cane:t5","👩🏿‍🦯":"woman_with_probing_cane:t6","👨‍🦯":"man_with_probing_cane","👨🏻‍🦯":"man_with_probing_cane:t2","👨🏼‍🦯":"man_with_probing_cane:t3","👨🏽‍🦯":"man_with_probing_cane:t4","👨🏾‍🦯":"man_with_probing_cane:t5","👨🏿‍🦯":"man_with_probing_cane:t6","🧎‍♀️":"woman_kneeling","🧎🏻‍♀️":"woman_kneeling:t2","🧎🏼‍♀️":"woman_kneeling:t3","🧎🏽‍♀️":"woman_kneeling:t4","🧎🏾‍♀️":"woman_kneeling:t5","🧎🏿‍♀️":"woman_kneeling:t6","🧎‍♂️":"man_kneeling","🧎🏻‍♂️":"man_kneeling:t2","🧎🏼‍♂️":"man_kneeling:t3","🧎🏽‍♂️":"man_kneeling:t4","🧎🏾‍♂️":"man_kneeling:t5","🧎🏿‍♂️":"man_kneeling:t6","🧍‍♂️":"man_standing","🧍🏻‍♂️":"man_standing:t2","🧍🏼‍♂️":"man_standing:t3","🧍🏽‍♂️":"man_standing:t4","🧍🏾‍♂️":"man_standing:t5","🧍🏿‍♂️":"man_standing:t6","🧍‍♀️":"woman_standing","🧍🏻‍♀️":"woman_standing:t2","🧍🏼‍♀️":"woman_standing:t3","🧍🏽‍♀️":"woman_standing:t4","🧍🏾‍♀️":"woman_standing:t5","🧍🏿‍♀️":"woman_standing:t6","🧏‍♀️":"deaf_woman","🧏🏻‍♀️":"deaf_woman:t2","🧏🏼‍♀️":"deaf_woman:t3","🧏🏽‍♀️":"deaf_woman:t4","🧏🏾‍♀️":"deaf_woman:t5","🧏🏿‍♀️":"deaf_woman:t6","🧏‍♂️":"deaf_man","🧏🏻‍♂️":"deaf_man:t2","🧏🏼‍♂️":"deaf_man:t3","🧏🏽‍♂️":"deaf_man:t4","🧏🏾‍♂️":"deaf_man:t5","🧏🏿‍♂️":"deaf_man:t6","🦻":"hear_with_hearing_aid","🦻🏻":"hear_with_hearing_aid:t2","🦻🏼":"hear_with_hearing_aid:t3","🦻🏽":"hear_with_hearing_aid:t4","🦻🏾":"hear_with_hearing_aid:t5","🦻🏿":"hear_with_hearing_aid:t6","🦿":"mechanical_leg","🦾":"mechanical_arm","🤍":"white_heart","🤎":"brown_heart","🏳️‍⚧":"transgender_flag","🥲":"smiling_face_with_tear","🥸":"disguised_face","🤌":"pinched_fingers","🤌🏻":"pinched_fingers:t2","🤌🏼":"pinched_fingers:t3","🤌🏽":"pinched_fingers:t4","🤌🏾":"pinched_fingers:t5","🤌🏿":"pinched_fingers:t6","🫀":"anatomical_heart","🫁":"lungs","🥷":"ninja","🥷🏻":"ninja:t2","🥷🏼":"ninja:t3","🥷🏽":"ninja:t4","🥷🏾":"ninja:t5","🥷🏿":"ninja:t6","🧑‍🎄":"mx_claus","🧑🏻‍🎄":"mx_claus:t2","🧑🏼‍🎄":"mx_claus:t3","🧑🏽‍🎄":"mx_claus:t4","🧑🏾‍🎄":"mx_claus:t5","🧑🏿‍🎄":"mx_claus:t6","🫂":"people_hugging","🐈‍⬛":"black_cat","🦬":"bison","🦣":"mammoth","🦫":"beaver","🦤":"dodo","🪶":"feather","🦭":"seal","🪲":"beetle","🪳":"cockroach","🪰":"fly","🪱":"worm","🪴":"potted_plant","🫐":"blueberries","🫒":"olive","🫑":"bell_pepper","🫓":"flatbread","🫔":"tamale","🫕":"fondue","🫖":"teapot","🧋":"bubble_tea","🪨":"rock","🪵":"wood","🛖":"hut","🛻":"pickup_truck","🛼":"roller_skate","🪄":"magic_wand","🪅":"piñata","🪆":"nesting_dolls","🪡":"sewing_needle","🪢":"knot","🩴":"thong_sandal","🪖":"military_helmet","🪗":"accordion","🪘":"long_drum","🪙":"coin","🪃":"boomerang","🪚":"carpentry_saw","🪛":"screwdriver","🪝":"hook","🪜":"ladder","🪞":"mirror","🪟":"window","🪠":"plunger","🪤":"mouse_trap","🪣":"bucket","🪥":"toothbrush","🪦":"headstone","🪧":"placard","⚧":"transgender_symbol","👨‍🍼":"man_feeding_baby","👨🏻‍🍼":"man_feeding_baby:t2","👨🏼‍🍼":"man_feeding_baby:t3","👨🏽‍🍼":"man_feeding_baby:t4","👨🏾‍🍼":"man_feeding_baby:t5","👨🏿‍🍼":"man_feeding_baby:t6","🧑‍🍼":"person_feeding_baby","🧑🏻‍🍼":"person_feeding_baby:t2","🧑🏼‍🍼":"person_feeding_baby:t3","🧑🏽‍🍼":"person_feeding_baby:t4","🧑🏾‍🍼":"person_feeding_baby:t5","🧑🏿‍🍼":"person_feeding_baby:t6","🐻‍❄":"polar_bear","🫠":"melting_face","🫢":"face_with_open_eyes_and_hand_over_mouth","🫣":"face_with_peeking_eye","🫡":"saluting_face","🫥":"dotted_line_face","😶‍🌫":"face_in_clouds","😮‍💨":"face_exhaling","😵‍💫":"face_with_spiral_eyes","🫤":"face_with_diagonal_mouth","🥹":"face_holding_back_tears","❤️‍🔥":"heart_on_fire","❤️‍🩹":"mending_heart","👁️‍🗨":"eye_in_speech_bubble","🫱":"rightwards_hand","🫲":"leftwards_hand","🫳":"palm_down_hand","🫴":"palm_up_hand","🫰":"hand_with_index_finger_and_thumb_crossed","🫵":"index_pointing_at_the_viewer","🫶":"heart_hands","🫦":"biting_lip","🧔‍♂":"man_beard","🧔‍♀":"woman_beard","🧑‍🦰":"person_red_hair","🧑🏻‍🦰":"person_red_hair:t2","🧑🏼‍🦰":"person_red_hair:t3","🧑🏽‍🦰":"person_red_hair:t4","🧑🏾‍🦰":"person_red_hair:t5","🧑🏿‍🦰":"person_red_hair:t6","🧑‍🦱":"person_curly_hair","🧑🏻‍🦱":"person_curly_hair:t2","🧑🏼‍🦱":"person_curly_hair:t3","🧑🏽‍🦱":"person_curly_hair:t4","🧑🏾‍🦱":"person_curly_hair:t5","🧑🏿‍🦱":"person_curly_hair:t6","🧑‍🦳":"person_white_hair","🧑🏻‍🦳":"person_white_hair:t2","🧑🏼‍🦳":"person_white_hair:t3","🧑🏽‍🦳":"person_white_hair:t4","🧑🏾‍🦳":"person_white_hair:t5","🧑🏿‍🦳":"person_white_hair:t6","🧑‍🦲":"person_bald","🧑🏻‍🦲":"person_bald:t2","🧑🏼‍🦲":"person_bald:t3","🧑🏽‍🦲":"person_bald:t4","🧑🏾‍🦲":"person_bald:t5","🧑🏿‍🦲":"person_bald:t6","👱‍♂️":"man_blond_hair","👱🏻‍♂️":"man_blond_hair:t2","👱🏼‍♂️":"man_blond_hair:t3","👱🏽‍♂️":"man_blond_hair:t4","👱🏾‍♂️":"man_blond_hair:t5","👱🏿‍♂️":"man_blond_hair:t6","🙍":"person_frowning","🙍🏻":"person_frowning:t2","🙍🏼":"person_frowning:t3","🙍🏽":"person_frowning:t4","🙍🏾":"person_frowning:t5","🙍🏿":"person_frowning:t6","🙎":"person_pouting","🙎🏻":"person_pouting:t2","🙎🏼":"person_pouting:t3","🙎🏽":"person_pouting:t4","🙎🏾":"person_pouting:t5","🙎🏿":"person_pouting:t6","🙅":"person_gesturing_no","🙅🏻":"person_gesturing_no:t2","🙅🏼":"person_gesturing_no:t3","🙅🏽":"person_gesturing_no:t4","🙅🏾":"person_gesturing_no:t5","🙅🏿":"person_gesturing_no:t6","🙆":"person_gesturing_ok","🙆🏻":"person_gesturing_ok:t2","🙆🏼":"person_gesturing_ok:t3","🙆🏽":"person_gesturing_ok:t4","🙆🏾":"person_gesturing_ok:t5","🙆🏿":"person_gesturing_ok:t6","💁":"person_tipping_hand","💁🏻":"person_tipping_hand:t2","💁🏼":"person_tipping_hand:t3","💁🏽":"person_tipping_hand:t4","💁🏾":"person_tipping_hand:t5","💁🏿":"person_tipping_hand:t6","🙋":"person_raising_hand","🙋🏻":"person_raising_hand:t2","🙋🏼":"person_raising_hand:t3","🙋🏽":"person_raising_hand:t4","🙋🏾":"person_raising_hand:t5","🙋🏿":"person_raising_hand:t6","🧏":"deaf_person","🧏🏻":"deaf_person:t2","🧏🏼":"deaf_person:t3","🧏🏽":"deaf_person:t4","🧏🏾":"deaf_person:t5","🧏🏿":"deaf_person:t6","🙇‍♂️":"man_bowing","🙇🏻‍♂️":"man_bowing:t2","🙇🏼‍♂️":"man_bowing:t3","🙇🏽‍♂️":"man_bowing:t4","🙇🏾‍♂️":"man_bowing:t5","🙇🏿‍♂️":"man_bowing:t6","🤦":"person_facepalming","🤦🏻":"person_facepalming:t2","🤦🏼":"person_facepalming:t3","🤦🏽":"person_facepalming:t4","🤦🏾":"person_facepalming:t5","🤦🏿":"person_facepalming:t6","🤷":"person_shrugging","🤷🏻":"person_shrugging:t2","🤷🏼":"person_shrugging:t3","🤷🏽":"person_shrugging:t4","🤷🏾":"person_shrugging:t5","🤷🏿":"person_shrugging:t6","🧑‍⚕️":"health_worker","🧑🏻‍⚕️":"health_worker:t2","🧑🏼‍⚕️":"health_worker:t3","🧑🏽‍⚕️":"health_worker:t4","🧑🏾‍⚕️":"health_worker:t5","🧑🏿‍⚕️":"health_worker:t6","🧑‍🎓":"student","🧑🏻‍🎓":"student:t2","🧑🏼‍🎓":"student:t3","🧑🏽‍🎓":"student:t4","🧑🏾‍🎓":"student:t5","🧑🏿‍🎓":"student:t6","🧑‍🏫":"teacher","🧑🏻‍🏫":"teacher:t2","🧑🏼‍🏫":"teacher:t3","🧑🏽‍🏫":"teacher:t4","🧑🏾‍🏫":"teacher:t5","🧑🏿‍🏫":"teacher:t6","🧑‍⚖️":"judge","🧑🏻‍⚖️":"judge:t2","🧑🏼‍⚖️":"judge:t3","🧑🏽‍⚖️":"judge:t4","🧑🏾‍⚖️":"judge:t5","🧑🏿‍⚖️":"judge:t6","🧑‍🌾":"farmer","🧑🏻‍🌾":"farmer:t2","🧑🏼‍🌾":"farmer:t3","🧑🏽‍🌾":"farmer:t4","🧑🏾‍🌾":"farmer:t5","🧑🏿‍🌾":"farmer:t6","🧑‍🍳":"cook","🧑🏻‍🍳":"cook:t2","🧑🏼‍🍳":"cook:t3","🧑🏽‍🍳":"cook:t4","🧑🏾‍🍳":"cook:t5","🧑🏿‍🍳":"cook:t6","🧑‍🔧":"mechanic","🧑🏻‍🔧":"mechanic:t2","🧑🏼‍🔧":"mechanic:t3","🧑🏽‍🔧":"mechanic:t4","🧑🏾‍🔧":"mechanic:t5","🧑🏿‍🔧":"mechanic:t6","🧑‍🏭":"factory_worker","🧑🏻‍🏭":"factory_worker:t2","🧑🏼‍🏭":"factory_worker:t3","🧑🏽‍🏭":"factory_worker:t4","🧑🏾‍🏭":"factory_worker:t5","🧑🏿‍🏭":"factory_worker:t6","🧑‍💼":"office_worker","🧑🏻‍💼":"office_worker:t2","🧑🏼‍💼":"office_worker:t3","🧑🏽‍💼":"office_worker:t4","🧑🏾‍💼":"office_worker:t5","🧑🏿‍💼":"office_worker:t6","🧑‍🔬":"scientist","🧑🏻‍🔬":"scientist:t2","🧑🏼‍🔬":"scientist:t3","🧑🏽‍🔬":"scientist:t4","🧑🏾‍🔬":"scientist:t5","🧑🏿‍🔬":"scientist:t6","🧑‍💻":"technologist","🧑🏻‍💻":"technologist:t2","🧑🏼‍💻":"technologist:t3","🧑🏽‍💻":"technologist:t4","🧑🏾‍💻":"technologist:t5","🧑🏿‍💻":"technologist:t6","🧑‍🎤":"singer","🧑🏻‍🎤":"singer:t2","🧑🏼‍🎤":"singer:t3","🧑🏽‍🎤":"singer:t4","🧑🏾‍🎤":"singer:t5","🧑🏿‍🎤":"singer:t6","🧑‍🎨":"artist","🧑🏻‍🎨":"artist:t2","🧑🏼‍🎨":"artist:t3","🧑🏽‍🎨":"artist:t4","🧑🏾‍🎨":"artist:t5","🧑🏿‍🎨":"artist:t6","🧑‍✈️":"pilot","🧑🏻‍✈️":"pilot:t2","🧑🏼‍✈️":"pilot:t3","🧑🏽‍✈️":"pilot:t4","🧑🏾‍✈️":"pilot:t5","🧑🏿‍✈️":"pilot:t6","🧑‍🚀":"astronaut","🧑🏻‍🚀":"astronaut:t2","🧑🏼‍🚀":"astronaut:t3","🧑🏽‍🚀":"astronaut:t4","🧑🏾‍🚀":"astronaut:t5","🧑🏿‍🚀":"astronaut:t6","🧑‍🚒":"firefighter","🧑🏻‍🚒":"firefighter:t2","🧑🏼‍🚒":"firefighter:t3","🧑🏽‍🚒":"firefighter:t4","🧑🏾‍🚒":"firefighter:t5","🧑🏿‍🚒":"firefighter:t6","👮‍♂️":"man_police_officer","👮🏻‍♂️":"man_police_officer:t2","👮🏼‍♂️":"man_police_officer:t3","👮🏽‍♂️":"man_police_officer:t4","👮🏾‍♂️":"man_police_officer:t5","👮🏿‍♂️":"man_police_officer:t6","🕵️‍♂️":"man_detective","🕵🏻️‍♂️":"man_detective:t2","🕵🏼️‍♂️":"man_detective:t3","🕵🏽️‍♂️":"man_detective:t4","🕵🏾️‍♂️":"man_detective:t5","🕵🏿️‍♂️":"man_detective:t6","💂‍♂️":"man_guard","💂🏻‍♂️":"man_guard:t2","💂🏼‍♂️":"man_guard:t3","💂🏽‍♂️":"man_guard:t4","💂🏾‍♂️":"man_guard:t5","💂🏿‍♂️":"man_guard:t6","👷‍♂️":"man_construction_worker","👷🏻‍♂️":"man_construction_worker:t2","👷🏼‍♂️":"man_construction_worker:t3","👷🏽‍♂️":"man_construction_worker:t4","👷🏾‍♂️":"man_construction_worker:t5","👷🏿‍♂️":"man_construction_worker:t6","🫅":"person_with_crown","👳‍♂️":"man_wearing_turban","👳🏻‍♂️":"man_wearing_turban:t2","👳🏼‍♂️":"man_wearing_turban:t3","👳🏽‍♂️":"man_wearing_turban:t4","👳🏾‍♂️":"man_wearing_turban:t5","👳🏿‍♂️":"man_wearing_turban:t6","🤵‍♂️":"man_in_tuxedo","🤵🏻‍♂️":"man_in_tuxedo:t2","🤵🏼‍♂️":"man_in_tuxedo:t3","🤵🏽‍♂️":"man_in_tuxedo:t4","🤵🏾‍♂️":"man_in_tuxedo:t5","🤵🏿‍♂️":"man_in_tuxedo:t6","🤵‍♀️":"woman_in_tuxedo","🤵🏻‍♀️":"woman_in_tuxedo:t2","🤵🏼‍♀️":"woman_in_tuxedo:t3","🤵🏽‍♀️":"woman_in_tuxedo:t4","🤵🏾‍♀️":"woman_in_tuxedo:t5","🤵🏿‍♀️":"woman_in_tuxedo:t6","👰‍♂️":"man_with_veil","👰🏻‍♂️":"man_with_veil:t2","👰🏼‍♂️":"man_with_veil:t3","👰🏽‍♂️":"man_with_veil:t4","👰🏾‍♂️":"man_with_veil:t5","👰🏿‍♂️":"man_with_veil:t6","👰‍♀️":"woman_with_veil","👰🏻‍♀️":"woman_with_veil:t2","👰🏼‍♀️":"woman_with_veil:t3","👰🏽‍♀️":"woman_with_veil:t4","👰🏾‍♀️":"woman_with_veil:t5","👰🏿‍♀️":"woman_with_veil:t6","🫃":"pregnant_man","🫄":"pregnant_person","👩‍🍼":"woman_feeding_baby","👩🏻‍🍼":"woman_feeding_baby:t2","👩🏼‍🍼":"woman_feeding_baby:t3","👩🏽‍🍼":"woman_feeding_baby:t4","👩🏾‍🍼":"woman_feeding_baby:t5","👩🏿‍🍼":"woman_feeding_baby:t6","🧙‍♂️":"man_mage","🧙🏻‍♂️":"man_mage:t2","🧙🏼‍♂️":"man_mage:t3","🧙🏽‍♂️":"man_mage:t4","🧙🏾‍♂️":"man_mage:t5","🧙🏿‍♂️":"man_mage:t6","🧚‍♂️":"man_fairy","🧚🏻‍♂️":"man_fairy:t2","🧚🏼‍♂️":"man_fairy:t3","🧚🏽‍♂️":"man_fairy:t4","🧚🏾‍♂️":"man_fairy:t5","🧚🏿‍♂️":"man_fairy:t6","🧚‍♀️":"woman_fairy","🧚🏻‍♀️":"woman_fairy:t2","🧚🏼‍♀️":"woman_fairy:t3","🧚🏽‍♀️":"woman_fairy:t4","🧚🏾‍♀️":"woman_fairy:t5","🧚🏿‍♀️":"woman_fairy:t6","🧛‍♂️":"man_vampire","🧛🏻‍♂️":"man_vampire:t2","🧛🏼‍♂️":"man_vampire:t3","🧛🏽‍♂️":"man_vampire:t4","🧛🏾‍♂️":"man_vampire:t5","🧛🏿‍♂️":"man_vampire:t6","🧛‍♀️":"woman_vampire","🧛🏻‍♀️":"woman_vampire:t2","🧛🏼‍♀️":"woman_vampire:t3","🧛🏽‍♀️":"woman_vampire:t4","🧛🏾‍♀️":"woman_vampire:t5","🧛🏿‍♀️":"woman_vampire:t6","🧜‍♀️":"mermaid","🧜🏻‍♀️":"mermaid:t2","🧜🏼‍♀️":"mermaid:t3","🧜🏽‍♀️":"mermaid:t4","🧜🏾‍♀️":"mermaid:t5","🧜🏿‍♀️":"mermaid:t6","🧝‍♂️":"man_elf","🧝🏻‍♂️":"man_elf:t2","🧝🏼‍♂️":"man_elf:t3","🧝🏽‍♂️":"man_elf:t4","🧝🏾‍♂️":"man_elf:t5","🧝🏿‍♂️":"man_elf:t6","🧝‍♀️":"woman_elf","🧝🏻‍♀️":"woman_elf:t2","🧝🏼‍♀️":"woman_elf:t3","🧝🏽‍♀️":"woman_elf:t4","🧝🏾‍♀️":"woman_elf:t5","🧝🏿‍♀️":"woman_elf:t6","🧞‍♂":"man_genie","🧟‍♂":"man_zombie","🧌":"troll","💆":"person_getting_massage","💆🏻":"person_getting_massage:t2","💆🏼":"person_getting_massage:t3","💆🏽":"person_getting_massage:t4","💆🏾":"person_getting_massage:t5","💆🏿":"person_getting_massage:t6","💇":"person_getting_haircut","💇🏻":"person_getting_haircut:t2","💇🏼":"person_getting_haircut:t3","💇🏽":"person_getting_haircut:t4","💇🏾":"person_getting_haircut:t5","💇🏿":"person_getting_haircut:t6","🚶‍♂️":"man_walking","🚶🏻‍♂️":"man_walking:t2","🚶🏼‍♂️":"man_walking:t3","🚶🏽‍♂️":"man_walking:t4","🚶🏾‍♂️":"man_walking:t5","🚶🏿‍♂️":"man_walking:t6","🧍":"person_standing","🧍🏻":"person_standing:t2","🧍🏼":"person_standing:t3","🧍🏽":"person_standing:t4","🧍🏾":"person_standing:t5","🧍🏿":"person_standing:t6","🧎":"person_kneeling","🧎🏻":"person_kneeling:t2","🧎🏼":"person_kneeling:t3","🧎🏽":"person_kneeling:t4","🧎🏾":"person_kneeling:t5","🧎🏿":"person_kneeling:t6","🧑‍🦯":"person_with_white_cane","🧑🏻‍🦯":"person_with_white_cane:t2","🧑🏼‍🦯":"person_with_white_cane:t3","🧑🏽‍🦯":"person_with_white_cane:t4","🧑🏾‍🦯":"person_with_white_cane:t5","🧑🏿‍🦯":"person_with_white_cane:t6","🧑‍🦼":"person_in_motorized_wheelchair","🧑🏻‍🦼":"person_in_motorized_wheelchair:t2","🧑🏼‍🦼":"person_in_motorized_wheelchair:t3","🧑🏽‍🦼":"person_in_motorized_wheelchair:t4","🧑🏾‍🦼":"person_in_motorized_wheelchair:t5","🧑🏿‍🦼":"person_in_motorized_wheelchair:t6","🧑‍🦽":"person_in_manual_wheelchair","🧑🏻‍🦽":"person_in_manual_wheelchair:t2","🧑🏼‍🦽":"person_in_manual_wheelchair:t3","🧑🏽‍🦽":"person_in_manual_wheelchair:t4","🧑🏾‍🦽":"person_in_manual_wheelchair:t5","🧑🏿‍🦽":"person_in_manual_wheelchair:t6","🏃‍♂️":"man_running","🏃🏻‍♂️":"man_running:t2","🏃🏼‍♂️":"man_running:t3","🏃🏽‍♂️":"man_running:t4","🏃🏾‍♂️":"man_running:t5","🏃🏿‍♂️":"man_running:t6","👯‍♀":"women_with_bunny_ears","🧖‍♂️":"man_in_steamy_room","🧖🏻‍♂️":"man_in_steamy_room:t2","🧖🏼‍♂️":"man_in_steamy_room:t3","🧖🏽‍♂️":"man_in_steamy_room:t4","🧖🏾‍♂️":"man_in_steamy_room:t5","🧖🏿‍♂️":"man_in_steamy_room:t6","🧗‍♂️":"man_climbing","🧗🏻‍♂️":"man_climbing:t2","🧗🏼‍♂️":"man_climbing:t3","🧗🏽‍♂️":"man_climbing:t4","🧗🏾‍♂️":"man_climbing:t5","🧗🏿‍♂️":"man_climbing:t6","🏌️‍♂️":"man_golfing","🏌🏻️‍♂️":"man_golfing:t2","🏌🏼️‍♂️":"man_golfing:t3","🏌🏽️‍♂️":"man_golfing:t4","🏌🏾️‍♂️":"man_golfing:t5","🏌🏿️‍♂️":"man_golfing:t6","🏄‍♂️":"man_surfing","🏄🏻‍♂️":"man_surfing:t2","🏄🏼‍♂️":"man_surfing:t3","🏄🏽‍♂️":"man_surfing:t4","🏄🏾‍♂️":"man_surfing:t5","🏄🏿‍♂️":"man_surfing:t6","🚣‍♂️":"man_rowing_boat","🚣🏻‍♂️":"man_rowing_boat:t2","🚣🏼‍♂️":"man_rowing_boat:t3","🚣🏽‍♂️":"man_rowing_boat:t4","🚣🏾‍♂️":"man_rowing_boat:t5","🚣🏿‍♂️":"man_rowing_boat:t6","🏊‍♂️":"man_swimming","🏊🏻‍♂️":"man_swimming:t2","🏊🏼‍♂️":"man_swimming:t3","🏊🏽‍♂️":"man_swimming:t4","🏊🏾‍♂️":"man_swimming:t5","🏊🏿‍♂️":"man_swimming:t6","⛹️‍♂️":"man_bouncing_ball","⛹🏻️‍♂️":"man_bouncing_ball:t2","⛹🏼️‍♂️":"man_bouncing_ball:t3","⛹🏽️‍♂️":"man_bouncing_ball:t4","⛹🏾️‍♂️":"man_bouncing_ball:t5","⛹🏿️‍♂️":"man_bouncing_ball:t6","🏋️‍♂️":"man_lifting_weights","🏋🏻️‍♂️":"man_lifting_weights:t2","🏋🏼️‍♂️":"man_lifting_weights:t3","🏋🏽️‍♂️":"man_lifting_weights:t4","🏋🏾️‍♂️":"man_lifting_weights:t5","🏋🏿️‍♂️":"man_lifting_weights:t6","🚴‍♂️":"man_biking","🚴🏻‍♂️":"man_biking:t2","🚴🏼‍♂️":"man_biking:t3","🚴🏽‍♂️":"man_biking:t4","🚴🏾‍♂️":"man_biking:t5","🚴🏿‍♂️":"man_biking:t6","🚵‍♂️":"man_mountain_biking","🚵🏻‍♂️":"man_mountain_biking:t2","🚵🏼‍♂️":"man_mountain_biking:t3","🚵🏽‍♂️":"man_mountain_biking:t4","🚵🏾‍♂️":"man_mountain_biking:t5","🚵🏿‍♂️":"man_mountain_biking:t6","🤸":"person_cartwheeling","🤸🏻":"person_cartwheeling:t2","🤸🏼":"person_cartwheeling:t3","🤸🏽":"person_cartwheeling:t4","🤸🏾":"person_cartwheeling:t5","🤸🏿":"person_cartwheeling:t6","🤼":"people_wrestling","🤽":"person_playing_water_polo","🤽🏻":"person_playing_water_polo:t2","🤽🏼":"person_playing_water_polo:t3","🤽🏽":"person_playing_water_polo:t4","🤽🏾":"person_playing_water_polo:t5","🤽🏿":"person_playing_water_polo:t6","🤾":"person_playing_handball","🤾🏻":"person_playing_handball:t2","🤾🏼":"person_playing_handball:t3","🤾🏽":"person_playing_handball:t4","🤾🏾":"person_playing_handball:t5","🤾🏿":"person_playing_handball:t6","🤹":"person_juggling","🤹🏻":"person_juggling:t2","🤹🏼":"person_juggling:t3","🤹🏽":"person_juggling:t4","🤹🏾":"person_juggling:t5","🤹🏿":"person_juggling:t6","🧘‍♂️":"man_in_lotus_position","🧘🏻‍♂️":"man_in_lotus_position:t2","🧘🏼‍♂️":"man_in_lotus_position:t3","🧘🏽‍♂️":"man_in_lotus_position:t4","🧘🏾‍♂️":"man_in_lotus_position:t5","🧘🏿‍♂️":"man_in_lotus_position:t6","👩‍❤️‍💋‍👨":"kiss_woman_man","👩‍❤️‍👨":"couple_with_heart_woman_man","👨‍👩‍👦":"family_man_woman_boy","🦰":"red_hair","🦱":"curly_hair","🦳":"white_hair","🦲":"bald","🪸":"coral","🪷":"lotus","🪹":"empty_nest","🪺":"nest_with_eggs","🫘":"beans","🫗":"pouring_liquid","🫙":"jar","🛝":"playground_slide","🛞":"wheel","🛟":"ring_buoy","🪬":"hamsa","🪩":"mirror_ball","🪫":"low_battery","🩼":"crutch","🩻":"xray","🛗":"elevator","🫧":"bubbles","🪪":"identification_card","⏏":"eject_button","♀":"female_sign","♂":"male_sign","🟰":"heavy_equals_sign","⚕":"medical_symbol","🏴󠁧󠁢󠁥󠁮󠁧󠁿":"england","🏴󠁧󠁢󠁳󠁣󠁴󠁿":"scotland","🏴󠁧󠁢󠁷󠁬󠁳󠁿":"wales","☻":"slight_smile","♡":"heart"}},81741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IMAGE_VERSION:()=>r});const r="12"},15170:(e,t,n)=>{"use strict";function r(){let e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}n.r(t),n.d(t,{default:()=>r})},11210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyCachedInlineOnebox:()=>o,applyInlineOneboxes:()=>i,cachedInlineOnebox:()=>s,deleteCachedInlineOnebox:()=>a});const r={};function i(e,t,n){n=n||{};const i=Object.keys(e).filter((e=>!r[e]));i.forEach((e=>{r[e]={}})),0!==i.length&&t("/inline-onebox",{data:{urls:i,category_id:n.categoryId,topic_id:n.topicId}}).then((t=>{t["inline-oneboxes"].forEach((t=>{t.title&&(r[t.url]=t,(e[t.url]||[]).forEach((e=>{e.innerText=t.title,e.classList.add("inline-onebox"),e.classList.remove("inline-onebox-loading")})))}))}))}function s(e){return r[e]}function o(e,t){return r[e]=t}function a(e){return delete r[e]}},15240:(e,t,n)=>{"use strict";function r(e){if(!e)return/@(\w[\w.-]{0,58}[^\W_])|@(\w)/;try{const e="\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}";return new RegExp(`@([${e}_][${e}._-]{0,58}[${e}])|@([${e}_])`,"u")}catch(e){if(!(e instanceof SyntaxError))throw e;const t=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u052F\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06E1-\u06E8\u06DF-\u06E4\u06ED-\u06F9\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u07FD\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D3-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABE\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CD0-\u1CD2\u1CD4-\u1CFA\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u20D0-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u24B6-\u24E9\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA672\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7C6\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB67\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD27\uDD30-\uDD39\uDF00-\uDF1C\uDF27\uDF30-\uDF50\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC82-\uDCBA\uDC7F-\uDC82\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD44-\uDD46\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDC9-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3B-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC5E\uDC5F\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC00-\uDC3A\uDCA0-\uDCE9\uDCFF\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDE1\uDDE3\uDDE4\uDE00-\uDE3E\uDE47\uDE50-\uDE99\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD00-\uDD2C\uDD30-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])/.source;return new RegExp(`@((?:_|${t})(?:[._-]|${t}){0,58}${t})|@(?:(_|${t}))`)}}n.r(t),n.d(t,{mentionRegex:()=>r})},4032:(e,t,n)=>{"use strict";n.r(t),n.d(t,{failedCache:()=>i,localCache:()=>r,lookupCache:()=>u,normalize:()=>c,resetFailedCache:()=>o,resetLocalCache:()=>s,setFailedCache:()=>l,setLocalCache:()=>a});let r={},i={};function s(){r={}}function o(){i={}}function a(e,t){r[e]=t}function l(e,t){i[e]=t}function c(e){return e.replace(/\/$/,"")}function u(e){return r[c(e)]?.outerHTML}},59539:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LOADING_ONEBOX_CSS_CLASS:()=>l,load:()=>h,resetCache:()=>c});var r=n(4032),i=n(33057),s=n(12933);let o;const a=[],l="loading-onebox";function c(){a.clear(),(0,r.resetLocalCache)(),(0,r.resetFailedCache)()}function u(e){e.classList.add("size-resolved"),e.width>0&&e.width===e.height&&e.classList.add("onebox-avatar")}function d(){u(this),this.removeEventListener("load",d)}function p(e){if(0===a.length)return void(o=null);let t=150,n=!0;const{url:c,refresh:h,elem:m,categoryId:g,topicId:f}=a.shift();return e("/onebox",{dataType:"html",data:{url:c,refresh:h,category_id:g,topic_id:f}}).then((e=>{const t=(0,i.default)(e)[0];(0,r.setLocalCache)((0,r.normalize)(c),t),m.replaceWith(t),function(e){if(!e.classList.contains("allowlistedgeneric"))return;let t=e.querySelector(".onebox-body img.thumbnail");t&&!t.classList.contains("size-resolved")&&(t.complete?u(t):t.addEventListener("load",d))}(t)}),(e=>{429===e?.jqXHR?.status?(t=2e3,n=!1,a.unshift({url:c,refresh:h,elem:m,categoryId:g,topicId:f})):(0,r.setFailedCache)((0,r.normalize)(c),!0)})).finally((()=>{o=(0,s.default)((()=>p(e)),t),n&&(m.classList.remove(l),m.dataset.oneboxLoaded="")}))}function h(e){let{elem:t,ajax:n,topicId:i,categoryId:c,refresh:u=!0,offline:d=!1,synchronous:h=!1}=e;if(t.dataset.oneboxLoaded)return;if(t.classList.contains(l))return;const m=t.href;if(!u){const e=(0,r.lookupCache)(m);if(e)return e;if(r.failedCache[(0,r.normalize)(m)])return;if(d)return}if(t.classList.add(l),a.push({url:m,refresh:u,elem:t,categoryId:c,topicId:i}),h)return p(n);o=o||(0,s.default)((()=>p(n)),150)}},25322:(e,t,n)=>{"use strict";n.r(t),n.d(t,{registerOption:()=>i});var r=n(54736);function i(){(0,r.default)("`registerOption() from `pretty-text` is deprecated. Use `helper.registerOptions()` instead.",{since:"2.8.0.beta9",dropFrom:"2.9.0.beta1",id:"discourse.pretty-text.registerOption"})}},96927:(e,t,n)=>{"use strict";n.r(t),n.d(t,{escape:()=>s.default,hrefAllowed:()=>a,sanitize:()=>l});var r=n(11281),i=n.n(r),s=n(53134);function o(e,t){return t?`${e}="${i().escapeAttrValue(t)}"`:e}function a(e,t){if(e=e.replace(/'/g,"%27"),/^(https?:)?\/\/[\w\.\-]+/i.test(e))return e;if(/^\/[\w\.\-]+/i.test(e))return e;if(/^#[\w\.\-]+/i.test(e))return e;if(/^mailto:[\w\.\-@]+/i.test(e))return e;if(t&&t.length>0)for(let n=0;n<t.length;n++)if(t[n].test(e))return e}function l(e,t){if(!e)return"";e=e.replace(/<([^A-Za-z\/\!]|$)/g,"&lt;$1");const n=t.getAllowList(),r=t.getAllowedHrefSchemes(),s=t.getAllowedIframes();let l=null;r&&r.length>0&&(l=[new RegExp("^("+r.join("|")+")://[\\w\\.\\-]+","i")],r.includes("tel")&&l.push(new RegExp("^tel://\\+?[\\w\\.\\-]+","i")));let c=i()(e,{allowList:n.tagList,stripIgnoreTag:!0,stripIgnoreTagBody:["script","table"],onIgnoreTagAttr(e,r,i){const c=n.attrList[e];if(c){const n=c[r];if(n&&(n.includes("*")||n.includes(i))||!r.includes("data-html-")&&r.startsWith("data-")&&(c["data-*"]||function(e,t,n){return Object.keys(e).find((r=>{const i=`^${r.replace(/\*$/,"\\w+?")}`,s=e[r];return new RegExp(i).test(t)&&(!!s.includes("*")||s.includes(n))}))}(c,r,i))||"a"===e&&"href"===r&&a(i,l)||"iframe"===e&&"src"===r&&!i.match(/\/\.+\//)&&s.some((e=>i.toLowerCase().startsWith((e||"").toLowerCase()))))return o(r,i);const u=function(e,t,n,r){if({img:["src"],source:["src","srcset"],track:["src"]}[e]?.includes(t))return n.startsWith("data:image")?o(t,n):o(t,"srcset"===t?n.split(",").map((e=>e.split(" ",2))).map((e=>{const t=a(e[0],r);if(t)return e[1]?`${t} ${e[1]}`:t})).join(","):a(n,r))}(e,r,i,l);if(u)return u;if("iframe"===e&&"src"===r)return"-STRIP-";if("video"===e&&"autoplay"===r)return"autoplay muted";if(["h1","h2","h3","h4","h5","h6"].includes(e)&&i.match(/^heading\-\-[a-zA-Z0-9\-\_]+$/))return o(r,i);const d=t.getCustom();for(let t=0;t<d.length;t++)if((0,d[t])(e,r,i))return o(r,i)}}});return c.replace(/\[removed\]/g,"").replace(/\<iframe[^>]+\-STRIP\-[^>]*>[^<]*<\/iframe>/g,"").replace(/&(?![#\w]+;)/g,"&amp;").replace(/&#39;/g,"'").replace(/ \/>/g,">")}},30702:(e,t,n)=>{"use strict";function r(e,t,n){let r,i,s,o,a,l=e.tokens,c=0;for(i=0,s=l.length;i<s;i++)if("inline"===l[i].type)for(o=l[i].children,r=o.length-1;r>=0;r--)if(a=o[r],n?"link_open"===a.type||"link_close"===a.type?c-=a.nesting:"html_inline"===a.type&&("<a"===a.content.slice(0,2).toLowerCase()?a.content.match(/^<a(\s.*)?>/i)&&c++:"</a>"===a.content.slice(0,4).toLowerCase()&&c--):"link_open"!==a.type&&"link_close"!==a.type||"auto"===a.info&&(c-=a.nesting),"text"===a.type&&0===c){let n;(n=t(a.content,e))&&(l[i].children=o=e.md.utils.arrayReplaceAt(o,r,n))}}n.r(t),n.d(t,{textReplace:()=>r})},24705:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cacheShortUploadUrl:()=>u,lookupCachedUploadUrl:()=>a,lookupUncachedUploadUrls:()=>c,resetCache:()=>d,resolveAllShortUrls:()=>w,resolveCachedShortUrls:()=>y});var r=n(10425),i=n(56111),s=n(82099);let o={};function a(e){return o[e]||{}}const l="missing";function c(e,t){if(0!==(e=e.filter(Boolean)).length)return t("/uploads/lookup-urls",{type:"POST",data:{short_urls:e}}).then((t=>(t.forEach((e=>{u(e.short_url,{url:e.url,short_path:e.short_path})})),e.forEach((e=>u(e,{url:a(e).url||l,short_path:a(e).short_path||l}))),t)))}function u(e,t){o[e]=t}function d(){o={}}function p(e,t,n,r,i){const o=function(e,t,n){if(t.url)return"orig-href"!==e||n.secure_uploads&&(t.url.includes("secure-media-uploads")||t.url.includes("secure-uploads"))?t.url:t.short_path}(n,a(e.getAttribute(`data-${n}`)),t);if(o)if(e.removeAttribute(`data-${n}`),o!==l)i(o);else if(r&&r.removeMissing){const t=getComputedStyle(document.body),n=document.createElement("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");r.fillStyle=getComputedStyle(document.body).backgroundColor,r.strokeRect(0,0,n.width,n.height),r.lineWidth=2,r.strokeStyle=getComputedStyle(document.body).color,r.strokeRect(0,0,n.width,n.height);let i=25;const o=s.default.t("image_removed");let a;do{--i,r.font=`${i}px ${t.fontFamily}`,a=r.measureText(o)}while(a.width>n.width);r.fillStyle=getComputedStyle(document.body).color,r.fillText(o,(n.width-a.width)/2,(n.height+i)/2),e.parentNode.replaceChild(n,e)}}function h(e,t,n){e.forEach((e=>{switch(e.tagName){case"A":p(e,t,"orig-href",n,(t=>{e.href=t}));break;case"IMG":p(e,t,"orig-src",n,(t=>{e.src=t}));break;case"SOURCE":p(e,t,"orig-src",n,(t=>{if(t.startsWith(`//${window.location.host}`)){let e=new RegExp("//"+window.location.host,"g");t=t.replace(e,"")}e.src=t;const n=e.parentElement.querySelector("a");n&&(n.href=t,n.textContent=t)}))}}))}let m,g,f;function b(e){c(m,e).then(f),m=f=null}const _="img[data-orig-src], a[data-orig-href], source[data-orig-src]";function y(e,t,n){let r=t.querySelectorAll(_);r.length>0&&h(r,e,n)}function w(e,t,n,s){let o=n.querySelectorAll(_);if(o.length>0&&(h(o,t,s),o=n.querySelectorAll(_),o.length>0))return function(e,t,n,s){let o=[...e].map((e=>e.getAttribute("data-orig-src")||e.getAttribute("data-orig-href")));return m?m.push(...o):(m=[...o],g=new r.Promise((e=>{f=e})),(0,i.default)(null,b,t,450)),g.then((()=>{h(e,n,s)}))}(o,e,t,s)}},68781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r,i=n(48163),s=n(17579),o=n(53987),a=n.n(o),l=n(71498),c=n.n(l),u=n(54897),d=n.n(u),p=n(91423);const h=n(50073).default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(r={classNames:["bulk-select-topics-dropdown"],headerIcon:null,showFullTitle:!0,selectKitOptions:{showCaret:!0,showFullTitle:!0,none:"select_kit.components.bulk_select_topics_dropdown.title"},modal:(0,s.inject)(),router:(0,s.inject)(),computeContent(){let e=[];return e=e.concat([{id:"update-category",icon:"pencil-alt",name:(0,p.default)("topic_bulk_actions.update_category.name"),description:(0,p.default)("topic_bulk_actions.update_category.description")},{id:"close-topics",icon:"lock",name:(0,p.default)("topic_bulk_actions.close_topics.name")}]),e},onSelect(e){switch(e){case"update-category":this.modal.show(d(),{model:{topics:this.bulkSelectHelper.selected,category:this.category,refreshClosure:()=>this.router.refresh(),initialAction:"set-component",initialComponent:a()}});break;case"close-topics":this.modal.show(c(),{model:{action:"close",title:(0,p.default)("topics.bulk.close_topics"),bulkSelectHelper:this.bulkSelectHelper,refreshClosure:()=>this.router.refresh(),allowSilent:!0}})}}},"onSelect",[i.action],Object.getOwnPropertyDescriptor(r,"onSelect"),r),r))},5241:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({pluginApiIdentifiers:["categories-admin-dropdown"],classNames:["categories-admin-dropdown"],selectKitOptions:{icons:["wrench","caret-down"],showFullTitle:!1,autoFilterable:!1,filterable:!1,none:"select_kit.components.categories_admin_dropdown.title"},content:(0,r.computed)((function(){const e=[{id:"create",name:i.default.t("category.create"),description:i.default.t("category.create_long"),icon:"plus"}];return e.push({id:"reorder",name:i.default.t("categories.reorder.title"),description:i.default.t("categories.reorder.title_long"),icon:"random"}),e})),_onChange(e,t){t.onChange?t.onChange(e,t):this.onChange&&this.onChange(e,t)}})},57490:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(48163),i=n(24434),s=n(33217),o=n(41276),a=n(95801),l=n(75007),c=n.n(l),u=n(84530),d=n.n(u),p=n(82099),h=n(93699);const m=n(84762).default.extend({pluginApiIdentifiers:["category-chooser"],classNames:["category-chooser"],allowUncategorizedTopics:(0,a.setting)("allow_uncategorized_topics"),fixedCategoryPositionsOnCreate:(0,a.setting)("fixed_category_positions_on_create"),selectKitOptions:{filterable:!0,allowUncategorized:!1,allowSubCategories:!0,permissionType:d().FULL,excludeCategoryId:null,scopedCategoryId:null,prioritizedCategoryId:null},init(){this._super(...arguments),this.site.lazy_load_categories&&!c().hasAsyncFoundAll([this.value])&&(console.warn("Category selected with category-chooser was not loaded"),c().asyncFindByIds([this.value]).then((()=>{this.notifyPropertyChange("value")})))},modifyComponentForRow:()=>h.default,modifyNoSelection(){if(!(0,s.isNone)(this.selectKit.options.none)){const e="string"==typeof this.selectKit.options.none;return this.defaultItem(null,(0,i.htmlSafe)(p.default.t(e?this.selectKit.options.none:"category.none")))}if(this.allowUncategorizedTopics||this.selectKit.options.allowUncategorized)return c().findUncategorized();{const e=parseInt(this.siteSettings.default_composer_category,10);if(!e||e<0)return this.defaultItem(null,(0,i.htmlSafe)(p.default.t("category.choose")))}},modifySelection(e){if(this.selectKit.hasSelection){const t=c().findById(this.value);(0,r.set)(e,"label",(0,i.htmlSafe)((0,o.categoryBadgeHTML)(t,{link:!1,hideParent:!t||!!t.parent_category_id,allowUncategorized:!0,recursive:!0})))}return e},search(e){return this.site.lazy_load_categories?c().asyncSearch(this._normalize(e),{scopedCategoryId:this.selectKit.options?.scopedCategoryId,prioritizedCategoryId:this.selectKit.options?.prioritizedCategoryId}):e?(e=this._normalize(e),this.content.filter((t=>{const n=c().findById(this.getValue(t)),r=this.getName(t);if(n&&n.parentCategory){const t=this.getName(n.parentCategory);return this._matchCategory(e,r)||this._matchCategory(e,t)}return this._matchCategory(e,r)}))):this.content},content:(0,r.computed)("selectKit.filter","selectKit.options.scopedCategoryId","selectKit.options.prioritizedCategoryId",(function(){if(!this.selectKit.filter){let{scopedCategoryId:e,prioritizedCategoryId:t}=this.selectKit.options;if(e)return this.categoriesByScope({scopedCategoryId:e});if(t)return this.categoriesByScope({prioritizedCategoryId:t})}return this.categoriesByScope()})),categoriesByScope(){let{scopedCategoryId:e=null,prioritizedCategoryId:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=this.fixedCategoryPositionsOnCreate?c().list():c().listByActivity();if(e){const t=c().findById(e);e=t.parent_category_id||t.id}if(t){const e=c().findById(t);t=e.parent_category_id||e.id}const r=this.selectKit.options.excludeCategoryId;let i=n.filter((t=>{const n=this.getValue(t);if(e&&n!==e&&t.parent_category_id!==e)return!1;if(!1===this.selectKit.options.allowSubCategories&&t.parentCategory)return!1;if(!1===this.selectKit.options.allowUncategorized&&t.isUncategorizedCategory||r===n)return!1;const i=this.selectKit.options.permissionType;return!(i&&!this.allowRestrictedCategories)||i===t.permission}));if(t){let e=[],n=[];for(let r of i)this.getValue(r)===t||r.parent_category_id===t?e.push(r):n.push(r);return e.concat(n)}return i},_matchCategory(e,t){return this._normalize(t).includes(e)}})},11420:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALL_CATEGORIES_ID:()=>f,NO_CATEGORIES_ID:()=>g,default:()=>b});var r=n(48163),i=n(6264),s=n(24434),o=n(41276),a=n(95801),l=n(83005),c=n.n(l),u=n(75007),d=n.n(u),p=n(82099),h=n(93699),m=n(84762);const g="no-categories",f="all-categories",b=m.default.extend({pluginApiIdentifiers:["category-drop"],classNames:["category-drop"],value:(0,i.readOnly)("category.id"),content:(0,i.readOnly)("categoriesWithShortcuts.[]"),noCategoriesLabel:p.default.t("categories.no_subcategory"),navigateToEdit:!1,editingCategory:!1,editingCategoryTab:null,selectKitOptions:{filterable:!0,none:"category.all",caretDownIcon:"caret-right",caretUpIcon:"caret-down",fullWidthOnMobile:!0,noSubcategories:!1,subCategory:!1,clearable:!1,hideParentCategory:"hideParentCategory",countSubcategories:!1,autoInsertNoneItem:!1,displayCategoryDescription:"displayCategoryDescription",headerComponent:"category-drop/category-drop-header",parentCategory:!1,allowUncategorized:(0,a.setting)("allow_uncategorized_topics")},modifyComponentForRow:()=>h.default,displayCategoryDescription:(0,r.computed)((function(){return!(this.get("currentUser.staff")||this.get("currentUser.trust_level")>0)})),hideParentCategory:(0,r.computed)((function(){return this.options.subCategory||!1})),shortcuts:(0,r.computed)("value","selectKit.options.{subCategory,noSubcategories}",(function(){const e=[];return(this.value&&!this.editingCategory||this.selectKit.options.noSubcategories&&this.selectKit.options.subCategory)&&e.push({id:f,name:this.allCategoriesLabel}),!this.selectKit.options.subCategory||!this.value&&this.selectKit.options.noSubcategories||e.push({id:g,name:this.noCategoriesLabel}),e})),categoriesWithShortcuts:(0,r.computed)("categories.[]","shortcuts",(function(){const e=this._filterUncategorized(this.categories||[]);return this.shortcuts.concat(e)})),modifyNoSelection(){return this.selectKit.options.noSubcategories?this.defaultItem(g,this.noCategoriesLabel):this.defaultItem(f,this.allCategoriesLabel)},modifySelection(e){if(this.value){const t=d().findById(this.value);e.title=t.title,e.label=(0,s.htmlSafe)((0,o.categoryBadgeHTML)(t,{link:!1,allowUncategorized:!0,hideParent:!0}))}return e},parentCategoryName:(0,i.readOnly)("selectKit.options.parentCategory.name"),allCategoriesLabel:(0,r.computed)("parentCategoryName","selectKit.options.subCategory",(function(){return this.editingCategory?this.noCategoriesLabel:this.selectKit.options.subCategory?p.default.t("categories.all_subcategories",{categoryName:this.parentCategoryName}):p.default.t("categories.all")})),async search(e){if(this.site.lazy_load_categories){const t=await d().asyncSearch(e,{parentCategoryId:this.options.parentCategory?.id||-1,includeUncategorized:this.siteSettings.allow_uncategorized_topics,limit:15});return this.shortcuts.concat(t.sort(((e,t)=>e.parent_category_id&&!t.parent_category_id?1:!e.parent_category_id&&t.parent_category_id?-1:0)))}const t={parentCategoryId:this.options.parentCategory?.id};if(e){let n=d().search(e,t);return this._filterUncategorized(n).sort(((e,t)=>e.parent_category_id&&!t.parent_category_id?1:!e.parent_category_id&&t.parent_category_id?-1:0))}return this._filterUncategorized(this.content)},actions:{onChange(e){const t=e===f||e===g?this.selectKit.options.parentCategory:d().findById(parseInt(e,10)),n=this.editingCategory?(0,l.getEditCategoryUrl)(t,e!==g,this.editingCategoryTab):(0,l.getCategoryAndTagUrl)(t,e!==g,this.tagId);c().routeToUrl(n)}},_filterUncategorized(e){return this.siteSettings.allow_uncategorized_topics||(e=e.filter((e=>e.id!==this.site.uncategorized_category_id))),e}})},48523:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(57555),i=n(14413);const s=(0,n(8620).createTemplateFactory)({id:"/dYuZdAb",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n  "],[46,[30,0,["selectKit","options","selectedNameComponent"]],null,[["tabindex","item","selectKit","shouldDisplayClearableButton"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[30,0,["shouldDisplayClearableButton"]]]],null],[1,"\\n\\n  "],[1,[28,[35,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"],[13]],[],false,["component","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/category-drop/category-drop-header.hbs",isStrictMode:!1});var o,a,l;function c(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const u=(0,n(31691).setComponentTemplate)(s,i.default.extend((o=(0,r.default)("selectedContent.color"),a=(0,r.default)("selectedContent.text_color"),c(l={classNames:["category-drop-header"],categoryBackgroundColor:e=>e||"#e9e9e9",categoryTextColor:e=>e||"#333"},"categoryBackgroundColor",[o],Object.getOwnPropertyDescriptor(l,"categoryBackgroundColor"),l),c(l,"categoryTextColor",[a],Object.getOwnPropertyDescriptor(l,"categoryTextColor"),l),l)))},74006:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(6264),i=n(82099);const s=n(30080).default.extend({pluginApiIdentifiers:["category-notifications-button"],classNames:["category-notifications-button"],isHidden:(0,r.or)("category.deleted"),selectKitOptions:{i18nPrefix:"category.notifications",showFullTitle:!1,headerAriaLabel:i.default.t("category.notifications.title")}})},93699:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var r,i,s,o,a=n(82006),l=(n(9043),n(48581)),c=n(48163),u=n(78582),d=n(17579),p=n(24434),h=n(33217),m=n(41276),g=n(18270),f=n.n(g),b=n(65783),_=n.n(b),y=n(75007),w=n.n(y),v=n(8620),k=n(31691);function x(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function T(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let S=(0,n(91649).Z)(n(49572)).cached,C=(o=class extends a.default{constructor(){super(...arguments),x(this,"site",i,this),x(this,"siteSettings",s,this)}get isNone(){return this.rowValue===this.args.selectKit?.noneItem}get highlightedValue(){return this.args.selectKit.get("highlighted.id")}get isHighlighted(){return this.rowValue===this.highlightedValue}get isSelected(){return this.rowValue===this.args.value}get hideParentCategory(){return this.args.selectKit.options.hideParentCategory}get categoryLink(){return this.args.selectKit.options.categoryLink}get countSubcategories(){return this.args.selectKit.options.countSubcategories}get allowUncategorizedTopics(){return this.siteSettings.hideParentCategory}get allowUncategorized(){return this.args.selectKit.options.allowUncategorized}get rowName(){return this.args.item?.name}get rowValue(){return this.args.item?.id}get guid(){return(0,u.guidFor)(this.args.item)}get label(){return this.args.item?.name}get displayCategoryDescription(){const e=this.args.selectKit.options.displayCategoryDescription;return!!(0,h.isNone)(e)||e}get title(){if(this.category)return this.categoryName}get categoryName(){return this.category.name}get categoryDescriptionText(){return this.category.description_text}get category(){if(!(0,h.isEmpty)(this.rowValue))return w().findById(parseInt(this.rowValue,10));{const e=w().findUncategorized();if(e&&e.name===this.rowName)return e}}get badgeForCategory(){return(0,p.htmlSafe)((0,m.categoryBadgeHTML)(this.category,{link:this.categoryLink,allowUncategorized:this.allowUncategorizedTopics||this.allowUncategorized,hideParent:!!this.parentCategory,topicCount:this.topicCount}))}get badgeForParentCategory(){return(0,p.htmlSafe)((0,m.categoryBadgeHTML)(this.parentCategory,{link:this.categoryLink,allowUncategorized:this.allowUncategorizedTopics||this.allowUncategorized,recursive:!0}))}get parentCategory(){return w().findById(this.parentCategoryId)}get hasParentCategory(){return this.parentCategoryId}get parentCategoryId(){return this.category?.parent_category_id}get categoryTotalTopicCount(){return this.category?.totalTopicCount}get categoryTopicCount(){return this.category?.topic_count}get topicCount(){return this.countSubcategories?this.categoryTotalTopicCount:this.categoryTopicCount}get shouldDisplayDescription(){return this.displayCategoryDescription&&this.categoryDescriptionText&&"null"!==this.categoryDescriptionText}get descriptionText(){if(this.categoryDescriptionText)return this._formatDescription(this.categoryDescriptionText)}handleMouseEnter(){if(!this.site.mobileView)return this.isDestroying&&this.isDestroyed||this.args.selectKit.onHover(this.rowValue,this.args.item),!1}handleClick(e){return e.preventDefault(),e.stopPropagation(),this.args.selectKit.select(this.rowValue,this.args.item),!1}handleMouseDown(e){this.args.selectKit.options.preventHeaderFocus&&e.preventDefault()}handleFocusIn(e){e.stopImmediatePropagation()}handleKeyDown(e){this.args.selectKit.isExpanded&&("Backspace"===e.key?this.args.selectKit.isFilterExpanded&&(this.args.selectKit.set("filter",this.args.selectKit.filter.slice(0,-1)),this.args.selectKit.triggerSearch(),this.args.selectKit.focusFilter(),e.preventDefault(),e.stopPropagation()):"ArrowUp"===e.key?(this.args.selectKit.highlightPrevious(),e.preventDefault()):"ArrowDown"===e.key?(this.args.selectKit.highlightNext(),e.preventDefault()):"Enter"===e.key?(e.stopImmediatePropagation(),this.args.selectKit.select(this.args.selectKit.highlighted.id,this.args.selectKit.highlighted),e.preventDefault()):"Escape"===e.key?(this.args.selectKit.close(e),this.args.selectKit.headerElement().focus(),e.preventDefault(),e.stopPropagation()):this._isValidInput(e.key)&&(this.args.selectKit.set("filter",e.key),this.args.selectKit.triggerSearch(),this.args.selectKit.focusFilter(),e.preventDefault(),e.stopPropagation()))}_formatDescription(e){return`${e.slice(0,200)}${e.length>200?"&hellip;":""}`}_isValidInput(e){return!/F\d+|Arrow.+|Meta|Alt|Control|Shift|Delete|Enter|Escape|Tab|Space|Insert|Backspace/.test(e)}},(0,k.setComponentTemplate)((0,v.createTemplateFactory)({id:"Agr15yCk",block:'[[[1,"\\n"],[1,"    "],[11,0],[16,0,[28,[32,0],["category-row","select-kit-row",[52,[30,0,["isSelected"]],"is-selected"],[52,[30,0,["isHighlighted"]],"is-highlighted"],[52,[30,0,["isNone"]],"is-none"]],null]],[24,"role","menuitemradio"],[16,"data-index",[30,1]],[16,"data-name",[30,0,["rowName"]]],[16,"data-value",[30,0,["rowValue"]]],[16,"data-title",[30,0,["title"]]],[16,"title",[30,0,["title"]]],[16,"data-guid",[30,0,["guid"]]],[16,"aria-checked",[30,0,["isSelected"]]],[24,"tabindex","0"],[4,[32,1],["focusin",[30,0,["handleFocusIn"]]],null],[4,[32,1],["mousedown",[30,0,["handleMouseDown"]]],null],[4,[32,1],["mouseenter",[30,0,["handleMouseEnter"]]],[["passive"],[true]]],[4,[32,1],["click",[30,0,["handleClick"]]],null],[4,[32,1],["keydown",[30,0,["handleKeyDown"]]],null],[12],[1,"\\n\\n"],[41,[30,0,["category"]],[[[1,"        "],[10,0],[14,0,"category-status"],[14,"aria-hidden","true"],[12],[1,"\\n"],[41,[30,0,["hasParentCategory"]],[[[41,[51,[30,0,["hideParentCategory"]]],[[[1,"              "],[1,[30,0,["badgeForParentCategory"]]],[1,"\\n"]],[]],null]],[]],null],[1,"          "],[1,[30,0,["badgeForCategory"]]],[1,"\\n        "],[13],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDescription"]],[[[1,"          "],[10,0],[14,0,"category-desc"],[14,"aria-hidden","true"],[12],[1,"\\n            "],[1,[28,[32,2],[[30,0,["descriptionText"]]],[["htmlSafe"],["true"]]]],[1,"\\n          "],[13],[1,"\\n"]],[]],null]],[]],[[[1,"        "],[1,[28,[32,3],[[30,0,["label"]]],null]],[1,"\\n"]],[]]],[1,"    "],[13],[1,"\\n  "]],["@index"],false,["if","unless"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/category-row.js",scope:()=>[f(),l.on,_(),p.htmlSafe],isStrictMode:!0}),o),i=T((r=o).prototype,"site",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=T(r.prototype,"siteSettings",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T(r.prototype,"category",[S],Object.getOwnPropertyDescriptor(r.prototype,"category"),r.prototype),T(r.prototype,"badgeForCategory",[S],Object.getOwnPropertyDescriptor(r.prototype,"badgeForCategory"),r.prototype),T(r.prototype,"badgeForParentCategory",[S],Object.getOwnPropertyDescriptor(r.prototype,"badgeForParentCategory"),r.prototype),T(r.prototype,"descriptionText",[S],Object.getOwnPropertyDescriptor(r.prototype,"descriptionText"),r.prototype),T(r.prototype,"handleMouseEnter",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseEnter"),r.prototype),T(r.prototype,"handleClick",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"handleClick"),r.prototype),T(r.prototype,"handleMouseDown",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"handleMouseDown"),r.prototype),T(r.prototype,"handleFocusIn",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"handleFocusIn"),r.prototype),T(r.prototype,"handleKeyDown",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"handleKeyDown"),r.prototype),r)},27605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n(6264),s=n(75007),o=n.n(s),a=n(61369),l=n(93699);const c=n(30757).default.extend({pluginApiIdentifiers:["category-selector"],classNames:["category-selector"],categories:null,blockedCategories:null,selectKitOptions:{filterable:!0,allowAny:!1,allowUncategorized:!0,displayCategoryDescription:!1,selectedChoiceComponent:"selected-choice-category"},init(){this._super(...arguments),this.blockedCategories||this.set("blockedCategories",[])},content:(0,r.computed)("categories.[]","blockedCategories.[]",(function(){return o().list().filter((e=>e.isUncategorizedCategory?void 0!==this.options?.allowUncategorized?this.options.allowUncategorized:this.selectKit.options.allowUncategorized:this.categories.includes(e)||!this.blockedCategories.includes(e)))})),value:(0,i.mapBy)("categories","id"),modifyComponentForRow:()=>l.default,async search(e){if(!this.site.lazy_load_categories)return this._super(e);const t=new Set([...this.categories.map((e=>e.id)),...this.blockedCategories.map((e=>e.id))]);return await o().asyncSearch(e,{includeUncategorized:void 0!==this.options?.allowUncategorized?this.options.allowUncategorized:this.selectKit.options.allowUncategorized,rejectCategoryIds:Array.from(t)})},select(e,t){if(t.multiCategory){const e=t.multiCategory.map((e=>o().findById(parseInt(e,10)))),n=(0,a.makeArray)(this.value).concat(e.map((e=>e.id))),r=(0,a.makeArray)(this.selectedContent).concat(e);this.selectKit.change(n,r)}else this._super(e,t)},actions:{onChange(e){return this.onChange(e.map((e=>o().findById(e))).filter(Boolean)),!1}}})},52227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(82099);const i=n(84762).default.extend({pluginApiIdentifiers:["color-palettes"],classNames:["color-palettes"],modifyComponentForRow:()=>"color-palettes/color-palettes-row",selectKitOptions:{translatedNone:r.default.t("admin.customize.theme.default_light_scheme")}})},4258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(24434),s=n(93418);const o=(0,n(8620).createTemplateFactory)({id:"EkSynZUf",block:'[[[10,1],[14,0,"name"],[12],[1,"\\n  "],[1,[30,0,["label"]]],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["item","colors"]],[[[1,"  "],[10,0],[14,0,"palettes"],[15,5,[30,0,["backgroundColor"]]],[12],[1,"\\n    "],[1,[30,0,["palettes"]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/color-palettes/color-palettes-row.hbs",isStrictMode:!1}),a=(0,n(31691).setComponentTemplate)(o,s.default.extend({classNames:["color-palettes-row"],palettes:(0,r.computed)("item.colors.[]",(function(){return(0,i.htmlSafe)((this.item.colors||[]).filter((e=>"secondary"!==e.name)).map((e=>`#${escape(e.hex)}`)).map((e=>`<span class="palette" style="background-color:${e}"></span>`)).join(""))})),backgroundColor:(0,r.computed)("item.colors.[]",(function(){const e=(this.item.colors||[]).findBy("name","secondary");return e&&e.hex?(0,i.htmlSafe)(`background-color:#${escape(e.hex)}`):""}))}))},84762:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(6264);const i=n(13182).default.extend({pluginApiIdentifiers:["combo-box"],classNames:["combobox","combo-box"],selectKitOptions:{caretUpIcon:"caret-up",caretDownIcon:"caret-down",autoFilterable:"autoFilterable",clearable:!1,headerComponent:"combo-box/combo-box-header"},autoFilterable:(0,r.gte)("content.length",10)})},14413:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(6264),s=n(41514);const o=(0,n(8620).createTemplateFactory)({id:"GVxP2Rmn",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n  "],[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[35,2],[[30,1]],null]],[1," "]],[1]],null],[1,"\\n\\n  "],[46,[30,0,["selectKit","options","selectedNameComponent"]],null,[["tabindex","item","selectKit"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]]]],null],[1,"\\n\\n"],[41,[30,0,["shouldDisplayClearableButton"]],[[[1,"    "],[8,[39,5],[[24,0,"btn-clear"]],[["@icon","@action","@ariaLabel"],["times",[30,0,["selectKit","onClearSelection"]],"clear_input"]],null],[1,"\\n"]],[]],null],[1,"\\n  "],[1,[28,[35,2],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"],[13]],["icon"],false,["each","-track-array","d-icon","component","if","d-button"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/combo-box/combo-box-header.hbs",isStrictMode:!1}),a=(0,n(31691).setComponentTemplate)(o,s.default.extend({classNames:["combo-box-header"],clearable:(0,i.reads)("selectKit.options.clearable"),caretUpIcon:(0,i.reads)("selectKit.options.caretUpIcon"),caretDownIcon:(0,i.reads)("selectKit.options.caretDownIcon"),shouldDisplayClearableButton:(0,i.and)("clearable","value"),caretIcon:(0,r.computed)("selectKit.isExpanded","caretUpIcon","caretDownIcon",(function(){return this.selectKit.isExpanded?this.caretUpIcon:this.caretDownIcon}))}))},53284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_clearSnapshots:()=>v,default:()=>k});var r,i,s,o=n(6264),a=n(17579),l=n(16572),c=n(33217),u=n(31158),d=n(28612),p=n(23839),h=n.n(p),m=n(57555),g=n(82099),f=n(50073);function b(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}let _=null,y=null,w=null;function v(){_=null,y=null,w=null}const k=f.default.extend((r=(0,m.default)("isEditing","action","whisper","noBump","isInSlowMode"),i=(0,m.default)("seq"),b(s={dialog:(0,a.inject)(),composer:(0,a.inject)(),seq:0,pluginApiIdentifiers:["composer-actions"],classNames:["composer-actions"],isEditing:(0,o.equal)("action",d.EDIT),isInSlowMode:(0,o.gt)("topic.slow_mode_seconds",0),selectKitOptions:{icon:"iconForComposerAction",filterable:!1,showFullTitle:!1,preventHeaderFocus:!0,customStyle:!0},iconForComposerAction:(e,t,n,r,i)=>t===d.CREATE_TOPIC?"plus":t===d.PRIVATE_MESSAGE?"envelope":t===d.CREATE_SHARED_DRAFT?"far-clipboard":n?"far-eye-slash":r?"anchor":i?"hourglass-start":e?"pencil-alt":"share",contentChanged(){this.set("seq",this.seq+1)},didReceiveAttrs(){this._super(...arguments);let e=!1;!this.topic||_&&this.topic.id===_.id||(_=this.topic,y=this.post,e=!0),!this.post||y&&this.post.id===y.id||(y=this.post,e=!0),this.action!==w&&(w=this.action,e=!0),e&&this.contentChanged(),this.set("selectKit.isHidden",(0,c.isEmpty)(this.content))},modifySelection:()=>({}),content(){let e=[];this.action===d.REPLY&&this.topic&&this.topic.isPrivateMessage&&this.topic.details&&(this.topic.details.allowed_users.length>1||this.topic.details.allowed_groups.length>0)&&!this.isEditing&&_&&e.push({name:g.default.t("composer.composer_actions.reply_as_new_group_message.label"),description:g.default.t("composer.composer_actions.reply_as_new_group_message.desc"),icon:"plus",id:"reply_as_new_group_message"}),this.action!==d.CREATE_TOPIC&&this.action!==d.CREATE_SHARED_DRAFT&&this.action===d.REPLY&&this.topic&&!this.topic.isPrivateMessage&&!this.isEditing&&_&&e.push({name:g.default.t("composer.composer_actions.reply_as_new_topic.label"),description:g.default.t("composer.composer_actions.reply_as_new_topic.desc"),icon:"plus",id:"reply_as_new_topic"}),(this.action!==d.REPLY&&y||this.action===d.REPLY&&y&&(!this.replyOptions.userAvatar||!this.replyOptions.userLink))&&e.push({name:g.default.t("composer.composer_actions.reply_to_post.label",{postUsername:y.username}),description:g.default.t("composer.composer_actions.reply_to_post.desc"),icon:"share",id:"reply_to_post"}),!this.isEditing&&(this.action!==d.REPLY&&_||this.action===d.REPLY&&_&&this.replyOptions.userAvatar&&this.replyOptions.userLink&&this.replyOptions.topicLink)&&e.push({name:g.default.t("composer.composer_actions.reply_to_topic.label"),description:g.default.t("composer.composer_actions.reply_to_topic.desc"),icon:"share",id:"reply_to_topic"}),!this.canWhisper||this.replyOptions.postLink&&y&&y.post_type===this.site.post_types.whisper||e.push({name:g.default.t("composer.composer_actions.toggle_whisper.label"),description:g.default.t("composer.composer_actions.toggle_whisper.desc"),icon:"far-eye-slash",id:"toggle_whisper"}),this.action===d.CREATE_TOPIC&&this.site.shared_drafts_category_id&&e.push({name:g.default.t("composer.composer_actions.shared_draft.label"),description:g.default.t("composer.composer_actions.shared_draft.desc"),icon:"far-clipboard",id:"shared_draft"});const t=this.get("currentUser.staff")||4===this.get("currentUser.trust_level");return this.action===d.REPLY&&t&&e.push({name:g.default.t("composer.composer_actions.toggle_topic_bump.label"),description:g.default.t("composer.composer_actions.toggle_topic_bump.desc"),icon:"anchor",id:"toggle_topic_bump"}),0===e.length&&e.push({name:g.default.t("composer.composer_actions.create_topic.label"),description:g.default.t("composer.composer_actions.create_topic.desc"),icon:"share",id:"create_topic"}),e},_continuedFromText(e,t){let n=e?.url||t?.url;const r=t?.title;if(!n||!r)return;n=`${location.protocol}//${location.host}${n}`;const i=`[${(0,u.escapeExpression)(r)}](${n})`;return g.default.t("post.continue_discussion",{postLink:i})},_replyFromExisting(e,t,n){this.composer.closeComposer(),this.composer.open({...e,prependText:this._continuedFromText(t,n)})},_openComposer(e){this.composer.closeComposer(),this.composer.open(e)},toggleWhisperSelected(e,t){t.toggleProperty("whisper")},toggleTopicBumpSelected(e,t){t.toggleProperty("noBump")},replyAsNewGroupMessageSelected(e){const t=[],n=this.topic.details;n.allowed_users.forEach((e=>t.push(e.username))),n.allowed_groups.forEach((e=>t.push(e.name))),e.action=d.PRIVATE_MESSAGE,e.recipients=t.join(","),e.archetypeId="private_message",e.skipDraftCheck=!0,this._replyFromExisting(e,y,_)},replyToTopicSelected(e){e.action=d.REPLY,e.topic=_,e.skipDraftCheck=!0,this._openComposer(e)},replyToPostSelected(e){e.action=d.REPLY,e.post=y,e.skipDraftCheck=!0,this._openComposer(e)},replyAsNewTopicSelected(e){h().get("new_topic").then((t=>{t.draft?this.dialog.confirm({message:g.default.t("composer.composer_actions.reply_as_new_topic.confirm"),confirmButtonLabel:"composer.ok_proceed",didConfirm:()=>this._replyAsNewTopicSelect(e)}):this._replyAsNewTopicSelect(e)}))},_replyAsNewTopicSelect(e){e.action=d.CREATE_TOPIC,e.categoryId=this.get("composerModel.topic.category.id"),e.disableScopedCategory=!0,e.skipDraftCheck=!0,this._replyFromExisting(e,y,_)},replyAsPrivateMessageSelected(e){let t;if(y&&!y.get("yours")){const e=y.get("username");e&&(t=e)}else if(this.get("composerModel.topic")){const e=this.get("composerModel.topic.postStream");if(e.get("firstPostPresent")){const n=e.get("posts.firstObject");n&&!n.get("yours")&&n.get("username")&&(t=n.get("username"))}}e.action=d.PRIVATE_MESSAGE,e.recipients=t,e.archetypeId="private_message",e.skipDraftCheck=!0,this._replyFromExisting(e,y,_)},_switchCreate(e,t){e.action=t,e.categoryId=this.get("composerModel.categoryId"),e.topicTitle=this.get("composerModel.title"),e.tags=this.get("composerModel.tags"),e.skipDraftCheck=!0,this._openComposer(e)},createTopicSelected(e){this._switchCreate(e,d.CREATE_TOPIC)},sharedDraftSelected(e){this._switchCreate(e,d.CREATE_SHARED_DRAFT)},actions:{onChange(e){const t=`${(0,l.camelize)(e)}Selected`;this[t]?(this[t](this.composerModel.getProperties("draftKey","draftSequence","title","reply","disableScopedCategory"),this.composerModel),this.contentChanged()):console.error(`No method '${t}' found`)}}},"iconForComposerAction",[r],Object.getOwnPropertyDescriptor(s,"iconForComposerAction"),s),b(s,"content",[i],Object.getOwnPropertyDescriptor(s,"content"),s),s))},59825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(51372),i=n(31158),s=n(93418);const o=(0,n(8620).createTemplateFactory)({id:"FFCxv8r2",block:'[[[10,1],[12],[1,[30,0,["label"]]],[13]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/create-color-row.hbs",isStrictMode:!1}),a=(0,n(31691).setComponentTemplate)(o,s.default.extend({classNames:["create-color-row"],didReceiveAttrs(){this._super(...arguments),(0,r.schedule)("afterRender",(()=>{const e=(0,i.escapeExpression)(this.rowValue);this.element.style.borderLeftColor=e.startsWith("#")?e:`#${e}`}))}}))},50073:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(13182).default.extend({pluginApiIdentifiers:["dropdown-select-box"],classNames:["dropdown-select-box"],selectKitOptions:{autoFilterable:!1,filterable:!1,showFullTitle:!0,headerComponent:"dropdown-select-box/dropdown-select-box-header",caretUpIcon:"caret-up",caretDownIcon:"caret-down",showCaret:!1,customStyle:null,btnCustomClasses:null},modifyComponentForRow:()=>"dropdown-select-box/dropdown-select-box-row"})},92856:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(6264),s=n(41514);const o=(0,n(8620).createTemplateFactory)({id:"ZgHiHwz1",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n  "],[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[35,2],[[30,1]],null]],[1," "]],[1]],null],[1,"\\n\\n  "],[46,[30,0,["selectKit","options","selectedNameComponent"]],null,[["tabindex","item","selectKit","shouldDisplayClearableButton"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[30,0,["shouldDisplayClearableButton"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectKit","options","showCaret"]],[[[1,"    "],[1,[28,[35,2],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"]],[]],null],[1,"  ​\\n"],[13]],["icon"],false,["each","-track-array","d-icon","component","if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/dropdown-select-box/dropdown-select-box-header.hbs",isStrictMode:!1}),a=(0,n(31691).setComponentTemplate)(o,s.default.extend({classNames:["dropdown-select-box-header"],classNameBindings:["btnClassName","btnStyleClass","btnCustomClasses"],showFullTitle:(0,i.readOnly)("selectKit.options.showFullTitle"),customStyle:(0,i.readOnly)("selectKit.options.customStyle"),btnCustomClasses:(0,i.readOnly)("selectKit.options.btnCustomClasses"),btnClassName:(0,r.computed)("showFullTitle",(function(){return"btn "+(this.showFullTitle?"btn-icon-text":"no-text btn-icon")})),btnStyleClass:(0,r.computed)("customStyle",(function(){return this.customStyle?"":"btn-default"})),caretUpIcon:(0,i.readOnly)("selectKit.options.caretUpIcon"),caretDownIcon:(0,i.readOnly)("selectKit.options.caretDownIcon"),caretIcon:(0,r.computed)("selectKit.isExpanded","caretUpIcon","caretDownIcon",(function(){return this.selectKit.isExpanded?this.caretUpIcon:this.caretDownIcon}))}))},1469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(6264),i=n(93418);const s=(0,n(8620).createTemplateFactory)({id:"+IFWM/XJ",block:'[[[41,[30,0,["icons"]],[[[1,"  "],[10,0],[14,0,"icons"],[12],[1,"\\n    "],[10,1],[14,0,"selection-indicator"],[12],[13],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["icons"]]],null]],null],null,[[[1,"      "],[1,[28,[35,3],[[30,1]],null]],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,0],[14,0,"texts"],[12],[1,"\\n  "],[10,1],[14,0,"name"],[12],[1,[28,[35,4],[[30,0,["label"]]],null]],[13],[1,"\\n  "],[10,1],[14,0,"desc"],[12],[1,[28,[35,4],[[30,0,["description"]]],null]],[13],[1,"\\n"],[13]],["icon"],false,["if","each","-track-array","d-icon","html-safe"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/dropdown-select-box/dropdown-select-box-row.hbs",isStrictMode:!1}),o=(0,n(31691).setComponentTemplate)(s,i.default.extend({classNames:["dropdown-select-box-row"],description:(0,r.readOnly)("item.description")}))},87417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r,i=n(48163);const s=n(72818).default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(r={classNames:["email-group-user-chooser-filter"],onPaste(e){if(1===this.selectKit.options.maximum)return;const t=e?.clipboardData;if(!t)return;const n=[];return t.getData("text").split(/[, \n]+/).forEach((e=>{(e=e.replace(/^@+/,"").trim()).length>0&&n.push(e)})),n.length>0?(e.stopPropagation(),e.preventDefault(),this.selectKit.append(n),!1):void 0}},"onPaste",[i.action],Object.getOwnPropertyDescriptor(r,"onPaste"),r),r))},97077:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"1j57LDo0",block:'[[[41,[30,0,["item","isUser"]],[[[1,"  "],[1,[28,[35,1],[[30,0,["item"]]],[["imageSize"],["tiny"]]]],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[10,1],[14,0,"identifier"],[12],[1,[28,[35,2],[[30,0,["item","id"]]],null]],[13],[1,"\\n    "],[10,1],[14,0,"name"],[12],[1,[30,0,["item","name"]]],[13],[1,"\\n  "],[13],[1,"\\n"],[41,[28,[37,3],[[30,0,["item","showUserStatus"]],[30,0,["item","status"]]],null],[[[1,"    "],[8,[39,4],null,[["@status","@showDescription"],[[30,0,["item","status"]],true]],null],[1,"\\n"]],[]],null],[1,"  "],[1,[28,[35,5],[[30,0,["item","id"]]],null]],[1,"\\n"]],[]],[[[41,[30,0,["item","isGroup"]],[[[1,"  "],[1,[28,[35,6],["users"],null]],[1,"\\n  "],[10,0],[12],[1,"\\n    "],[10,1],[14,0,"identifier"],[12],[1,[30,0,["item","id"]]],[13],[1,"\\n    "],[10,1],[14,0,"name"],[12],[1,[30,0,["item","full_name"]]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[1,[28,[35,6],["envelope"],null]],[1,"\\n  "],[10,1],[14,0,"identifier"],[12],[1,[30,0,["item","id"]]],[13],[1,"\\n"]],[]]]],[]]]],[],false,["if","avatar","format-username","and","user-status-message","decorate-username-selector","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/email-group-user-chooser-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["email-group-user-chooser-row"]}))},85617:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(566).default.extend({pluginApiIdentifiers:["email-group-user-chooser"],classNames:["email-group-user-chooser"],classNameBindings:["selectKit.options.fullWidthWrap:full-width-wrap"],valueProperty:"id",nameProperty:"name",modifyComponentForRow:()=>"email-group-user-chooser-row",selectKitOptions:{filterComponent:"email-group-user-chooser-filter",fullWidthWrap:!1,autoWrap:!1},search(){const e=this._super(...arguments);if(e)return e.then((e=>{if(e&&0!==e.length)return e.map((e=>{const t={};return e.username?(t.id=e.username,e.username.includes("@")?t.isEmail=!0:(t.isUser=!0,t.name=e.name,t.showUserStatus=this.showUserStatus)):e.name&&(t.id=e.name,t.name=e.full_name,t.isGroup=!0),{...e,...t}}))}))}})},19862:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(91423),i=n(8620),s=n(31691),o=n(91138),a=n.n(o);const l=(0,s.setComponentTemplate)((0,i.createTemplateFactory)({id:"ywPaSBKP",block:'[[[1,"\\n"],[41,[30,1,["content","shouldShowMoreTip"]],[[[1,"    "],[10,0],[14,0,"filter-for-more"],[12],[1,"\\n      "],[1,[28,[32,0],["select_kit.components.filter_for_more"],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],["@collection"],false,["if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/filter-for-more.js",scope:()=>[r.default],isStrictMode:!0}),a()())},5080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(48163);const i=n(84762).default.extend({pluginApiIdentifiers:["flair-chooser"],classNames:["flair-chooser"],selectKitOptions:{selectedNameComponent:"selected-flair"},modifyComponentForRow:()=>"flair-row",selectedContent:(0,r.computed)("value","content.[]","selectKit.noneItem",(function(){const e=(this.content||[]).findBy(this.selectKit.valueProperty,this.value);return e?this.selectKit.modifySelection(e):this.selectKit.noneItem}))})},83643:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"AVJTShyV",block:'[[[41,[30,0,["item","url"]],[[[1,"  "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["item","name"]],[30,0,["item","url"]],[30,0,["item","bgColor"]],[30,0,["item","color"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,[30,0,["label"]]],[13]],[],false,["if","avatar-flair"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/flair-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["flair-row"]}))},65377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r,i=n(48163),s=n(93474),o=n.n(s);const a=n(30757).default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(r={pluginApiIdentifiers:["form-template-chooser"],classNames:["form-template-chooser"],selectKitOptions:{none:"form_template_chooser.select_template"},init(){this._super(...arguments),this.triggerSearch()},didUpdateAttrs(){this._super(...arguments),this.set("templatesLoaded",!1),this.triggerSearch()},get content(){return this.templates},search(e){return this.get("templatesLoaded")?this._super(e):this._fetchTemplates()},async _fetchTemplates(){if(this.get("loadingTemplates"))return;this.set("templatesLoaded",!1),this.set("loadingTemplates",!0);const e=await o().findAll();let t=this._sortTemplatesByName(e);return this.filteredIds&&(t=t.filter((e=>this.filteredIds.includes(e.id)))),0===t.length&&this.set("selectKit.options.disabled",!0),this.setProperties({templates:t,loadingTemplates:!1,templatesLoaded:!0}),this.templates},_sortTemplatesByName:e=>e.sort(((e,t)=>e.name.localeCompare(t.name)))},"content",[(0,i.computed)("templates")],Object.getOwnPropertyDescriptor(r,"content"),r),r))},53314:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FORMAT:()=>o,default:()=>a});var r=n(6264),i=n(33217),s=n(84762);const o="YYYY-MM-DD HH:mmZ",a=s.default.extend({pluginApiIdentifiers:["future-date-input-selector"],classNames:["future-date-input-selector"],isCustom:(0,r.equal)("value","custom"),userTimezone:null,selectKitOptions:{autoInsertNoneItem:!1,headerComponent:"future-date-input-selector/future-date-input-selector-header"},init(){this._super(...arguments),this.userTimezone=this.currentUser.user_option.timezone},modifyComponentForRow:()=>"future-date-input-selector/future-date-input-selector-row",actions:{onChange(e){if("custom"!==e&&!(0,i.isEmpty)(e)){const{time:t}=this.content.find((t=>t.id===e));t&&this.onChangeInput?.(t.locale("en").format(o))}this.onChange?.(e)}}})},69397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(14413);const i=(0,n(8620).createTemplateFactory)({id:"mKHucq1S",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n"],[41,[30,0,["icons"]],[[[1,"    "],[10,0],[14,0,"future-date-input-selector-icons"],[12],[1,"\\n      "],[42,[28,[37,2],[[28,[37,2],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[35,3],[[30,1]],null]],[1," "]],[1]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[46,[30,0,["selectKit","options","selectedNameComponent"]],null,[["tabindex","item","selectKit"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]]]],null],[1,"\\n\\n"],[41,[30,0,["selectedContent","timeFormatted"]],[[[1,"    "],[10,1],[14,0,"future-date-input-selector-datetime"],[12],[1,"\\n      "],[1,[30,0,["selectedContent","timeFormatted"]]],[1,"\\n    "],[13],[1,"\\n"]],[]],null],[1,"\\n  "],[1,[28,[35,3],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"],[13]],["icon"],false,["if","each","-track-array","d-icon","component"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/future-date-input-selector/future-date-input-selector-header.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:"future-date-input-selector-header"}))},81175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"TVoat/B1",block:'[[[41,[30,0,["item","icon"]],[[[1,"  "],[10,0],[14,0,"future-date-input-selector-icons"],[12],[1,"\\n    "],[1,[28,[35,1],[[30,0,["item","icon"]]],null]],[1,"\\n  "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[14,0,"name"],[12],[1,[30,0,["label"]]],[13],[1,"\\n\\n"],[41,[30,0,["item","timeFormatted"]],[[[1,"  "],[10,1],[14,0,"future-date-input-selector-datetime"],[12],[1,"\\n    "],[1,[30,0,["item","timeFormatted"]]],[1,"\\n  "],[13],[1,"\\n"]],[]],null]],[],false,["if","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/future-date-input-selector/future-date-input-selector-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["future-date-input-selector-row"]}))},73381:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(30757).default.extend({pluginApiIdentifiers:["group-chooser"],classNames:["group-chooser"],selectKitOptions:{allowAny:!1}})},45965:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n(6264),s=n(95801),o=n(83005),a=n.n(o),l=n(82099);const c=n(84762).default.extend({pluginApiIdentifiers:["group-dropdown"],classNames:["group-dropdown"],content:(0,i.reads)("groupsWithShortcut"),valueProperty:null,nameProperty:null,hasManyGroups:(0,i.gte)("content.length",10),enableGroupDirectory:(0,s.setting)("enable_group_directory"),selectKitOptions:{caretDownIcon:"caret-right",caretUpIcon:"caret-down",filterable:"hasManyGroups"},groupsWithShortcut:(0,r.computed)("groups.[]",(function(){const e=[];return(this.enableGroupDirectory||this.get("currentUser.staff"))&&e.push(l.default.t("groups.index.all")),e.concat(this.groups)})),actions:{onChange(e){(this.groups||[]).includes(e)?a().routeToUrl(`/g/${e}`):a().routeToUrl("/g")}}})},79753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(30080).default.extend({pluginApiIdentifiers:["group-notifications-button"],classNames:["group-notifications-button"],selectKitOptions:{i18nPrefix:"groups.notifications"}})},99907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(48163),i=n(96200),s=n.n(i),o=n(56403),a=n(34405),l=n(61369),c=n(3961),u=n(19862),d=n(30757),p=n(70924);const h="MORE_ICONS_COLLECTION",m=d.default.extend({pluginApiIdentifiers:["icon-picker"],classNames:["icon-picker"],init(){this._super(...arguments),this._cachedIconsList=null,this._resultCount=0,(0,a.isDevelopment)()&&(0,c.disableMissingIconWarning)(),this.insertAfterCollection(p.MAIN_COLLECTION,h)},modifyComponentForCollection(e){if(e===h)return u.default},modifyContentForCollection(e){if(e===h)return{shouldShowMoreTip:200===this._resultCount}},content:(0,r.computed)("value.[]",(function(){return(0,l.makeArray)(this.value).map(this._processIcon)})),search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===e&&this._cachedIconsList?.length?(this._resultCount=this._cachedIconsList.length,this._cachedIconsList):(0,o.ajax)("/svg-sprite/picker-search",{data:{filter:e,only_available:this.onlyAvailable}}).then((t=>(t=t.map(this._processIcon),""===e&&(this._cachedIconsList=t),this._resultCount=t.length,t)))},_processIcon(e){const t="object"==typeof e?e.id:e,n=(0,c.convertIconClass)(t),r="#svg-sprites",i="ajax-icon-holder";return"object"==typeof e&&(0===s()(`${r} .${i}`).length&&s()(r).append(`<div class="${i}" style='display: none;'></div>`),s()(`${r} symbol#${n}`).length||s()(`${r} .${i}`).append(`<svg xmlns='http://www.w3.org/2000/svg'>${e.symbol}</svg>`)),{id:t,name:t,icon:n}},willDestroyElement(){s()("#svg-sprites .ajax-icon-holder").remove(),this._super(...arguments),this._cachedIconsList=null,this._resultCount=0,(0,a.isDevelopment)()&&(0,c.enableMissingIconWarning)()},actions:{onChange(e,t){1===this.selectKit.options.maximum&&(e=e.length?e[0]:null,t=t.length?t[0]:null),this.onChange?.(e,t)}}})},17671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(48163),i=n(6264),s=n(61369),o=n(30757),a=n(70924);const l=o.default.extend({pluginApiIdentifiers:["list-setting"],classNames:["list-setting"],choices:null,nameProperty:null,valueProperty:null,content:(0,i.readOnly)("choices"),selectKitOptions:{filterable:!0,selectedChoiceComponent:"selectedChoiceComponent"},modifyComponentForRow(e){if(e===a.MAIN_COLLECTION&&this.settingName?.includes("color"))return"create-color-row"},selectedChoiceComponent:(0,r.computed)("settingName",(function(){return this.settingName?.includes("color")?"selected-choice-color":"selected-choice"})),deselect(e){this.onChangeChoices&&this.onChangeChoices([...new Set([e,...(0,s.makeArray)(this.choices)])]),this._super(...arguments)}})},85781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(48163),i=n(6264),s=n(95801),o=n(61369),a=n(82099),l=n(30757),c=n(70172);const u=l.default.extend(c.default,{pluginApiIdentifiers:["mini-tag-chooser"],attributeBindings:["selectKit.options.categoryId:category-id"],classNames:["mini-tag-chooser"],classNameBindings:["noTags"],noTags:(0,i.empty)("value"),maxTagSearchResults:(0,s.setting)("max_tag_search_results"),maxTagsPerTopic:(0,s.setting)("max_tags_per_topic"),selectKitOptions:{fullWidthOnMobile:!0,filterable:!0,caretDownIcon:"caretIcon",caretUpIcon:"caretIcon",termMatchesForbidden:!1,categoryId:null,everyTag:!1,closeOnChange:!1,maximum:"maxTagsPerTopic",autoInsertNoneItem:!1,useHeaderFilter:!1},modifyComponentForRow(e,t){return this.getValue(t)!==this.selectKit.filter||t.count?"tag-row":"select-kit/select-kit-row"},modifyNoSelection(){return this.selectKit.options.minimum>0?this.defaultItem(null,a.default.t("tagging.choose_for_topic_required",{count:this.selectKit.options.minimum})):this.defaultItem(null,a.default.t("tagging.choose_for_topic"))},allowAnyTag:(0,i.or)("allowCreate","site.can_create_tag"),caretIcon:(0,r.computed)("value.[]","content.[]",(function(){const e=this.selectKit.options.maximum;return e&&(0,o.makeArray)(this.value).length>=parseInt(e,10)?null:"plus"})),content:(0,r.computed)("value.[]",(function(){let e=(0,o.makeArray)(this.value);return this.selectKit.options.hiddenValues&&(e=e.filter((e=>!this.selectKit.options.hiddenValues.includes(e)))),e.map((e=>this.defaultItem(e,e)))})),search(e){const t={q:e||"",limit:this.maxTagSearchResults,categoryId:this.selectKit.options.categoryId};return this.value&&(t.selected_tags=this.value.slice(0,100)),this.selectKit.options.everyTag||(t.filterForInput=!0),this.searchTags("/tags/filter/search",t,this._transformJson)},_transformJson(e,t){if(e.isDestroyed||e.isDestroying)return[];let n=t.results;return e.setProperties({termMatchesForbidden:!!t.forbidden,termMatchErrorMessage:t.forbidden_message}),e.siteSettings.tags_sort_alphabetically&&(n=n.sort(((e,t)=>e.text.localeCompare(t.text)))),t.required_tag_group?e.set("selectKit.options.translatedFilterPlaceholder",a.default.t("tagging.choose_for_topic_required_group",{count:t.required_tag_group.min_count,name:t.required_tag_group.name})):e.set("selectKit.options.translatedFilterPlaceholder",null),n.filter((t=>!(0,o.makeArray)(e.tags).includes(t.id)))}})},68564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(31691),i=n.n(r),s=n(48163),o=n(6264);const a=(0,n(8620).createTemplateFactory)({id:"UShD42u2",block:'[[[41,[30,0,["tags"]],[[[1,"  "],[10,0],[14,0,"mini-tag-chooser-selected-collection selected-tags"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["tags"]]],null]],null],null,[[[1,"      "],[8,[39,3],[[24,"tabindex","0"],[16,0,[30,1,["classNames"]]]],[["@translatedTitle","@icon","@action"],[[30,1,["value"]],"times",[28,[37,4],[[28,[37,5],[[30,0],[30,0,["selectKit","deselect"]]],null],[30,1,["value"]]],null]]],[["default"],[[[[1,"\\n        "],[1,[28,[35,6],[[30,1,["value"]]],[["noHref"],[true]]]],[1,"\\n      "]],[]]]]],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["tag"],false,["if","each","-track-array","d-button","fn","action","discourse-tag"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/mini-tag-chooser/selected-collection.hbs",isStrictMode:!1}),l=(0,r.setComponentTemplate)(a,i().extend({tagName:"",selectedTags:(0,o.reads)("collection.content.selectedTags.[]"),tags:(0,s.computed)("selectedTags.[]","selectKit.filter",(function(){if(!this.selectedTags)return[];let e=this.selectedTags;return e.length>=20&&this.selectKit.filter?e=e.filter((e=>e.includes(this.selectKit.filter))):e.length>=20&&(e=e.slice(0,20)),e.map((e=>({value:e,classNames:"selected-tag"})))}))}))},30757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n(51372),s=n(33217),o=n(61369),a=n(70924);const l=(0,n(8620).createTemplateFactory)({id:"9JdzBPfG",block:'[[[41,[51,[30,0,["selectKit","isHidden"]]],[[[1,"  "],[46,[30,0,["selectKit","options","headerComponent"]],null,[["tabindex","value","selectedContent","selectKit","id"],[[30,0,["tabindex"]],[30,0,["value"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[28,[37,2],[[30,0,["selectKit","uniqueID"]],"-header"],null]]],null],[1,"\\n\\n  "],[8,[39,3],null,[["@selectKit","@id"],[[30,0,["selectKit"]],[28,[37,2],[[30,0,["selectKit","uniqueID"]],"-body"],null]]],[["default"],[[[[1,"\\n"],[41,[51,[30,0,["selectKit","options","useHeaderFilter"]]],[[[1,"      "],[46,[30,0,["selectKit","options","filterComponent"]],null,[["selectKit","id"],[[30,0,["selectKit"]],[28,[37,2],[[30,0,["selectKit","uniqueID"]],"-filter"],null]]],null],[1,"\\n\\n"],[41,[30,0,["selectedContent","length"]],[[[1,"        "],[10,0],[14,0,"selected-content"],[12],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["selectedContent"]]],null]],null],null,[[[1,"            "],[46,[30,0,["selectKit","options","selectedChoiceComponent"]],null,[["item","selectKit"],[[30,1],[30,0,["selectKit"]]]],null],[1,"\\n"]],[1]],null],[1,"        "],[13],[1,"\\n"]],[]],null]],[]],null],[1,"\\n"],[42,[28,[37,6],[[28,[37,6],[[30,0,["collections"]]],null]],null],null,[[[1,"      "],[46,[28,[37,7],[[30,2,["identifier"]],[30,0,["selectKit"]]],null],null,[["collection","selectKit","value"],[[30,2],[30,0,["selectKit"]],[30,0,["value"]]]],null],[1,"\\n"]],[2]],null],[1,"\\n"],[41,[30,0,["selectKit","filter"]],[[[41,[30,0,["selectKit","hasNoContent"]],[[[1,"        "],[10,1],[14,0,"no-content"],[14,"role","alert"],[12],[1,"\\n          "],[1,[28,[35,8],["select_kit.no_content"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"results-count"],[14,"role","alert"],[12],[1,"\\n          "],[1,[28,[35,8],["select_kit.results_count"],[["count"],[[30,0,["mainCollection","length"]]]]]],[1,"\\n        "],[13],[1,"\\n"]],[]]]],[]],null],[1,"  "]],[]]]]],[1,"\\n"]],[]],null]],["item","collection"],false,["unless","component","concat","select-kit/select-kit-body","if","each","-track-array","component-for-collection","i18n"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/multi-select.hbs",isStrictMode:!1}),c=(0,n(31691).setComponentTemplate)(l,a.default.extend({pluginApiIdentifiers:["multi-select"],classNames:["multi-select"],multiSelect:!0,selectKitOptions:{none:"select_kit.default_header_text",clearable:!0,filterable:!0,filterIcon:null,closeOnChange:!1,autoInsertNoneItem:!1,headerComponent:"multi-select/multi-select-header",filterComponent:"multi-select/multi-select-filter",autoFilterable:!0,caretDownIcon:"caretIcon",caretUpIcon:"caretIcon",useHeaderFilter:!1},caretIcon:(0,r.computed)("value.[]",(function(){const e=this.selectKit.options.maximum;return e&&(0,o.makeArray)(this.value).length>=parseInt(e,10)?null:"plus"})),search(e){return this._super(e).filter((e=>!(0,o.makeArray)(this.selectedContent).includes(e)))},append(e){const t=e.map((e=>{const t=this.defaultItem(e,e),n=this.findValue(this.mainCollection,t)||this.findName(this.mainCollection,t);if(n){if(this.validateSelect(n))return this.getValue(n)}else if(this.validateCreate(e,this.content))return e})).filter(Boolean),n=(0,o.makeArray)(this.value).concat(t),r=(0,o.makeArray)(this.selectedContent).concat((0,o.makeArray)(t));this.selectKit.change(n,r)},deselect(e){this.clearErrors();const t=this.selectedContent.filter((t=>this.getValue(e)!==this.getValue(t)));this.selectKit.change(this.valueProperty?t.mapBy(this.valueProperty):t,t)},select(e,t){if(this.selectKit.hasSelection&&1===this.selectKit.options.maximum)return this.selectKit.deselectByValue(this.getValue(this.selectedContent.firstObject)),void(0,i.next)((()=>{this.selectKit.select(e,t)}));if((0,s.isPresent)(e)){if(this.findValue(this.mainCollection,this.selectKit.valueProperty?t:e)&&!this.validateSelect(t))return;const n=(0,o.makeArray)(this.value).concat((0,o.makeArray)(e)),r=(0,o.makeArray)(this.selectedContent).concat((0,o.makeArray)(t));this.selectKit.change([...new Set(n)],r.length?r:(0,o.makeArray)(this.defaultItem(e,e)))}else{if(!this.validateSelect(this.selectKit.highlighted))return;this.selectKit.change((0,o.makeArray)(this.value).concat((0,o.makeArray)(this.getValue(this.selectKit.highlighted))),(0,o.makeArray)(this.selectedContent).concat((0,o.makeArray)(this.selectKit.highlighted)))}},selectedContent:(0,r.computed)("value.[]","content.[]","selectKit.noneItem",(function(){const e=(0,o.makeArray)(this.value).map((e=>this.selectKit.options.castInteger&&this._isNumeric(e)?Number(e):e));if(e.length){let t=[];return e.forEach((e=>{if(this.selectKit.valueProperty){const n=(0,o.makeArray)(this.content).findBy(this.selectKit.valueProperty,e);n&&t.push(n)}else(0,o.makeArray)(this.content).includes(e)&&t.push(e)})),this.selectKit.modifySelection(t)}return null})),_onKeydown(e){if("Enter"===e.code&&e.target.classList.contains("selected-name"))return e.stopPropagation(),this.selectKit.deselectByValue(e.target.dataset.value),!1;if("Backspace"===e.code){e.stopPropagation();const t=this.getFilterInput();if(t&&0===t.value.length){const e=this.element.querySelectorAll(".select-kit-header .choice.select-kit-selected-name");if(e.length){const t=e[e.length-1];t&&(t===document.activeElement?this.deselect(this.selectedContent.lastObject):t.focus())}}}return!0}}))},36928:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(31691),i=n.n(r),s=n(48163),o=n(61369),a=n(16344);const l=(0,n(8620).createTemplateFactory)({id:"lSkFaRKG",block:'[[[10,1],[14,0,"formatted-selection"],[12],[1,"\\n  "],[1,[30,0,["formattedContent"]]],[1,"\\n"],[13]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/multi-select/format-selected-content.hbs",isStrictMode:!1}),c=(0,r.setComponentTemplate)(l,i().extend(a.default,{tagName:"",content:null,selectKit:null,formattedContent:(0,s.computed)("content",(function(){return this.content?(0,o.makeArray)(this.content).map((e=>this.getName(e))).join(", "):this.getName(this.selectKit.noneItem)}))}))},72818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(48163),i=n(33217),s=n(57555),o=n(64467);const a=(0,n(8620).createTemplateFactory)({id:"jgFsDi1D",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"\\n  "],[8,[39,1],[[16,"tabindex",0],[24,0,"filter-input"],[16,"placeholder",[30,0,["computedPlaceholder"]]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,3,"filter-input-search"],[16,"spellcheck",false],[4,[38,3],["paste",[28,[37,4],[[30,0],"onPaste"],null]],null],[4,[38,3],["keydown",[28,[37,4],[[30,0],"onKeydown"],null]],null],[4,[38,3],["keyup",[28,[37,4],[[30,0],"onKeyup"],null]],null],[4,[38,3],["input",[28,[37,4],[[30,0],"onInput"],null]],null]],[["@value","@type"],[[28,[37,2],[[30,0,["selectKit","filter"]]],null],"search"]],null],[1,"\\n\\n"],[41,[30,0,["selectKit","options","filterIcon"]],[[[1,"    "],[1,[28,[35,6],[[30,0,["selectKit","options","filterIcon"]]],[["class"],["filter-icon"]]]],[1,"\\n"]],[]],null]],[]],null]],[],false,["unless","input","readonly","on","action","if","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/multi-select/multi-select-filter.hbs",isStrictMode:!1});var l;function c(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const u=(0,n(31691).setComponentTemplate)(a,o.default.extend((c(l={classNames:["multi-select-filter"],computedPlaceholder(e,t){return this.hidePlaceholderWithSelection&&t||(0,i.isEmpty)(e)?"":e},onPaste(e){const t=e?.clipboardData;if(!t)return;const n=t.getData("text").split("|").filter(Boolean);return n.length>1?(e.stopPropagation(),e.preventDefault(),this.selectKit.append(n),!1):void 0}},"computedPlaceholder",[(0,s.default)("placeholder","selectKit.hasSelection")],Object.getOwnPropertyDescriptor(l,"computedPlaceholder"),l),c(l,"onPaste",[r.action],Object.getOwnPropertyDescriptor(l,"onPaste"),l),l)))},98470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(6264),s=n(98117);const o=(0,n(8620).createTemplateFactory)({id:"qItZlX3M",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1,"    "],[1,[28,[35,2],[[30,1]],null]],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["selectKit","options","useHeaderFilter"]],[[[1,"    "],[10,0],[14,0,"select-kit-header--filter"],[12],[1,"\\n"],[41,[30,0,["selectedContent","length"]],[[[42,[28,[37,1],[[28,[37,1],[[30,0,["selectedContent"]]],null]],null],null,[[[1,"          "],[46,[30,0,["selectKit","options","selectedChoiceComponent"]],null,[["item","selectKit"],[[30,2],[30,0,["selectKit"]]]],null],[1,"\\n"]],[2]],null]],[]],null],[1,"\\n      "],[46,[30,0,["selectKit","options","filterComponent"]],null,[["selectKit","id","hidePlaceholderWithSelection"],[[30,0,["selectKit"]],[28,[37,5],[[30,0,["selectKit","uniqueID"]],"-filter"],null],true]],null],[1,"\\n    "],[13],[1,"\\n"]],[]],[[[1,"    "],[8,[39,6],null,[["@content","@selectKit"],[[28,[37,7],[[30,0,["selectedContent"]],[30,0,["selectKit","noneItem"]]],null],[30,0,["selectKit"]]]],null],[1,"\\n\\n    "],[1,[28,[35,2],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"]],[]]],[13]],["icon","item"],false,["each","-track-array","d-icon","if","component","concat","multi-select/format-selected-content","or"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/multi-select/multi-select-header.hbs",isStrictMode:!1}),a=(0,n(31691).setComponentTemplate)(o,s.default.extend({tagName:"summary",classNames:["multi-select-header"],attributeBindings:["ariaLabel:aria-label"],caretUpIcon:(0,i.reads)("selectKit.options.caretUpIcon"),caretDownIcon:(0,i.reads)("selectKit.options.caretDownIcon"),ariaLabel:(0,i.reads)("selectKit.options.headerAriaLabel"),caretIcon:(0,r.computed)("selectKit.isExpanded","caretUpIcon","caretDownIcon",(function(){return this.selectKit.isExpanded?this.caretUpIcon:this.caretDownIcon}))}))},54779:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(48163),i=n(24434),s=n(41276),o=n(46115);const a=(0,n(8620).createTemplateFactory)({id:"BhWpKxN5",block:'[[[11,0],[24,"tabindex","0"],[16,"title",[30,0,["title"]]],[16,"data-value",[30,0,["value"]]],[16,"data-name",[30,0,["name"]]],[24,0,"select-kit-selected-name selected-name choice"],[4,[38,0],["click",[30,0,["onSelectedNameClick"]]],null],[12],[1,"\\n  "],[10,0],[14,0,"body"],[12],[1,"\\n    "],[1,[30,0,["badge"]]],[1,"\\n    "],[1,[28,[35,1],["times"],null]],[1,"\\n  "],[13],[1,"\\n"],[13]],[],false,["on","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/multi-select/selected-category.hbs",isStrictMode:!1}),l=(0,n(31691).setComponentTemplate)(a,o.default.extend({classNames:["selected-category"],badge:(0,r.computed)("item",(function(){return(0,i.htmlSafe)((0,s.categoryBadgeHTML)(this.item,{allowUncategorized:!0,link:!1}))}))}))},37779:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r,i=n(24434),s=n(57555);const o=n(46115).default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(r={classNames:["select-kit-selected-color"],footerContent:e=>(0,i.htmlSafe)(`<span class="color-preview" style="background:#${e}"></span>`)},"footerContent",[(0,s.default)("name")],Object.getOwnPropertyDescriptor(r,"footerContent"),r),r))},4328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(24434),i=n(41276),s=n(57555),o=n(93699);const a=(0,n(8620).createTemplateFactory)({id:"BDzPyfF4",block:'[[[41,[30,0,["category"]],[[[1,"  "],[10,0],[14,0,"category-status"],[14,"aria-hidden","true"],[12],[1,"\\n"],[41,[30,0,["hasParentCategory"]],[[[41,[51,[30,0,["hideParentCategory"]]],[[[1,"        "],[1,[30,0,["badgeForParentCategory"]]],[1,"\\n"]],[]],null]],[]],null],[1,"    "],[1,[30,0,["badgeForCategory"]]],[1,"\\n  "],[13],[1,"\\n\\n"],[41,[30,0,["shouldDisplayDescription"]],[[[1,"    "],[10,0],[14,0,"category-desc"],[14,"aria-hidden","true"],[12],[1,[28,[35,2],[[30,0,["descriptionText"]]],[["htmlSafe"],["true"]]]],[13],[1,"\\n"]],[]],null]],[]],[[[1,"  "],[1,[28,[35,3],[[30,0,["label"]]],null]],[1,"\\n"]],[]]]],[],false,["if","unless","dir-span","html-safe"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/none-category-row.hbs",isStrictMode:!1});var l;const c=(0,n(31691).setComponentTemplate)(a,o.default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(l={classNames:"none category-row",badgeForCategory(e){return(0,r.htmlSafe)((0,i.categoryBadgeHTML)(e,{link:this.categoryLink,allowUncategorized:!0,hideParent:!0}))}},"badgeForCategory",[(0,s.default)("category")],Object.getOwnPropertyDescriptor(l,"badgeForCategory"),l),l)))},30080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(48163),i=n(20678),s=n(82099);const o=n(50073).default.extend({pluginApiIdentifiers:["notifications-button"],classNames:["notifications-button"],content:i.allLevels,nameProperty:"key",selectKitOptions:{autoFilterable:!1,filterable:!1,i18nPrefix:"",i18nPostfix:""},modifyComponentForRow:()=>"notifications-button/notifications-button-row",modifySelection(e){e=e||{};const{i18nPrefix:t,i18nPostfix:n}=this.selectKit.options,i=s.default.t(`${t}.${this.buttonForValue.key}${n}.title`);return(0,r.setProperties)(e,{title:i,label:i,icon:this.buttonForValue.icon}),e},buttonForValue:(0,r.computed)("value",(function(){return(0,i.buttonDetails)(this.value)}))})},24270:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(6264),s=n(31158),o=n(82099);const a=n(1469).default.extend({classNames:["notifications-button-row"],i18nPrefix:(0,i.readOnly)("selectKit.options.i18nPrefix"),i18nPostfix:(0,i.readOnly)("selectKit.options.i18nPostfix"),label:(0,r.computed)("_start",(function(){return(0,s.escapeExpression)(o.default.t(`${this._start}.title`))})),icons:(0,r.computed)("item.icon",(function(){return[(0,s.escapeExpression)(this.item.icon)]})),description:(0,r.computed)("_start",(function(){return this.site&&this.site.mobileView?null:(0,s.escapeExpression)(o.default.t(`${this._start}.description`))})),_start:(0,r.computed)("i18nPrefix","i18nPostfix","rowName",(function(){return`${this.i18nPrefix}.${this.rowName}${this.i18nPostfix}`}))})},13134:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(82099);const s=n(50073).default.extend({classNames:["notifications-filter"],nameProperty:"label",content:(0,r.computed)((function(){return[{id:"all",label:i.default.t("user.user_notifications.filters.all")},{id:"read",label:i.default.t("user.user_notifications.filters.read")},{id:"unread",label:i.default.t("user.user_notifications.filters.unread")}]})),selectKitOptions:{headerComponent:"notifications-filter/notifications-filter-header"}})},3323:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(95801),i=n(57555),s=n(92856);const o=(0,n(8620).createTemplateFactory)({id:"b5lU6FU8",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n  "],[10,1],[14,0,"filter-text"],[12],[1,"\\n    "],[1,[28,[35,0],["user.user_notifications.filters.filter_by"],null]],[1,"\\n  "],[13],[1,"\\n  "],[10,1],[14,0,"header-text"],[12],[1,"\\n    "],[1,[28,[35,0],[[30,0,["label"]]],null]],[1,"\\n  "],[13],[1,"\\n  "],[1,[28,[35,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"],[13]],[],false,["i18n","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/notifications-filter/notifications-filter-header.hbs",isStrictMode:!1});var a,l;const c=(0,n(31691).setComponentTemplate)(o,s.default.extend((a=(0,i.default)("selectKit.isExpanded"),function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(l={classNames:["notifications-filter-header","btn-flat"],label:(0,r.fmt)("value","user.user_notifications.filters.%@"),caretIcon:e=>e?"caret-up":"caret-down"},"caretIcon",[a],Object.getOwnPropertyDescriptor(l,"caretIcon"),l),l)))},31205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(6264),i=n(82099);const s=n(50073).default.extend({classNames:["period-chooser"],classNameBindings:["showPeriods::hidden"],content:(0,r.oneWay)("site.periods"),value:(0,r.readOnly)("period"),valueProperty:null,nameProperty:null,showPeriods:!0,modifyComponentForRow:()=>"period-chooser/period-chooser-row",selectKitOptions:{filterable:!1,autoFilterable:!1,fullDay:"fullDay",customStyle:!0,headerComponent:"period-chooser/period-chooser-header",headerAriaLabel:i.default.t("period_chooser.aria_label")},actions:{onChange(e){this.action?this.action(e):this.onChange?.(e)}}})},50285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(57555),i=n(92856);const s=(0,n(8620).createTemplateFactory)({id:"Myq/Xl2R",block:'[[[10,"h2"],[14,0,"selected-name"],[15,"title",[30,0,["title"]]],[12],[1,"\\n  "],[1,[28,[35,0],[[30,0,["value"]]],[["showDateRange","fullDay"],[true,[30,0,["selectKit","options","fullDay"]]]]]],[1,"\\n"],[13],[1,"\\n\\n"],[1,[28,[35,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]]],[],false,["period-title","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/period-chooser/period-chooser-header.hbs",isStrictMode:!1});var o;const a=(0,n(31691).setComponentTemplate)(s,i.default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(o={classNames:["period-chooser-header","btn-flat"],caretIcon:e=>e?"caret-up":"caret-down"},"caretIcon",[(0,r.default)("selectKit.isExpanded")],Object.getOwnPropertyDescriptor(o,"caretIcon"),o),o)))},59529:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(57555),i=n(82099),s=n(1469);const o=(0,n(8620).createTemplateFactory)({id:"DJA/Yl+M",block:'[[[10,1],[14,0,"selection-indicator"],[12],[13],[1,"\\n\\n"],[10,1],[14,0,"period-title"],[12],[1,"\\n  "],[1,[28,[35,0],[[30,0,["rowValue"]]],[["showDateRange","fullDay"],[true,[30,0,["selectKit","options","fullDay"]]]]]],[1,"\\n"],[13]],[],false,["period-title"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/period-chooser/period-chooser-row.hbs",isStrictMode:!1});var a;const l=(0,n(31691).setComponentTemplate)(o,s.default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(a={classNames:["period-chooser-row"],title:e=>i.default.t(`filters.top.${e||"this_week"}`).title},"title",[(0,r.default)("rowName")],Object.getOwnPropertyDescriptor(a,"title"),a),a)))},64126:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(31691),i=n.n(r),s=n(57555),o=n(82099);const a=(0,n(8620).createTemplateFactory)({id:"XB+2KHqy",block:'[[[10,2],[14,0,"reason"],[12],[1,"\\n  "],[8,[39,0],null,[["@value","@topic"],[[30,0,["pinned"]],[30,0,["topic"]]]],null],[1,"\\n  "],[10,1],[14,0,"text"],[12],[1,[28,[35,1],[[30,0,["reasonText"]]],null]],[13],[1,"\\n"],[13]],[],false,["pinned-options","html-safe"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/pinned-button.hbs",isStrictMode:!1});var l,c,u;function d(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const p=(0,r.setComponentTemplate)(a,i().extend((l=(0,s.default)("topic.pinned_globally","pinned"),c=(0,s.default)("pinned","topic.deleted","topic.unpinned"),d(u={pluginApiIdentifiers:["pinned-button"],descriptionKey:"help",classNames:"pinned-button",classNameBindings:["isHidden"],reasonText(e,t){const n=`topic_statuses.${t?"pinned"+(e?"_globally":""):"unpinned"}.help`;return o.default.t(n)},isHidden:(e,t,n)=>t||!e&&!n},"reasonText",[l],Object.getOwnPropertyDescriptor(u,"reasonText"),u),d(u,"isHidden",[c],Object.getOwnPropertyDescriptor(u,"isHidden"),u),u)))},14330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r,i=n(48163),s=n(24434),o=n(82099),a=n(50073);const l="unpinned",c=a.default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(r={pluginApiIdentifiers:["pinned-options"],classNames:["pinned-options"],selectKitOptions:{showCaret:!0},modifySelection(e){const t=this.get("topic.pinned_globally"),n=this.value?"pinned"+(t?"_globally":""):l,r=o.default.t(`topic_statuses.${n}.title`);return e.label=(0,s.htmlSafe)(`<span>${r}</span>`),e.title=r,e.name=n,e.icon="thumbtack"+(n===l?" unpinned":""),e},content:(0,i.computed)((function(){const e=this.topic.pinned_globally?"_globally":"";return[{id:"pinned",name:o.default.t(`topic_statuses.pinned${e}.title`),description:this.site.mobileView?null:o.default.t(`topic_statuses.pinned${e}.help`),icon:"thumbtack"},{id:l,name:o.default.t("topic_statuses.unpinned.title"),icon:"thumbtack unpinned",description:this.site.mobileView?null:o.default.t("topic_statuses.unpinned.help")}]})),onChange(e){const t=this.topic;return e===l?t.clearPin():t.rePin()}},"onChange",[i.action],Object.getOwnPropertyDescriptor(r,"onChange"),r),r))},53127:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(57490).default.extend({pluginApiIdentifiers:["search-advanced-category-chooser"],classNames:["search-advanced-category-chooser"],selectKitOptions:{allowUncategorized:!0,clearable:!0,none:"category.all",displayCategoryDescription:!1,permissionType:null}})},70924:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ERRORS_COLLECTION:()=>k,MAIN_COLLECTION:()=>v,default:()=>S});var r=n(31691),i=n.n(r),s=n(48163),o=n.n(s),a=n(78582),l=n(39791),c=n.n(l),u=n(51372),d=n(33217),p=n(83844),h=n(10425),m=n(34405),g=n(56111),f=n(54736),b=n(61369),_=n(82099),y=n(99139),w=n(16344);const v="MAIN_COLLECTION",k="ERRORS_COLLECTION",x=Object.freeze({}),T=c().create({concatenatedProperties:["selectKitOptions"],selectKitOptions:x}),S=i().extend(T,y.default,w.default,{tagName:"details",pluginApiIdentifiers:["select-kit"],classNames:["select-kit"],classNameBindings:["selectKit.isLoading:is-loading","selectKit.isExpanded:is-expanded","selectKit.options.disabled:is-disabled","selectKit.isHidden:is-hidden","selectKit.hasSelection:has-selection"],tabindex:0,content:null,value:null,selectKit:null,mainCollection:null,errorsCollection:null,options:null,valueProperty:"id",nameProperty:"name",singleSelect:!1,multiSelect:!1,labelProperty:null,titleProperty:null,langProperty:null,init(){this._super(...arguments),this._searchPromise=null,this.set("errorsCollection",[]),this._collections=[k,v],!this.options&&this.set("options",o().create({})),this.handleDeprecations(),this.set("selectKit",o().create({uniqueID:this.id||(0,a.guidFor)(this),valueProperty:this.valueProperty,nameProperty:this.nameProperty,labelProperty:this.labelProperty,titleProperty:this.titleProperty,langProperty:this.langProperty,options:o().create(),isLoading:!1,isHidden:!1,isExpanded:!1,isFilterExpanded:!1,enterDisabled:!1,hasSelection:!1,hasNoContent:!0,highlighted:null,noneItem:null,newItem:null,filter:null,modifyContent:(0,u.bind)(this,this._modifyContentWrapper),modifySelection:(0,u.bind)(this,this._modifySelectionWrapper),modifyComponentForRow:(0,u.bind)(this,this._modifyComponentForRowWrapper),modifyContentForCollection:(0,u.bind)(this,this._modifyContentForCollectionWrapper),modifyComponentForCollection:(0,u.bind)(this,this._modifyComponentForCollectionWrapper),toggle:(0,u.bind)(this,this._toggle),close:(0,u.bind)(this,this._close),open:(0,u.bind)(this,this._open),highlightNext:(0,u.bind)(this,this._highlightNext),highlightPrevious:(0,u.bind)(this,this._highlightPrevious),highlightLast:(0,u.bind)(this,this._highlightLast),highlightFirst:(0,u.bind)(this,this._highlightFirst),deselectLast:(0,u.bind)(this,this._deselectLast),change:(0,u.bind)(this,this._onChangeWrapper),select:(0,u.bind)(this,this.select),deselect:(0,u.bind)(this,this.deselect),deselectByValue:(0,u.bind)(this,this.deselectByValue),append:(0,u.bind)(this,this.append),cancelSearch:(0,u.bind)(this,this._cancelSearch),triggerSearch:(0,u.bind)(this,this.triggerSearch),focusFilter:(0,u.bind)(this,this._focusFilter),onOpen:(0,u.bind)(this,this._onOpenWrapper),onClose:(0,u.bind)(this,this._onCloseWrapper),onInput:(0,u.bind)(this,this._onInput),onClearSelection:(0,u.bind)(this,this._onClearSelection),onHover:(0,u.bind)(this,this._onHover),onKeydown:(0,u.bind)(this,this._onKeydownWrapper),mainElement:(0,u.bind)(this,this._mainElement),headerElement:(0,u.bind)(this,this._headerElement),bodyElement:(0,u.bind)(this,this._bodyElement)}))},_modifyComponentForRowWrapper(e,t){return this.modifyComponentForRow(e,t)||"select-kit/select-kit-row"},modifyComponentForRow(){},_modifyContentForCollectionWrapper(e){let t=this.modifyContentForCollection(e);return t||(t=e===k?this.errorsCollection:this.mainCollection),t},modifyContentForCollection(){},_modifyComponentForCollectionWrapper(e){let t=this.modifyComponentForCollection(e);return t||(t=e===k?"select-kit/errors-collection":"select-kit/select-kit-collection"),t},modifyComponentForCollection(){},didUpdateAttrs(){this._super(...arguments),this.handleDeprecations()},didInsertElement(){this._super(...arguments),this.selectKit.options.expandedOnInsert&&this._open()},click(e){e.preventDefault(),e.stopPropagation()},willDestroyElement(){this._super(...arguments),this._cancelSearch(),this.popper&&(this.popper.destroy(),this.popper=null)},didReceiveAttrs(){this._super(...arguments);const e=this._resolveDeprecatedOptions(),t=Object.assign({},...this.selectKitOptions);Object.keys(t).forEach((n=>{if((0,d.isPresent)(this.options[n]))return void this.selectKit.options.set(n,this.options[n]);if((0,d.isPresent)(e[`options.${n}`]))return void this.selectKit.options.set(n,e[`options.${n}`]);const r=t[n];if("componentForRow"!==n&&"contentForCollection"!==n&&"componentForCollection"!==n){if("string"==typeof r&&!r.includes(".")&&r in this){const e=(0,s.get)(this,r);if("function"!=typeof e)return void this.selectKit.options.set(n,e)}this.selectKit.options.set(n,r)}else"string"==typeof r?this.selectKit.options.set(n,(()=>r)):this.selectKit.options.set(n,(0,u.bind)(this,r))})),this.selectKit.setProperties({hasSelection:!(0,d.isEmpty)(this.value),noneItem:this._modifyNoSelectionWrapper(),newItem:null}),this.selectKit.isExpanded&&this.triggerSearch(),this.computeContent&&(this._deprecated("The `computeContent()` function is deprecated pass a `content` attribute or define a `content` computed property in your component."),this.set("content",this.computeContent()))},selectKitOptions:{allowAny:!1,showFullTitle:!0,none:null,translatedNone:null,filterable:!1,autoFilterable:"autoFilterable",filterIcon:"search",filterPlaceholder:null,translatedFilterPlaceholder:null,icon:null,icons:null,maximum:null,maximumLabel:null,minimum:null,autoInsertNoneItem:!0,closeOnChange:!0,useHeaderFilter:!1,limitMatches:null,placement:document.documentElement.classList.contains("rtl")?"bottom-end":"bottom-start",verticalOffset:3,filterComponent:"select-kit/select-kit-filter",selectedNameComponent:"selected-name",selectedChoiceComponent:"selected-choice",castInteger:!1,focusAfterOnChange:!0,triggerOnChangeOnTab:!0,autofocus:!1,placementStrategy:null,mobilePlacementStrategy:null,desktopPlacementStrategy:null,hiddenValues:null,disabled:!1,expandedOnInsert:!1,formName:null},autoFilterable:(0,s.computed)("content.[]","selectKit.filter",(function(){return this.selectKit.filter&&this.options.autoFilterable&&this.content.length>15})),collections:(0,s.computed)("selectedContent.[]","mainCollection.[]","errorsCollection.[]",(function(){return this._collections.map((e=>({identifier:e,content:this.selectKit.modifyContentForCollection(e)})))})),createContentFromInput:e=>e,validateCreate(e,t){return this.clearErrors(),e.length>0&&t&&!t.map((e=>this.getValue(e))).includes(e)&&!(0,b.makeArray)(this.value).includes(e)},validateSelect(){this.clearErrors();const e=(0,b.makeArray)(this.value),t=this.selectKit.options.maximum;if(t&&e.length>=t){const e=this.selectKit.options.maximumLabel||"select_kit.max_content_reached";return this.addError(_.default.t(e,{count:t})),!1}return!0},addError(e){this.errorsCollection.pushObject(e),this._safeAfterRender((()=>this.popper&&this.popper.update()))},clearErrors(){!this.element||this.isDestroyed||this.isDestroying||this.set("errorsCollection",[])},prependCollection(e){this._collections.unshift(e)},appendCollection(e){this._collections.push(e)},insertCollectionAtIndex(e,t){this._collections.insertAt(t,e)},insertBeforeCollection(e,t){const n=this._collections.indexOf(e);this.insertCollectionAtIndex(t,n-1)},insertAfterCollection(e,t){const n=this._collections.indexOf(e);this.insertCollectionAtIndex(t,n+1)},_onInput(e){this.popper&&this.popper.update(),this._searchPromise&&(0,u.cancel)(this._searchPromise),this.selectKit.set("isLoading",!0),(0,g.default)(this,this._debouncedInput,e.target.value,m.INPUT_DELAY)},_debouncedInput(e){this.selectKit.set("filter",e),this.triggerSearch(e)},_onChangeWrapper(e,t){return this.selectKit.set("filter",null),new h.Promise((n=>{this.selectKit.valueProperty||this.selectKit.noneItem!==e||(e=null,t=[]),e=(0,b.makeArray)(e),t=(0,b.makeArray)(t),this.multiSelect&&(t=t.filter((e=>e!==this.newItem&&e!==this.noneItem&&null!==this.getValue(e))),1===this.selectKit.options.maximum&&(e=e.slice(0,1),t=t.slice(0,1))),this.singleSelect&&(e=(0,d.isPresent)(e.firstObject)?e.firstObject:null,t=(0,d.isPresent)(t.firstObject)?t.firstObject:null),this._boundaryActionHandler("onChange",e,t),(0,y.applyOnChangePluginApiCallbacks)(e,t,this),n(t)})).finally((()=>{this.isDestroying||this.isDestroyed||((this.selectKit.options.closeOnChange||(0,d.isPresent)(e)&&1===this.selectKit.options.maximum)&&this.selectKit.close(event),this.selectKit.options.focusAfterOnChange&&this._safeAfterRender((()=>{this._focusFilter(),this.popper&&this.popper.update()})))}))},_modifyContentWrapper(e){return e=this.modifyContent(e),(0,y.applyContentPluginApiCallbacks)(e,this)},modifyContent:e=>e,_modifyNoSelectionWrapper(){return this.modifyNoSelection()},modifyNoSelection(){if(this.selectKit.options.translatedNone)return this.defaultItem(null,this.selectKit.options.translatedNone);let e,t=this.selectKit.options.none;return(0,d.isNone)(t)&&!this.selectKit.options.allowAny||(0,d.isNone)(t)&&this.selectKit.options.allowAny&&!this.selectKit.isExpanded?null:(e="string"==typeof t?this.defaultItem(null,_.default.t(t)):t,e)},_modifySelectionWrapper(e){return this.modifySelection(e)},modifySelection:e=>e,_onKeydownWrapper(e){return this._boundaryActionHandler("onKeydown",e)},_mainElement(){return document.querySelector(`#${this.selectKit.uniqueID}`)},_headerElement(){return this.selectKit.mainElement().querySelector("summary")},_bodyElement(){return this.selectKit.mainElement().querySelector(".select-kit-body")},_onHover(e,t){(0,u.throttle)(this,this._highlight,t,25,!0)},_highlight(e){this.selectKit.set("highlighted",e)},_boundaryActionHandler(e){if(!this.element||this.isDestroying||this.isDestroyed)return;let t=!0;const n=`_${e}`,r=(0,s.get)(this,n);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(r&&(t=r.call(this,...o)),this.actions){const n=(0,s.get)(this.actions,e);t&&n&&(t=n.call(this,...o))}const l=(0,s.get)(this,e);return t&&l&&(t=l.call(this,...o)),t},deselect(){this.clearErrors(),this.selectKit.change(null,null)},deselectByValue(e){if(!e)return;const t=this.itemForValue(e,this.selectedContent);this.deselect(t)},append(){},search(e){let t=this.content||[];return e&&(e=this._normalize(e),t=t.filter((t=>{const n=this._normalize(this.getName(t));return n?.includes(e)}))),t},triggerSearch(e){this._searchPromise&&(0,u.cancel)(this._searchPromise),this._searchPromise=this._searchWrapper(e||this.selectKit.filter)},_searchWrapper(e){if(this.isDestroyed||this.isDestroying)return h.Promise.resolve([]);this.clearErrors(),this.setProperties({mainCollection:[],"selectKit.isLoading":!0,"selectKit.enterDisabled":!0}),this._safeAfterRender((()=>this.popper&&this.popper.update()));let t=[];return h.Promise.resolve(this.search(e)).then((n=>{if(this.isDestroyed||this.isDestroying)return[];t=t.concat((0,b.makeArray)(n)),t=this.selectKit.modifyContent(t).filter(Boolean),t=this.selectKit.valueProperty?t.uniqBy(this.selectKit.valueProperty):t.uniq(),this.selectKit.options.limitMatches&&(t=t.slice(0,this.selectKit.options.limitMatches));const r=this.selectKit.noneItem;this.selectKit.options.allowAny&&e&&this.getName(r)!==e&&(e=this.createContentFromInput(e),this.validateCreate(e,t)&&(this.selectKit.set("newItem",this.defaultItem(e,e)),t.unshift(this.selectKit.newItem)));const i=(0,d.isEmpty)(t);this.selectKit.hasSelection&&r&&this.selectKit.options.autoInsertNoneItem&&t.unshift(r),this.set("mainCollection",t),this.selectKit.setProperties({highlighted:this.singleSelect&&this.value?this.itemForValue(this.value,this.mainCollection):(0,d.isEmpty)(this.selectKit.filter)?null:this.mainCollection.firstObject,isLoading:!1,hasNoContent:i}),this._safeAfterRender((()=>{this.selectKit.isExpanded&&(this.popper&&this.popper.update(),this._focusFilter())}))})).finally((()=>{this.isDestroyed||this.isDestroying||this.set("selectKit.enterDisabled",!1)}))},_safeAfterRender(e){(0,u.next)((()=>{(0,u.schedule)("afterRender",(()=>{!this.element||this.isDestroyed||this.isDestroying||e()}))}))},_scrollToRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getValue(e);let r;r=(0,d.isPresent)(n)?this.element.querySelector(`.select-kit-row[data-value="${n}"]`):this.element.querySelector(".select-kit-row.is-none"),r?.focus({preventScroll:t})},_highlightLast(){const e=this.mainCollection.objectAt(this.mainCollection.length-1);e&&(this._scrollToRow(e,!1),this.set("selectKit.highlighted",e))},_highlightFirst(){const e=this.mainCollection.objectAt(0);e&&(this._scrollToRow(e,!1),this.set("selectKit.highlighted",e))},_highlightNext(){let e=this.mainCollection.indexOf(this.selectKit.highlighted);if(e<this.mainCollection.length-1)e+=1;else{if(this.selectKit.isFilterExpanded)return this._focusFilter(),void this.set("selectKit.highlighted",null);e=0}const t=this.mainCollection.objectAt(e);t&&(this._scrollToRow(t,!1),this.set("selectKit.highlighted",t))},_highlightPrevious(){let e=this.mainCollection.indexOf(this.selectKit.highlighted);const t=this.mainCollection.length;if(e>0)e-=1;else{if(this.selectKit.isFilterExpanded)return this._focusFilter(),void this.set("selectKit.highlighted",null);e=t-1}const n=this.mainCollection.objectAt(e);n&&(this._scrollToRow(n,!1),this.set("selectKit.highlighted",n))},_deselectLast(){this.selectKit.hasSelection&&this.deselectByValue(this.value[this.value.length-1])},select(e,t){if((0,d.isPresent)(e)){if(this.findValue(this.mainCollection,t)&&!this.validateSelect(t))return;this.selectKit.change(e,t||this.defaultItem(e,e))}else this._onClearSelection()},_onClearSelection(){this.selectKit.change(null,null)},_onOpenWrapper(){return this._boundaryActionHandler("onOpen")},_cancelSearch(){this._searchPromise&&(0,u.cancel)(this._searchPromise)},_onCloseWrapper(){return this._cancelSearch(),this.set("selectKit.highlighted",null),this._boundaryActionHandler("onClose")},_toggle(e){this.selectKit.isExpanded?this._close(e):this._open(e)},_close(e){if(!this.selectKit.isExpanded)return;this.selectKit.mainElement().open=!1,this.clearErrors();const t=this.element.closest(".fixed-modal");t&&this.site.mobileView&&(t.querySelector(".modal-body").style=""),this.selectKit.onClose(e),this.selectKit.setProperties({isExpanded:!1,filter:null})},_open(e){if(!this.selectKit.isExpanded){if(this.selectKit.mainElement().open=!0,this.clearErrors(),this.selectKit.onOpen(e),!this.popper){const e=this.element.closest(".fixed-modal .modal-body"),t=document.querySelector(`#${this.selectKit.uniqueID}-header`),n=document.querySelector(`#${this.selectKit.uniqueID}-body`),r=this._computePlacementStrategy();this.popper=(0,p.fi)(t,n,{eventsEnabled:!1,strategy:r,placement:this.selectKit.options.placement,modifiers:[{name:"eventListeners",options:{resize:!this.site.mobileView,scroll:!this.site.mobileView}},{name:"flip",enabled:!e,options:{padding:{top:parseInt(document.documentElement.style.getPropertyValue("--header-offset"),10)||0}}},{name:"offset",options:{offset:[0,this.selectKit.options.verticalOffset]}},{name:"applySmallScreenOffset",enabled:window.innerWidth<=450,phase:"main",fn(t){let{state:n}=t;if(!e){let{x:e}=n.elements.reference.getBoundingClientRect();n.modifiersData.popperOffsets.x="fixed"===r?10:10-e}}},{name:"applySmallScreenMaxWidth",enabled:window.innerWidth<=450,phase:"beforeWrite",fn:t=>{let{state:n}=t;if(e){const e=document.querySelector(".fixed-modal div.modal-inner-container");e&&(this.multiSelect?n.styles.popper.width=`${this.element.offsetWidth}px`:n.styles.popper.width=e.clientWidth-20+"px")}else n.styles.popper.width=window.innerWidth-20+"px"}},{name:"minWidth",enabled:window.innerWidth>450,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{let{state:t}=e;t.styles.popper.minWidth=`${Math.max(t.rects.reference.width,220)}px`},effect:e=>{let{state:t}=e;t.elements.popper.style.minWidth=`${Math.max(t.elements.reference.offsetWidth,220)}px`}},{name:"modalHeight",enabled:!(!e||!this.site.mobileView),phase:"afterWrite",fn:t=>{let{state:n}=t;e.style="",e.style.height=e.clientHeight+n.rects.popper.height+"px"}}]})}this.selectKit.setProperties({isExpanded:!0,isFilterExpanded:this.selectKit.options.filterable||this.selectKit.options.allowAny}),this.selectKit.options.useHeaderFilter&&this._focusFilterInput(),this.triggerSearch(),this._safeAfterRender((()=>{this._focusFilter(),this._scrollToCurrent(),this.popper&&this.popper.update()}))}},_scrollToCurrent(){if(this.value&&this.mainCollection){let e;if(this.valueProperty)e=this.mainCollection.findBy(this.valueProperty,this.value);else{const t=this.mainCollection.indexOf(this.value);e=this.mainCollection.objectAt(t)}e&&(this._scrollToRow(e,!1),this.set("selectKit.highlighted",e))}},_focusFilter(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.selectKit.mainElement())if(this.selectKit.mainElement().open)e||this._focusFilterInput(),this._safeAfterRender((()=>{const t=this.getFilterInput();if(!e&&t)this._focusFilterInput();else if(!this.selectKit.options.preventHeaderFocus){const e=this.getHeader();e&&e.focus({preventScroll:!0})}}));else{const e=this.getHeader();e&&e.focus({preventScroll:!0})}},_focusFilterInput(){const e=this.getFilterInput();e&&document.activeElement!==e&&(e.focus({preventScroll:!0}),"number"==typeof e.selectionStart&&(e.selectionStart=e.selectionEnd=e.value.length))},getFilterInput(){return document.querySelector(`#${this.selectKit.uniqueID}-filter input`)},getHeader(){return document.querySelector(`#${this.selectKit.uniqueID}-header`)},handleDeprecations(){this._deprecateValueAttribute(),this._deprecateMutations(),this._handleDeprecatedArgs()},_computePlacementStrategy(){let e=this.selectKit.options.placementStrategy;return e||(e=this.capabilities.isIpadOS||this.site.mobileView?this.selectKit.options.mobilePlacementStrategy||"absolute":this.selectKit.options.desktopPlacementStrategy||"fixed",e)},_deprecated(e){(0,f.default)(e,{since:"v2.4.0",dropFrom:"2.9.0.beta1",id:"discourse.select-kit"})},_deprecateValueAttribute(){(this.valueAttribute||null===this.valueAttribute)&&(this._deprecated("The `valueAttribute` is deprecated. Use `valueProperty` instead"),this.set("valueProperty",this.valueAttribute))},_deprecateMutations(){this.actions??={},this.onChange||this.actions.onChange||(this._deprecated("Implicit mutation has been deprecated, please use `onChange` handler"),this.actions.onChange=this.onSelect||this.actions.onSelect||(e=>this.set("value",e)))},_resolveDeprecatedOptions(){const e={allowAny:"options.allowAny",allowCreate:"options.allowAny",filterable:"options.filterable",excludeCategoryId:"options.excludeCategoryId",scopedCategoryId:"options.scopedCategoryId",allowUncategorized:"options.allowUncategorized",none:"options.none",rootNone:"options.none",disabled:"options.disabled",isDisabled:"options.disabled",rootNoneLabel:"options.none",showFullTitle:"options.showFullTitle",title:"options.translatedNone",maximum:"options.maximum",minimum:"options.minimum",i18nPostfix:"options.i18nPostfix",i18nPrefix:"options.i18nPrefix",btnCustomClasses:"options.btnCustomClasses",castInteger:"options.castInteger"};return Object.keys(e).forEach((t=>{const n=e[t];this.get(t)&&!this.get(n)&&(this._deprecated(`The \`${t}\` attribute is deprecated. Use \`${n}\` instead`),this.get(t))})),{}},_handleDeprecatedArgs(){const e={headerIcon:"icon",onExpand:"onOpen",onCollapse:"onClose"};Object.keys(e).forEach((t=>{const n=e[t];this.get(t)&&!this.get(n)&&(this._deprecated(`The \`${t}\` attribute is deprecated. Use \`${n}\` instead`),this.set(n,this.get(t)))}))}})},96288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"dyzRjAyj",block:'[[[41,[30,0,["collection","content"]],[[[1,"  "],[10,"ul"],[14,0,"select-kit-errors-collection"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["collection","content"]]],null]],null],null,[[[1,"      "],[10,"li"],[14,0,"select-kit-error"],[12],[1,[30,1]],[13],[1,"\\n"]],[1]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["item"],false,["if","each","-track-array"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/errors-collection.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:""}))},39678:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(31691),i=n.n(r),s=n(48163),o=n(51372),a=n(57555);const l=(0,n(8620).createTemplateFactory)({id:"I5JRF+rS",block:'[[[41,[30,0,["selectKit","isExpanded"]],[[[1,"  "],[18,1,null],[1,"\\n"]],[]],null]],["&default"],false,["if","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/select-kit-body.hbs",isStrictMode:!1});var c;function u(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const d=(0,r.setComponentTemplate)(l,i().extend((u(c={classNames:["select-kit-body"],classNameBindings:["emptyBody:empty-body"],emptyBody:(0,s.computed)("selectKit.{filter,hasNoContent}",(function(){return!1})),didInsertElement(){this._super(...arguments),this.element.style.position="relative",document.addEventListener("click",this.handleClick,!0),this.selectKit.mainElement().addEventListener("keydown",this._handleKeydown,!0)},willDestroyElement(){this._super(...arguments),document.removeEventListener("click",this.handleClick,!0),this.selectKit.mainElement()?.removeEventListener("keydown",this._handleKeydown,!0)},handleClick(e){this.selectKit.isExpanded&&this.selectKit.mainElement()&&(this.selectKit.mainElement().contains(e.target)||this.selectKit.close(e))},_handleKeydown(e){this.selectKit.isExpanded&&"Tab"===e.key&&(0,o.next)((()=>{this.isDestroying||this.isDestroyed||this.selectKit.mainElement()?.contains(document.activeElement)||this.selectKit.close(e)}))}},"handleClick",[a.bind],Object.getOwnPropertyDescriptor(c,"handleClick"),c),u(c,"_handleKeydown",[a.bind],Object.getOwnPropertyDescriptor(c,"_handleKeydown"),c),c)))},44842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"3Echj6na",block:'[[[41,[30,0,["collection","content","length"]],[[[1,"  "],[10,"ul"],[14,0,"select-kit-collection"],[14,"aria-live","polite"],[14,"role","menu"],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["collection","content"]]],null]],null],null,[[[1,"      "],[46,[28,[37,4],[[30,0,["collection","identifier"]],[30,1],[30,0,["selectKit"]]],null],null,[["index","item","value","selectKit"],[[30,2],[30,1],[30,0,["value"]],[30,0,["selectKit"]]]],null],[1,"\\n"]],[1,2]],null],[1,"  "],[13],[1,"\\n"]],[]],null]],["item","index"],false,["if","each","-track-array","component","component-for-row"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/select-kit-collection.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({tagName:""}))},87637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"vbf3q9Lj",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1,"  "],[1,[28,[35,2],[[30,1]],[["translatedTitle"],[[30,0,["dasherizedTitle"]]]]]],[1,"\\n"]],[1]],null],[1,"\\n"],[10,1],[14,0,"name"],[12],[1,"\\n  "],[1,[30,0,["label"]]],[1,"\\n"],[13]],["icon"],false,["each","-track-array","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/select-kit-create-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:"create"}))},64467:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(31691),i=n.n(r),s=n(48163),o=n(6264),a=n(33217),l=n(57555),c=n(82099),u=n(16344);const d=(0,n(8620).createTemplateFactory)({id:"BJTi3ijz",block:'[[[41,[51,[30,0,["isHidden"]]],[[[1,"\\n  "],[8,[39,1],[[16,"tabindex",0],[24,0,"filter-input"],[16,"placeholder",[30,0,["placeholder"]]],[24,"autocomplete","off"],[24,"autocorrect","off"],[24,"autocapitalize","off"],[24,3,"filter-input-search"],[16,"spellcheck",false],[4,[38,3],["paste",[28,[37,4],[[30,0],"onPaste"],null]],null],[4,[38,3],["keydown",[28,[37,4],[[30,0],"onKeydown"],null]],null],[4,[38,3],["keyup",[28,[37,4],[[30,0],"onKeyup"],null]],null],[4,[38,3],["input",[28,[37,4],[[30,0],"onInput"],null]],null]],[["@value","@type"],[[28,[37,2],[[30,0,["selectKit","filter"]]],null],"search"]],null],[1,"\\n\\n"],[41,[30,0,["selectKit","options","filterIcon"]],[[[1,"    "],[1,[28,[35,6],[[30,0,["selectKit","options","filterIcon"]]],[["class"],["filter-icon"]]]],[1,"\\n"]],[]],null]],[]],null]],[],false,["unless","input","readonly","on","action","if","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/select-kit-filter.hbs",isStrictMode:!1});var p,h;function m(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const g=(0,r.setComponentTemplate)(d,i().extend(u.default,(p=(0,l.default)("selectKit.options.filterPlaceholder","selectKit.options.translatedFilterPlaceholder","selectKit.options.allowAny"),m(h={classNames:["select-kit-filter"],classNameBindings:["isExpanded:is-expanded"],attributeBindings:["role"],tabIndex:-1,isHidden:(0,s.computed)("selectKit.options.{filterable,allowAny,autoFilterable}","content.[]",(function(){return!this.selectKit.options.filterable&&!this.selectKit.options.allowAny&&!this.selectKit.options.autoFilterable})),isExpanded:(0,o.not)("isHidden"),placeholder(e,t){return(0,a.isPresent)(t)?t:(0,a.isPresent)(e)?c.default.t(e):c.default.t(this.selectKit.options.allowAny?"select_kit.filter_placeholder_with_any":"select_kit.filter_placeholder")},onPaste(){},onInput(e){return this.selectKit.onInput(e),!0},onKeyup:e=>(e.preventDefault(),e.stopImmediatePropagation(),!0),onKeydown(e){return!!this.selectKit.onKeydown(e)&&("Tab"===e.key&&this.selectKit.isLoading?(this.selectKit.cancelSearch(),this.selectKit.close(e),!0):"ArrowLeft"===e.key||"ArrowRight"===e.key||("Backspace"!==e.key||this.selectKit.filter?"ArrowUp"===e.key?(this.selectKit.highlightLast(),e.preventDefault(),!1):"ArrowDown"===e.key?(this.selectKit.isExpanded||this.selectKit.open(e),this.selectKit.highlightFirst(),e.preventDefault(),!1):"Escape"===e.key?(this.selectKit.close(e),this.selectKit.headerElement().focus(),e.preventDefault(),e.stopPropagation(),!1):"Enter"===e.key&&this.selectKit.highlighted?(this.selectKit.select(this.getValue(this.selectKit.highlighted),this.selectKit.highlighted),e.preventDefault(),e.stopImmediatePropagation(),!1):"Enter"!==e.key||this.selectKit.highlighted&&!this.selectKit.enterDisabled?void this.selectKit.set("highlighted",null):(this.element.querySelector("input").focus(),this.selectKit.enterDisabled&&(e.preventDefault(),e.stopImmediatePropagation()),!1):(this.selectKit.deselectLast(),e.preventDefault(),!1)))}},"placeholder",[p],Object.getOwnPropertyDescriptor(h,"placeholder"),h),m(h,"onPaste",[s.action],Object.getOwnPropertyDescriptor(h,"onPaste"),h),m(h,"onInput",[s.action],Object.getOwnPropertyDescriptor(h,"onInput"),h),m(h,"onKeyup",[s.action],Object.getOwnPropertyDescriptor(h,"onKeyup"),h),m(h,"onKeydown",[s.action],Object.getOwnPropertyDescriptor(h,"onKeydown"),h),h)))},98117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(31691),i=n.n(r),s=n(48163),o=n(61369),a=n(16344);const l=i().extend(a.default,{classNames:["select-kit-header"],classNameBindings:["isFocused"],attributeBindings:["role","tabindex","selectedValue:data-value","selectedNames:data-name","buttonTitle:title","selectKit.options.autofocus:autofocus"],selectKit:null,role:"listbox",tabindex:0,selectedValue:(0,s.computed)("value",(function(){return this.value===this.getValue(this.selectKit.noneItem)?null:(0,o.makeArray)(this.value).join(",")})),selectedNames:(0,s.computed)("selectedContent.[]",(function(){return(0,o.makeArray)(this.selectedContent).map((e=>this.getName(e))).join(",")})),buttonTitle:(0,s.computed)("value","selectKit.noneItem",(function(){if(!this.value&&this.selectKit.noneItem&&!this.selectKit.options.showFullTitle)return this.selectKit.noneItem.title||this.selectKit.noneItem.name})),icons:(0,s.computed)("selectKit.options.{icon,icons}",(function(){const e=(0,o.makeArray)(this.selectKit.options.icon),t=(0,o.makeArray)(this.selectKit.options.icons);return e.concat(t).filter(Boolean)})),didInsertElement(){this._super(...arguments),this.selectKit.options.autofocus&&this.set("isFocused",!0)},mouseDown:()=>!1,click(e){if(e.preventDefault(),e.stopPropagation(),e.target?.classList.contains("selected-choice")||e.target.parentNode?.classList.contains("selected-choice"))return!1;this.selectKit.toggle(e)},keyUp(e){" "===e.key&&e.preventDefault()},keyDown(e){if(this.selectKit.isDisabled||this.selectKit.options.disabled||this.selectKit.options.useHeaderFilter)return;if(!this.selectKit.onKeydown(e))return!1;const t=e.shiftKey&&"Shift"===e.key;if(!e.metaKey&&!t)if("Enter"===e.key)if(e.stopPropagation(),this.selectKit.isExpanded){if(this.selectKit.highlighted)return this.selectKit.select(this.getValue(this.selectKit.highlighted),this.selectKit.highlighted),!1}else this.selectKit.close(e);else{if("ArrowUp"===e.key)return e.stopPropagation(),this.selectKit.isExpanded?this.selectKit.highlightPrevious():this.selectKit.open(e),!1;if("ArrowDown"===e.key)return e.stopPropagation(),this.selectKit.isExpanded?this.selectKit.highlightNext():this.selectKit.open(e),!1;if(" "===e.key)e.stopPropagation(),e.preventDefault(),this.selectKit.open(e);else if("Escape"===e.key)e.stopPropagation(),this.selectKit.isExpanded?this.selectKit.close(e):this.element.blur();else{if("Tab"===e.key)return!0;if("Backspace"===e.key)this._focusFilterInput();else{if(!(this.selectKit.options.filterable||this.selectKit.options.autoFilterable||this.selectKit.options.allowAny))return!this.selectKit.isExpanded;this.selectKit.isExpanded?this._focusFilterInput():this.isValidInput(e.key)&&(this.selectKit.set("filter",e.key),this.selectKit.open(e),e.preventDefault(),e.stopPropagation())}}}},_focusFilterInput(){const e=document.querySelector(`#${this.selectKit.uniqueID}-filter`);if(e){e.style.display="flex";const t=e.querySelector(".filter-input");t&&t.focus()}}})},72718:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"OOW6LrM6",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1,"  "],[1,[28,[35,2],[[30,1]],[["translatedTitle"],[[30,0,["dasherizedTitle"]]]]]],[1,"\\n"]],[1]],null],[1,"\\n"],[10,1],[14,0,"name"],[12],[1,"\\n  "],[1,[30,0,["label"]]],[1,"\\n"],[13]],["icon"],false,["each","-track-array","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/select-kit-none-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:"none"}))},93418:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(31691),i=n.n(r),s=n(48163),o=n(6264),a=n(78582),l=n(16572),c=n(61369),u=n(82099),d=n(16344);const p=(0,n(8620).createTemplateFactory)({id:"MYMxyqO9",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1,"  "],[1,[28,[35,2],[[30,1]],[["translatedTitle"],[[30,0,["dasherizedTitle"]]]]]],[1,"\\n"]],[1]],null],[1,"\\n"],[10,1],[14,0,"name"],[12],[1,"\\n  "],[1,[30,0,["label"]]],[1,"\\n"],[13]],["icon"],false,["each","-track-array","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/select-kit-row.hbs",isStrictMode:!1});var h;const m=(0,r.setComponentTemplate)(p,i().extend(d.default,(function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(h={classNames:["select-kit-row"],tagName:"li",tabIndex:0,attributeBindings:["tabIndex","title","rowValue:data-value","rowName:data-name","index:data-index","role","ariaChecked:aria-checked","guid:data-guid","rowLang:lang"],classNameBindings:["isHighlighted","isSelected","isNone","isNone:none","item.classNames"],index:0,role:"menuitemradio",didInsertElement(){this._super(...arguments),this.site.mobileView||(this.element.addEventListener("mouseenter",this.handleMouseEnter),this.element.addEventListener("focus",this.handleMouseEnter))},willDestroyElement(){this._super(...arguments),this.site.mobileView||(this.element.removeEventListener("mouseenter",this.handleMouseEnter),this.element.removeEventListener("focus",this.handleMouseEnter))},isNone:(0,s.computed)("rowValue",(function(){return this.rowValue===this.getValue(this.selectKit.noneItem)})),guid:(0,s.computed)("item",(function(){return(0,a.guidFor)(this.item)})),lang:(0,o.reads)("item.lang"),ariaChecked:(0,s.computed)("isSelected",(function(){return this.isSelected?"true":"false"})),title:(0,s.computed)("rowTitle","item.title","rowName",(function(){return this.rowTitle||this.getProperty(this.item,"title")||this.rowName})),dasherizedTitle:(0,s.computed)("title",(function(){return(0,l.dasherize)((this.title||"").replace(".","-"))})),label:(0,s.computed)("rowLabel","item.label","title","rowName",(function(){const e=this.rowLabel||this.getProperty(this.item,"label")||this.title||this.rowName;return this.selectKit.options.allowAny&&this.rowValue===this.selectKit.filter&&this.getName(this.selectKit.noneItem)!==this.rowName&&this.getName(this.selectKit.newItem)===this.rowName?u.default.t("select_kit.create",{content:e}):e})),didReceiveAttrs(){this._super(...arguments),this.setProperties({rowName:this.getName(this.item),rowValue:this.getValue(this.item),rowLabel:this.getProperty(this.item,"labelProperty"),rowTitle:this.getProperty(this.item,"titleProperty"),rowLang:this.getProperty(this.item,"langProperty")})},icons:(0,s.computed)("item.{icon,icons}",(function(){const e=(0,c.makeArray)(this.getProperty(this.item,"icon")),t=(0,c.makeArray)(this.getProperty(this.item,"icons"));return e.concat(t).filter(Boolean)})),highlightedValue:(0,s.computed)("selectKit.highlighted",(function(){return this.getValue(this.selectKit.highlighted)})),isHighlighted:(0,s.computed)("rowValue","highlightedValue",(function(){return this.rowValue===this.highlightedValue})),isSelected:(0,s.computed)("rowValue","value",(function(){return this.rowValue===this.value})),handleMouseEnter(){return this.isDestroying&&this.isDestroyed||this.selectKit.onHover(this.rowValue,this.item),!1},click(e){return e.preventDefault(),e.stopPropagation(),this.selectKit.select(this.rowValue,this.item),!1},mouseDown(e){this.selectKit.options.preventHeaderFocus&&e.preventDefault()},focusIn(e){e.stopImmediatePropagation()},keyDown(e){if(this.selectKit.isExpanded)if("Backspace"===e.key){if(this.selectKit.isFilterExpanded)return this.selectKit.set("filter",this.selectKit.filter.slice(0,-1)),this.selectKit.triggerSearch(),this.selectKit.focusFilter(),e.preventDefault(),e.stopPropagation(),!1}else{if("ArrowUp"===e.key)return this.selectKit.highlightPrevious(),!1;if("ArrowDown"===e.key)return this.selectKit.highlightNext(),!1;if("Enter"===e.key)return e.stopImmediatePropagation(),this.selectKit.select(this.getValue(this.selectKit.highlighted),this.selectKit.highlighted),!1;"Escape"===e.key?(this.selectKit.close(e),this.selectKit.headerElement().focus(),e.preventDefault(),e.stopPropagation()):this.isValidInput(e.key)&&(this.selectKit.set("filter",e.key),this.selectKit.triggerSearch(),this.selectKit.focusFilter(),e.preventDefault(),e.stopPropagation())}}},"handleMouseEnter",[s.action],Object.getOwnPropertyDescriptor(h,"handleMouseEnter"),h),h)))},41514:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n(6264),s=n(82099),o=n(98117),a=n(16344);const l=(0,n(8620).createTemplateFactory)({id:"ARLgXQv6",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n  "],[42,[28,[37,1],[[28,[37,1],[[30,0,["icons"]]],null]],null],null,[[[1," "],[1,[28,[35,2],[[30,1]],null]],[1," "]],[1]],null],[1,"\\n\\n  "],[46,[30,0,["selectKit","options","selectedNameComponent"]],null,[["item","selectKit"],[[30,0,["selectedContent"]],[30,0,["selectKit"]]]],null],[1,"\\n"],[13]],["icon"],false,["each","-track-array","d-icon","component"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/select-kit/single-select-header.hbs",isStrictMode:!1}),c=(0,n(31691).setComponentTemplate)(l,o.default.extend(a.default,{tagName:"summary",classNames:["single-select-header"],attributeBindings:["name","ariaLabel:aria-label"],ariaLabel:(0,i.or)("selectKit.options.headerAriaLabel","name"),focusIn(e){e.stopImmediatePropagation(),document.querySelectorAll(".select-kit-header").forEach((t=>{t!==e.target&&(t.parentNode.open=!1)}))},name:(0,r.computed)("selectedContent.name",(function(){return this.selectedContent?s.default.t("select_kit.filter_by",{name:this.getName(this.selectedContent)}):s.default.t("select_kit.select_to_filter")}))}))},8082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(48163),i=n(24434),s=n(41276),o=n(25445);const a=(0,n(8620).createTemplateFactory)({id:"LT9Ozh1x",block:'[[[8,[39,0],null,[["@item","@selectKit","@extraClass"],[[30,0,["item"]],[30,0,["selectKit"]],[30,0,["extraClass"]]]],[["default"],[[[[1,"\\n  "],[1,[30,0,["badge"]]],[1,"\\n"]],[]]]]]],[],false,["selected-choice"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/selected-choice-category.hbs",isStrictMode:!1}),l=(0,n(31691).setComponentTemplate)(a,o.default.extend({tagName:"",extraClass:"selected-choice-category",badge:(0,r.computed)("item",(function(){return(0,i.htmlSafe)((0,s.categoryBadgeHTML)(this.item,{allowUncategorized:!0,link:!1}))}))}))},49170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(48163),i=n(51372),s=n(31158);const o=n(25445).default.extend({tagName:"",extraClass:"selected-choice-color",escapedColor:(0,r.computed)("item",(function(){const e=`${(0,s.escapeExpression)(this.item?.name||this.item)}`;return e.startsWith("#")?e:`#${e}`})),didInsertElement(){this._super(...arguments),(0,i.schedule)("afterRender",(()=>{const e=document.querySelector(`#${this.selectKit.uniqueID} #${this.id}-choice`);e&&(e.style.borderBottomColor=this.escapedColor)}))}})},25445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(31691),i=n.n(r),s=n(48163),o=n(78582),a=n(16344);const l=(0,n(8620).createTemplateFactory)({id:"Lk2Afr/M",block:'[[[11,"button"],[16,"aria-label",[28,[37,0],["select_kit.delete_item"],[["name"],[[30,0,["itemName"]]]]]],[16,"data-value",[30,0,["itemValue"]]],[16,"data-name",[30,0,["itemName"]]],[16,1,[29,[[30,0,["id"]],"-choice"]]],[16,0,[29,["btn btn-default selected-choice ",[30,0,["extraClass"]]]]],[24,4,"button"],[4,[38,1],["click",[28,[37,2],[[30,0,["selectKit","deselect"]],[30,0,["item"]]],null]],null],[12],[1,"\\n  "],[1,[28,[35,3],["times"],null]],[1,"\\n"],[41,[48,[30,1]],[[[1,"    "],[18,1,null],[1,"\\n"]],[]],[[[1,"    "],[10,1],[14,0,"d-button-label"],[12],[1,"\\n      "],[1,[30,0,["itemName"]]],[1,"\\n    "],[13],[1,"\\n"]],[]]],[13]],["&default"],false,["i18n","on","fn","d-icon","if","has-block","yield"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/selected-choice.hbs",isStrictMode:!1}),c=(0,r.setComponentTemplate)(l,i().extend(a.default,{tagName:"",item:null,selectKit:null,extraClass:null,id:null,init(){this._super(...arguments),this.set("id",(0,o.guidFor)(this))},itemValue:(0,s.computed)("item",(function(){return this.getValue(this.item)})),itemName:(0,s.computed)("item",(function(){return this.getName(this.item)}))}))},3105:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(51372),i=n(31158);const s=n(46115).default.extend({classNames:["select-kit-selected-color"],didInsertElement(){this._super(...arguments),(0,r.schedule)("afterRender",(()=>{const e=document.querySelector(`#${this.selectKit.uniqueID} #${this.id}`);if(!e)return;e.style.borderBottom="2px solid transparent";const t=(0,i.escapeExpression)(this.name);e.style.borderBottomColor=`#${t}`}))}})},56650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(46115);const i=(0,n(8620).createTemplateFactory)({id:"ISe16ZU4",block:'[[[41,[30,0,["item","url"]],[[[1,"  "],[8,[39,1],null,[["@flairName","@flairUrl","@flairBgColor","@flairColor"],[[30,0,["item","name"]],[30,0,["item","url"]],[30,0,["item","bgColor"]],[30,0,["item","color"]]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[10,1],[12],[1,[30,0,["label"]]],[13]],[],false,["if","avatar-flair"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/selected-flair.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({tagName:""}))},46115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(31691),i=n.n(r),s=n(48163),o=n(6264),a=n(78582),l=n(61369),c=n(16344);const u=(0,n(8620).createTemplateFactory)({id:"RQ0/jP7t",block:'[[[41,[30,0,["selectKit","options","showFullTitle"]],[[[1,"  "],[10,0],[15,"lang",[30,0,["lang"]]],[15,"title",[30,0,["title"]]],[15,"data-value",[30,0,["value"]]],[15,"data-name",[30,0,["name"]]],[14,0,"select-kit-selected-name selected-name choice"],[12],[1,"\\n"],[41,[30,0,["selectKit","options","formName"]],[[[1,"      "],[10,"input"],[15,3,[30,0,["selectKit","options","formName"]]],[15,2,[30,0,["value"]]],[14,4,"hidden"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["item","icon"]],[[[1,"      "],[1,[28,[35,1],[[30,0,["item","icon"]]],null]],[1,"\\n"]],[]],null],[1,"\\n    "],[10,1],[14,0,"name"],[12],[1,"\\n      "],[1,[30,0,["label"]]],[1,"\\n    "],[13],[1,"\\n\\n"],[41,[30,0,["shouldDisplayClearableButton"]],[[[1,"      "],[8,[39,2],[[24,0,"btn-clear"]],[["@icon","@action","@ariaLabel"],["times",[28,[37,3],[[30,0,["selectKit","deselect"]],[30,0,["item"]]],null],"clear_input"]],null],[1,"\\n"]],[]],null],[1,"  "],[13],[1,"\\n"]],[]],[[[41,[30,0,["item","icon"]],[[[1,"    "],[10,0],[15,"lang",[30,0,["lang"]]],[14,0,"select-kit-selected-name selected-name choice"],[12],[1,"\\n      "],[1,[28,[35,1],[[30,0,["item","icon"]]],null]],[1,"\\n    "],[13],[1,"\\n"]],[]],null]],[]]]],[],false,["if","d-icon","d-button","fn"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/selected-name.hbs",isStrictMode:!1}),d=(0,r.setComponentTemplate)(u,i().extend(c.default,{tagName:"",name:null,value:null,headerTitle:null,headerLang:null,headerLabel:null,id:null,init(){this._super(...arguments),this.set("id",(0,a.guidFor)(this))},didReceiveAttrs(){this._super(...arguments),this.setProperties({headerLabel:this.getProperty(this.item,"labelProperty"),headerTitle:this.getProperty(this.item,"titleProperty"),headerLang:this.getProperty(this.item,"langProperty"),name:this.getName(this.item),value:this.item===this.selectKit.noneItem?null:this.getValue(this.item)})},lang:(0,o.reads)("headerLang"),ariaLabel:(0,s.computed)("item","sanitizedTitle",(function(){return this._safeProperty("ariaLabel",this.item)||this.sanitizedTitle})),sanitizedTitle:(0,s.computed)("title",(function(){return String(this.title).replace("&hellip;","")})),title:(0,s.computed)("headerTitle","item",(function(){return this.headerTitle||this._safeProperty("title",this.item)||this.name||""})),label:(0,s.computed)("headerLabel","title","name",(function(){return this.headerLabel||this._safeProperty("label",this.item)||this.title||this.name})),icons:(0,s.computed)("item.{icon,icons}",(function(){const e=(0,l.makeArray)(this._safeProperty("icon",this.item)),t=(0,l.makeArray)(this._safeProperty("icons",this.item));return e.concat(t).filter(Boolean)})),_safeProperty:(e,t)=>t?(0,s.get)(t,e):null}))},13182:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(33217),s=n(70924);const o=(0,n(8620).createTemplateFactory)({id:"VOZiVuAa",block:'[[[41,[51,[30,0,["selectKit","isHidden"]]],[[[1,"  "],[46,[30,0,["selectKit","options","headerComponent"]],null,[["tabindex","value","selectedContent","selectKit","id"],[[30,0,["tabindex"]],[30,0,["value"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[28,[37,2],[[30,0,["selectKit","uniqueID"]],"-header"],null]]],null],[1,"\\n\\n  "],[8,[39,3],null,[["@selectKit","@id"],[[30,0,["selectKit"]],[28,[37,2],[[30,0,["selectKit","uniqueID"]],"-body"],null]]],[["default"],[[[[1,"\\n    "],[46,[30,0,["selectKit","options","filterComponent"]],null,[["selectKit","id"],[[30,0,["selectKit"]],[28,[37,2],[[30,0,["selectKit","uniqueID"]],"-filter"],null]]],null],[1,"\\n\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["collections"]]],null]],null],null,[[[1,"      "],[46,[28,[37,6],[[30,1,["identifier"]],[30,0,["selectKit"]]],null],null,[["collection","selectKit","value"],[[30,1],[30,0,["selectKit"]],[30,0,["value"]]]],null],[1,"\\n"]],[1]],null],[1,"\\n"],[41,[30,0,["selectKit","filter"]],[[[41,[30,0,["selectKit","hasNoContent"]],[[[1,"        "],[10,1],[14,0,"no-content"],[14,"role","alert"],[12],[1,"\\n          "],[1,[28,[35,8],["select_kit.no_content"],null]],[1,"\\n        "],[13],[1,"\\n"]],[]],[[[1,"        "],[10,1],[14,0,"results-count"],[14,"role","alert"],[12],[1,"\\n          "],[1,[28,[35,8],["select_kit.results_count"],[["count"],[[30,0,["mainCollection","length"]]]]]],[1,"\\n        "],[13],[1,"\\n"]],[]]]],[]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null]],["collection"],false,["unless","component","concat","select-kit/select-kit-body","each","-track-array","component-for-collection","if","i18n"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/single-select.hbs",isStrictMode:!1}),a=(0,n(31691).setComponentTemplate)(o,s.default.extend({pluginApiIdentifiers:["single-select"],classNames:["single-select"],singleSelect:!0,selectKitOptions:{headerComponent:"select-kit/single-select-header"},selectedContent:(0,r.computed)("value","content.[]","selectKit.noneItem",(function(){if((0,i.isEmpty)(this.value))return this.selectKit.noneItem;{let e;const t=this.selectKit.options.castInteger&&this._isNumeric(this.value)?Number(this.value):this.value;return this.selectKit.valueProperty?(e=(this.content||[]).findBy(this.selectKit.valueProperty,t),this.selectKit.modifySelection(e||this.defaultItem(t,t))):this.selectKit.modifySelection((this.content||[]).filter((e=>e===t)))}}))}))},59592:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"HfMGEeR4",block:'[[[1,[28,[35,0],[[30,0,["rowValue"]]],[["count","noHref"],[[30,0,["item","count"]],true]]]]],[],false,["discourse-tag"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/tag-chooser-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["tag-chooser-row"]}))},14887:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(61369),s=n(30757),o=n(70172);const a=s.default.extend(o.default,{pluginApiIdentifiers:["tag-chooser"],classNames:["tag-chooser"],selectKitOptions:{filterable:!0,filterPlaceholder:"tagging.choose_for_topic",limit:null,allowAny:"canCreateTag",maximum:"maximumTagCount"},modifyComponentForRow(e,t){return this.getValue(t)!==this.selectKit.filter||t.count?"tag-chooser-row":"select-kit/select-kit-row"},blockedTags:null,attributeBindings:["categoryId"],excludeSynonyms:!1,excludeHasSynonyms:!1,canCreateTag:(0,r.computed)("site.can_create_tag","allowCreate",(function(){return this.allowCreate&&this.site.can_create_tag})),maximumTagCount:(0,r.computed)("siteSettings.max_tags_per_topic","unlimitedTagCount",(function(){return this.unlimitedTagCount?null:parseInt(this.options.limit||this.options.maximum||this.siteSettings.max_tags_per_topic,10)})),init(){this._super(...arguments),this.setProperties({blockedTags:this.blockedTags||[],termMatchesForbidden:!1,termMatchErrorMessage:null})},value:(0,r.computed)("tags.[]",(function(){return(0,i.makeArray)(this.tags).uniq()})),content:(0,r.computed)("tags.[]",(function(){return(0,i.makeArray)(this.tags).uniq().map((e=>this.defaultItem(e,e)))})),actions:{onChange(e,t){this.onChange?this.onChange(e,t):this.set("tags",e)}},search(e){const t=(0,i.makeArray)(this.tags).filter(Boolean),n={q:e,limit:this.siteSettings.max_tag_search_results,categoryId:this.categoryId};return(t.length||this.blockedTags.length)&&(n.selected_tags=t.concat(this.blockedTags).uniq().slice(0,100)),this.everyTag||(n.filterForInput=!0),this.excludeSynonyms&&(n.excludeSynonyms=!0),this.excludeHasSynonyms&&(n.excludeHasSynonyms=!0),this.searchTags("/tags/filter/search",n,this._transformJson)},_transformJson(e,t){if(e.isDestroyed||e.isDestroying)return[];let n=t.results;return e.setProperties({termMatchesForbidden:!!t.forbidden,termMatchErrorMessage:t.forbidden_message}),e.blockedTags&&(n=n.filter((t=>!e.blockedTags.includes(t.id)))),e.siteSettings.tags_sort_alphabetically&&(n=n.sort(((e,t)=>e.id>t.id))),n.uniqBy("id")}})},95441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALL_TAGS_ID:()=>m,NONE_TAG_ID:()=>g,NO_TAG_ID:()=>h,default:()=>b});var r=n(48163),i=n(6264),s=n(95801),o=n(83005),a=n.n(o),l=n(61369),c=n(84762),u=n(19862),d=n(70924),p=n(70172);const h="no-tags",m="all-tags",g="none",f="MORE_TAGS_COLLECTION",b=c.default.extend(p.default,{pluginApiIdentifiers:["tag-drop"],classNameBindings:["tagClass"],classNames:["tag-drop"],value:(0,i.readOnly)("tagId"),maxTagSearchResults:(0,s.setting)("max_tag_search_results"),sortTagsAlphabetically:(0,s.setting)("tags_sort_alphabetically"),maxTagsInFilterList:(0,s.setting)("max_tags_in_filter_list"),shouldShowMoreTags:(0,r.computed)("maxTagsInFilterList","topTags.[]","mainCollection.[]",(function(){return this.selectKit.filter?.length>0?this.mainCollection.length>this.maxTagsInFilterList:this.topTags.length>this.maxTagsInFilterList})),selectKitOptions:{allowAny:!1,caretDownIcon:"caret-right",caretUpIcon:"caret-down",fullWidthOnMobile:!0,filterable:!0,headerComponent:"tag-drop/tag-drop-header",autoInsertNoneItem:!1},noTagsSelected:(0,i.equal)("tagId",g),init(){this._super(...arguments),this.insertAfterCollection(d.MAIN_COLLECTION,f)},modifyComponentForCollection(e){if(e===f)return u.default},modifyContentForCollection(e){if(e===f)return{shouldShowMoreTip:this.shouldShowMoreTags}},modifyNoSelection(){return this.noTagsSelected?this.defaultItem(h,this.noTagsLabel):this.defaultItem(m,this.allTagsLabel)},modifySelection(e){return this.tagId&&(e=this.noTagsSelected?this.defaultItem(h,this.noTagsLabel):this.defaultItem(this.tagId,this.tagId)),e},tagClass:(0,r.computed)("tagId",(function(){return this.tagId?`tag-${this.tagId}`:"tag_all"})),allTagsLabel:(0,s.i18n)("tagging.selector_all_tags"),noTagsLabel:(0,s.i18n)("tagging.selector_no_tags"),modifyComponentForRow:()=>"tag-row",shortcuts:(0,r.computed)("tagId",(function(){const e=[];return this.tagId!==g&&e.push({id:h,name:this.noTagsLabel}),this.tagId&&e.push({id:m,name:this.allTagsLabel}),e})),topTags:(0,r.computed)("currentCategory","site.category_top_tags.[]","site.top_tags.[]",(function(){return this.currentCategory&&this.site.category_top_tags?this.site.category_top_tags||[]:this.site.top_tags||[]})),content:(0,r.computed)("topTags.[]","shortcuts.[]",(function(){const e=this.topTags.slice(0,this.maxTagsInFilterList);return this.sortTagsAlphabetically&&e?this.shortcuts.concat(e.sort()):this.shortcuts.concat((0,l.makeArray)(e))})),search(e){if(e){const t={q:e,limit:this.maxTagSearchResults};return this.searchTags("/tags/filter/search",t,this._transformJson)}return(this.content||[]).map((e=>e.id&&e.name?e:this.defaultItem(e,e)))},_transformJson:(e,t)=>t.results.sort(((e,t)=>e.id>t.id)).map((t=>{const n=e.defaultItem(t.id,t.text);return n.targetTagId=t.target_tag||t.id,e.currentCategory||(n.count=t.count),n.pmCount=t.pm_count,n})),actions:{onChange(e,t){e===h?e=g:e===m?e=null:t&&t.targetTagId&&(e=t.targetTagId),a().routeToUrl((0,o.getCategoryAndTagUrl)(this.currentCategory,!this.noSubcategories,e))}}})},70532:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(14413);const i=(0,n(8620).createTemplateFactory)({id:"ppHUb8rg",block:'[[[10,0],[14,0,"select-kit-header-wrapper"],[12],[1,"\\n  "],[46,[30,0,["selectKit","options","selectedNameComponent"]],null,[["tabindex","item","selectKit","shouldDisplayClearableButton"],[[30,0,["tabindex"]],[30,0,["selectedContent"]],[30,0,["selectKit"]],[30,0,["shouldDisplayClearableButton"]]]],null],[1,"\\n\\n  "],[1,[28,[35,1],[[30,0,["caretIcon"]]],[["class"],["caret-icon"]]]],[1,"\\n"],[13]],[],false,["component","d-icon"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/tag-drop/tag-drop-header.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:"tag-drop-header"}))},77815:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(48163),i=n(61369),s=n(30757),o=n(70172);const a=s.default.extend(o.default,{pluginApiIdentifiers:["tag-group-chooser"],classNames:["tag-group-chooser","tag-chooser"],selectKitOptions:{allowAny:!1,filterable:!0,filterPlaceholder:"category.tag_groups_placeholder",limit:null},modifyComponentForRow:()=>"tag-chooser-row",value:(0,r.computed)("tagGroups.[]",(function(){return(0,i.makeArray)(this.tagGroups).uniq()})),content:(0,r.computed)("tagGroups.[]",(function(){return(0,i.makeArray)(this.tagGroups).uniq().map((e=>this.defaultItem(e,e)))})),search(e){const t={q:e,limit:this.siteSettings.max_tag_search_results};return this.searchTags("/tag_groups/filter/search",t,this._transformJson).then((e=>{if(e&&e.length)return e.filter((e=>!(0,i.makeArray)(this.tagGroups).includes(this.getValue(e))))}))},_transformJson:(e,t)=>t.results.sort(((e,t)=>e.name>t.name)).map((e=>({id:e.name,name:e.name,count:e.count})))})},42496:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(30080).default.extend({pluginApiIdentifiers:["tag-notifications-button"],classNames:["tag-notifications-button"],selectKitOptions:{showFullTitle:!1,i18nPrefix:"tagging.notifications"}})},29910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"WRU0JQoj",block:'[[[1,[28,[35,0],[[30,0,["rowValue"]]],[["noHref","count"],[true,[30,0,["item","count"]]]]]]],[],false,["discourse-tag"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/tag-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["tag-row"]}))},58550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r,i=n(48163),s=n(83005),o=n.n(s),a=n(61369);const l=n(85781).default.extend((function(e,t,n,r,i){var s={};Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null)}(r={pluginApiIdentifiers:["tags-intersection-chooser"],attributeBindings:["selectKit.options.categoryId:category-id"],classNames:["tags-intersection-chooser"],mainTag:null,additionalTags:null,didReceiveAttrs(){this._super(...arguments),this.set("value",(0,a.makeArray)(this.mainTag).concat((0,a.makeArray)(this.additionalTags)))},onChange(e){if(e.includes(this.mainTag)){const t=e.filter((e=>e!==this.mainTag));t.length>=1?o().routeTo(`/tags/intersection/${this.mainTag}/${t.join("/")}`):o().routeTo("/tags")}else e.length>=2?o().routeTo(`/tags/intersection/${e.join("/")}`):o().routeTo("/tags")}},"onChange",[i.action],Object.getOwnPropertyDescriptor(r,"onChange"),r),r))},18510:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(84762).default.extend({pluginApiIdentifiers:["timezone-input"],classNames:["timezone-input"],selectKitOptions:{filterable:!0,allowAny:!1},get nameProperty(){return this.isLocalized?"name":null},get valueProperty(){return this.isLocalized?"value":null},get content(){return this.isLocalized?moment.tz.localizedNames():moment.tz.names()},get isLocalized(){return"en"!==moment.locale()&&"function"==typeof moment.tz.localizedNames}})},45333:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(82099);const i=n(50073).default.extend({pluginApiIdentifiers:["toolbar-popup-menu-options"],classNames:["toolbar-popup-menu-options"],selectKitOptions:{showFullTitle:!1,filterable:!1,autoFilterable:!1,preventHeaderFocus:!0,customStyle:!0},modifyContent:e=>e.map((e=>{if(e.condition)return{icon:e.icon,name:r.default.t(e.label),id:e.action}})).filter(Boolean)})},4801:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(31691),i=n.n(r);const s=(0,n(8620).createTemplateFactory)({id:"ZtctStUt",block:'[[[1,[30,0,["heading"]]]],[],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/toolbar-popup-menu-options/toolbar-popup-menu-options-heading.hbs",isStrictMode:!1}),o=(0,r.setComponentTemplate)(s,i().extend({}))},35807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(33217),i=n(74918);const s=n(84762).default.extend({pluginApiIdentifiers:["topic-chooser"],classNames:["topic-chooser"],nameProperty:"fancy_title",labelProperty:"title",titleProperty:"title",selectKitOptions:{clearable:!0,filterable:!0,filterPlaceholder:"choose_topic.title.placeholder",additionalFilters:""},modifyComponentForRow:()=>"topic-row",search(e){if((0,r.isEmpty)(e)&&(0,r.isEmpty)(this.selectKit.options.additionalFilters))return[];const t={};return(0,r.isEmpty)(e)||(t.typeFilter="topic",t.restrictToArchetype="regular",t.searchForId=!0),(0,i.searchForTerm)(`${e} ${this.selectKit.options.additionalFilters}`,t).then((e=>{if(e?.posts?.length>0)return e.posts.mapBy("topic")}))}})},87018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(84762).default.extend({pluginApiIdentifiers:["topic-footer-mobile-dropdown"],classNames:["topic-footer-mobile-dropdown"],selectKitOptions:{none:"topic.controls",filterable:!1,autoFilterable:!1},actions:{onChange(e,t){t.action&&t.action()}}})},30143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(31691),i=n.n(r),s=n(48163),o=n(33217),a=n(20678),l=n(47582),c=n(57555),u=n(82099);const d=(0,n(8620).createTemplateFactory)({id:"z8y02IQx",block:'[[[41,[30,0,["appendReason"]],[[[1,"  "],[10,2],[14,0,"reason"],[12],[1,"\\n    "],[8,[39,1],null,[["@value","@topic","@onChange","@options"],[[30,0,["notificationLevel"]],[30,0,["topic"]],[28,[37,2],[[30,0],"changeTopicNotificationLevel"],null],[28,[37,3],null,[["icon","showFullTitle","showCaret","headerAriaLabel"],[[30,0,["icon"]],[30,0,["showFullTitle"]],[30,0,["showCaret"]],[28,[37,4],["topic.notifications.title"],null]]]]]],null],[1,"\\n    "],[10,1],[14,0,"text"],[12],[1,[28,[35,5],[[30,0,["notificationReasonText"]]],null]],[13],[1,"\\n  "],[13],[1,"\\n"]],[]],[[[1,"  "],[8,[39,1],null,[["@value","@topic","@onChange","@options"],[[30,0,["notificationLevel"]],[30,0,["topic"]],[28,[37,2],[[30,0],"changeTopicNotificationLevel"],null],[28,[37,3],null,[["icon","showFullTitle","showCaret","headerAriaLabel"],[[30,0,["icon"]],[30,0,["showFullTitle"]],[30,0,["showCaret"]],[28,[37,4],["topic.notifications.title"],null]]]]]],null],[1,"\\n"]],[]]]],[],false,["if","topic-notifications-options","action","hash","i18n","html-safe"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/topic-notifications-button.hbs",isStrictMode:!1});var p,h;function m(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}const g=(0,r.setComponentTemplate)(d,i().extend((p=(0,c.default)("topic","topic.details.{notification_level,notifications_reason_id}"),m(h={classNames:["topic-notifications-button"],classNameBindings:["isLoading"],appendReason:!0,showFullTitle:!0,notificationLevel:null,topic:null,showCaret:!0,isLoading:!1,icon:(0,s.computed)("isLoading",(function(){return this.isLoading?"spinner":null})),changeTopicNotificationLevel(e){e!==this.notificationLevel&&(this.set("isLoading",!0),this.topic.details.updateNotifications(e).finally((()=>this.set("isLoading",!1))))},notificationReasonText(e,t){let n=t.notification_level,r=t.notifications_reason_id;"number"!=typeof n&&(n=1);let i=`topic.notifications.reasons.${n}`;if("number"==typeof r){let t=i+"_"+r;this._notificationReasonStale(n,r,e,this.currentUser)&&(t+="_stale"),u.default.lookup(t,{locale:"en"})&&(i=t)}return this.currentUser&&this.currentUser.user_option.mailing_list_mode&&n>a.NotificationLevels.MUTED?u.default.t("topic.notifications.reasons.mailing_list_mode"):u.default.t(i,{username:this.currentUser&&this.currentUser.username_lower,basePath:(0,l.default)("")})},_notificationReasonStale(e,t,n,r){if(!r)return;let i=n.category_id,s=n.tags,a=r.watched_category_ids||[],l=r.tracked_category_ids||[],c=r.watched_tags||[];if(i){if(2===e&&8===t){if(!l.includes(i))return!0}else if(3===e&&6===t&&!a.includes(i))return!0}else if(!(0,o.isEmpty)(s)&&3===e&&10===t&&!s.some((e=>c.includes(e))))return!0;return!1}},"changeTopicNotificationLevel",[s.action],Object.getOwnPropertyDescriptor(h,"changeTopicNotificationLevel"),h),m(h,"notificationReasonText",[p],Object.getOwnPropertyDescriptor(h,"notificationReasonText"),h),h)))},62985:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(20678);const s=n(30080).default.extend({pluginApiIdentifiers:["topic-notifications-options"],classNames:["topic-notifications-options"],content:i.topicLevels,selectKitOptions:{i18nPrefix:"topic.notifications",i18nPostfix:"i18nPostfix",showCaret:!0},i18nPostfix:(0,r.computed)("topic.archetype",(function(){return"private_message"===this.topic.archetype?"_pm":""}))})},2375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"euK0sOGL",block:'[[[8,[39,0],null,[["@topic","@disableActions"],[[30,0,["item"]],true]],null],[1,"\\n"],[10,0],[14,0,"topic-title"],[12],[1,[28,[35,1],[[30,0,["item","title"]]],null]],[13],[1,"\\n"],[10,0],[14,0,"topic-categories"],[12],[1,"\\n  "],[1,[28,[35,2],[[30,0,["item","category"]]],[["recursive","hideParent","link"],[true,true,false]]]],[1,"\\n"],[13]],[],false,["topic-status","replace-emoji","bound-category-link"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/topic-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["topic-row"]}))},566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CUSTOM_USER_SEARCH_OPTIONS:()=>c,default:()=>u});var r=n(48163),i=n(33217),s=n(12231),o=n.n(s),a=n(61369),l=n(30757);const c=[],u=l.default.extend({pluginApiIdentifiers:["user-chooser"],classNames:["user-chooser"],valueProperty:"username",modifyComponentForRow:()=>"user-chooser/user-row",selectKitOptions:{topicId:void 0,categoryId:void 0,includeGroups:!1,allowedUsers:!1,includeMentionableGroups:!1,includeMessageableGroups:!1,allowEmails:!1,groupMembersOf:void 0,excludeCurrentUser:!1,customSearchOptions:void 0,excludedUsernames:void 0},content:(0,r.computed)("value.[]",(function(){return(0,a.makeArray)(this.value).map((e=>this.defaultItem(e,e)))})),excludedUsers:(0,r.computed)("value","currentUser","selectKit.options.{excludeCurrentUser,excludedUsernames}",{get(){const e=this.selectKit.options;let t=(0,a.makeArray)(this.value);return this.currentUser&&e.excludeCurrentUser&&(t=t.concat([this.currentUser.username])),t.concat(e.excludedUsernames||[])}}),search(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e||"",e=e.replace(/^@/,"");const t=this.selectKit.options;if(""===e&&t?.customSearchOptions?.defaultSearchResults)return Promise.resolve(t.customSearchOptions.defaultSearchResults);const n=(0,s.skipSearch)(e,t.allowEmails),r=(0,s.eagerCompleteSearch)(e,t.topicId||t.categoryId);if(n||""===e&&!r)return;let a={};return t.customSearchOptions&&(0,i.isPresent)(c)&&(a=c.reduce(((e,n)=>({...e,[n]:t.customSearchOptions[n]})),{})),o()({term:e,topicId:t.topicId,categoryId:t.categoryId,exclude:this.excludedUsers,includeGroups:t.includeGroups,allowedUsers:t.allowedUsers,includeMentionableGroups:t.includeMentionableGroups,includeMessageableGroups:t.includeMessageableGroups,groupMembersOf:t.groupMembersOf,allowEmails:t.allowEmails,includeStagedUsers:this.includeStagedUsers,customUserSearchOptions:a}).then((e=>{if("string"!=typeof e)return e}))}})},1380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(93418);const i=(0,n(8620).createTemplateFactory)({id:"jxzYUghA",block:'[[[1,[28,[35,0],[[30,0,["item"]]],[["imageSize"],["tiny"]]]],[1,"\\n\\n"],[10,1],[14,0,"username"],[12],[1,[28,[35,1],[[30,0,["item","username"]]],null]],[13],[1,"\\n\\n"],[41,[30,0,["item","name"]],[[[1,"  "],[10,1],[14,0,"name"],[12],[1,[30,0,["item","name"]]],[13],[1,"\\n"]],[]],null]],[],false,["avatar","format-username","if"]]',moduleName:"/srv/discourse/app/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.14e8deeb/node_modules/select-kit/components/user-chooser/user-row.hbs",isStrictMode:!1}),s=(0,n(31691).setComponentTemplate)(i,r.default.extend({classNames:["user-row"]}))},37143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48163),i=n(17579),s=n(29574),o=n.n(s),a=n(84061),l=n(82099);const c=n(50073).default.extend({modal:(0,i.inject)(),classNames:["user-notifications","user-notifications-dropdown"],selectKitOptions:{headerIcon:"userNotificationIcon",showCaret:!0},userNotificationIcon:(0,r.computed)("mainCollection.[]","value",(function(){return this.mainCollection&&this.mainCollection.find((e=>e.id===this.value)).icon})),content:(0,r.computed)((function(){const e=[];return e.push({icon:"user",id:"changeToNormal",description:l.default.t("user.user_notifications.normal_option_title"),name:l.default.t("user.user_notifications.normal_option")}),e.push({icon:"times-circle",id:"changeToMuted",description:l.default.t("user.user_notifications.mute_option_title"),name:l.default.t("user.user_notifications.mute_option")}),this.get("user.can_ignore_user")&&e.push({icon:"far-eye-slash",id:"changeToIgnored",description:l.default.t("user.user_notifications.ignore_option_title"),name:l.default.t("user.user_notifications.ignore_option")}),e})),changeToNormal(){this.updateNotificationLevel({level:"normal"}).catch(a.popupAjaxError)},changeToMuted(){this.updateNotificationLevel({level:"mute"}).catch(a.popupAjaxError)},changeToIgnored(){this.modal.show(o(),{model:{ignoredUsername:this.user.username,enableSelection:!1}})},actions:{onChange(e){this[e](),this.set("value",e)}}})},99139:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyContentPluginApiCallbacks:()=>d,applyOnChangePluginApiCallbacks:()=>p,clearCallbacks:()=>m,default:()=>f,modifySelectKit:()=>h});var r=n(39791),i=n.n(r),s=n(33217),o=n(61369);let a={},l={},c={},u={};function d(e,t){return(0,o.makeArray)(t.pluginApiIdentifiers).forEach((n=>{(l[n]||[]).forEach((n=>{const r=n(t,e);r&&(e=(0,o.makeArray)(r).concat(e))})),(a[n]||[]).forEach((n=>{const r=n(t,e);r&&(e=e.concat((0,o.makeArray)(r)))})),(u[n]||[]).forEach((n=>{const r=n(t,e);r&&(e=(0,o.makeArray)(r))}))})),e}function p(e,t,n){(0,o.makeArray)(n.pluginApiIdentifiers).forEach((r=>{(c[r]||[]).forEach((r=>r(n,e,t)))}))}function h(e){return{appendContent:t=>{var n,r;return n=e,r=t,(0,s.isNone)(a[n])&&(a[n]=[]),a[n].push(r),h(e)},prependContent:t=>(function(e,t){(0,s.isNone)(l[e])&&(l[e]=[]),l[e].push(t)}(e,t),h(e)),onChange:t=>{var n,r;return n=e,r=t,(0,s.isNone)(c[n])&&(c[n]=[]),c[n].push(r),h(e)},replaceContent:t=>{var n,r;return n=e,r=t,(0,s.isNone)(u[n])&&(u[n]=[]),u[n].push(r),h(e)}}}function m(){a={},l={},c={},u={}}const g=Object.freeze([]),f=i().create({concatenatedProperties:["pluginApiIdentifiers"],pluginApiIdentifiers:g})},70172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(6264),i=n(39791),s=n.n(i),o=n(33217),a=n(56403),l=n(84061),c=n(61369),u=n(82099);const d=s().create({searchTags(e,t,n){return(0,a.ajax)(e,{data:t}).then((e=>n(this,e))).catch(l.popupAjaxError)},selectKitOptions:{allowAny:"allowAnyTag"},allowAnyTag:(0,r.reads)("site.can_create_tag"),validateCreate(e,t){if(!e.length)return;const n=this.selectKit.options.maximum;if(n&&(0,c.makeArray)(this.value).length>=parseInt(n,10))return this.addError(u.default.t("select_kit.max_content_reached",{count:parseInt(n,10)})),!1;const r=new RegExp(this.site.tags_filter_regexp,"g");if(e=e.replace(r,"").trim().toLowerCase(),this.termMatchesForbidden)return!1;const i=e=>(0,o.isEmpty)(e)?void 0:e.toLowerCase(),s=t.map((e=>i(this.getValue(e)))).filter(Boolean).includes(e),a=(this.value||[]).map((e=>i(e))).filter(Boolean).includes(e);return!s&&!a},createContentFromInput(e){return e=e.trim().replace(/\s+/g,"-").replace(/[\/\?#\[\]@!\$&'\(\)\*\+,;=\.%\\`^\s|\{\}"<>]+/g,"").substring(0,this.siteSettings.max_tag_length),this.siteSettings.force_lowercase_tags&&(e=e.toLowerCase()),e}})},16344:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(48163),i=n(39791);const s=n.n(i)().create({isValidInput:e=>!/F\d+|Arrow.+|Meta|Alt|Control|Shift|Delete|Enter|Escape|Tab|Space|Insert|Backspace/.test(e),defaultItem(e,t){if(this.selectKit.valueProperty){const n={};return n[this.selectKit.valueProperty]=e,n[this.selectKit.nameProperty]=t,n}return t||e},itemForValue(e,t){return this.selectKit.valueProperty?t.findBy(this.selectKit.valueProperty,e):e},getProperty(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{definedOnly:!0};const{definedOnly:i}=n;if(e&&"string"==typeof t){const n=(0,r.get)(e,t);if(n)return n}return t=(0,r.get)(this.selectKit,t),e?!t&&i?null:t?"string"==typeof t?(0,r.get)(e,t):t(e):e:null},getValue(e){return this.getProperty(e,"valueProperty",{definedOnly:!1})},getName(e){return this.getProperty(e,"nameProperty",{definedOnly:!1})},findValue(e,t){return this._findInContent(e,t,"valueProperty","getValue")},findName(e,t){return this._findInContent(e,t,"nameProperty","getName")},_findInContent(e,t,n,i){const s=(0,r.get)(this.selectKit,n);if(s){if("string"==typeof s)return e.findBy(s,this[i](t));{const n=this[i](t);return e.find((e=>this[i](e)===n))}}if(e.includes(t))return t},_isNumeric:e=>!isNaN(parseFloat(e))&&isFinite(e),_normalize:e=>(e&&"function"==typeof(e=e.toLowerCase()).normalize&&(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")),e)})},44057:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(67818);function i(){let e=!1;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(e of n)if(!1===(0,r.default)(e))return e;return e}},18283:(e,t,n)=>{"use strict";function r(e,t){return e===t}n.r(t),n.d(t,{default:()=>r})},58826:(e,t,n)=>{"use strict";function r(e,t){let{forceNumber:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>t}n.r(t),n.d(t,{default:()=>r})},29303:(e,t,n)=>{"use strict";function r(e,t){let{forceNumber:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e>=t}n.r(t),n.d(t,{default:()=>r})},61898:(e,t,n)=>{"use strict";function r(e,t){return e.includes(t)}n.r(t),n.d(t,{default:()=>r})},75487:(e,t,n)=>{"use strict";function r(e,t){let{forceNumber:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<t}n.r(t),n.d(t,{default:()=>r})},71459:(e,t,n)=>{"use strict";function r(e,t){let{forceNumber:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n&&("number"!=typeof e&&(e=Number(e)),"number"!=typeof t&&(t=Number(t))),e<=t}n.r(t),n.d(t,{default:()=>r})},6709:(e,t,n)=>{"use strict";function r(e,t){return e!==t}n.r(t),n.d(t,{default:()=>r})},36725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(67818);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let e of t)if(!0===(0,r.default)(e))return!1;return!0}},61777:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(67818);function i(){let e=!1;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(e of n)if(!0===(0,r.default)(e))return e;return e}},67818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(38307),i=n(48163);function s(e){const t=e&&(0,i.get)(e,"isTruthy");return"boolean"==typeof t?t:(0,r.isArray)(e)?0!==(0,i.get)(e,"length"):!!e}},54712:(e,t,n)=>{var r;!function(i,s,o){if(i){for(var a,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},c={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p={},h=1;h<20;++h)l[111+h]="f"+h;for(h=0;h<=9;++h)l[h+96]=h.toString();v.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},v.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},v.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},v.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},v.prototype.destroy=function(){var e=this;e.reset(),g(e.target,"keypress",e._handleKeyEvent),g(e.target,"keydown",e._handleKeyEvent),g(e.target,"keyup",e._handleKeyEvent),e.target=o,e._handleKeyEvent=o},v.prototype.stopCallback=function(e,t,n,r){if(this.paused)return!0;if(p[n]||p[r])return!1;if((" "+t.className+" ").indexOf(" itsatrap ")>-1)return!1;if(w(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var i=e.composedPath()[0];i!==e.target&&(t=i)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},v.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},v.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);a=null},v.prototype.pause=function(){this.paused=!0},v.prototype.unpause=function(){this.paused=!1},v.prototype.bindGlobal=function(e,t,n){if(this.bind(e,t,n),e instanceof Array)for(var r=0;r<e.length;r++)p[e[r]]=!0;else p[e]=!0},i.ItsATrap=v,e.exports&&(e.exports=v),(r=function(){return v}.call(t,n,t,e))===o||(e.exports=r)}function m(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function g(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function f(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function b(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function _(e,t,n){return n||(n=function(){if(!a)for(var e in a={},l)e>95&&e<112||l.hasOwnProperty(e)&&(a[l[e]]=e);return a}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function y(e,t){var n,r,i,s=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)r=n[i],d[r]&&(r=d[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],s.push("shift")),b(r)&&s.push(r);return{key:r,modifiers:s,action:t=_(r,s,t)}}function w(e,t){return null!==e&&e!==s&&(e===t||w(e.parentNode,t))}function v(e){var t=this;if(e=e||s,!(t instanceof v))return new v(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,o=!1,a=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(a=!1)}function c(e,n,i,s,o,a){var l,c,u,d,p=[],h=i.type;if(!t._callbacks[e])return[];for("keyup"==h&&b(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(s||!c.seq||r[c.seq]==c.level)&&h==c.action&&("keypress"==h&&!i.metaKey&&!i.ctrlKey||(u=n,d=c.modifiers,u.sort().join(",")===d.sort().join(",")))){var m=!s&&c.combo==o,g=s&&c.seq==s&&c.level==a;(m||g)&&t._callbacks[e].splice(l,1),p.push(c)}return p}function u(e,n,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e,s,o,p,h){t._directMap[e+":"+o]=s;var m,g=(e=e.replace(/\s+/g," ")).split(" ");g.length>1?function(e,t,s,o){function c(t){return function(){a=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function p(t){u(s,t,e),"keyup"!==o&&(i=f(t)),setTimeout(l,10)}r[e]=0;for(var h=0;h<t.length;++h){var m=h+1===t.length?p:c(o||y(t[h+1]).action);d(t[h],m,o,e,h)}}(e,g,s,o):(m=y(e,o),t._callbacks[m.key]=t._callbacks[m.key]||[],c(m.key,m.modifiers,{type:m.action},p,e,h),t._callbacks[m.key][p?"unshift":"push"]({callback:s,modifiers:m.modifiers,action:m.action,seq:p,level:h,combo:e}))}t._handleKey=function(e,t,n){var r,i=c(e,t,n),s={},d=0,p=!1;for(r=0;r<i.length;++r)i[r].seq&&(d=Math.max(d,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=d)continue;p=!0,s[i[r].seq]=1,u(i[r].callback,n,i[r].combo,i[r].seq)}else p||u(i[r].callback,n,i[r].combo);var h="keypress"==n.type&&o;n.type!=a||b(e)||h||l(s),o=p&&"keydown"==n.type},t._handleKeyEvent=function(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=f(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):i=!1)},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)d(e[r],t,n)},m(e,"keypress",t._handleKeyEvent),m(e,"keydown",t._handleKeyEvent),m(e,"keyup",t._handleKeyEvent)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},57959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TrackedArray:()=>P,TrackedMap:()=>p,TrackedObject:()=>U,TrackedSet:()=>m,TrackedWeakMap:()=>h,TrackedWeakSet:()=>g,tracked:()=>R});var r=n(9043),i=(n(95793),n(49246)),s=n(76734);let o,a,l,c,u,d;o=Symbol.iterator,a=Symbol.toStringTag;class p{readStorageFor(e){const{storages:t}=this;let n=t.get(e);void 0===n&&(n=(0,s.createStorage)(null,(()=>!1)),t.set(e,n)),(0,s.getValue)(n)}dirtyStorageFor(e){const t=this.storages.get(e);t&&(0,s.setValue)(t,null)}constructor(e){(0,i.Z)(this,"collection",(0,s.createStorage)(null,(()=>!1))),(0,i.Z)(this,"storages",new Map),this.vals=e?new Map(e):new Map}get(e){return this.readStorageFor(e),this.vals.get(e)}has(e){return this.readStorageFor(e),this.vals.has(e)}entries(){return(0,s.getValue)(this.collection),this.vals.entries()}keys(){return(0,s.getValue)(this.collection),this.vals.keys()}values(){return(0,s.getValue)(this.collection),this.vals.values()}forEach(e){(0,s.getValue)(this.collection),this.vals.forEach(e)}get size(){return(0,s.getValue)(this.collection),this.vals.size}[o](){return(0,s.getValue)(this.collection),this.vals[Symbol.iterator]()}get[a](){return this.vals[Symbol.toStringTag]}set(e,t){return this.dirtyStorageFor(e),(0,s.setValue)(this.collection,null),this.vals.set(e,t),this}delete(e){return this.dirtyStorageFor(e),(0,s.setValue)(this.collection,null),this.vals.delete(e)}clear(){this.storages.forEach((e=>(0,s.setValue)(e,null))),(0,s.setValue)(this.collection,null),this.vals.clear()}}Object.setPrototypeOf(p.prototype,Map.prototype),l=Symbol.toStringTag;class h{readStorageFor(e){const{storages:t}=this;let n=t.get(e);void 0===n&&(n=(0,s.createStorage)(null,(()=>!1)),t.set(e,n)),(0,s.getValue)(n)}dirtyStorageFor(e){const t=this.storages.get(e);t&&(0,s.setValue)(t,null)}constructor(e){(0,i.Z)(this,"storages",new WeakMap),this.vals=e?new WeakMap(e):new WeakMap}get(e){return this.readStorageFor(e),this.vals.get(e)}has(e){return this.readStorageFor(e),this.vals.has(e)}set(e,t){return this.dirtyStorageFor(e),this.vals.set(e,t),this}delete(e){return this.dirtyStorageFor(e),this.vals.delete(e)}get[l](){return this.vals[Symbol.toStringTag]}}Object.setPrototypeOf(h.prototype,WeakMap.prototype),c=Symbol.iterator,u=Symbol.toStringTag;class m{storageFor(e){const t=this.storages;let n=t.get(e);return void 0===n&&(n=(0,s.createStorage)(null,(()=>!1)),t.set(e,n)),n}dirtyStorageFor(e){const t=this.storages.get(e);t&&(0,s.setValue)(t,null)}constructor(e){(0,i.Z)(this,"collection",(0,s.createStorage)(null,(()=>!1))),(0,i.Z)(this,"storages",new Map),this.vals=new Set(e)}has(e){return(0,s.getValue)(this.storageFor(e)),this.vals.has(e)}entries(){return(0,s.getValue)(this.collection),this.vals.entries()}keys(){return(0,s.getValue)(this.collection),this.vals.keys()}values(){return(0,s.getValue)(this.collection),this.vals.values()}forEach(e){(0,s.getValue)(this.collection),this.vals.forEach(e)}get size(){return(0,s.getValue)(this.collection),this.vals.size}[c](){return(0,s.getValue)(this.collection),this.vals[Symbol.iterator]()}get[u](){return this.vals[Symbol.toStringTag]}add(e){return this.dirtyStorageFor(e),(0,s.setValue)(this.collection,null),this.vals.add(e),this}delete(e){return this.dirtyStorageFor(e),(0,s.setValue)(this.collection,null),this.vals.delete(e)}clear(){this.storages.forEach((e=>(0,s.setValue)(e,null))),(0,s.setValue)(this.collection,null),this.vals.clear()}}Object.setPrototypeOf(m.prototype,Set.prototype),d=Symbol.toStringTag;class g{storageFor(e){const t=this.storages;let n=t.get(e);return void 0===n&&(n=(0,s.createStorage)(null,(()=>!1)),t.set(e,n)),n}dirtyStorageFor(e){const t=this.storages.get(e);t&&(0,s.setValue)(t,null)}constructor(e){(0,i.Z)(this,"storages",new WeakMap),this.vals=new WeakSet(e)}has(e){return(0,s.getValue)(this.storageFor(e)),this.vals.has(e)}add(e){return this.vals.add(e),this.dirtyStorageFor(e),this}delete(e){return this.dirtyStorageFor(e),this.vals.delete(e)}get[d](){return this.vals[Symbol.toStringTag]}}function f(e,t){var n=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}(e,t);return function(e,t){return t.get?t.get.call(e):t.value}(e,n)}function b(e,t){y(e,t),t.add(e)}function _(e,t,n){y(e,t),t.set(e,n)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Object.setPrototypeOf(g.prototype,WeakSet.prototype);const v=new Set([Symbol.iterator,"concat","entries","every","fill","filter","find","findIndex","flat","flatMap","forEach","includes","indexOf","join","keys","lastIndexOf","map","reduce","reduceRight","slice","some","values"]);function k(e){if("symbol"==typeof e)return null;const t=Number(e);return isNaN(t)?null:t%1==0?t:null}var x=new WeakMap,T=new WeakMap,S=new WeakSet,C=new WeakSet;class P{static from(e,t,n){return new P(t?Array.from(e,t,n):Array.from(e))}static of(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new P(t)}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];b(this,C),b(this,S),_(this,x,{writable:!0,value:(0,s.createStorage)(null,(()=>!1))}),_(this,T,{writable:!0,value:new Map});let t=e.slice(),n=this,r=new Map;return new Proxy(t,{get(e,t){let i=k(t);if(null!==i)return w(n,S,O).call(n,i),(0,s.getValue)(f(n,x)),e[i];if("length"===t)(0,s.getValue)(f(n,x));else if(v.has(t)){let i=r.get(t);return void 0===i&&(i=function(){return(0,s.getValue)(f(n,x)),e[t](...arguments)},r.set(t,i)),i}return e[t]},set(e,t,r){e[t]=r;let i=k(t);return null!==i?(w(n,C,E).call(n,i),(0,s.setValue)(f(n,x),null)):"length"===t&&(0,s.setValue)(f(n,x),null),!0},getPrototypeOf:()=>P.prototype})}}function O(e){const t=f(this,T);let n=t.get(e);void 0===n&&(n=(0,s.createStorage)(null,(()=>!1)),t.set(e,n)),(0,s.getValue)(n)}function E(e){const t=f(this,T).get(e);t&&(0,s.setValue)(t,null)}Object.setPrototypeOf(P.prototype,Array.prototype);var D=n(32758),I=n(58255),j=n(86358);const{dirtyProperty:Z,consumeProperty:A}=function(e){if("consumeTag"in(t=e)&&"function"==typeof t.consumeTag&&"tagFor"in t&&"function"==typeof t.tagFor&&"dirtyTagFor"in t&&"function"==typeof t.dirtyTagFor)return{dirtyProperty:(t,n)=>{e.dirtyTagFor(t,n)},consumeProperty:(t,n)=>{e.consumeTag(e.tagFor(t,n))}};throw new Error("The version of @glimmer/validator included with this build is incompatible with @ember-compat/tracked-built-ins. ");var t}(j);var M=new WeakMap;class N{constructor(e){var t,n,r;r={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=M),n.set(t,r),(0,I.Z)(this,M,e)}consume(e){A((0,D.Z)(this,M),e)}update(e){Z((0,D.Z)(this,M),e)}}function z(e){return"get"in e||"set"in e}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===new.target)throw new Error("TrackedObject must be called with `new`");const t=new.target.prototype,n=function(e){const t=Object.getPrototypeOf(e),n=Object.create(t),r={};for(const t of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,t);i&&(z(i)?Object.defineProperty(n,t,i):(Reflect.set(r,t,Reflect.get(e,t)),Object.defineProperty(n,t,{configurable:i.configurable,enumerable:!0,get:()=>Reflect.get(r,t),set:e=>{Reflect.set(r,t,e)}})))}return n}(e),r=(0,s.createStorage)(null,(()=>!1)),i=new Proxy(n,{get:(e,t)=>(o.consume(t),Reflect.get(e,t)),getPrototypeOf:()=>t,setPrototypeOf(){throw new Error("Cannot set prototype of TrackedObject")},has:(e,t)=>(o.consume(t),Reflect.has(e,t)),ownKeys:e=>((0,s.getValue)(r),Reflect.ownKeys(e)),set:(e,t,n,i)=>(F(r),o.update(t),Reflect.set(e,t,n,i),!0),deleteProperty(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!0===n.configurable&&(o.update(t),F(r)),Reflect.deleteProperty(e,t),!0}}),o=new N(i);return i}function F(e){(0,s.setValue)(e,null)}L.fromEntries=e=>new U(Object.fromEntries(e));const U=L;function R(e,t,n){if(void 0!==t&&void 0!==n)return(0,r.tracked)(e,t,n);if(Array.isArray(e))return new P(e);switch(e){case Object:return new U;case Array:return new P;case Map:return new p;case WeakMap:return new h;case Set:return new m;case WeakSet:return new g}return e instanceof Map?new p(e):e instanceof WeakMap?new h:e instanceof Set?new m(e):e instanceof WeakSet?new g:new U(e)}},91649:(e,t,n)=>{"use strict";function r(e){return e?.__esModule?e:{default:e,...e}}n.d(t,{Z:()=>r})},24193:(e,t,n)=>{"use strict";n.r(t),n.d(t,{arrow:()=>P,autoPlacement:()=>k,autoUpdate:()=>v,computePosition:()=>D,detectOverflow:()=>i.US,flip:()=>T,getOverflowAncestors:()=>s.Kx,hide:()=>C,inline:()=>O,limitShift:()=>E,offset:()=>i.cv,platform:()=>w,shift:()=>x,size:()=>S});var r=n(70936),i=n(67351),s=n(19882);function o(e){const t=(0,s.Dx)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=(0,s.Re)(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:i,c=(0,r.NM)(n)!==a||(0,r.NM)(i)!==l;return c&&(n=a,i=l),{width:n,height:i,$:c}}function a(e){return(0,s.kK)(e)?e:e.contextElement}function l(e){const t=a(e);if(!(0,s.Re)(t))return(0,r.ze)(1);const n=t.getBoundingClientRect(),{width:i,height:l,$:c}=o(t);let u=(c?(0,r.NM)(n.width):n.width)/i,d=(c?(0,r.NM)(n.height):n.height)/l;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}const c=(0,r.ze)(0);function u(e){const t=(0,s.Jj)(e);return(0,s.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:c}function d(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),c=a(e);let d=(0,r.ze)(1);t&&(i?(0,s.kK)(i)&&(d=l(i)):d=l(e));const p=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,s.Jj)(e))&&t}(c,n,i)?u(c):(0,r.ze)(0);let h=(o.left+p.x)/d.x,m=(o.top+p.y)/d.y,g=o.width/d.x,f=o.height/d.y;if(c){const e=(0,s.Jj)(c),t=i&&(0,s.kK)(i)?(0,s.Jj)(i):i;let n=e.frameElement;for(;n&&i&&t!==e;){const e=l(n),t=n.getBoundingClientRect(),r=(0,s.Dx)(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;h*=e.x,m*=e.y,g*=e.x,f*=e.y,h+=i,m+=o,n=(0,s.Jj)(n).frameElement}}return(0,r.JB)({width:g,height:f,x:h,y:m})}const p=[":popover-open",":modal"];function h(e){let t=!1,n=0,r=0;if(p.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)})),t){const t=(0,s.gQ)(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function m(e){return d((0,s.tF)(e)).left+(0,s.Lw)(e).scrollLeft}function g(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=(0,s.Jj)(e),r=(0,s.tF)(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const e=(0,s.Pf)();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l,y:c}}(e,n);else if("document"===t)i=function(e){const t=(0,s.tF)(e),n=(0,s.Lw)(e),i=e.ownerDocument.body,o=(0,r.Fp)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=(0,r.Fp)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+m(e);const c=-n.scrollTop;return"rtl"===(0,s.Dx)(i).direction&&(l+=(0,r.Fp)(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:l,y:c}}((0,s.tF)(e));else if((0,s.kK)(t))i=function(e,t){const n=d(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,a=(0,s.Re)(e)?l(e):(0,r.ze)(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:i*a.y}}(t,n);else{const n=u(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(i)}function f(e,t){const n=(0,s.Ow)(e);return!(n===t||!(0,s.kK)(n)||(0,s.Py)(n))&&("fixed"===(0,s.Dx)(n).position||f(n,t))}function b(e,t,n,i){const o=(0,s.Re)(t),a=(0,s.tF)(t),l="fixed"===n,c=d(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const p=(0,r.ze)(0);if(o||!o&&!l)if(("body"!==(0,s.wk)(t)||(0,s.ao)(a))&&(u=(0,s.Lw)(t)),o){const e=d(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=m(a));let g=c.left+u.scrollLeft-p.x,f=c.top+u.scrollTop-p.y;const[b,_,y]=h(i);return b&&(g+=_,f+=y,o&&(g+=t.clientLeft,f+=t.clientTop)),{x:g,y:f,width:c.width,height:c.height}}function _(e,t){return(0,s.Re)(e)&&"fixed"!==(0,s.Dx)(e).position?t?t(e):e.offsetParent:null}function y(e,t){const n=(0,s.Jj)(e);if(!(0,s.Re)(e))return n;let r=_(e,t);for(;r&&(0,s.Ze)(r)&&"static"===(0,s.Dx)(r).position;)r=_(r,t);return r&&("html"===(0,s.wk)(r)||"body"===(0,s.wk)(r)&&"static"===(0,s.Dx)(r).position&&!(0,s.hT)(r))?n:r||(0,s.gQ)(e)||n}const w={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const a=(0,s.tF)(i),[c]=t?h(t.floating):[!1];if(i===a||c)return n;let u={scrollLeft:0,scrollTop:0},p=(0,r.ze)(1);const m=(0,r.ze)(0),g=(0,s.Re)(i);if((g||!g&&"fixed"!==o)&&(("body"!==(0,s.wk)(i)||(0,s.ao)(a))&&(u=(0,s.Lw)(i)),(0,s.Re)(i))){const e=d(i);p=l(i),m.x=e.x+i.clientLeft,m.y=e.y+i.clientTop}return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-u.scrollLeft*p.x+m.x,y:n.y*p.y-u.scrollTop*p.y+m.y}},getDocumentElement:s.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const a=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=(0,s.Kx)(e,[],!1).filter((e=>(0,s.kK)(e)&&"body"!==(0,s.wk)(e))),i=null;const o="fixed"===(0,s.Dx)(e).position;let a=o?(0,s.Ow)(e):e;for(;(0,s.kK)(a)&&!(0,s.Py)(a);){const t=(0,s.Dx)(a),n=(0,s.hT)(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||(0,s.ao)(a)&&!n&&f(e,a))?r=r.filter((e=>e!==a)):i=t,a=(0,s.Ow)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),i],l=a[0],c=a.reduce(((e,n)=>{const i=g(t,n,o);return e.top=(0,r.Fp)(i.top,e.top),e.right=(0,r.VV)(i.right,e.right),e.bottom=(0,r.VV)(i.bottom,e.bottom),e.left=(0,r.Fp)(i.left,e.left),e}),g(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:y,getElementRects:async function(e){const t=this.getOffsetParent||y,n=this.getDimensions;return{reference:b(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=o(e);return{width:t,height:n}},getScale:l,isElement:s.kK,isRTL:function(e){return"rtl"===(0,s.Dx)(e).direction}};function v(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:p=!1}=i,h=a(e),m=o||l?[...h?(0,s.Kx)(h):[],...(0,s.Kx)(t)]:[];m.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const g=h&&u?function(e,t){let n,i=null;const o=(0,s.tF)(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();const{left:u,top:d,width:p,height:h}=e.getBoundingClientRect();if(l||t(),!p||!h)return;const m={rootMargin:-(0,r.GW)(d)+"px "+-(0,r.GW)(o.clientWidth-(u+p))+"px "+-(0,r.GW)(o.clientHeight-(d+h))+"px "+-(0,r.GW)(u)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1};let g=!0;function f(e){const t=e[0].intersectionRatio;if(t!==c){if(!g)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}g=!1}try{i=new IntersectionObserver(f,{...m,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(f,m)}i.observe(e)}(!0),a}(h,n):null;let f,b=-1,_=null;c&&(_=new ResizeObserver((e=>{let[r]=e;r&&r.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=_)||e.observe(t)}))),n()})),h&&!p&&_.observe(h),_.observe(t));let y=p?d(e):null;return p&&function t(){const r=d(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach((e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==g||g(),null==(e=_)||e.disconnect(),_=null,p&&cancelAnimationFrame(f)}}const k=i.X5,x=i.uY,T=i.RR,S=i.dp,C=i.Cp,P=i.x7,O=i.Qo,E=i.dr,D=(e,t,n)=>{const r=new Map,s={platform:w,...n},o={...s.platform,_c:r};return(0,i.oo)(e,t,{...s,platform:o})}},26161:(e,t,n)=>{"use strict";n.d(t,{fi:()=>v,kZ:()=>w});var r=n(23658),i=n(41838),s=n(14498),o=n(32),a=n(50203),l=n(59707),c=n(71684),u=n(67023),d=n(28592);function p(e,t,n){void 0===n&&(n=!1);var p,h,m=(0,o.Re)(t),g=(0,o.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.NM)(t.width)/e.offsetWidth||1,r=(0,d.NM)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),f=(0,c.Z)(t),b=(0,r.Z)(e,g,n),_={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(m||!m&&!n)&&(("body"!==(0,a.Z)(t)||(0,u.Z)(f))&&(_=(p=t)!==(0,s.Z)(p)&&(0,o.Re)(p)?{scrollLeft:(h=p).scrollLeft,scrollTop:h.scrollTop}:(0,i.Z)(p)),(0,o.Re)(t)?((y=(0,r.Z)(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):f&&(y.x=(0,l.Z)(f))),{x:b.left+_.scrollLeft-y.x,y:b.top+_.scrollTop-y.y,width:b.width,height:b.height}}var h=n(85541),m=n(74232),g=n(17753),f=n(85525);function b(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var _={placement:"bottom",modifiers:[],strategy:"absolute"};function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function w(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,s=void 0===i?_:i;return function(e,t,n){void 0===n&&(n=s);var i,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},_,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;w(),l.options=Object.assign({},s,l.options,i),l.scrollParents={reference:(0,o.kK)(e)?(0,m.Z)(e):e.contextElement?(0,m.Z)(e.contextElement):[],popper:(0,m.Z)(t)};var a,u,p=function(e){var t=b(e);return f.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,l.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:l,name:t,instance:d,options:r});c.push(s||function(){})}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(y(t,n)){l.rects={reference:p(t,(0,g.Z)(n),"fixed"===l.options.strategy),popper:(0,h.Z)(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],s=i.fn,o=i.options,a=void 0===o?{}:o,c=i.name;"function"==typeof s&&(l=s({state:l,options:a,name:c,instance:d})||l)}else l.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){w(),u=!0}};if(!y(e,t))return d;function w(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var v=w()},81599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(32);function i(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},23658:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(32),i=n(28592),s=n(14498),o=n(14645);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),l=1,c=1;t&&(0,r.Re)(e)&&(l=e.offsetWidth>0&&(0,i.NM)(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,i.NM)(a.height)/e.offsetHeight||1);var u=((0,r.kK)(e)?(0,s.Z)(e):window).visualViewport,d=!(0,o.Z)()&&n,p=(a.left+(d&&u?u.offsetLeft:0))/l,h=(a.top+(d&&u?u.offsetTop:0))/c,m=a.width/l,g=a.height/c;return{width:m,height:g,top:h,right:p+m,bottom:h+g,left:p,x:p,y:h}}},89043:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(14498);function i(e){return(0,r.Z)(e).getComputedStyle(e)}},71684:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(32);function i(e){return(((0,r.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},85541:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(23658);function i(e){var t=(0,r.Z)(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}},50203:(e,t,n)=>{"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>r})},17753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(14498),i=n(50203),s=n(89043),o=n(32);function a(e){return["table","td","th"].indexOf((0,i.Z)(e))>=0}var l=n(3013),c=n(86509);function u(e){return(0,o.Re)(e)&&"fixed"!==(0,s.Z)(e).position?e.offsetParent:null}function d(e){for(var t=(0,r.Z)(e),n=u(e);n&&a(n)&&"static"===(0,s.Z)(n).position;)n=u(n);return n&&("html"===(0,i.Z)(n)||"body"===(0,i.Z)(n)&&"static"===(0,s.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.Z)());if(/Trident/i.test((0,c.Z)())&&(0,o.Re)(e)&&"fixed"===(0,s.Z)(e).position)return null;var n=(0,l.Z)(e);for((0,o.Zq)(n)&&(n=n.host);(0,o.Re)(n)&&["html","body"].indexOf((0,i.Z)(n))<0;){var r=(0,s.Z)(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}},3013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(50203),i=n(71684),s=n(32);function o(e){return"html"===(0,r.Z)(e)?e:e.assignedSlot||e.parentNode||((0,s.Zq)(e)?e.host:null)||(0,i.Z)(e)}},14498:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>r})},41838:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(14498);function i(e){var t=(0,r.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},59707:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23658),i=n(71684),s=n(41838);function o(e){return(0,r.Z)((0,i.Z)(e)).left+(0,s.Z)(e).scrollLeft}},32:(e,t,n)=>{"use strict";n.d(t,{Re:()=>s,Zq:()=>o,kK:()=>i});var r=n(14498);function i(e){return e instanceof(0,r.Z)(e).Element||e instanceof Element}function s(e){return e instanceof(0,r.Z)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},14645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(86509);function i(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},67023:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(89043);function i(e){var t=(0,r.Z)(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}},74232:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(3013),i=n(67023),s=n(50203),o=n(32);function a(e){return["html","body","#document"].indexOf((0,s.Z)(e))>=0?e.ownerDocument.body:(0,o.Re)(e)&&(0,i.Z)(e)?e:a((0,r.Z)(e))}var l=n(14498);function c(e,t){var n;void 0===t&&(t=[]);var s=a(e),o=s===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.Z)(s),d=o?[u].concat(u.visualViewport||[],(0,i.Z)(s)?s:[]):s,p=t.concat(d);return o?p:p.concat(c((0,r.Z)(d)))}},85525:(e,t,n)=>{"use strict";n.d(t,{BL:()=>c,Ct:()=>f,DH:()=>v,F2:()=>s,I:()=>i,MS:()=>S,N7:()=>b,Pj:()=>p,XM:()=>w,YP:()=>m,bw:()=>g,cW:()=>T,d7:()=>a,ij:()=>_,iv:()=>x,k5:()=>h,mv:()=>l,r5:()=>y,t$:()=>o,ut:()=>u,wX:()=>k,we:()=>r,xs:()=>C,zV:()=>d});var r="top",i="bottom",s="right",o="left",a="auto",l=[r,i,s,o],c="start",u="end",d="clippingParents",p="viewport",h="popper",m="reference",g=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),f=[].concat(l,[a]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),b="beforeRead",_="read",y="afterRead",w="beforeMain",v="main",k="afterMain",x="beforeWrite",T="write",S="afterWrite",C=[b,_,y,w,v,k,x,T,S]},33765:(e,t,n)=>{"use strict";n.r(t),n.d(t,{afterMain:()=>r.wX,afterRead:()=>r.r5,afterWrite:()=>r.MS,applyStyles:()=>i.Z,arrow:()=>s.Z,auto:()=>r.d7,basePlacements:()=>r.mv,beforeMain:()=>r.XM,beforeRead:()=>r.N7,beforeWrite:()=>r.iv,bottom:()=>r.I,clippingParents:()=>r.zV,computeStyles:()=>o.Z,createPopper:()=>g.fi,createPopperBase:()=>h.fi,createPopperLite:()=>b,detectOverflow:()=>m.Z,end:()=>r.ut,eventListeners:()=>a.Z,flip:()=>l.Z,hide:()=>c.Z,left:()=>r.t$,main:()=>r.DH,modifierPhases:()=>r.xs,offset:()=>u.Z,placements:()=>r.Ct,popper:()=>r.k5,popperGenerator:()=>h.kZ,popperOffsets:()=>d.Z,preventOverflow:()=>p.Z,read:()=>r.ij,reference:()=>r.YP,right:()=>r.F2,start:()=>r.BL,top:()=>r.we,variationPlacements:()=>r.bw,viewport:()=>r.Pj,write:()=>r.cW});var r=n(85525),i=n(39107),s=n(66922),o=n(56207),a=n(55773),l=n(6720),c=n(79207),u=n(27466),d=n(38829),p=n(60061),h=n(26161),m=n(4914),g=n(83844),f=[a.Z,d.Z,o.Z,i.Z],b=(0,h.kZ)({defaultModifiers:f})},39107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(50203),i=n(32);const s={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},o=t.elements[e];(0,i.Re)(o)&&(0,r.Z)(o)&&(Object.assign(o.style,n),Object.keys(s).forEach((function(e){var t=s[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,i.Re)(s)&&(0,r.Z)(s)&&(Object.assign(s.style,a),Object.keys(o).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]}},66922:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(92255),i=n(85541),s=n(81599),o=n(17753),a=n(72049),l=n(58519),c=n(56436),u=n(29550),d=n(85525);const p={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,p=e.options,h=n.elements.arrow,m=n.modifiersData.popperOffsets,g=(0,r.Z)(n.placement),f=(0,a.Z)(g),b=[d.t$,d.F2].indexOf(g)>=0?"height":"width";if(h&&m){var _=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.Z)("number"!=typeof e?e:(0,u.Z)(e,d.mv))}(p.padding,n),y=(0,i.Z)(h),w="y"===f?d.we:d.t$,v="y"===f?d.I:d.F2,k=n.rects.reference[b]+n.rects.reference[f]-m[f]-n.rects.popper[b],x=m[f]-n.rects.reference[f],T=(0,o.Z)(h),S=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0,C=k/2-x/2,P=_[w],O=S-y[b]-_[v],E=S/2-y[b]/2+C,D=(0,l.u)(P,E,O),I=f;n.modifiersData[s]=((t={})[I]=D,t.centerOffset=D-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&(0,s.Z)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},56207:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(85525),i=n(17753),s=n(14498),o=n(71684),a=n(89043),l=n(92255),c=n(59487),u=n(28592),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,l=e.popperRect,c=e.placement,p=e.variation,h=e.offsets,m=e.position,g=e.gpuAcceleration,f=e.adaptive,b=e.roundOffsets,_=e.isFixed,y=h.x,w=void 0===y?0:y,v=h.y,k=void 0===v?0:v,x="function"==typeof b?b({x:w,y:k}):{x:w,y:k};w=x.x,k=x.y;var T=h.hasOwnProperty("x"),S=h.hasOwnProperty("y"),C=r.t$,P=r.we,O=window;if(f){var E=(0,i.Z)(n),D="clientHeight",I="clientWidth";E===(0,s.Z)(n)&&(E=(0,o.Z)(n),"static"!==(0,a.Z)(E).position&&"absolute"===m&&(D="scrollHeight",I="scrollWidth")),(c===r.we||(c===r.t$||c===r.F2)&&p===r.ut)&&(P=r.I,k-=(_&&E===O&&O.visualViewport?O.visualViewport.height:E[D])-l.height,k*=g?1:-1),c!==r.t$&&(c!==r.we&&c!==r.I||p!==r.ut)||(C=r.F2,w-=(_&&E===O&&O.visualViewport?O.visualViewport.width:E[I])-l.width,w*=g?1:-1)}var j,Z=Object.assign({position:m},f&&d),A=!0===b?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:(0,u.NM)(n*i)/i||0,y:(0,u.NM)(r*i)/i||0}}({x:w,y:k},(0,s.Z)(n)):{x:w,y:k};return w=A.x,k=A.y,g?Object.assign({},Z,((j={})[P]=S?"0":"",j[C]=T?"0":"",j.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+k+"px)":"translate3d("+w+"px, "+k+"px, 0)",j)):Object.assign({},Z,((t={})[P]=S?k+"px":"",t[C]=T?w+"px":"",t.transform="",t))}const h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,u=void 0===a||a,d={placement:(0,l.Z)(t.placement),variation:(0,c.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},55773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(14498),i={passive:!0};const s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,s=e.options,o=s.scroll,a=void 0===o||o,l=s.resize,c=void 0===l||l,u=(0,r.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,i)})),c&&u.addEventListener("resize",n.update,i),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,i)})),c&&u.removeEventListener("resize",n.update,i)}},data:{}}},6720:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r={left:"right",right:"left",bottom:"top",top:"bottom"};function i(e){return e.replace(/left|right|bottom|top/g,(function(e){return r[e]}))}var s=n(92255),o={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,(function(e){return o[e]}))}var l=n(4914),c=n(59487),u=n(85525);const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,d=void 0===o||o,p=n.altAxis,h=void 0===p||p,m=n.fallbackPlacements,g=n.padding,f=n.boundary,b=n.rootBoundary,_=n.altBoundary,y=n.flipVariations,w=void 0===y||y,v=n.allowedAutoPlacements,k=t.options.placement,x=(0,s.Z)(k),T=m||(x!==k&&w?function(e){if((0,s.Z)(e)===u.d7)return[];var t=i(e);return[a(e),t,a(t)]}(k):[i(k)]),S=[k].concat(T).reduce((function(e,n){return e.concat((0,s.Z)(n)===u.d7?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,h=void 0===p?u.Ct:p,m=(0,c.Z)(r),g=m?d?u.bw:u.bw.filter((function(e){return(0,c.Z)(e)===m})):u.mv,f=g.filter((function(e){return h.indexOf(e)>=0}));0===f.length&&(f=g);var b=f.reduce((function(t,n){return t[n]=(0,l.Z)(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[(0,s.Z)(n)],t}),{});return Object.keys(b).sort((function(e,t){return b[e]-b[t]}))}(t,{placement:n,boundary:f,rootBoundary:b,padding:g,flipVariations:w,allowedAutoPlacements:v}):n)}),[]),C=t.rects.reference,P=t.rects.popper,O=new Map,E=!0,D=S[0],I=0;I<S.length;I++){var j=S[I],Z=(0,s.Z)(j),A=(0,c.Z)(j)===u.BL,M=[u.we,u.I].indexOf(Z)>=0,N=M?"width":"height",z=(0,l.Z)(t,{placement:j,boundary:f,rootBoundary:b,altBoundary:_,padding:g}),L=M?A?u.F2:u.t$:A?u.I:u.we;C[N]>P[N]&&(L=i(L));var F=i(L),U=[];if(d&&U.push(z[Z]<=0),h&&U.push(z[L]<=0,z[F]<=0),U.every((function(e){return e}))){D=j,E=!1;break}O.set(j,U)}if(E)for(var R=function(e){var t=S.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},B=w?3:1;B>0&&"break"!==R(B);B--);t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},79207:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(85525),i=n(4914);function s(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function o(e){return[r.we,r.F2,r.I,r.t$].some((function(t){return e[t]>=0}))}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,i.Z)(t,{elementContext:"reference"}),u=(0,i.Z)(t,{altBoundary:!0}),d=s(c,r),p=s(u,a,l),h=o(d),m=o(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}}},27466:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(92255),i=n(85525);const s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,s=e.name,o=n.offset,a=void 0===o?[0,0]:o,l=i.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var s=(0,r.Z)(e),o=[i.t$,i.we].indexOf(s)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[i.t$,i.F2].indexOf(s)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,a),e}),{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[s]=l}}},38829:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(84721);const i={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},60061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(85525),i=n(92255),s=n(72049),o=n(58519),a=n(85541),l=n(17753),c=n(4914),u=n(59487),d=n(55718),p=n(28592);const h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,m=n.mainAxis,g=void 0===m||m,f=n.altAxis,b=void 0!==f&&f,_=n.boundary,y=n.rootBoundary,w=n.altBoundary,v=n.padding,k=n.tether,x=void 0===k||k,T=n.tetherOffset,S=void 0===T?0:T,C=(0,c.Z)(t,{boundary:_,rootBoundary:y,padding:v,altBoundary:w}),P=(0,i.Z)(t.placement),O=(0,u.Z)(t.placement),E=!O,D=(0,s.Z)(P),I="x"===D?"y":"x",j=t.modifiersData.popperOffsets,Z=t.rects.reference,A=t.rects.popper,M="function"==typeof S?S(Object.assign({},t.rects,{placement:t.placement})):S,N="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(j){if(g){var F,U="y"===D?r.we:r.t$,R="y"===D?r.I:r.F2,B="y"===D?"height":"width",$=j[D],q=$+C[U],H=$-C[R],W=x?-A[B]/2:0,K=O===r.BL?Z[B]:A[B],V=O===r.BL?-A[B]:-Z[B],G=t.elements.arrow,Y=x&&G?(0,a.Z)(G):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),J=Q[U],X=Q[R],ee=(0,o.u)(0,Z[B],Y[B]),te=E?Z[B]/2-W-ee-J-N.mainAxis:K-ee-J-N.mainAxis,ne=E?-Z[B]/2+W+ee+X+N.mainAxis:V+ee+X+N.mainAxis,re=t.elements.arrow&&(0,l.Z)(t.elements.arrow),ie=re?"y"===D?re.clientTop||0:re.clientLeft||0:0,se=null!=(F=null==z?void 0:z[D])?F:0,oe=$+te-se-ie,ae=$+ne-se,le=(0,o.u)(x?(0,p.VV)(q,oe):q,$,x?(0,p.Fp)(H,ae):H);j[D]=le,L[D]=le-$}if(b){var ce,ue="x"===D?r.we:r.t$,de="x"===D?r.I:r.F2,pe=j[I],he="y"===I?"height":"width",me=pe+C[ue],ge=pe-C[de],fe=-1!==[r.we,r.t$].indexOf(P),be=null!=(ce=null==z?void 0:z[I])?ce:0,_e=fe?me:pe-Z[he]-A[he]-be+N.altAxis,ye=fe?pe+Z[he]+A[he]-be-N.altAxis:ge,we=x&&fe?(0,o.q)(_e,pe,ye):(0,o.u)(x?_e:me,pe,x?ye:ge);j[I]=we,L[I]=we-pe}t.modifiersData[h]=L}},requiresIfExists:["offset"]}},83844:(e,t,n)=>{"use strict";n.d(t,{fi:()=>m});var r=n(26161),i=n(55773),s=n(38829),o=n(56207),a=n(39107),l=n(27466),c=n(6720),u=n(60061),d=n(66922),p=n(79207),h=[i.Z,s.Z,o.Z,a.Z,l.Z,c.Z,u.Z,d.Z,p.Z],m=(0,r.kZ)({defaultModifiers:h})},84721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(92255),i=n(59487),s=n(72049),o=n(85525);function a(e){var t,n=e.reference,a=e.element,l=e.placement,c=l?(0,r.Z)(l):null,u=l?(0,i.Z)(l):null,d=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2;switch(c){case o.we:t={x:d,y:n.y-a.height};break;case o.I:t={x:d,y:n.y+n.height};break;case o.F2:t={x:n.x+n.width,y:p};break;case o.t$:t={x:n.x-a.width,y:p};break;default:t={x:n.x,y:n.y}}var h=c?(0,s.Z)(c):null;if(null!=h){var m="y"===h?"height":"width";switch(u){case o.BL:t[h]=t[h]-(n[m]/2-a[m]/2);break;case o.ut:t[h]=t[h]+(n[m]/2-a[m]/2)}}return t}},4914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(85525),i=n(14498),s=n(71684),o=n(59707),a=n(14645),l=n(89043),c=n(41838),u=n(28592),d=n(74232),p=n(17753),h=n(32),m=n(23658),g=n(3013),f=n(81599),b=n(50203);function _(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t,n){return t===r.Pj?_(function(e,t){var n=(0,i.Z)(e),r=(0,s.Z)(e),l=n.visualViewport,c=r.clientWidth,u=r.clientHeight,d=0,p=0;if(l){c=l.width,u=l.height;var h=(0,a.Z)();(h||!h&&"fixed"===t)&&(d=l.offsetLeft,p=l.offsetTop)}return{width:c,height:u,x:d+(0,o.Z)(e),y:p}}(e,n)):(0,h.kK)(t)?function(e,t){var n=(0,m.Z)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):_(function(e){var t,n=(0,s.Z)(e),r=(0,c.Z)(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=(0,u.Fp)(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=(0,u.Fp)(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),p=-r.scrollLeft+(0,o.Z)(e),h=-r.scrollTop;return"rtl"===(0,l.Z)(i||n).direction&&(p+=(0,u.Fp)(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:d,x:p,y:h}}((0,s.Z)(e)))}var w=n(84721),v=n(56436),k=n(29550);function x(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,a=n.strategy,c=void 0===a?e.strategy:a,x=n.boundary,T=void 0===x?r.zV:x,S=n.rootBoundary,C=void 0===S?r.Pj:S,P=n.elementContext,O=void 0===P?r.k5:P,E=n.altBoundary,D=void 0!==E&&E,I=n.padding,j=void 0===I?0:I,Z=(0,v.Z)("number"!=typeof j?j:(0,k.Z)(j,r.mv)),A=O===r.k5?r.YP:r.k5,M=e.rects.popper,N=e.elements[D?A:O],z=function(e,t,n,r){var i="clippingParents"===t?function(e){var t=(0,d.Z)((0,g.Z)(e)),n=["absolute","fixed"].indexOf((0,l.Z)(e).position)>=0&&(0,h.Re)(e)?(0,p.Z)(e):e;return(0,h.kK)(n)?t.filter((function(e){return(0,h.kK)(e)&&(0,f.Z)(e,n)&&"body"!==(0,b.Z)(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce((function(t,n){var i=y(e,n,r);return t.top=(0,u.Fp)(i.top,t.top),t.right=(0,u.VV)(i.right,t.right),t.bottom=(0,u.VV)(i.bottom,t.bottom),t.left=(0,u.Fp)(i.left,t.left),t}),y(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}((0,h.kK)(N)?N:N.contextElement||(0,s.Z)(e.elements.popper),T,C,c),L=(0,m.Z)(e.elements.reference),F=(0,w.Z)({reference:L,element:M,strategy:"absolute",placement:o}),U=_(Object.assign({},M,F)),R=O===r.k5?U:L,B={top:z.top-R.top+Z.top,bottom:R.bottom-z.bottom+Z.bottom,left:z.left-R.left+Z.left,right:R.right-z.right+Z.right},$=e.modifiersData.offset;if(O===r.k5&&$){var q=$[o];Object.keys(B).forEach((function(e){var t=[r.F2,r.I].indexOf(e)>=0?1:-1,n=[r.we,r.I].indexOf(e)>=0?"y":"x";B[e]+=q[n]*t}))}return B}},29550:(e,t,n)=>{"use strict";function r(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:()=>r})},92255:(e,t,n)=>{"use strict";function r(e){return e.split("-")[0]}n.d(t,{Z:()=>r})},55718:(e,t,n)=>{"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:()=>r})},72049:(e,t,n)=>{"use strict";function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:()=>r})},59487:(e,t,n)=>{"use strict";function r(e){return e.split("-")[1]}n.d(t,{Z:()=>r})},28592:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>r,NM:()=>s,VV:()=>i});var r=Math.max,i=Math.min,s=Math.round},56436:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(55718);function i(e){return Object.assign({},(0,r.Z)(),e)}},86509:(e,t,n)=>{"use strict";function r(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:()=>r})},58519:(e,t,n)=>{"use strict";n.d(t,{q:()=>s,u:()=>i});var r=n(28592);function i(e,t,n){return(0,r.Fp)(e,(0,r.VV)(t,n))}function s(e,t,n){var r=i(e,t,n);return r>n?n:r}},35804:e=>{e.exports=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));const i=n[r];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${i}`:`${(t?"-":"")+e.toFixed(1)} ${i}`}},64270:e=>{e.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,i,s){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(t,i,s);var o,a,l,c,u=[],d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),p=0;for(i=new RegExp(i.source,d+"g"),t+="",r||(o=new RegExp("^"+i.source+"$(?!\\s)",d)),s=s===e?-1>>>0:s>>>0;(a=i.exec(t))&&!((l=a.index+a[0].length)>p&&(u.push(t.slice(p,a.index)),!r&&a.length>1&&a[0].replace(o,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(a[t]=e)})),a.length>1&&a.index<t.length&&Array.prototype.push.apply(u,a.slice(1)),c=a[0].length,p=l,u.length>=s));)i.lastIndex===a.index&&i.lastIndex++;return p===t.length?!c&&i.test("")||u.push(""):u.push(t.slice(p)),u.length>s?u.slice(0,s):u},t}()},92218:(e,t,n)=>{var r=n(20495),i=n(93028);function s(e){return null==e}function o(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}n(25279),o.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,o=t.onIgnoreAttr,a=t.safeAttrValue;return i(e,(function(e,t,i,l,c){var u=n[i],d=!1;if(!0===u?d=u:"function"==typeof u?d=u(l):u instanceof RegExp&&(d=u.test(l)),!0!==d&&(d=!1),l=a(i,l)){var p,h={position:t,sourcePosition:e,source:c,isWhite:d};return d?s(p=r(i,l,h))?i+":"+l:p:s(p=o(i,l,h))?void 0:p}}))},e.exports=o},20495:(e,t)=>{function n(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var r=/javascript\s*\:/gim;t.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},22081:(e,t,n)=>{var r=n(20495),i=n(92218);for(var s in(t=e.exports=function(e,t){return new i(t).process(e)}).FilterCSS=i,r)t[s]=r[s];"undefined"!=typeof window&&(window.filterCSS=e.exports)},93028:(e,t,n)=>{var r=n(25279);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,i=!1,s=0,o=0,a="";function l(){if(!i){var n=r.trim(e.slice(s,o)),l=n.indexOf(":");if(-1!==l){var c=r.trim(n.slice(0,l)),u=r.trim(n.slice(l+1));if(c){var d=t(s,a.length,c,u,n);d&&(a+=d+"; ")}}}s=o+1}for(;o<n;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var u=e.indexOf("*/",o+2);if(-1===u)break;s=(o=u+1)+1,i=!1}else"("===c?i=!0:")"===c?i=!1:";"===c?i||l():"\n"===c&&l()}return r.trim(a)}},25279:e=>{e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},42465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,modifier:()=>u});var r=n(72326),i=n(48581),s=n(76786);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a{constructor(e){this.owner=e,o(this,"capabilities",(0,i.capabilities)("3.22"))}createModifier(e,t){return{instance:new e(this.owner,t),element:null}}installModifier(e,t,n){const r=function(e,t){const n=e;return n.element=t,n}(e,t);r.instance.modify(t,n.positional,n.named)}updateModifier(e,t){e.instance.modify(e.element,t.positional,t.named)}destroyModifier(e){let{instance:t}=e;(0,s.destroy)(t)}}class l{constructor(e,t){(0,r.setOwner)(this,e)}modify(e,t,n){}}(0,i.setModifierManager)((e=>new a(e)),l);const c=new class{constructor(){o(this,"capabilities",(0,i.capabilities)("3.22"))}createModifier(e){return{element:null,instance:e}}installModifier(e,t,n){const r=function(e,t){const n=e;return n.element=t,n}(e,t),{positional:i,named:s}=n,o=e.instance(t,i,s);"function"==typeof o&&(r.teardown=o)}updateModifier(e,t){"function"==typeof e.teardown&&e.teardown();const n=e.instance(e.element,t.positional,t.named);"function"==typeof n&&(e.teardown=n)}destroyModifier(e){"function"==typeof e.teardown&&e.teardown()}};function u(e){return(0,i.setModifierManager)((()=>c),e)}},89135:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(8620);function i(e){return(0,r.createTemplateFactory)({id:"xQwiQMBr",block:'[[[8,[32,0],null,[["@model","@controller"],[[30,1],[30,0]]],null]],["@model"],false,[]]',moduleName:"/srv/discourse/app/app/assets/javascripts/node_modules/ember-route-template/dist/index.js",scope:()=>[e],isStrictMode:!0})}},3602:(e,t,n)=>{"use strict";n(90140)("ev-store","7");var r="__EV_STORE_KEY@7";e.exports=function(e){var t=e[r];return t||(t=e[r]={}),t}},31754:(e,t,n)=>{var r,i="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},s=n(45706);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=s),e.exports=r},31706:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=r(n(3454)),s=r(n(73700)),o=n(54498),a=n(87330),l=r(n(84771)),c=r(n(37856)),u=r(n(59430)),d=i.default.create;function p(){var e=d();return e.compile=function(t,n){return a.compile(t,n,e)},e.precompile=function(t,n){return a.precompile(t,n,e)},e.AST=s.default,e.Compiler=a.Compiler,e.JavaScriptCompiler=l.default,e.Parser=o.parser,e.parse=o.parse,e.parseWithoutProcessing=o.parseWithoutProcessing,e}var h=p();h.create=p,u.default(h),h.Visitor=c.default,h.default=h,t.default=h,e.exports=t.default},3454:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var s=i(n(83930)),o=r(n(22884)),a=r(n(77187)),l=i(n(58841)),c=i(n(78031)),u=r(n(59430));function d(){var e=new s.HandlebarsEnvironment;return l.extend(e,s),e.SafeString=o.default,e.Exception=a.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var p=d();p.create=d,u.default(p),p.default=p,t.default=p,e.exports=t.default},83930:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=d;var i=n(58841),s=r(n(77187)),o=n(22393),a=n(98143),l=r(n(82842)),c=n(98854);t.VERSION="4.7.8",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function d(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},o.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(i.toString.call(e)===u){if(t)throw new s.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===u)i.extend(this.partials,e);else{if(void 0===t)throw new s.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===u){if(t)throw new s.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var p=l.default.log;t.log=p,t.createFrame=i.createFrame,t.logger=l.default},73700:(e,t)=>{"use strict";t.__esModule=!0;var n={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n,e.exports=t.default},54498:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.parseWithoutProcessing=c,t.parse=function(e,t){var n=c(e,t);return new s.default(t).accept(n)};var i=r(n(82726)),s=r(n(25463)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5366)),a=n(58841);t.parser=i.default;var l={};function c(e,t){return"Program"===e.type?e:(i.default.yy=l,l.locInfo=function(e){return new l.SourceLocation(t&&t.srcName,e)},i.default.parse(e))}a.extend(l,o)},53763:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(58841),i=void 0;function s(e,t,n){if(r.isArray(e)){for(var i=[],s=0,o=e.length;s<o;s++)i.push(t.wrap(e[s],n));return i}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}i||((i=function(e,t,n,r){this.src="",r&&this.add(r)}).prototype={add:function(e){r.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){r.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add(["  ",t,"\n"])})),e},each:function(e){for(var t=0,n=this.source.length;t<n;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new i(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof i?e:(e=s(e,this,t),new i(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,n=[];Object.keys(e).forEach((function(r){var i=s(e[r],t);"undefined"!==i&&n.push([t.quotedString(r),":",i])}));var r=this.generateList(n);return r.prepend("{"),r.add("}"),r},generateList:function(e){for(var t=this.empty(),n=0,r=e.length;n<r;n++)n&&t.add(","),t.add(s(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default},87330:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Compiler=l,t.precompile=function(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),s=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(s,t)},t.compile=function(e,t,n){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var r=n.parse(e,t),i=(new n.Compiler).compile(r,t),s=(new n.JavaScriptCompiler).compile(i,t,void 0,!0);return n.template(s)}function a(e,t){return r||(r=o()),r.call(this,e,t)}return a._setup=function(e){return r||(r=o()),r._setup(e)},a._child=function(e,t,n,i){return r||(r=o()),r._child(e,t,n,i)},a};var i=r(n(77187)),s=n(58841),o=r(n(73700)),a=[].slice;function l(){}function c(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!c(e[n],t[n]))return!1;return!0}}function u(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}l.prototype={compiler:l,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||!c(r.args,i.args))return!1}for(t=this.children.length,n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[n]=t,this.useDepths=this.useDepths||t.useDepths,n},accept:function(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,r=0;r<n;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){u(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,n):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new i.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,s="SubExpression"===e.name.type;s&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var o=e.indent||"";this.options.preventIndent&&o&&(this.opcode("appendContent",o),o=""),this.opcode("invokePartial",s,r,o),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){u(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,i=r.parts[0],s=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,s)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),s=e.path,a=s.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);s.strict=!0,s.falsy=!0,this.accept(s),this.opcode("invokeHelper",r.length,s.original,o.default.helpers.simpleId(s))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=o.default.helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:a.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),r=!n&&o.default.helpers.helperExpression(e),i=!n&&(r||t);if(i&&!r){var s=e.path.parts[0],a=this.options;a.knownHelpers[s]?r=!0:a.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;t<n;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var n=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(n=this.blockParamIndex(e.parts[0])),n){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,r){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;t<n;t++){var r=this.options.blockParams[t],i=r&&s.indexOf(r,e);if(r&&i>=0)return[t,i]}}}},5366:(e,t,n)=>{"use strict";t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",s=[],o=0,a=0,l=t.length;a<l;a++){var c=t[a].part,u=t[a].original!==c;if(r+=(t[a].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)s.push(c);else{if(s.length>0)throw new i.default("Invalid path: "+r,{loc:n});".."===c&&o++}}return{type:"PathExpression",data:e,depth:o,parts:s,original:r,loc:n}},t.prepareMustache=function(e,t,n,r,i,s){var o=r.charAt(3)||r.charAt(2),a="{"!==o&&"&"!==o;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:a,strip:i,loc:this.locInfo(s)}},t.prepareRawBlock=function(e,t,n,r){s(e,n);var i={type:"Program",body:t,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,n,r,o,a){r&&r.path&&s(e,r);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(n){if(l)throw new i.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,c=n.program}return o&&(o=c,c=t,t=o),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(a)}},t.prepareProgram=function(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,n,r){return s(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var r,i=(r=n(77187))&&r.__esModule?r:{default:r};function s(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new i.default(e.path.original+" doesn't match "+t,n)}}},84771:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(83930),s=r(n(77187)),o=n(58841),a=r(n(53763));function l(e){this.value=e}function c(){}c.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=i.COMPILER_REVISION;return[e,i.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,n){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,o=void 0,a=void 0,l=void 0,c=void 0;for(l=0,c=i.length;l<c;l++)o=i[l],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(r);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,h=p.programs,m=p.decorators;for(l=0,c=h.length;l<c;l++)h[l]&&(d[l]=h[l],m[l]&&(d[l+"_d"]=m[l],d.useDecorators=!0));return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),r?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),t.srcName?(d=d.toStringWithSourceMap({file:t.destName})).map=d.map&&d.map.toString():d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new a.default(this.options.srcName),this.decorators=new a.default(this.options.srcName)},createFunctionContext:function(e){var t=this,n="",r=this.stackVars.concat(this.registers.list);r.length>0&&(n+=", "+r.join(", "));var i=0;Object.keys(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++i+"="+e,r.children[0]="alias"+i)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(n);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n  ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,s=void 0,o=void 0;return this.source.each((function(e){e.appendToBuffer?(s?e.prepend("  + "):s=e,o=e):(s&&(i?s.prepend("buffer += "):r=!0,o.add(";"),s=o=void 0),i=!0,t||(n=!1))})),n?s?(s.prepend("return "),o.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),s?(s.prepend("return buffer + "),o.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n      lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    }\n    ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,i){var s=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r,i){var s=t.popStack(),o=n.length;for(e&&o--;r<o;r++)s=t.nameLookup(s,n[r],i);return e?[t.aliasable("container.strict"),"(",s,", ",t.quotedString(n[r]),", ",JSON.stringify(t.source.currentLocation)," )"]:s}(this.options.strict&&i,this,t,n,e));else for(var o=t.length;n<o;n++)this.replaceStack((function(i){var o=s.nameLookup(i,t[n],e);return r?[" && ",o]:[" != null ? ",o," : ",i]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,n){var r=this.popStack(),i=this.setupHelper(e,t),s=[];n&&s.push(i.name),s.push(r),this.options.strict||s.push(this.aliasable("container.hooks.helperMissing"));var o=["(",this.itemsSeparatedBy(s,"||"),")"],a=this.source.functionCall(o,"call",i.callParams);this.push(a)},itemsSeparatedBy:function(e,t){var n=[];n.push(e[0]);for(var r=1;r<e.length;r++)n.push(t,e[r]);return n},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",n,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,n){var r=[],i=this.setupParams(t,1,r);e&&(t=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),n=void 0,r=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var s=this.hash;n&&(s.contexts[e]=n),r&&(s.types[e]=r),i&&(s.ids[e]=i),s.values[e]=t},pushId:function(e,t,n){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(e,t){for(var n=e.children,r=void 0,i=void 0,s=0,o=n.length;s<o;s++){r=n[s],i=new this.compiler;var a=this.matchExistingProgram(r);if(null==a){this.context.programs.push("");var l=this.context.programs.length;r.index=l,r.name="program"+l,this.context.programs[l]=i.compile(r,t,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=a.index,r.name="program"+a.index,this.useDepths=this.useDepths||a.useDepths,this.useBlockParams=this.useBlockParams||a.useBlockParams}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof l||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new l(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,r=void 0,i=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var o=this.popStack(!0);if(o instanceof l)t=["(",n=[o.value]],i=!0;else{r=!0;var a=this.incrStack();t=["((",this.push(a)," = ",o,")"],n=this.topStack()}var c=e.call(this,n);i||this.popStack(),r&&this.stackSlot--,this.push(t.concat(c,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r instanceof l)this.compileStack.push(r);else{var i=this.incrStack();this.pushSource([i," = ",r,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof l)return n.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof l?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,n),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,n){var r={},i=[],s=[],o=[],a=!n,l=void 0;a&&(n=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(r.fn=u||"container.noop",r.inverse=c||"container.noop");for(var d=t;d--;)l=this.popStack(),n[d]=l,this.trackIds&&(o[d]=this.popStack()),this.stringParams&&(s[d]=this.popStack(),i[d]=this.popStack());return a&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(o)),this.stringParams&&(r.types=this.source.generateArray(s),r.contexts=this.source.generateArray(i)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,n,r){var i=this.setupParams(e,t,n);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),r?(this.useRegister("options"),n.push("options"),["options=",i]):n?(n.push(i),""):i}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=c.RESERVED_WORDS={},n=0,r=e.length;n<r;n++)t[e[n]]=!0}(),c.isValidJavaScriptVariableName=function(e){return!c.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=c,e.exports=t.default},82726:(e,t)=>{"use strict";t.__esModule=!0;var n=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,n,r,i,s,o){var a=s.length-1;switch(i){case 1:return s[a-1];case 2:this.$=r.prepareProgram(s[a]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=s[a];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(s[a]),strip:r.stripFlags(s[a],s[a]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:s[a],value:s[a],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(s[a-2],s[a-1],s[a],this._$);break;case 12:this.$={path:s[a-3],params:s[a-2],hash:s[a-1]};break;case 13:this.$=r.prepareBlock(s[a-3],s[a-2],s[a-1],s[a],!1,this._$);break;case 14:this.$=r.prepareBlock(s[a-3],s[a-2],s[a-1],s[a],!0,this._$);break;case 15:this.$={open:s[a-5],path:s[a-4],params:s[a-3],hash:s[a-2],blockParams:s[a-1],strip:r.stripFlags(s[a-5],s[a])};break;case 16:case 17:this.$={path:s[a-4],params:s[a-3],hash:s[a-2],blockParams:s[a-1],strip:r.stripFlags(s[a-5],s[a])};break;case 18:this.$={strip:r.stripFlags(s[a-1],s[a-1]),program:s[a]};break;case 19:var l=r.prepareBlock(s[a-2],s[a-1],s[a],s[a],!1,this._$),c=r.prepareProgram([l],s[a-1].loc);c.chained=!0,this.$={strip:s[a-2].strip,program:c,chain:!0};break;case 21:this.$={path:s[a-1],strip:r.stripFlags(s[a-2],s[a])};break;case 22:case 23:this.$=r.prepareMustache(s[a-3],s[a-2],s[a-1],s[a-4],r.stripFlags(s[a-4],s[a]),this._$);break;case 24:this.$={type:"PartialStatement",name:s[a-3],params:s[a-2],hash:s[a-1],indent:"",strip:r.stripFlags(s[a-4],s[a]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(s[a-2],s[a-1],s[a],this._$);break;case 26:this.$={path:s[a-3],params:s[a-2],hash:s[a-1],strip:r.stripFlags(s[a-4],s[a])};break;case 29:this.$={type:"SubExpression",path:s[a-3],params:s[a-2],hash:s[a-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:s[a],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(s[a-2]),value:s[a],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(s[a-1]);break;case 35:this.$={type:"StringLiteral",value:s[a],original:s[a],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(s[a]),original:Number(s[a]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===s[a],original:"true"===s[a],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,s[a],this._$);break;case 43:this.$=r.preparePath(!1,s[a],this._$);break;case 44:s[a-2].push({part:r.id(s[a]),original:s[a],separator:s[a-1]}),this.$=s[a-2];break;case 45:this.$=[{part:r.id(s[a]),original:s[a]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:s[a-1].push(s[a]);break;case 98:case 100:this.$=[s[a]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=[0],n=[null],r=[],i=this.table,s="",o=0,a=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;r.push(c);var u=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,p,h,m,g,f,b,_,y,w,v={};;){if(h=t[t.length-1],this.defaultActions[h]?m=this.defaultActions[h]:(null==d&&(w=void 0,"number"!=typeof(w=this.lexer.lex()||1)&&(w=this.symbols_[w]||w),d=w),m=i[h]&&i[h][d]),void 0===m||!m.length||!m[0]){var k="";if(!l){for(f in y=[],i[h])this.terminals_[f]&&f>2&&y.push("'"+this.terminals_[f]+"'");k=this.lexer.showPosition?"Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+y.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:c,expected:y})}}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+d);switch(m[0]){case 1:t.push(d),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),t.push(m[1]),d=null,p?(d=p,p=null):(a=this.lexer.yyleng,s=this.lexer.yytext,o=this.lexer.yylineno,c=this.lexer.yylloc,l>0&&l--);break;case 2:if(b=this.productions_[m[1]][1],v.$=n[n.length-b],v._$={first_line:r[r.length-(b||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(b||1)].first_column,last_column:r[r.length-1].last_column},u&&(v._$.range=[r[r.length-(b||1)].range[0],r[r.length-1].range[1]]),void 0!==(g=this.performAction.call(v,s,a,o,this.yy,m[1],n,r)))return g;b&&(t=t.slice(0,-1*b*2),n=n.slice(0,-1*b),r=r.slice(0,-1*b)),t.push(this.productions_[m[1]][0]),n.push(v.$),r.push(v._$),_=i[t[t.length-2]][t[t.length-1]],t.push(_);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),o=0;o<s.length&&(!(n=this._input.match(this.rules[s[o]]))||t&&!(n[0].length>t[0].length)||(t=n,r=o,this.options.flex));o++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,s[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.default=n,e.exports=t.default},37856:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(77187))&&r.__esModule?r:{default:r};function s(){this.parents=[]}function o(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function a(e){o.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}s.prototype={constructor:s,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!s.prototype[n.type])throw new i.default('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new i.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:o,Decorator:o,BlockStatement:a,DecoratorBlock:a,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:o,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=s,e.exports=t.default},25463:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(37856))&&r.__esModule?r:{default:r};function s(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function o(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],i=e[t-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function a(e,t,n){void 0===t&&(t=-1);var r=e[t+1],i=e[t+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function l(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function c(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}s.prototype=new i.default,s.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,i=0,s=r.length;i<s;i++){var u=r[i],d=this.accept(u);if(d){var p=o(r,i,n),h=a(r,i,n),m=d.openStandalone&&p,g=d.closeStandalone&&h,f=d.inlineStandalone&&p&&h;d.close&&l(r,i,!0),d.open&&c(r,i,!0),t&&f&&(l(r,i),c(r,i)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&m&&(l((u.program||u.inverse).body),c(r,i)),t&&g&&(l(r,i),c((u.inverse||u.program).body))}}return e},s.prototype.BlockStatement=s.prototype.DecoratorBlock=s.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var s={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:a(t.body),closeStandalone:o((r||t).body)};if(e.openStrip.close&&l(t.body,null,!0),n){var u=e.inverseStrip;u.open&&c(t.body,null,!0),u.close&&l(r.body,null,!0),e.closeStrip.open&&c(i.body,null,!0),!this.options.ignoreStandalone&&o(t.body)&&a(r.body)&&(c(t.body),l(r.body))}else e.closeStrip.open&&c(t.body,null,!0);return s},s.prototype.Decorator=s.prototype.MustacheStatement=function(e){return e.strip},s.prototype.PartialStatement=s.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=s,e.exports=t.default},98143:(e,t,n)=>{"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var r,i=(r=n(2885))&&r.__esModule?r:{default:r}},2885:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(58841);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var s=e;return t.partials||(t.partials={},s=function(i,s){var o=n.partials;n.partials=r.extend({},o,t.partials);var a=e(i,s);return n.partials=o,a}),t.partials[i.args[0]]=i.fn,s}))},e.exports=t.default},77187:(e,t)=>{"use strict";t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(e,t){var i=t&&t.loc,s=void 0,o=void 0,a=void 0,l=void 0;i&&(s=i.start.line,o=i.end.line,a=i.start.column,l=i.end.column,e+=" - "+s+":"+a);for(var c=Error.prototype.constructor.call(this,e),u=0;u<n.length;u++)this[n[u]]=c[n[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=s,this.endLineNumber=o,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=a,this.endColumn=l))}catch(e){}}r.prototype=new Error,t.default=r,e.exports=t.default},22393:(e,t,n)=>{"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),s.default(e),o.default(e),a.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var i=r(n(29489)),s=r(n(25398)),o=r(n(90843)),a=r(n(54692)),l=r(n(68790)),c=r(n(44436)),u=r(n(89529))},29489:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(58841);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,s=n.fn;if(!0===t)return s(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var o=r.createFrame(n.data);o.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:o}}return s(t,n)}))},e.exports=t.default},25398:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(58841),s=(r=n(77187))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new s.default("Must pass iterator to #each");var n,r=t.fn,o=t.inverse,a=0,l="",c=void 0,u=void 0;function d(t,n,s){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!s,u&&(c.contextPath=u+t)),l+=r(e[t],{data:c,blockParams:i.blockParams([e[t],t],[u+t,null])})}if(t.data&&t.ids&&(u=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(c=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;a<p;a++)a in e&&d(a,a,a===e.length-1);else if("function"==typeof Symbol&&e[Symbol.iterator]){for(var h=[],m=e[Symbol.iterator](),g=m.next();!g.done;g=m.next())h.push(g.value);for(p=(e=h).length;a<p;a++)d(a,a,a===e.length-1)}else n=void 0,Object.keys(e).forEach((function(e){void 0!==n&&d(n,a-1),n=e,a++})),void 0!==n&&d(n,a-1,!0);return 0===a&&(l=o(this)),l}))},e.exports=t.default},90843:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=(r=n(77187))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},54692:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(58841),s=(r=n(77187))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new s.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new s.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},68790:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},44436:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default},89529:(e,t,n)=>{"use strict";t.__esModule=!0;var r,i=n(58841),s=(r=n(77187))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new s.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var n=t.fn;if(i.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:i.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},54965:(e,t,n)=>{"use strict";t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.extend.apply(void 0,[Object.create(null)].concat(t))};var r=n(58841)},98854:(e,t,n)=>{"use strict";t.__esModule=!0,t.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==o[e]&&(o[e]=!0,s.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){Object.keys(o).forEach((function(e){delete o[e]}))};var r,i=n(54965),s=(r=n(82842))&&r.__esModule?r:{default:r},o=Object.create(null)},84976:(e,t)=>{"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},82842:(e,t,n)=>{"use strict";t.__esModule=!0;var r=n(58841),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},59430:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",(function(){return this})),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},78031:(e,t,n)=>{"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=o.COMPILER_REVISION;if(!(t>=o.LAST_COMPATIBLE_COMPILER_REVISION&&t<=o.COMPILER_REVISION)){if(t<o.LAST_COMPATIBLE_COMPILER_REVISION){var r=o.REVISION_CHANGES[n],i=o.REVISION_CHANGES[t];throw new s.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new s.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new s.default("No environment passed to template");if(!e||!e.main)throw new s.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0],r={strict:function(e,t,n){if(!e||!(t in e))throw new s.default('"'+t+'" not defined in '+e,{loc:n});return r.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||c.resultIsAllowed(n,r.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,i=0;i<n;i++)if(null!=(e[i]&&r.lookupProperty(e[i],t)))return e[i][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:i.escapeExpression,invokePartial:function(n,r,o){o.hash&&(r=i.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,o);var a=i.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),l=t.VM.invokePartial.call(this,n,r,a);if(null==l&&t.compile&&(o.partials[o.name]=t.compile(n,e.compilerOptions,t),l=o.partials[o.name](r,a)),null!=l){if(o.indent){for(var c=l.split("\n"),u=0,d=c.length;u<d&&(c[u]||u+1!==d);u++)c[u]=o.indent+c[u];l=c.join("\n")}return l}throw new s.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var s=this.programs[e],o=this.fn(e);return t||i||r||n?s=u(this,e,o,t,n,r,i):s||(s=this.programs[e]=u(this,e,o)),s},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=i.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function d(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=n.data;d._setup(n),!n.partial&&e.useData&&(i=function(e,t){return t&&"root"in t||((t=t?o.createFrame(t):{}).root=e),t}(t,i));var s=void 0,a=e.useBlockParams?[]:void 0;function l(t){return""+e.main(r,t,r.helpers,r.partials,i,a,s)}return e.useDepths&&(s=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(l=p(e.main,l,r,n.depths||[],i,a))(t,n)}return d.isTop=!0,d._setup=function(s){if(s.partial)r.protoAccessControl=s.protoAccessControl,r.helpers=s.helpers,r.partials=s.partials,r.decorators=s.decorators,r.hooks=s.hooks;else{var o=i.extend({},t.helpers,s.helpers);!function(e,t){Object.keys(e).forEach((function(n){var r=e[n];e[n]=function(e,t){var n=t.lookupProperty;return l.wrapHelper(e,(function(e){return i.extend({lookupProperty:n},e)}))}(r,t)}))}(o,r),r.helpers=o,e.usePartial&&(r.partials=r.mergeIfNeeded(s.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=i.extend({},t.decorators,s.decorators)),r.hooks={},r.protoAccessControl=c.createProtoAccessControl(s);var u=s.allowCallsToHelperMissing||n;a.moveHelperToHooks(r,"helperMissing",u),a.moveHelperToHooks(r,"blockHelperMissing",u)}},d._child=function(t,n,i,o){if(e.useBlockParams&&!i)throw new s.default("must pass block params");if(e.useDepths&&!o)throw new s.default("must pass parent depths");return u(r,t,e[t],n,0,i,o)},d},t.wrapProgram=u,t.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;if(n.fn&&n.fn!==d&&function(){n.data=o.createFrame(n.data);var e=n.fn;a=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=o.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=i.extend({},n.partials,e.partials))}(),void 0===e&&a&&(e=a),void 0===e)throw new s.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=d;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(58841)),s=(r=n(77187))&&r.__esModule?r:{default:r},o=n(83930),a=n(22393),l=n(84976),c=n(98854);function u(e,t,n,r,i,s,o){function a(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=o;return!o||t==o[0]||t===e.nullContext&&null===o[0]||(a=[t].concat(o)),n(e,t,e.helpers,e.partials,i.data||r,s&&[i.blockParams].concat(s),a)}return(a=p(n,a,e,o,r,s)).program=t,a.depth=o?o.length:0,a.blockParams=i||0,a}function d(){return""}function p(e,t,n,r,s,o){if(e.decorator){var a={};t=e.decorator(t,a,n,r&&r[0],s,o,r),i.extend(t,a)}return t}},22884:(e,t)=>{"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},58841:(e,t)=>{"use strict";t.__esModule=!0,t.extend=o,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(r,s):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=o({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function s(e){return n[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var a=Object.prototype.toString;t.toString=a;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===a.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===a.call(e)};t.isArray=c},34288:e=>{"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:{};e.exports=function(e,n){return e in t?t[e]:(t[e]=n,n)}},90140:(e,t,n)=>{"use strict";var r=n(34288);e.exports=function(e,t,n){var i="__INDIVIDUAL_ONE_VERSION_"+e,s=r(i+"_ENFORCE_SINGLETON",t);if(s!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+s+" installed.\nThis means you cannot install version "+t);return r(i,n)}},7524:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&null!==e}},71466:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,l=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},c=s.push,u=s.indexOf,d={},p=d.toString,h=d.hasOwnProperty,m=h.toString,g=m.call(Object),f={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_=function(e){return null!=e&&e===e.window},y=r.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,n){var r,i,s=(n=n||y).createElement("script");if(s.text=e,t)for(r in w)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[p.call(e)]||"object":typeof e}var x="3.7.1",T=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!b(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}S.fn=S.prototype={jquery:x,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||b(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(c&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],s=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,o[t]=S.extend(c,s,r)):void 0!==r&&(o[t]=r));return o},S.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e)||(t=o(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||m.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){v(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?S.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!T.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,s=e.length,o=!n;i<s;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,s=0,o=[];if(C(e))for(r=e.length;s<r;s++)null!=(i=t(e[s],s,n))&&o.push(i);else for(s in e)null!=(i=t(e[s],s,n))&&o.push(i);return l(o)},guid:1,support:f}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=s[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var O=s.pop,E=s.sort,D=s.splice,I="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g");S.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var Z=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function A(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}S.escapeSelector=function(e){return(e+"").replace(Z,A)};var M=y,N=c;!function(){var e,t,n,i,o,l,c,d,p,m,g=N,b=S.expando,_=0,y=0,w=ee(),v=ee(),k=ee(),x=ee(),T=function(e,t){return e===t&&(o=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Z="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",A="\\["+I+"*("+Z+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Z+"))|)"+I+"*\\]",z=":("+Z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+A+")*)|.*)\\)|)",L=new RegExp(I+"+","g"),F=new RegExp("^"+I+"*,"+I+"*"),U=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),R=new RegExp(I+"|>"),B=new RegExp(z),$=new RegExp("^"+Z+"$"),q={ID:new RegExp("^#("+Z+")"),CLASS:new RegExp("^\\.("+Z+")"),TAG:new RegExp("^("+Z+"|[*])"),ATTR:new RegExp("^"+A),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},J=pe((function(e){return!0===e.disabled&&P(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(s=a.call(M.childNodes),M.childNodes),s[M.childNodes.length].nodeType}catch(e){g={apply:function(e,t){N.apply(e,a.call(t))},call:function(e){N.apply(e,a.call(arguments,1))}}}function X(e,t,n,r){var i,s,o,a,c,u,h,m=t&&t.ownerDocument,_=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return n;if(!r&&(le(t),t=t||l,d)){if(11!==_&&(c=K.exec(e)))if(i=c[1]){if(9===_){if(!(o=t.getElementById(i)))return n;if(o.id===i)return g.call(n,o),n}else if(m&&(o=m.getElementById(i))&&X.contains(t,o)&&o.id===i)return g.call(n,o),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(x[e+" "]||p&&p.test(e))){if(h=e,m=t,1===_&&(R.test(e)||U.test(e))){for((m=V.test(e)&&ae(t.parentNode)||t)==t&&f.scope||((a=t.getAttribute("id"))?a=S.escapeSelector(a):t.setAttribute("id",a=b)),s=(u=ue(e)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+de(u[s]);h=u.join(",")}try{return g.apply(n,m.querySelectorAll(h)),n}catch(t){x(e,!0)}finally{a===b&&t.removeAttribute("id")}}}return _e(e.replace(j,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[b]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return P(t,"input")&&t.type===e}}function ie(e){return function(t){return(P(t,"input")||P(t,"button"))&&t.type===e}}function se(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,r){for(var i,s=e([],n.length,t),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:M;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,d=!S.isXMLDoc(l),m=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),f.getById=ne((function(e){return c.appendChild(e).id=S.expando,!l.getElementsByName||!l.getElementsByName(S.expando).length})),f.disconnectedMatch=ne((function(e){return m.call(e,"*")})),f.scope=ne((function(){return l.querySelectorAll(":scope")})),f.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),f.getById?(t.filter.ID=function(e){var t=e.replace(G,Y);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(G,Y);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,i,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(i=t.getElementsByName(e),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},p=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+b+"' href='' disabled='disabled'></a><select id='"+b+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||p.push("\\["+I+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+b+"-]").length||p.push("~="),e.querySelectorAll("a#"+b+"+*").length||p.push(".#.+[+~]"),e.querySelectorAll(":checked").length||p.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||p.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")")})),f.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),T=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&X.contains(M,e)?-1:t===l||t.ownerDocument==M&&X.contains(M,t)?1:i?u.call(i,e)-u.call(i,t):0:4&n?-1:1)},l):l}for(e in X.matches=function(e,t){return X(e,null,null,t)},X.matchesSelector=function(e,t){if(le(e),d&&!x[t+" "]&&(!p||!p.test(t)))try{var n=m.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){x(t,!0)}return X(t,l,null,[e]).length>0},X.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),S.contains(e,t)},X.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&h.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},X.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},S.uniqueSort=function(e){var t,n=[],r=0,s=0;if(o=!f.sortStable,i=!f.sortStable&&a.call(e,0),E.call(e,T),o){for(;t=e[s++];)t===e[s]&&(r=n.push(s));for(;r--;)D.call(e,n[r],1)}return i=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},t=S.expr={cacheLength:50,createPseudo:te,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(G,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(G,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||X.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&X.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(G,Y).toLowerCase();return"*"===e?function(){return!0}:function(e){return P(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=X.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(L," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,h,m=s!==o?"nextSibling":"previousSibling",g=t.parentNode,f=a&&t.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(g){if(s){for(;m;){for(d=t;d=d[m];)if(a?P(d,f):1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?g.firstChild:g.lastChild],o&&y){for(w=(p=(c=(u=g[b]||(g[b]={}))[e]||[])[0]===_&&c[1])&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(w=p=0)||h.pop();)if(1===d.nodeType&&++w&&d===t){u[e]=[_,p,w];break}}else if(y&&(w=p=(c=(u=t[b]||(t[b]={}))[e]||[])[0]===_&&c[1]),!1===w)for(;(d=++p&&d&&d[m]||(w=p=0)||h.pop())&&(!(a?P(d,f):1===d.nodeType)||!++w||(y&&((u=d[b]||(d[b]={}))[e]=[_,w]),d!==t)););return(w-=i)===r||w%r==0&&w/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||X.error("unsupported pseudo: "+e);return i[b]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,s=i(e,n),o=s.length;o--;)e[r=u.call(e,s[o])]=!(t[r]=s[o])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=be(e.replace(j,"$1"));return r[b]?te((function(e,t,n,i){for(var s,o=r(e,null,i,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))})):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return X(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,Y),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}})),lang:te((function(e){return $.test(e||"")||X.error("unsupported lang: "+e),e=e.replace(G,Y).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(!1),disabled:se(!0),checked:function(e){return P(e,"input")&&!!e.checked||P(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return W.test(e.nodeName)},input:function(e){return H.test(e.nodeName)},button:function(e){return P(e,"input")&&"button"===e.type||P(e,"button")},text:function(e){var t;return P(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:oe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ce(){}function ue(e,n){var r,i,s,o,a,l,c,u=v[e+" "];if(u)return n?0:u.slice(0);for(a=e,l=[],c=t.preFilter;a;){for(o in r&&!(i=F.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(s=[])),r=!1,(i=U.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(j," ")}),a=a.slice(r.length)),t.filter)!(i=q[o].exec(a))||c[o]&&!(i=c[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?X.error(e):v(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function pe(e,t,n){var r=t.dir,i=t.next,s=i||r,o=n&&"parentNode"===s,a=y++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[_,a];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=t[b]||(t[b]={}),i&&P(t,i))t=t[r]||t;else{if((c=u[s])&&c[0]===_&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function me(e,t,n,r,i){for(var s,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(n&&!n(s,r,i)||(o.push(s),c&&t.push(a)));return o}function ge(e,t,n,r,i,s){return r&&!r[b]&&(r=ge(r)),i&&!i[b]&&(i=ge(i,s)),te((function(s,o,a,l){var c,d,p,h,m=[],f=[],b=o.length,_=s||function(e,t,n){for(var r=0,i=t.length;r<i;r++)X(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),y=!e||!s&&t?_:me(_,m,e,a,l);if(n?n(y,h=i||(s?e:b||r)?[]:o,a,l):h=y,r)for(c=me(h,f),r(c,[],a,l),d=c.length;d--;)(p=c[d])&&(h[f[d]]=!(y[f[d]]=p));if(s){if(i||e){if(i){for(c=[],d=h.length;d--;)(p=h[d])&&c.push(y[d]=p);i(null,h=[],c,l)}for(d=h.length;d--;)(p=h[d])&&(c=i?u.call(s,p):m[d])>-1&&(s[c]=!(o[c]=p))}}else h=me(h===o?h.splice(b,h.length):h),i?i(null,o,h,l):g.apply(o,h)}))}function fe(e){for(var r,i,s,o=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,d=pe((function(e){return e===r}),l,!0),p=pe((function(e){return u.call(r,e)>-1}),l,!0),h=[function(e,t,i){var s=!a&&(i||t!=n)||((r=t).nodeType?d(e,t,i):p(e,t,i));return r=null,s}];c<o;c++)if(i=t.relative[e[c].type])h=[pe(he(h),i)];else{if((i=t.filter[e[c].type].apply(null,e[c].matches))[b]){for(s=++c;s<o&&!t.relative[e[s].type];s++);return ge(c>1&&he(h),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),i,c<s&&fe(e.slice(c,s)),s<o&&fe(e=e.slice(s)),s<o&&de(e))}h.push(i)}return he(h)}function be(e,r){var i,s=[],o=[],a=k[e+" "];if(!a){for(r||(r=ue(e)),i=r.length;i--;)(a=fe(r[i]))[b]?s.push(a):o.push(a);a=k(e,function(e,r){var i=r.length>0,s=e.length>0,o=function(o,a,c,u,p){var h,m,f,b=0,y="0",w=o&&[],v=[],k=n,x=o||s&&t.find.TAG("*",p),T=_+=null==k?1:Math.random()||.1,C=x.length;for(p&&(n=a==l||a||p);y!==C&&null!=(h=x[y]);y++){if(s&&h){for(m=0,a||h.ownerDocument==l||(le(h),c=!d);f=e[m++];)if(f(h,a||l,c)){g.call(u,h);break}p&&(_=T)}i&&((h=!f&&h)&&b--,o&&w.push(h))}if(b+=y,i&&y!==b){for(m=0;f=r[m++];)f(w,v,a,c);if(o){if(b>0)for(;y--;)w[y]||v[y]||(v[y]=O.call(u));v=me(v)}g.apply(u,v),p&&!o&&v.length>0&&b+r.length>1&&S.uniqueSort(u)}return p&&(_=T,n=k),w};return i?te(o):o}(o,s)),a.selector=e}return a}function _e(e,n,r,i){var s,o,a,l,c,u="function"==typeof e&&e,p=!i&&ue(e=u.selector||e);if(r=r||[],1===p.length){if((o=p[0]=p[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&d&&t.relative[o[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(G,Y),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(s=q.needsContext.test(e)?0:o.length;s--&&(a=o[s],!t.relative[l=a.type]);)if((c=t.find[l])&&(i=c(a.matches[0].replace(G,Y),V.test(o[0].type)&&ae(n.parentNode)||n))){if(o.splice(s,1),!(e=i.length&&de(o)))return g.apply(r,i),r;break}}return(u||be(e,p))(i,n,!d,r,!n||V.test(e)&&ae(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,f.sortStable=b.split("").sort(T).join("")===b,le(),f.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),S.find=X,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,X.compile=be,X.select=_e,X.setDocument=le,X.tokenize=ue,X.escape=S.escapeSelector,X.getText=S.text,X.isXML=S.isXMLDoc,X.selectors=S.expr,X.support=S.support,X.uniqueSort=S.uniqueSort}();var z=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},L=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=S.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,n){return b(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return u.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&F.test(e)?S(e):e||[],!1).length}});var B,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||B,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),U.test(r[1])&&S.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,B=S(y);var q=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,s=[],o="string"!=typeof e&&S(e);if(!F.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?u.call(S(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return z(e,"parentNode")},parentsUntil:function(e,t,n){return z(e,"parentNode",n)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return z(e,"nextSibling")},prevAll:function(e){return z(e,"previousSibling")},nextUntil:function(e,t,n){return z(e,"nextSibling",n)},prevUntil:function(e,t,n){return z(e,"previousSibling",n)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(H[e]||S.uniqueSort(i),q.test(e)&&i.reverse()),this.pushStack(i)}}));var K=/[^\x20\t\r\n\f]+/g;function V(e){return e}function G(e){throw e}function Y(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(K)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,i,s=[],o=[],a=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,i&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,o.push(n)),function t(n){S.each(n,(function(n,r){b(r)?e.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(e){return e?S.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||t||(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,r){var i=b(e[r[4]])&&e[r[4]];s[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var s=0;function o(e,t,n,i){return function(){var a=this,l=arguments,c=function(){var r,c;if(!(e<s)){if((r=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,b(c)?i?c.call(r,o(s,t,V,i),o(s,t,G,i)):(s++,c.call(r,o(s,t,V,i),o(s,t,G,i),o(s,t,V,t.notifyWith))):(n!==V&&(a=void 0,l=[r]),(i||t.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,u.error),e+1>=s&&(n!==G&&(a=void 0,l=[r]),t.rejectWith(a,l))}};e?u():(S.Deferred.getErrorHook?u.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(u.error=S.Deferred.getStackHook()),r.setTimeout(u))}}return S.Deferred((function(r){t[0][3].add(o(0,r,b(i)?i:V,r.notifyWith)),t[1][3].add(o(0,r,b(e)?e:V)),t[2][3].add(o(0,r,b(n)?n:G))})).promise()},promise:function(e){return null!=e?S.extend(e,i):i}},s={};return S.each(t,(function(e,r){var o=r[2],a=r[5];i[r[1]]=o.add,a&&o.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith})),i.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),s=S.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||s.resolveWith(r,i)}};if(t<=1&&(Y(e,s.done(o(n)).resolve,s.reject,!t),"pending"===s.state()||b(i[n]&&i[n].then)))return s.then();for(;n--;)Y(i[n],o(n),s.reject);return s.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&Q.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){r.setTimeout((function(){throw e}))};var J=S.Deferred();function X(){y.removeEventListener("DOMContentLoaded",X),r.removeEventListener("load",X),S.ready()}S.fn.ready=function(e){return J.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||J.resolveWith(y,[S]))}}),S.ready.then=J.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(S.ready):(y.addEventListener("DOMContentLoaded",X),r.addEventListener("load",X));var ee=function(e,t,n,r,i,s,o){var a=0,l=e.length,c=null==n;if("object"===k(n))for(a in i=!0,n)ee(e,t,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,b(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(S(e),n)})),t))for(;a<l;a++)t(e[a],n,o?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):s},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var se=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function oe(){this.expando=S.expando+oe.uid++}oe.uid=1,oe.prototype={cache:function(e){var t=e[this.expando];return t||(t={},se(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(K)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var ae=new oe,le=new oe,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return ae.access(e,t,n)},_removeData:function(e,t){ae.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(i=le.get(s),1===s.nodeType&&!ae.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(s,r,i[r]));ae.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(s&&void 0===t)return void 0!==(n=le.get(s,e))||void 0!==(n=de(s,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ae.get(e,t),n&&(!r||Array.isArray(n)?r=ae.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),s=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete s.stop,i.call(e,(function(){S.dequeue(e,t)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae.get(e,n)||ae.access(e,n,{empty:S.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",n])}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=ae.get(s[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+pe+")([a-z%]*)$","i"),me=["Top","Right","Bottom","Left"],ge=y.documentElement,fe=function(e){return S.contains(e.ownerDocument,e)},be={composed:!0};ge.getRootNode&&(fe=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(be)===e.ownerDocument});var _e=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&fe(e)&&"none"===S.css(e,"display")};function ye(e,t,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=a(),c=n&&n[3]||(S.cssNumber[t]?"":"px"),u=e.nodeType&&(S.cssNumber[t]||"px"!==c&&+l)&&he.exec(S.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)S.style(e,t,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;u*=2,S.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var we={};function ve(e){var t,n=e.ownerDocument,r=e.nodeName,i=we[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),we[r]=i,i)}function ke(e,t){for(var n,r,i=[],s=0,o=e.length;s<o;s++)(r=e[s]).style&&(n=r.style.display,t?("none"===n&&(i[s]=ae.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&_e(r)&&(i[s]=ve(r))):"none"!==n&&(i[s]="none",ae.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(e[s].style.display=i[s]);return e}S.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){_e(this)?S(this).show():S(this).hide()}))}});var xe,Te,Se=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Pe=/^$|^module$|\/(?:java|ecma)script/i;xe=y.createDocumentFragment().appendChild(y.createElement("div")),(Te=y.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),xe.appendChild(Te),f.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",f.option=!!xe.lastChild;var Oe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ee(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?S.merge([e],n):n}function De(e,t){for(var n=0,r=e.length;n<r;n++)ae.set(e[n],"globalEval",!t||ae.get(t[n],"globalEval"))}Oe.tbody=Oe.tfoot=Oe.colgroup=Oe.caption=Oe.thead,Oe.th=Oe.td,f.option||(Oe.optgroup=Oe.option=[1,"<select multiple='multiple'>","</select>"]);var Ie=/<|&#?\w+;/;function je(e,t,n,r,i){for(var s,o,a,l,c,u,d=t.createDocumentFragment(),p=[],h=0,m=e.length;h<m;h++)if((s=e[h])||0===s)if("object"===k(s))S.merge(p,s.nodeType?[s]:s);else if(Ie.test(s)){for(o=o||d.appendChild(t.createElement("div")),a=(Ce.exec(s)||["",""])[1].toLowerCase(),l=Oe[a]||Oe._default,o.innerHTML=l[1]+S.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;S.merge(p,o.childNodes),(o=d.firstChild).textContent=""}else p.push(t.createTextNode(s));for(d.textContent="",h=0;s=p[h++];)if(r&&S.inArray(s,r)>-1)i&&i.push(s);else if(c=fe(s),o=Ee(d.appendChild(s),"script"),c&&De(o),n)for(u=0;s=o[u++];)Pe.test(s.type||"")&&n.push(s);return d}var Ze=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Me(){return!1}function Ne(e,t,n,r,i,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,a,n,r,t[a],s);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===s&&(o=i,i=function(e){return S().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),e.each((function(){S.event.add(this,t,i,r,n)}))}function ze(e,t,n){n?(ae.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),ae.set(this,t,r),this[t](),n=ae.get(this,t),ae.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ae.set(this,t,S.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ae)}})):void 0===ae.get(e,t)&&S.event.add(e,t,Ae)}S.event={global:{},add:function(e,t,n,r,i){var s,o,a,l,c,u,d,p,h,m,g,f=ae.get(e);if(se(e))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(ge,i),n.guid||(n.guid=S.guid++),(l=f.events)||(l=f.events=Object.create(null)),(o=f.handle)||(o=f.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(K)||[""]).length;c--;)h=g=(a=Ze.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),h&&(d=S.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=S.event.special[h]||{},u=S.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:m.join(".")},s),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,m,o)||e.addEventListener&&e.addEventListener(h,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),S.event.global[h]=!0)},remove:function(e,t,n,r,i){var s,o,a,l,c,u,d,p,h,m,g,f=ae.hasData(e)&&ae.get(e);if(f&&(l=f.events)){for(c=(t=(t||"").match(K)||[""]).length;c--;)if(h=g=(a=Ze.exec(t[c])||[])[1],m=(a[2]||"").split(".").sort(),h){for(d=S.event.special[h]||{},p=l[h=(r?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=p.length;s--;)u=p[s],!i&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(s,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));o&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,m,f.handle)||S.removeEvent(e,h,f.handle),delete l[h])}else for(h in l)S.event.remove(e,h+t[c],n,r,!0);S.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,s,o,a=new Array(arguments.length),l=S.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=S.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=S.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(r=((S.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,s,o,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?S(i,this).index(c)>-1:S.find(i,this,null,[c]).length),o[i]&&s.push(r);s.length&&a.push({elem:c,handlers:s})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Se.test(t.type)&&t.click&&P(t,"input")&&ze(t,"click",!0),!1},trigger:function(e){var t=this||e;return Se.test(t.type)&&t.click&&P(t,"input")&&ze(t,"click"),!0},_default:function(e){var t=e.target;return Se.test(t.type)&&t.click&&P(t,"input")&&ae.get(t,"click")||P(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(y.documentMode){var n=ae.get(this,"handle"),r=S.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else S.event.simulate(t,e.target,S.event.fix(e))}S.event.special[e]={setup:function(){var r;if(ze(this,e,!0),!y.documentMode)return!1;(r=ae.get(this,t))||this.addEventListener(t,n),ae.set(this,t,(r||0)+1)},trigger:function(){return ze(this,e),!0},teardown:function(){var e;if(!y.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,n),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=y.documentMode?this:r,s=ae.get(i,t);s||(y.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ae.set(i,t,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=y.documentMode?this:r,s=ae.get(i,t)-1;s?ae.set(i,t,s):(y.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ae.remove(i,t))}}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||S.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),S.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){S.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var n,r,i,s,o,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(i in ae.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)S.event.add(t,i,a[i][n]);le.hasData(e)&&(s=le.access(e),o=S.extend({},s),le.set(t,o))}}function He(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function We(e,t,n,r){t=l(t);var i,s,o,a,c,u,d=0,p=e.length,h=p-1,m=t[0],g=b(m);if(g||p>1&&"string"==typeof m&&!f.checkClone&&Fe.test(m))return e.each((function(i){var s=e.eq(i);g&&(t[0]=m.call(this,i,s.html())),We(s,t,n,r)}));if(p&&(s=(i=je(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Ee(i,"script"),Be)).length;d<p;d++)c=i,d!==h&&(c=S.clone(c,!0,!0),a&&S.merge(o,Ee(c,"script"))),n.call(e[d],c,d);if(a)for(u=o[o.length-1].ownerDocument,S.map(o,$e),d=0;d<a;d++)c=o[d],Pe.test(c.type||"")&&!ae.access(c,"globalEval")&&S.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?S._evalUrl&&!c.noModule&&S._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):v(c.textContent.replace(Ue,""),c,u))}return e}function Ke(e,t,n){for(var r,i=t?S.filter(t,e):e,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||S.cleanData(Ee(r)),r.parentNode&&(n&&fe(r)&&De(Ee(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,s,o,a=e.cloneNode(!0),l=fe(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(o=Ee(a),r=0,i=(s=Ee(e)).length;r<i;r++)He(s[r],o[r]);if(t)if(n)for(s=s||Ee(e),o=o||Ee(a),r=0,i=s.length;r<i;r++)qe(s[r],o[r]);else qe(e,a);return(o=Ee(a,"script")).length>0&&De(o,!l&&Ee(e,"script")),a},cleanData:function(e){for(var t,n,r,i=S.event.special,s=0;void 0!==(n=e[s]);s++)if(se(n)){if(t=n[ae.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[ae.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Ke(this,e,!0)},remove:function(e){return Ke(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!Oe[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return We(this,arguments,(function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+pe+")(?!px)[a-z%]+$","i"),Ge=/^--/,Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Qe=function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=s[i];return r},Je=new RegExp(me.join("|"),"i");function Xe(e,t,n){var r,i,s,o,a=Ge.test(t),l=e.style;return(n=n||Ye(e))&&(o=n.getPropertyValue(t)||n[t],a&&o&&(o=o.replace(j,"$1")||void 0),""!==o||fe(e)||(o=S.style(e,t)),!f.pixelBoxStyles()&&Ve.test(o)&&Je.test(t)&&(r=l.width,i=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=r,l.minWidth=i,l.maxWidth=s)),void 0!==o?o+"":o}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),i=36===t(e.width),u.style.position="absolute",s=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,s,o,a,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,S.extend(f,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,n,i;return null==a&&(e=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],nt=y.createElement("div").style,rt={};function it(e){return S.cssProps[e]||rt[e]||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var st=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=he.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ct(e,t,n,r,i,s){var o="width"===t?1:0,a=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=S.css(e,n+me[o],!0,i)),r?("content"===n&&(l-=S.css(e,"padding"+me[o],!0,i)),"margin"!==n&&(l-=S.css(e,"border"+me[o]+"Width",!0,i))):(l+=S.css(e,"padding"+me[o],!0,i),"padding"!==n?l+=S.css(e,"border"+me[o]+"Width",!0,i):a+=S.css(e,"border"+me[o]+"Width",!0,i));return!r&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l+c}function ut(e,t,n){var r=Ye(e),i=(!f.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),s=i,o=Xe(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(o)){if(!n)return o;o="auto"}return(!f.boxSizingReliable()&&i||!f.reliableTrDimensions()&&P(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(s=a in e)&&(o=e[a])),(o=parseFloat(o)||0)+ct(e,t,n||(i?"border":"content"),s,r,o)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,o,a=ie(t),l=Ge.test(t),c=e.style;if(l||(t=it(a)),o=S.cssHooks[t]||S.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"==(s=typeof n)&&(i=he.exec(n))&&i[1]&&(n=ye(e,t,i),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,s,o,a=ie(t);return Ge.test(t)||(t=it(a)),(o=S.cssHooks[t]||S.cssHooks[a])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Xe(e,t,r)),"normal"===i&&t in at&&(i=at[t]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return!st.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Qe(e,ot,(function(){return ut(e,t,r)}))},set:function(e,n,r){var i,s=Ye(e),o=!f.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===S.css(e,"boxSizing",!1,s),l=r?ct(e,t,r,a,s):0;return a&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-ct(e,t,"border",!1,s)-.5)),l&&(i=he.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),lt(0,n,l)}}})),S.cssHooks.marginLeft=et(f.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+me[r]+t]=s[r]||s[r-2]||s[0];return i}},"margin"!==e&&(S.cssHooks[e+t].set=lt)})),S.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,s={},o=0;if(Array.isArray(t)){for(r=Ye(e),i=t.length;o<i;o++)s[t[o]]=S.css(e,t[o],!1,r);return s}return void 0!==n?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)}}),S.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(S.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=dt.prototype.init,S.fx.step={};var pt,ht,mt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function ft(){ht&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ft):r.setTimeout(ft,S.fx.interval),S.fx.tick())}function bt(){return r.setTimeout((function(){pt=void 0})),pt=Date.now()}function _t(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=me[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function yt(e,t,n){for(var r,i=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,t,e))return r}function wt(e,t,n){var r,i,s=0,o=wt.prefilters.length,a=S.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=pt||bt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(r);return a.notifyWith(e,[c,r,n]),r<1&&o?n:(o||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||bt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,s,o;for(n in e)if(i=t[r=ie(n)],s=e[n],Array.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),(o=S.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete e[r],s)n in e||(e[n]=s[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);s<o;s++)if(r=wt.prefilters[s].call(c,e,u,c.opts))return b(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,yt,c),b(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ye(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(K);for(var n,r=0,i=e.length;r<i;r++)n=e[r],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,s,o,a,l,c,u,d="width"in t||"height"in t,p=this,h={},m=e.style,g=e.nodeType&&_e(e),f=ae.get(e,"fxshow");for(r in n.queue||(null==(o=S._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,p.always((function(){p.always((function(){o.unqueued--,S.queue(e,"fx").length||o.empty.fire()}))}))),t)if(i=t[r],mt.test(i)){if(delete t[r],s=s||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!f||void 0===f[r])continue;g=!0}h[r]=f&&f[r]||S.style(e,r)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(c=f&&f.display)&&(c=ae.get(e,"display")),"none"===(u=S.css(e,"display"))&&(c?u=c:(ke([e],!0),c=e.style.display||c,u=S.css(e,"display"),ke([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(e,"float")&&(l||(p.done((function(){m.display=c})),null==c&&(u=m.display,c="none"===u?"":u)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",p.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),l=!1,h)l||(f?"hidden"in f&&(g=f.hidden):f=ae.access(e,"fxshow",{display:c}),s&&(f.hidden=!g),g&&ke([e],!0),p.done((function(){for(r in g||ke([e]),ae.remove(e,"fxshow"),h)S.style(e,r,h[r])}))),l=yt(g?f[r]:0,r,p),r in f||(f[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(_e).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),s=S.speed(t,n,r),o=function(){var t=wt(this,S.extend({},e),s);(i||ae.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",s=S.timers,o=ae.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&gt.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));!t&&n||S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_t(t,!0),e,r,i)}})),S.each({slideDown:_t("show"),slideUp:_t("hide"),slideToggle:_t("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(pt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),pt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){ht||(ht=!0,ft())},S.fx.stop=function(){ht=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var vt,kt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return ee(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))}}),S.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?S.prop(e,t,n):(1===s&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(K);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=kt[t]||S.find.attr;kt[t]=function(e,t,r){var i,s,o=t.toLowerCase();return r||(s=kt[o],kt[o]=i,i=null!=n(e,t,r)?o:null,kt[o]=s),i}}));var xt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function St(e){return(e.match(K)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Pt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(K)||[]}S.fn.extend({prop:function(e,t){return ee(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[S.propFix[e]||e]}))}}),S.extend({prop:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(e){var t,n,r,i,s,o;return b(e)?this.each((function(t){S(this).addClass(e.call(this,t,Ct(this)))})):(t=Pt(e)).length?this.each((function(){if(r=Ct(this),n=1===this.nodeType&&" "+St(r)+" "){for(s=0;s<t.length;s++)i=t[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=St(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,r,i,s,o;return b(e)?this.each((function(t){S(this).removeClass(e.call(this,t,Ct(this)))})):arguments.length?(t=Pt(e)).length?this.each((function(){if(r=Ct(this),n=1===this.nodeType&&" "+St(r)+" "){for(s=0;s<t.length;s++)for(i=t[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=St(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,s,o=typeof e,a="string"===o||Array.isArray(e);return b(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Pt(e),this.each((function(){if(a)for(s=S(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==e&&"boolean"!==o||((r=Ct(this))&&ae.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+St(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,S(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(e){return null==e?"":e+""}))),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ot,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:St(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,s=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?s+1:i.length;for(r=s<0?l:o?s:0;r<l;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=S(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,s=S.makeArray(t),o=i.length;o--;)((r=i[o]).selected=S.inArray(S.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},f.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Et=r.location,Dt={guid:Date.now()},It=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var jt=/^(?:focusinfocus|focusoutblur)$/,Zt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,i){var s,o,a,l,c,u,d,p,m=[n||y],g=h.call(e,"type")?e.type:e,f=h.call(e,"namespace")?e.namespace.split("."):[];if(o=p=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!jt.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(f=g.split("."),g=f.shift(),f.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[S.expando]?e:new S.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),d=S.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!_(n)){for(l=d.delegateType||g,jt.test(l+g)||(o=o.parentNode);o;o=o.parentNode)m.push(o),a=o;a===(n.ownerDocument||y)&&m.push(a.defaultView||a.parentWindow||r)}for(s=0;(o=m[s++])&&!e.isPropagationStopped();)p=o,e.type=s>1?l:d.bindType||g,(u=(ae.get(o,"events")||Object.create(null))[e.type]&&ae.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&se(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),t)||!se(n)||c&&b(n[g])&&!_(n)&&((a=n[c])&&(n[c]=null),S.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,Zt),n[g](),e.isPropagationStopped()&&p.removeEventListener(g,Zt),S.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var At=/\[\]$/,Mt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var i;if(Array.isArray(t))S.each(t,(function(t,i){n||At.test(e)?r(e,i):Lt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==k(t))r(e,t);else for(i in t)Lt(e+"["+i+"]",t[i],n,r)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){i(this.name,this.value)}));else for(n in e)Lt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&zt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Se.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var Ft=/%20/g,Ut=/#.*$/,Rt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,qt=/^\/\//,Ht={},Wt={},Kt="*/".concat("*"),Vt=y.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(K)||[];if(b(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Yt(e,t,n,r){var i={},s=e===Wt;function o(a){var l;return i[a]=!0,S.each(e[a]||[],(function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||i[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Qt(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Vt.href=Et.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,S.ajaxSettings),t):Qt(S.ajaxSettings,e)},ajaxPrefilter:Gt(Ht),ajaxTransport:Gt(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,s,o,a,l,c,u,d,p,h=S.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?S(m):S.event,f=S.Deferred(),b=S.Callbacks("once memory"),_=h.statusCode||{},w={},v={},k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Bt.exec(s);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=v[e.toLowerCase()]=v[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)x.always(e[x.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),T(0,t),this}};if(f.promise(x),h.url=((e||h.url||Et.href)+"").replace(qt,Et.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(K)||[""],null==h.crossDomain){l=y.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Vt.protocol+"//"+Vt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=S.param(h.data,h.traditional)),Yt(Ht,h,t,x),c)return x;for(d in(u=S.event&&h.global)&&0==S.active++&&S.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$t.test(h.type),i=h.url.replace(Ut,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ft,"+")):(p=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(It.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Rt,"$1"),p=(It.test(i)?"&":"?")+"_="+Dt.guid+++p),h.url=i+p),h.ifModified&&(S.lastModified[i]&&x.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&x.setRequestHeader("If-None-Match",S.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Kt+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(m,x,h)||c))return x.abort();if(k="abort",b.add(h.complete),x.done(h.success),x.fail(h.error),n=Yt(Wt,h,t,x)){if(x.readyState=1,u&&g.trigger("ajaxSend",[x,h]),c)return x;h.async&&h.timeout>0&&(a=r.setTimeout((function(){x.abort("timeout")}),h.timeout));try{c=!1,n.send(w,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,o,l){var d,p,y,w,v,k=t;c||(c=!0,a&&r.clearTimeout(a),n=void 0,s=l||"",x.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var r,i,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)s=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(h,x,o)),!d&&S.inArray("script",h.dataTypes)>-1&&S.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),w=function(e,t,n,r){var i,s,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(i in c)if((a=i.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[i]:!0!==c[i]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(h,w,x,d),d?(h.ifModified&&((v=x.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=v),(v=x.getResponseHeader("etag"))&&(S.etag[i]=v)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=w.state,p=w.data,d=!(y=w.error))):(y=k,!e&&k||(k="error",e<0&&(e=0))),x.status=e,x.statusText=(t||k)+"",d?f.resolveWith(m,[p,k,x]):f.rejectWith(m,[x,k,y]),x.statusCode(_),_=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[x,h,d?p:y]),b.fireWith(m,[x,k]),u&&(g.trigger("ajaxComplete",[x,h]),--S.active||S.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],(function(e,t){S[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}})),S.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Xt=S.ajaxSettings.xhr();f.cors=!!Xt&&"withCredentials"in Xt,f.ajax=Xt=!!Xt,S.ajaxTransport((function(e){var t,n;if(f.cors||Xt&&!e.crossDomain)return{send:function(i,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Jt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),S.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),S.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||S.expando+"_"+Dt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,n){var i,s,o,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||S.error(i+" was not called"),o[0]},e.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always((function(){void 0===s?S(r).removeProp(i):r[i]=s,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),o&&b(s)&&s(o[0]),o=s=void 0})),"script"})),f.createHTMLDocument=((en=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(f.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),s=!n&&[],(i=U.exec(e))?[t.createElement(i[1])]:(i=je([e],t,s),s&&s.length&&S(s).remove(),S.merge([],i.childNodes)));var r,i,s},S.fn.load=function(e,t,n){var r,i,s,o=this,a=e.indexOf(" ");return a>-1&&(r=St(e.slice(a)),e=e.slice(0,a)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){s=arguments,o.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,i,s,o,a,l,c=S.css(e,"position"),u=S(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=S.css(e,"top"),l=S.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(l)||0),b(t)&&(t=t.call(e,n,S.extend({},a))),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+i),"using"in t?t.using.call(e,d):u.css(d)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||ge}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return ee(this,(function(e,r,i){var s;if(_(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===i)return s?s[t]:e[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):e[r]=i}),e,r,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=et(f.pixelPosition,(function(e,n){if(n)return n=Xe(e,t),Ve.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return ee(this,(function(t,n,i){var s;return _(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===i?S.css(t,n,a):S.style(t,n,i,a)}),t,o?i:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=a.call(arguments,2),i=function(){return e.apply(t||this,r.concat(a.call(arguments)))},i.guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=P,S.isFunction=b,S.isWindow=_,S.camelCase=ie,S.type=k,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n);var sn=r.jQuery,on=r.$;return S.noConflict=function(e){return r.$===S&&(r.$=on),e&&r.jQuery===S&&(r.jQuery=sn),S},void 0===i&&(r.jQuery=r.$=S),S}))},69805:(e,t,n)=>{"use strict";var r=n(14911),i=n(17365);function s(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=n(6148),e.exports.Schema=n(68458),e.exports.FAILSAFE_SCHEMA=n(58013),e.exports.JSON_SCHEMA=n(17396),e.exports.CORE_SCHEMA=n(40794),e.exports.DEFAULT_SCHEMA=n(56884),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=i.dump,e.exports.YAMLException=n(38063),e.exports.types={binary:n(3950),float:n(83781),map:n(30670),null:n(28744),pairs:n(95612),set:n(87499),timestamp:n(56872),bool:n(77061),int:n(51656),merge:n(73726),omap:n(45345),seq:n(32689),str:n(58956)},e.exports.safeLoad=s("safeLoad","load"),e.exports.safeLoadAll=s("safeLoadAll","loadAll"),e.exports.safeDump=s("safeDump","dump")},4733:e=>{"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,i,s;if(t)for(n=0,r=(s=Object.keys(t)).length;n<r;n+=1)e[i=s[n]]=t[i];return e}},17365:(e,t,n)=>{"use strict";var r=n(4733),i=n(38063),s=n(56884),o=Object.prototype.toString,a=Object.prototype.hasOwnProperty,l=65279,c=9,u=10,d=13,p=32,h=33,m=34,g=35,f=37,b=38,_=39,y=42,w=44,v=45,k=58,x=61,T=62,S=63,C=64,P=91,O=93,E=96,D=123,I=124,j=125,Z={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},A=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],M=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function N(e){var t,n,s;if(t=e.toString(16).toUpperCase(),e<=255)n="x",s=2;else if(e<=65535)n="u",s=4;else{if(!(e<=4294967295))throw new i("code point within a string may not be greater than 0xFFFFFFFF");n="U",s=8}return"\\"+n+r.repeat("0",s-t.length)+t}var z=2;function L(e){this.schema=e.schema||s,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,s,o,l,c;if(null===t)return{};for(n={},i=0,s=(r=Object.keys(t)).length;i<s;i+=1)o=r[i],l=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&a.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[o]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?z:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function F(e,t){for(var n,i=r.repeat(" ",t),s=0,o=-1,a="",l=e.length;s<l;)-1===(o=e.indexOf("\n",s))?(n=e.slice(s),s=l):(n=e.slice(s,o+1),s=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function U(e,t){return"\n"+r.repeat(" ",e.indent*t)}function R(e){return e===p||e===c}function B(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==l||65536<=e&&e<=1114111}function $(e){return B(e)&&e!==l&&e!==d&&e!==u}function q(e,t,n){var r=$(e),i=r&&!R(e);return(n?r:r&&e!==w&&e!==P&&e!==O&&e!==D&&e!==j)&&e!==g&&!(t===k&&!i)||$(t)&&!R(t)&&e===g||t===k&&i}function H(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function W(e){return/^\n* /.test(e)}var K=1,V=2,G=3,Y=4,Q=5;function J(e,t,n,r,s){e.dump=function(){if(0===t.length)return e.quotingType===z?'""':"''";if(!e.noCompatMode&&(-1!==A.indexOf(t)||M.test(t)))return e.quotingType===z?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),c=r||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,r,i,s,o,a){var c,d,p=0,Z=null,A=!1,M=!1,N=-1!==r,L=-1,F=B(d=H(e,0))&&d!==l&&!R(d)&&d!==v&&d!==S&&d!==k&&d!==w&&d!==P&&d!==O&&d!==D&&d!==j&&d!==g&&d!==b&&d!==y&&d!==h&&d!==I&&d!==x&&d!==T&&d!==_&&d!==m&&d!==f&&d!==C&&d!==E&&function(e){return!R(e)&&e!==k}(H(e,e.length-1));if(t||o)for(c=0;c<e.length;p>=65536?c+=2:c++){if(!B(p=H(e,c)))return Q;F=F&&q(p,Z,a),Z=p}else{for(c=0;c<e.length;p>=65536?c+=2:c++){if((p=H(e,c))===u)A=!0,N&&(M=M||c-L-1>r&&" "!==e[L+1],L=c);else if(!B(p))return Q;F=F&&q(p,Z,a),Z=p}M=M||N&&c-L-1>r&&" "!==e[L+1]}return A||M?n>9&&W(e)?Q:o?s===z?Q:V:M?Y:G:!F||o||i(e)?s===z?Q:V:K}(t,c,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!r,s)){case K:return t;case V:return"'"+t.replace(/'/g,"''")+"'";case G:return"|"+X(t,e.indent)+ee(F(t,o));case Y:return">"+X(t,e.indent)+ee(F(function(e,t){for(var n,r,i,s=/(\n+)([^\n]*)/g,o=(i=-1!==(i=e.indexOf("\n"))?i:e.length,s.lastIndex=i,te(e.slice(0,i),t)),a="\n"===e[0]||" "===e[0];r=s.exec(e);){var l=r[1],c=r[2];n=" "===c[0],o+=l+(a||n||""===c?"":"\n")+te(c,t),a=n}return o}(t,a),o));case Q:return'"'+function(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)r=H(e,i),!(t=Z[r])&&B(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||N(r);return n}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function X(e,t){var n=W(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function ee(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function te(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,s=0,o=0,a=0,l="";n=i.exec(e);)(a=n.index)-s>t&&(r=o>s?o:a,l+="\n"+e.slice(s,r),s=r+1),o=a;return l+="\n",e.length-s>t&&o>s?l+=e.slice(s,o)+"\n"+e.slice(o+1):l+=e.slice(s),l.slice(1)}function ne(e,t,n,r){var i,s,o,a="",l=e.tag;for(i=0,s=n.length;i<s;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(ie(e,t+1,o,!0,!0,!1,!0)||void 0===o&&ie(e,t+1,null,!0,!0,!1,!0))&&(r&&""===a||(a+=U(e,t)),e.dump&&u===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=l,e.dump=a||"[]"}function re(e,t,n){var r,s,l,c,u,d;for(l=0,c=(s=n?e.explicitTypes:e.implicitTypes).length;l<c;l+=1)if(((u=s[l]).instanceOf||u.predicate)&&(!u.instanceOf||"object"==typeof t&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(n?u.multi&&u.representName?e.tag=u.representName(t):e.tag=u.tag:e.tag="?",u.represent){if(d=e.styleMap[u.tag]||u.defaultStyle,"[object Function]"===o.call(u.represent))r=u.represent(t,d);else{if(!a.call(u.represent,d))throw new i("!<"+u.tag+'> tag resolver accepts not "'+d+'" style');r=u.represent[d](t,d)}e.dump=r}return!0}return!1}function ie(e,t,n,r,s,a,l){e.tag=null,e.dump=n,re(e,n,!1)||re(e,n,!0);var c,d=o.call(e.dump),p=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var h,m,g="[object Object]"===d||"[object Array]"===d;if(g&&(m=-1!==(h=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||m||2!==e.indent&&t>0)&&(s=!1),m&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(g&&m&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),"[object Object]"===d)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var s,o,a,l,c,d,p="",h=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(s=0,o=m.length;s<o;s+=1)d="",r&&""===p||(d+=U(e,t)),l=n[a=m[s]],e.replacer&&(l=e.replacer.call(n,a,l)),ie(e,t+1,a,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&u===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,c&&(d+=U(e,t)),ie(e,t+1,l,!0,c)&&(e.dump&&u===e.dump.charCodeAt(0)?d+=":":d+=": ",p+=d+=e.dump));e.tag=h,e.dump=p||"{}"}(e,t,e.dump,s),m&&(e.dump="&ref_"+h+e.dump)):(function(e,t,n){var r,i,s,o,a,l="",c=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)a="",""!==l&&(a+=", "),e.condenseFlow&&(a+='"'),o=n[s=u[r]],e.replacer&&(o=e.replacer.call(n,s,o)),ie(e,t,s,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ie(e,t,o,!1,!1)&&(l+=a+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),m&&(e.dump="&ref_"+h+" "+e.dump));else if("[object Array]"===d)r&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?ne(e,t-1,e.dump,s):ne(e,t,e.dump,s),m&&(e.dump="&ref_"+h+e.dump)):(function(e,t,n){var r,i,s,o="",a=e.tag;for(r=0,i=n.length;r<i;r+=1)s=n[r],e.replacer&&(s=e.replacer.call(n,String(r),s)),(ie(e,t,s,!1,!1)||void 0===s&&ie(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),m&&(e.dump="&ref_"+h+" "+e.dump));else{if("[object String]"!==d){if("[object Undefined]"===d)return!1;if(e.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+d)}"?"!==e.tag&&J(e,e.dump,t,a,p)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function se(e,t){var n,r,i=[],s=[];for(oe(e,i,s),n=0,r=s.length;n<r;n+=1)t.duplicates.push(i[s[n]]);t.usedDuplicates=new Array(r)}function oe(e,t,n){var r,i,s;if(null!==e&&"object"==typeof e)if(-1!==(i=t.indexOf(e)))-1===n.indexOf(i)&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)oe(e[i],t,n);else for(i=0,s=(r=Object.keys(e)).length;i<s;i+=1)oe(e[r[i]],t,n)}e.exports.dump=function(e,t){var n=new L(t=t||{});n.noRefs||se(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),ie(n,0,r,!0,!0)?n.dump+"\n":""}},38063:e=>{"use strict";function t(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function n(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(e){return this.name+": "+t(this,e)},e.exports=n},14911:(e,t,n)=>{"use strict";var r=n(4733),i=n(38063),s=n(91992),o=n(56884),a=Object.prototype.hasOwnProperty,l=1,c=2,u=3,d=4,p=1,h=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,b=/[,\[\]\{\}]/,_=/^(?:!|!!|![a-z\-]+!)$/i,y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function w(e){return Object.prototype.toString.call(e)}function v(e){return 10===e||13===e}function k(e){return 9===e||32===e}function x(e){return 9===e||32===e||10===e||13===e}function T(e){return 44===e||91===e||93===e||123===e||125===e}function S(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function C(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function P(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var O=new Array(256),E=new Array(256),D=0;D<256;D++)O[D]=C(D)?1:0,E[D]=C(D);function I(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||o,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function j(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=s(n),new i(t,n)}function Z(e,t){throw j(e,t)}function A(e,t){e.onWarning&&e.onWarning.call(null,j(e,t))}var M={YAML:function(e,t,n){var r,i,s;null!==e.version&&Z(e,"duplication of %YAML directive"),1!==n.length&&Z(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Z(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),s=parseInt(r[2],10),1!==i&&Z(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,1!==s&&2!==s&&A(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&Z(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],_.test(r)||Z(e,"ill-formed tag handle (first argument) of the TAG directive"),a.call(e.tagMap,r)&&Z(e,'there is a previously declared suffix for "'+r+'" tag handle'),y.test(i)||Z(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){Z(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function N(e,t,n,r){var i,s,o,a;if(t<n){if(a=e.input.slice(t,n),r)for(i=0,s=a.length;i<s;i+=1)9===(o=a.charCodeAt(i))||32<=o&&o<=1114111||Z(e,"expected valid JSON character");else g.test(a)&&Z(e,"the stream contains non-printable characters");e.result+=a}}function z(e,t,n,i){var s,o,l,c;for(r.isObject(n)||Z(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,c=(s=Object.keys(n)).length;l<c;l+=1)o=s[l],a.call(t,o)||(t[o]=n[o],i[o]=!0)}function L(e,t,n,r,i,s,o,l,c){var u,d;if(Array.isArray(i))for(u=0,d=(i=Array.prototype.slice.call(i)).length;u<d;u+=1)Array.isArray(i[u])&&Z(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===w(i[u])&&(i[u]="[object Object]");if("object"==typeof i&&"[object Object]"===w(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(s))for(u=0,d=s.length;u<d;u+=1)z(e,t,s[u],n);else z(e,t,s,n);else e.json||a.call(n,i)||!a.call(t,i)||(e.line=o||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,Z(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete n[i];return t}function F(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Z(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function U(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;k(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!v(i))break;for(F(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&A(e,"deficient indentation"),r}function R(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!x(t)))}function B(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function $(e,t){var n,r,i=e.tag,s=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),45===r)&&x(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,U(e,!0,-1)&&e.lineIndent<=t)o.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,W(e,t,u,!1,!0),o.push(e.result),U(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)Z(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=i,e.anchor=s,e.kind="sequence",e.result=o,!0)}function q(e){var t,n,r,i,s=!1,o=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Z(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(s=!0,i=e.input.charCodeAt(++e.position)):33===i?(o=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,s){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):Z(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!x(i);)33===i&&(o?Z(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),_.test(n)||Z(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),b.test(r)&&Z(e,"tag suffix cannot contain flow indicator characters")}r&&!y.test(r)&&Z(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){Z(e,"tag name is malformed: "+r)}return s?e.tag=r:a.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:Z(e,'undeclared tag handle "'+n+'"'),!0}function H(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Z(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!x(n)&&!T(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function W(e,t,n,i,s){var o,g,f,b,_,y,w,C,D,I=1,j=!1,A=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=g=f=d===n||u===n,i&&U(e,!0,-1)&&(j=!0,e.lineIndent>t?I=1:e.lineIndent===t?I=0:e.lineIndent<t&&(I=-1)),1===I)for(;q(e)||H(e);)U(e,!0,-1)?(j=!0,f=o,e.lineIndent>t?I=1:e.lineIndent===t?I=0:e.lineIndent<t&&(I=-1)):f=!1;if(f&&(f=j||s),1!==I&&d!==n||(C=l===n||c===n?t:t+1,D=e.position-e.lineStart,1===I?f&&($(e,D)||function(e,t,n){var r,i,s,o,a,l,u,p=e.tag,h=e.anchor,m={},g=Object.create(null),f=null,b=null,_=null,y=!1,w=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=m),u=e.input.charCodeAt(e.position);0!==u;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,63!==u&&58!==u||!x(r)){if(o=e.line,a=e.lineStart,l=e.position,!W(e,n,c,!1,!0))break;if(e.line===s){for(u=e.input.charCodeAt(e.position);k(u);)u=e.input.charCodeAt(++e.position);if(58===u)x(u=e.input.charCodeAt(++e.position))||Z(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(L(e,m,g,f,b,null,o,a,l),f=b=_=null),w=!0,y=!1,i=!1,f=e.tag,b=e.result;else{if(!w)return e.tag=p,e.anchor=h,!0;Z(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=p,e.anchor=h,!0;Z(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(y&&(L(e,m,g,f,b,null,o,a,l),f=b=_=null),w=!0,y=!0,i=!0):y?(y=!1,i=!0):Z(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=r;if((e.line===s||e.lineIndent>t)&&(y&&(o=e.line,a=e.lineStart,l=e.position),W(e,t,d,!0,i)&&(y?b=e.result:_=e.result),y||(L(e,m,g,f,b,_,o,a,l),f=b=_=null),U(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&0!==u)Z(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&L(e,m,g,f,b,null,o,a,l),w&&(e.tag=p,e.anchor=h,e.kind="mapping",e.result=m),w}(e,D,C))||function(e,t){var n,r,i,s,o,a,c,u,d,p,h,m,g=!0,f=e.tag,b=e.anchor,_=Object.create(null);if(91===(m=e.input.charCodeAt(e.position)))o=93,u=!1,s=[];else{if(123!==m)return!1;o=125,u=!0,s={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(++e.position);0!==m;){if(U(e,!0,t),(m=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=f,e.anchor=b,e.kind=u?"mapping":"sequence",e.result=s,!0;g?44===m&&Z(e,"expected the node content, but found ','"):Z(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===m&&x(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,U(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,W(e,t,l,!1,!0),p=e.tag,d=e.result,U(e,!0,t),m=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==m||(a=!0,m=e.input.charCodeAt(++e.position),U(e,!0,t),W(e,t,l,!1,!0),h=e.result),u?L(e,s,_,p,d,h,n,r,i):a?s.push(L(e,null,_,p,d,h,n,r,i)):s.push(d),U(e,!0,t),44===(m=e.input.charCodeAt(e.position))?(g=!0,m=e.input.charCodeAt(++e.position)):g=!1}Z(e,"unexpected end of the stream within a flow collection")}(e,C)?A=!0:(g&&function(e,t){var n,i,s,o,a,l=p,c=!1,u=!1,d=t,g=0,f=!1;if(124===(o=e.input.charCodeAt(e.position)))i=!1;else{if(62!==o)return!1;i=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)p===l?l=43===o?m:h:Z(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===s?Z(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?Z(e,"repeat of an indentation width identifier"):(d=t+s-1,u=!0)}if(k(o)){do{o=e.input.charCodeAt(++e.position)}while(k(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!v(o)&&0!==o)}for(;0!==o;){for(F(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!u||e.lineIndent<d)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>d&&(d=e.lineIndent),v(o))g++;else{if(e.lineIndent<d){l===m?e.result+=r.repeat("\n",c?1+g:g):l===p&&c&&(e.result+="\n");break}for(i?k(o)?(f=!0,e.result+=r.repeat("\n",c?1+g:g)):f?(f=!1,e.result+=r.repeat("\n",g+1)):0===g?c&&(e.result+=" "):e.result+=r.repeat("\n",g):e.result+=r.repeat("\n",c?1+g:g),c=!0,u=!0,g=0,n=e.position;!v(o)&&0!==o;)o=e.input.charCodeAt(++e.position);N(e,n,e.position,!1)}}return!0}(e,C)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(N(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else v(n)?(N(e,r,i,!0),B(e,U(e,!1,t)),r=i=e.position):e.position===e.lineStart&&R(e)?Z(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Z(e,"unexpected end of the stream within a single quoted scalar")}(e,C)||function(e,t){var n,r,i,s,o,a,l;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return N(e,n,e.position,!0),e.position++,!0;if(92===a){if(N(e,n,e.position,!0),v(a=e.input.charCodeAt(++e.position)))U(e,!1,t);else if(a<256&&O[a])e.result+=E[a],e.position++;else if((o=120===(l=a)?2:117===l?4:85===l?8:0)>0){for(i=o,s=0;i>0;i--)(o=S(a=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+o:Z(e,"expected hexadecimal character");e.result+=P(s),e.position++}else Z(e,"unknown escape sequence");n=r=e.position}else v(a)?(N(e,n,r,!0),B(e,U(e,!1,t)),n=r=e.position):e.position===e.lineStart&&R(e)?Z(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Z(e,"unexpected end of the stream within a double quoted scalar")}(e,C)?A=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!x(r)&&!T(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),a.call(e.anchorMap,n)||Z(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],U(e,!0,-1),!0}(e)?(A=!0,null===e.tag&&null===e.anchor||Z(e,"alias node should not have any properties")):function(e,t,n){var r,i,s,o,a,l,c,u,d=e.kind,p=e.result;if(x(u=e.input.charCodeAt(e.position))||T(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(x(r=e.input.charCodeAt(e.position+1))||n&&T(r)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,o=!1;0!==u;){if(58===u){if(x(r=e.input.charCodeAt(e.position+1))||n&&T(r))break}else if(35===u){if(x(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&R(e)||n&&T(u))break;if(v(u)){if(a=e.line,l=e.lineStart,c=e.lineIndent,U(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=s,e.line=a,e.lineStart=l,e.lineIndent=c;break}}o&&(N(e,i,s,!1),B(e,e.line-a),i=s=e.position,o=!1),k(u)||(s=e.position+1),u=e.input.charCodeAt(++e.position)}return N(e,i,s,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,C,l===n)&&(A=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===I&&(A=f&&$(e,D))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Z(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),b=0,_=e.implicitTypes.length;b<_;b+=1)if((w=e.implicitTypes[b]).resolve(e.result)){e.result=w.construct(e.result),e.tag=w.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(a.call(e.typeMap[e.kind||"fallback"],e.tag))w=e.typeMap[e.kind||"fallback"][e.tag];else for(w=null,b=0,_=(y=e.typeMap.multi[e.kind||"fallback"]).length;b<_;b+=1)if(e.tag.slice(0,y[b].tag.length)===y[b].tag){w=y[b];break}w||Z(e,"unknown tag !<"+e.tag+">"),null!==e.result&&w.kind!==e.kind&&Z(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+w.kind+'", not "'+e.kind+'"'),w.resolve(e.result,e.tag)?(e.result=w.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Z(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||A}function K(e){var t,n,r,i,s=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(U(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(o=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!x(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&Z(e,"directive name must not be less than one character in length");0!==i;){for(;k(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!v(i));break}if(v(i))break;for(t=e.position;0!==i&&!x(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&F(e),a.call(M,n)?M[n](e,n,r):A(e,'unknown document directive "'+n+'"')}U(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,U(e,!0,-1)):o&&Z(e,"directives end mark is expected"),W(e,e.lineIndent-1,d,!1,!0),U(e,!0,-1),e.checkLineBreaks&&f.test(e.input.slice(s,e.position))&&A(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&R(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,U(e,!0,-1)):e.position<e.length-1&&Z(e,"end of the stream or a document separator is expected")}function V(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new I(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,Z(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)K(n);return n.documents}e.exports.loadAll=function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=V(e,n);if("function"!=typeof t)return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])},e.exports.load=function(e,t){var n=V(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new i("expected a single document in the stream, but found more")}}},68458:(e,t,n)=>{"use strict";var r=n(38063),i=n(6148);function s(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function o(e){return this.extend(e)}o.prototype.extend=function(e){var t=[],n=[];if(e instanceof i)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof i))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof i))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var a=Object.create(o.prototype);return a.implicit=(this.implicit||[]).concat(t),a.explicit=(this.explicit||[]).concat(n),a.compiledImplicit=s(a,"implicit"),a.compiledExplicit=s(a,"explicit"),a.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(a.compiledImplicit,a.compiledExplicit),a},e.exports=o},40794:(e,t,n)=>{"use strict";e.exports=n(17396)},56884:(e,t,n)=>{"use strict";e.exports=n(40794).extend({implicit:[n(56872),n(73726)],explicit:[n(3950),n(45345),n(95612),n(87499)]})},58013:(e,t,n)=>{"use strict";var r=n(68458);e.exports=new r({explicit:[n(58956),n(32689),n(30670)]})},17396:(e,t,n)=>{"use strict";e.exports=n(58013).extend({implicit:[n(28744),n(77061),n(51656),n(83781)]})},91992:(e,t,n)=>{"use strict";var r=n(4733);function i(e,t,n,r,i){var s="",o="",a=Math.floor(i/2)-1;return r-t>a&&(t=r-a+(s=" ... ").length),n-r>a&&(n=r+a-(o=" ...").length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+s.length}}function s(e,t){return r.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,o=/\r?\n|\r|\0/g,a=[0],l=[],c=-1;n=o.exec(e.buffer);)l.push(n.index),a.push(n.index+n[0].length),e.position<=n.index&&c<0&&(c=a.length-2);c<0&&(c=a.length-1);var u,d,p="",h=Math.min(e.line+t.linesAfter,l.length).toString().length,m=t.maxLength-(t.indent+h+3);for(u=1;u<=t.linesBefore&&!(c-u<0);u++)d=i(e.buffer,a[c-u],l[c-u],e.position-(a[c]-a[c-u]),m),p=r.repeat(" ",t.indent)+s((e.line-u+1).toString(),h)+" | "+d.str+"\n"+p;for(d=i(e.buffer,a[c],l[c],e.position,m),p+=r.repeat(" ",t.indent)+s((e.line+1).toString(),h)+" | "+d.str+"\n",p+=r.repeat("-",t.indent+h+3+d.pos)+"^\n",u=1;u<=t.linesAfter&&!(c+u>=l.length);u++)d=i(e.buffer,a[c+u],l[c+u],e.position-(a[c]-a[c+u]),m),p+=r.repeat(" ",t.indent)+s((e.line+u+1).toString(),h)+" | "+d.str+"\n";return p.replace(/\n$/,"")}},6148:(e,t,n)=>{"use strict";var r=n(38063),i=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];e.exports=function(e,t){var n,o;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,o={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){o[String(t)]=e}))})),o),-1===s.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},3950:(e,t,n)=>{"use strict";var r=n(6148),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,s=e.length,o=i;for(n=0;n<s;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),s=r.length,o=i,a=0,l=[];for(t=0;t<s;t++)t%4==0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(r.charAt(t));return 0==(n=s%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",s=0,o=e.length,a=i;for(t=0;t<o;t++)t%3==0&&t&&(r+=a[s>>18&63],r+=a[s>>12&63],r+=a[s>>6&63],r+=a[63&s]),s=(s<<8)+e[t];return 0==(n=o%3)?(r+=a[s>>18&63],r+=a[s>>12&63],r+=a[s>>6&63],r+=a[63&s]):2===n?(r+=a[s>>10&63],r+=a[s>>4&63],r+=a[s<<2&63],r+=a[64]):1===n&&(r+=a[s>>2&63],r+=a[s<<4&63],r+=a[64],r+=a[64]),r}})},77061:(e,t,n)=>{"use strict";var r=n(6148);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},83781:(e,t,n)=>{"use strict";var r=n(4733),i=n(6148),s=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=/^[-+]?[0-9]+e/;e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!s.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),o.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},51656:(e,t,n)=>{"use strict";var r=n(4733),i=n(6148);function s(e){return 48<=e&&e<=55}function o(e){return 48<=e&&e<=57}e.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,a=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;a=!0}return a&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;a=!0}return a&&"_"!==t}if("o"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!s(e.charCodeAt(i)))return!1;a=!0}return a&&"_"!==t}}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(!o(e.charCodeAt(i)))return!1;a=!0}return!(!a||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},30670:(e,t,n)=>{"use strict";var r=n(6148);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},73726:(e,t,n)=>{"use strict";var r=n(6148);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},28744:(e,t,n)=>{"use strict";var r=n(6148);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},45345:(e,t,n)=>{"use strict";var r=n(6148),i=Object.prototype.hasOwnProperty,s=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,l=[],c=e;for(t=0,n=c.length;t<n;t+=1){if(r=c[t],a=!1,"[object Object]"!==s.call(r))return!1;for(o in r)if(i.call(r,o)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==l.indexOf(o))return!1;l.push(o)}return!0},construct:function(e){return null!==e?e:[]}})},95612:(e,t,n)=>{"use strict";var r=n(6148),i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,s,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],"[object Object]"!==i.call(r))return!1;if(1!==(s=Object.keys(r)).length)return!1;o[t]=[s[0],r[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}})},32689:(e,t,n)=>{"use strict";var r=n(6148);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},87499:(e,t,n)=>{"use strict";var r=n(6148),i=Object.prototype.hasOwnProperty;e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(i.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},58956:(e,t,n)=>{"use strict";var r=n(6148);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},56872:(e,t,n)=>{"use strict";var r=n(6148),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==i.exec(e)||null!==s.exec(e))},construct:function(e){var t,n,r,o,a,l,c,u,d=0,p=null;if(null===(t=i.exec(e))&&(t=s.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(a=+t[4],l=+t[5],c=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(p=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(p=-p)),u=new Date(Date.UTC(n,r,o,a,l,c,d)),p&&u.setTime(u.getTime()-p),u},instanceOf:Date,represent:function(e){return e.toISOString()}})},10121:e=>{var t="Expected a function",n=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,g=function(){return d.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==r}(e))return n;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var c=o.test(e);return c||a.test(e)?l(e.slice(2),c?2:8):s.test(e)?n:+e}e.exports=function(e,n,r){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError(t);return f(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),function(e,n,r){var i,s,o,a,l,c,u=0,d=!1,p=!1,_=!0;if("function"!=typeof e)throw new TypeError(t);function y(t){var n=i,r=s;return i=s=void 0,u=t,a=e.apply(r,n)}function w(e){var t=e-c;return void 0===c||t>=n||t<0||p&&e-u>=o}function v(){var e=g();if(w(e))return k(e);l=setTimeout(v,function(e){var t=n-(e-c);return p?m(t,o-(e-u)):t}(e))}function k(e){return l=void 0,_&&i?y(e):(i=s=void 0,a)}function x(){var e=g(),t=w(e);if(i=arguments,s=this,c=e,t){if(void 0===l)return function(e){return u=e,l=setTimeout(v,n),d?y(e):a}(c);if(p)return l=setTimeout(v,n),y(c)}return void 0===l&&(l=setTimeout(v,n)),a}return n=b(n)||0,f(r)&&(d=!!r.leading,o=(p="maxWait"in r)?h(b(r.maxWait)||0,n):o,_="trailing"in r?!!r.trailing:_),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=s=l=void 0},x.flush=function(){return void 0===l?a:k(g())},x}(e,n,{leading:i,maxWait:n,trailing:s})}},91689:(e,t,n)=>{var r=n(76955).Symbol;e.exports=r},18072:(e,t,n)=>{var r=n(91689),i=n(75431),s=n(12734),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):s(e)}},83977:(e,t,n)=>{var r=n(2527),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},59128:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},75431:(e,t,n)=>{var r=n(91689),i=Object.prototype,s=i.hasOwnProperty,o=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=o.call(e);return r&&(t?e[a]=n:delete e[a]),i}},12734:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},76955:(e,t,n)=>{var r=n(59128),i="object"==typeof self&&self&&self.Object===Object&&self,s=r||i||Function("return this")();e.exports=s},2527:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66015:(e,t,n)=>{var r=n(14730),i=n(98526),s=n(75432),o=Math.max,a=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,m=0,g=!1,f=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=l,r=c;return l=c=void 0,m=t,d=e.apply(r,n)}function y(e){var n=e-h;return void 0===h||n>=t||n<0||f&&e-m>=u}function w(){var e=i();if(y(e))return v(e);p=setTimeout(w,function(e){var n=t-(e-h);return f?a(n,u-(e-m)):n}(e))}function v(e){return p=void 0,b&&l?_(e):(l=c=void 0,d)}function k(){var e=i(),n=y(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(w,t),g?_(e):d}(h);if(f)return clearTimeout(p),p=setTimeout(w,t),_(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=s(t)||0,r(n)&&(g=!!n.leading,u=(f="maxWait"in n)?o(s(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=h=c=p=void 0},k.flush=function(){return void 0===p?d:v(i())},k}},14730:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},12854:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},82356:(e,t,n)=>{var r=n(18072),i=n(12854);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},98526:(e,t,n)=>{var r=n(76955);e.exports=function(){return r.Date.now()}},16891:(e,t,n)=>{var r=n(66015),i=n(14730);e.exports=function(e,t,n){var s=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(s="leading"in n?!!n.leading:s,o="trailing"in n?!!n.trailing:o),r(e,t,{leading:s,maxWait:t,trailing:o})}},75432:(e,t,n)=>{var r=n(83977),i=n(14730),s=n(82356),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},42480:function(e,t){var n,r;r="undefined"!=typeof self?self:this,void 0===(n=function(){return r.MessageBus=function(){"use strict";var e,t,n,r,i=!1,s=!1,o="xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),a=[],l=0,c=!1,u=[],d=0,p=null,h=0,m=0,g=function(){for(var e,t=["","webkit","ms","moz"],n=0;n<t.length;n++){var r=t[n],i=r+(""===r?"hidden":"Hidden");void 0!==document[i]&&(e=i)}return function(){return void 0!==e?document[e]:!document.hasFocus}}(),f=function(){try{return localStorage.setItem("mbTestLocalStorage",Date.now()),localStorage.removeItem("mbTestLocalStorage"),!0}catch(e){return!1}}(),b=null===(new XMLHttpRequest).onprogress,_=function(){return e.alwaysLongPoll||(e.shouldLongPollCallback?e.shouldLongPollCallback():!g())},y=function(e){if(!e||0===e.length)return!1;for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<a.length;r++){var i=a[r];if(i.channel===n.channel){i.last_id=n.message_id;try{i.func(n.data,n.global_id,n.message_id)}catch(e){console.log&&console.log("MESSAGE BUS FAIL: callback "+i.channel+" caused exception "+e.stack)}}"/__status"===n.channel&&void 0!==n.data[i.channel]&&(i.last_id=n.data[i.channel])}return!0},w=function(e){if(l=0,!c)return y(e);if(e)for(var t=0;t<e.length;t++)u.push(e[t]);return!1},v=function(t,n){if(!i){var o,a=!1,c=!1,u=!1;r=new Date,m+=1,n.__seq=m;var g=_()&&e.enableLongPolling,y=g&&e.enableChunkedEncoding&&b;d>0&&(d--,y=!1);var v={"X-SILENCE-LOGGER":"true"};for(var k in e.headers)v[k]=e.headers[k];y||(v["Dont-Chunk"]="true");var x,T=y?"text":"json",S=function(e,t){var r="\r\n|\r\n",i=e.indexOf(r,t);if(-1===i)return t;var s=e.substring(t,i);s=s.replace(/\r\n\|\|\r\n/g,r);try{w(JSON.parse(s))}catch(e){console.log&&(console.log("FAILED TO PARSE CHUNKED REPLY"),console.log(n))}return S(e,i+5)},C=function(){e.longPoll&&(e.longPoll.abort(),d=e.retryChunkedAfterRequests)};if(!e.ajax)throw new Error("Either jQuery or the ajax adapter must be loaded");return f&&localStorage.setItem("__mbLastAjax",Date.now()),i=!0,e.ajax({url:e.baseUrl+"message-bus/"+e.clientId+"/poll"+(g?"":"?dlp=t"),data:n,async:!0,dataType:T,type:"POST",headers:v,messageBus:{chunked:y,onProgressListener:function(t){var n=0;return x=setTimeout(C,e.firstChunkTimeout),t.onprogress=function(){clearTimeout(x),"application/json; charset=utf-8"===t.getResponseHeader("Content-Type")?y=!1:n=S(t.responseText,n)}}},xhr:function(){var e=jQuery.ajaxSettings.xhr();return y?(this.messageBus.onProgressListener(e),e):e},success:function(e){y||("string"==typeof e&&(e=JSON.parse(e)),a=w(e))},error:function(e,t){if(clearTimeout(x),429===e.status){var n=parseInt(e.getResponseHeader&&e.getResponseHeader("Retry-After"))||0;(n=n||0)<15&&(n=15),o=n,u=!0}else"abort"===t?c=!0:(l+=1,h+=1)},complete:function(){i=!1;var n,d=_();try{u?n=Math.max(e.minPollInterval,1e3*o):c?n=e.minPollInterval:l>2?n=Math.min(e.callbackInterval*l,e.maxPollInterval):d&&a?n=e.minPollInterval:(n=(d?e.callbackInterval:e.backgroundCallbackInterval)-(new Date-r))<100&&(n=100)}catch(e){console.log&&e.message&&console.log("MESSAGE BUS FAIL: "+e.message)}p&&(clearTimeout(p),p=null),s&&(p=setTimeout((function(){p=null,t()}),n)),e.longPoll=null}})}};return e={minHiddenPollInterval:1500,enableChunkedEncoding:!0,enableLongPolling:!0,callbackInterval:15e3,backgroundCallbackInterval:6e4,minPollInterval:100,maxPollInterval:18e4,callbacks:a,clientId:o,alwaysLongPoll:!1,shouldLongPollCallback:void 0,firstChunkTimeout:3e3,retryChunkedAfterRequests:30,baseUrl:"/",headers:{},ajax:"undefined"!=typeof jQuery&&jQuery.ajax,diagnostics:function(){console.log("Stopped: "+n+" Started: "+s),console.log("Current callbacks"),console.log(a),console.log("Total ajax calls: "+m+" Recent failure count: "+l+" Total failures: "+h),console.log("Last ajax call: "+(new Date-r)/1e3+" seconds ago")},pause:function(){c=!0},resume:function(){c=!1,y(u),u=[]},stop:function(){n=!0,s=!1,t&&(clearTimeout(t),t=null),p&&(clearTimeout(p),p=null),e.longPoll&&e.longPoll.abort(),e.onVisibilityChange&&(document.removeEventListener("visibilitychange",e.onVisibilityChange),e.onVisibilityChange=null)},start:function(){if(!s){s=!0,n=!1;var r=function(){if(!n)if(0===a.length||function(){if(f&&g()){var t=parseInt(localStorage.getItem("__mbLastAjax"),10),n=Date.now()-t;return n>=0&&n<e.minHiddenPollInterval}return!1}())t||(t=setTimeout((function(){t=null,r()}),parseInt(500+500*Math.random())));else{for(var i={},s=0;s<a.length;s++)i[a[s].channel]=a[s].last_id;e.longPoll||(e.longPoll=v(r,i))}};document.addEventListener&&"hidden"in document&&(e.onVisibilityChange=function(){document.hidden||e.longPoll||!p&&!t||(clearTimeout(p),clearTimeout(t),t=null,p=null,r())},document.addEventListener("visibilitychange",e.onVisibilityChange)),r()}},status:function(){if(c)return"paused";if(s)return"started";if(n)return"stopped";throw"Cannot determine current status"},subscribe:function(t,r,i){if(s||n||e.start(),null==i)i=-1;else if("number"!=typeof i)throw"lastId has type "+typeof i+" but a number was expected.";if("string"!=typeof t)throw"Channel name must be a string!";return a.push({channel:t,func:r,last_id:i}),e.longPoll&&e.longPoll.abort(),r},unsubscribe:function(t,n){var r=!1;-1!==t.indexOf("*",t.length-1)&&(t=t.substr(0,t.length-1),r=!0);for(var i=!1,s=a.length-1;s>=0;s--){var o,l=a[s];!(o=r?l.channel.substr(0,t.length)!==t:l.channel!==t)&&n&&l.func!==n&&(o=!0),o||(a.splice(s,1),i=!0)}return i&&e.longPoll&&e.longPoll.abort(),i}}}()}.apply(t,[]))||(e.exports=n)},92078:(e,t,n)=>{var r=n(73358),i=/[\/\+\.]/;e.exports=function(e,t){function n(t){var n=r(t,e,i);return n&&n.length>=2}return t?n(t.split(";")[0]):n}},63539:e=>{e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,s,o,a){var l=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),i=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],s=Object.keys(t),o=0,a=s.length;o<a;o++){var l=s[o];if("*"===l&&(n=n.concat(t[l])),2===i.length&&i[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){for(var r=0,i=t.length;r<i&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,l,[n,r,i,s,o,a])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],i=0,s=r?r.length:0;i<s;i++)r[i]!==t&&n.push(r[i]);n.length?this._fns[e]=n:delete this._fns[e]},e}},6735:(e,t,n)=>{var r=n(71095);e.exports=r},45540:(e,t,n)=>{var r=n(23184);e.exports=r},17887:(e,t,n)=>{var r=n(4631);e.exports=r},41221:(e,t,n)=>{var r=n(45540),i=n(6521),s=n(17887),o=n(6735),a=n(40430),l=n(97345);e.exports={diff:r,patch:i,h:s,create:o,VNode:a,VText:l}},6521:(e,t,n)=>{var r=n(89047);e.exports=r},59306:(e,t,n)=>{var r=n(7524),i=n(4366);function s(e,t,n,r){if(r){var s=r[t];if(i(s))s.unhook&&s.unhook(e,t,n);else if("attributes"===t)for(var o in s)e.removeAttribute(o);else if("style"===t)for(var a in s)e.style[a]="";else e[t]="string"==typeof s?"":null}}function o(e,t,n,i,s){var o=n?n[i]:void 0;if("attributes"!==i)if(o&&r(o)&&a(o)!==a(s))e[i]=s;else{r(e[i])||(e[i]={});var l="style"===i?"":void 0;for(var c in s){var u=s[c];e[i][c]=void 0===u?l:u}}else for(var d in s){var p=s[d];void 0===p?e.removeAttribute(d):e.setAttribute(d,p)}}function a(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}e.exports=function(e,t,n){for(var a in t){var l=t[a];void 0===l?s(e,a,l,n):i(l)?(s(e,a,l,n),l.hook&&l.hook(e,a,n?n[a]:void 0)):r(l)?o(e,0,n,a,l):e[a]=l}}},71095:(e,t,n)=>{var r=n(31754),i=n(59306),s=n(18237),o=n(43136),a=n(29443),l=n(4183);e.exports=function e(t,n){var c=n&&n.document||r,u=n?n.warn:null;if(t=l(t).a,a(t))return t.init();if(o(t))return c.createTextNode(t.text);if(!s(t))return u&&u("Item is not a valid virtual dom node",t),null;var d=null===t.namespace?c.createElement(t.tagName):c.createElementNS(t.namespace,t.tagName),p=t.properties;i(d,p);for(var h=t.children,m=0;m<h.length;m++){var g=e(h[m],n);g&&d.appendChild(g)}return d}},3594:e=>{var t={};function n(e,i,s,o,a){if(o=o||{},e){r(s,a,a)&&(o[a]=e);var l=i.children;if(l)for(var c=e.childNodes,u=0;u<i.children.length;u++){a+=1;var d=l[u]||t,p=a+(d.count||0);r(s,a,p)&&n(c[u],d,s,o,a),a=p}}return o}function r(e,t,n){if(0===e.length)return!1;for(var r,i,s=0,o=e.length-1;s<=o;){if(i=e[r=(o+s)/2>>0],s===o)return i>=t&&i<=n;if(i<t)s=r+1;else{if(!(i>n))return!0;o=r-1}}return!1}function i(e,t){return e>t?1:-1}e.exports=function(e,t,r,s){return r&&0!==r.length?(r.sort(i),n(e,t,r,s,0)):{}}},36590:(e,t,n)=>{var r=n(59306),i=n(29443),s=n(468),o=n(36404);function a(e,t){"function"==typeof t.destroy&&i(t)&&t.destroy(e)}e.exports=function(e,t,n){var i,l,c=e.type,u=e.vNode,d=e.patch;switch(c){case s.REMOVE:return function(e,t){var n=e.parentNode;return n&&n.removeChild(e),a(e,t),null}(t,u);case s.INSERT:return function(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}(t,d,n);case s.VTEXT:return function(e,t,n,r){var i;if(3===e.nodeType)e.replaceData(0,e.length,n.text),i=e;else{var s=e.parentNode;i=r.render(n,r),s&&i!==e&&s.replaceChild(i,e)}return i}(t,0,d,n);case s.WIDGET:return function(e,t,n,r){var i,s=o(t,n);i=s?n.update(t,e)||e:r.render(n,r);var l=e.parentNode;return l&&i!==e&&l.replaceChild(i,e),s||a(e,t),i}(t,u,d,n);case s.VNODE:return function(e,t,n,r){var i=e.parentNode,s=r.render(n,r);return i&&s!==e&&i.replaceChild(s,e),s}(t,0,d,n);case s.ORDER:return function(e,t){for(var n,r,i,s=e.childNodes,o={},a=0;a<t.removes.length;a++)n=s[(r=t.removes[a]).from],r.key&&(o[r.key]=n),e.removeChild(n);for(var l=s.length,c=0;c<t.inserts.length;c++)n=o[(i=t.inserts[c]).key],e.insertBefore(n,i.to>=l++?null:s[i.to])}(t,d),t;case s.PROPS:return r(t,d,u.properties),t;case s.THUNK:return i=t,l=n.patch(t,d,n),i&&l&&i!==l&&i.parentNode&&i.parentNode.replaceChild(l,i),l;default:return t}}},89047:(e,t,n)=>{var r=n(31754),i=n(50496),s=n(71095),o=n(3594),a=n(36590);function l(e,t,n){var i=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===i.length)return e;var s=o(e,t.a,i),a=e.ownerDocument;n.document||a===r||(n.document=a);for(var l=0;l<i.length;l++){var u=i[l];e=c(e,s[u],t[u],n)}return e}function c(e,t,n,r){if(!t)return e;var s;if(i(n))for(var o=0;o<n.length;o++)s=a(n[o],t,r),t===e&&(e=s);else s=a(n,t,r),t===e&&(e=s);return e}e.exports=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:l,r.render=r.render||s,r.patch(t,n,r)}},36404:(e,t,n)=>{var r=n(29443);e.exports=function(e,t){return!(!r(e)||!r(t))&&("name"in e&&"name"in t?e.id===t.id:e.init===t.init)}},15881:(e,t,n)=>{"use strict";var r=n(3602);function i(e){if(!(this instanceof i))return new i(e);this.value=e}e.exports=i,i.prototype.hook=function(e,t){r(e)[t.substr(3)]=this.value},i.prototype.unhook=function(e,t){r(e)[t.substr(3)]=void 0}},77119:e=>{"use strict";function t(e){if(!(this instanceof t))return new t(e);this.value=e}e.exports=t,t.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)}},4631:(e,t,n)=>{"use strict";var r=n(50496),i=n(40430),s=n(97345),o=n(18237),a=n(43136),l=n(29443),c=n(4366),u=n(87541),d=n(91789),p=n(77119),h=n(15881);function m(e,t,n,i){if("string"==typeof e)t.push(new s(e));else if("number"==typeof e)t.push(new s(String(e)));else if(g(e))t.push(e);else{if(!r(e)){if(null==e)return;throw a={foreignObject:e,parentVnode:{tagName:n,properties:i}},(l=new Error).type="virtual-hyperscript.unexpected.virtual-element",l.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+f(a.foreignObject)+".\nThe parent vnode is:\n"+f(a.parentVnode),l.foreignObject=a.foreignObject,l.parentVnode=a.parentVnode,l}for(var o=0;o<e.length;o++)m(e[o],t,n,i)}var a,l}function g(e){return o(e)||a(e)||l(e)||u(e)}function f(e){try{return JSON.stringify(e,null,"    ")}catch(t){return String(e)}}e.exports=function(e,t,n){var s,o,a,l,u,f=[];return!n&&("string"==typeof(u=t)||r(u)||g(u))&&(n=t,o={}),s=d(e,o=o||t||{}),o.hasOwnProperty("key")&&(a=o.key,o.key=void 0),o.hasOwnProperty("namespace")&&(l=o.namespace,o.namespace=void 0),"INPUT"!==s||l||!o.hasOwnProperty("value")||void 0===o.value||c(o.value)||(o.value=p(o.value)),function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if(c(n))continue;"ev-"===t.substr(0,3)&&(e[t]=h(n))}}(o),null!=n&&m(n,f,s,o),new i(s,o,f,a,l)}},91789:(e,t,n)=>{"use strict";var r=n(64270),i=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,s=/^\.|#/;e.exports=function(e,t){if(!e)return"DIV";var n,o,a,l,c=!t.hasOwnProperty("id"),u=r(e,i),d=null;for(s.test(u[1])&&(d="DIV"),l=0;l<u.length;l++)(o=u[l])&&(a=o.charAt(0),d?"."===a?(n=n||[]).push(o.substring(1,o.length)):"#"===a&&c&&(t.id=o.substring(1,o.length)):d=o);return n&&(t.className&&n.push(t.className),t.className=n.join(" ")),t.namespace?d:d.toUpperCase()}},4183:(e,t,n)=>{var r=n(18237),i=n(43136),s=n(29443),o=n(87541);function a(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(r(n)||i(n)||s(n)))throw new Error("thunk did not return a valid node");return n}e.exports=function(e,t){var n=e,r=t;return o(t)&&(r=a(t,e)),o(e)&&(n=a(e,null)),{a:n,b:r}}},87541:e=>{e.exports=function(e){return e&&"Thunk"===e.type}},4366:e=>{e.exports=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))}},18237:(e,t,n)=>{var r=n(60987);e.exports=function(e){return e&&"VirtualNode"===e.type&&e.version===r}},43136:(e,t,n)=>{var r=n(60987);e.exports=function(e){return e&&"VirtualText"===e.type&&e.version===r}},29443:e=>{e.exports=function(e){return e&&"Widget"===e.type}},60987:e=>{e.exports="2"},40430:(e,t,n)=>{var r=n(60987),i=n(18237),s=n(29443),o=n(87541),a=n(4366);e.exports=u;var l={},c=[];function u(e,t,n,r,u){this.tagName=e,this.properties=t||l,this.children=n||c,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof u?u:null;var d,p=n&&n.length||0,h=0,m=!1,g=!1,f=!1;for(var b in t)if(t.hasOwnProperty(b)){var _=t[b];a(_)&&_.unhook&&(d||(d={}),d[b]=_)}for(var y=0;y<p;y++){var w=n[y];i(w)?(h+=w.count||0,!m&&w.hasWidgets&&(m=!0),!g&&w.hasThunks&&(g=!0),f||!w.hooks&&!w.descendantHooks||(f=!0)):!m&&s(w)?"function"==typeof w.destroy&&(m=!0):!g&&o(w)&&(g=!0)}this.count=p+h,this.hasWidgets=m,this.hasThunks=g,this.hooks=d,this.descendantHooks=f}u.prototype.version=r,u.prototype.type="VirtualNode"},468:(e,t,n)=>{var r=n(60987);function i(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}i.NONE=0,i.VTEXT=1,i.VNODE=2,i.WIDGET=3,i.PROPS=4,i.ORDER=5,i.INSERT=6,i.REMOVE=7,i.THUNK=8,e.exports=i,i.prototype.version=r,i.prototype.type="VirtualPatch"},97345:(e,t,n)=>{var r=n(60987);function i(e){this.text=String(e)}e.exports=i,i.prototype.version=r,i.prototype.type="VirtualText"},70289:(e,t,n)=>{var r=n(7524),i=n(4366);function s(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}e.exports=function e(t,n){var o;for(var a in t){a in n||((o=o||{})[a]=void 0);var l=t[a],c=n[a];if(l!==c)if(r(l)&&r(c))if(s(c)!==s(l))(o=o||{})[a]=c;else if(i(c))(o=o||{})[a]=c;else{var u=e(l,c);u&&((o=o||{})[a]=u)}else(o=o||{})[a]=c}for(var d in n)d in t||((o=o||{})[d]=n[d]);return o}},23184:(e,t,n)=>{var r=n(50496),i=n(468),s=n(18237),o=n(43136),a=n(29443),l=n(87541),c=n(4183),u=n(70289);function d(e,t){var n={a:e};return p(e,t,n,0),n}function p(e,t,n,r){if(e!==t){var c=n[r],d=!1;if(l(e)||l(t))g(e,t,n,r);else if(null==t)a(e)||(h(e,n,r),c=n[r]),c=y(c,new i(i.REMOVE,e,t));else if(s(t))if(s(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var m=u(e.properties,t.properties);m&&(c=y(c,new i(i.PROPS,e,m))),c=function(e,t,n,r,o){for(var a=e.children,l=function(e,t){var n=_(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var s=_(e),o=s.keys;if(s.free.length===e.length)return{children:t,moves:null};for(var a=[],l=0,c=i.length,u=0,d=0;d<e.length;d++){var p,h=e[d];h.key?r.hasOwnProperty(h.key)?(p=r[h.key],a.push(t[p])):(p=d-u++,a.push(null)):l<c?(p=i[l++],a.push(t[p])):(p=d-u++,a.push(null))}for(var m=l>=i.length?t.length:i[l],g=0;g<t.length;g++){var f=t[g];f.key?o.hasOwnProperty(f.key)||a.push(f):g>=m&&a.push(f)}var y,w=a.slice(),v=0,k=[],x=[],T=t.length-e.length;if(T>0&&w.length===t.length){var S=!0;for(d=0;S&&d<w.length;d++)S=w[d]&&w[d].key;for(d=0;S&&d<e.length;d++)S=e[d].key===t[d+T].key;if(S){for(d=0;d<T;d++)k.push({from:e.length,key:t[d].key}),x.push({to:d,key:t[d].key});return{children:a,moves:{removes:k,inserts:x}}}}for(var C=0;C<t.length;){var P=t[C];for(y=w[v];null===y&&w.length;)k.push(b(w,v,null)),y=w[v];y&&y.key===P.key?(v++,C++):P.key?(y&&y.key&&r[y.key]!==C+1?(k.push(b(w,v,y.key)),(y=w[v])&&y.key===P.key?v++:x.push({key:P.key,to:C})):x.push({key:P.key,to:C}),C++):y&&y.key&&k.push(b(w,v,y.key))}for(;v<w.length;)y=w[v],k.push(b(w,v,y&&y.key));return k.length!==u||x.length?{children:a,moves:{removes:k,inserts:x}}:{children:a,moves:null}}(a,t.children),c=l.children,u=a.length,d=c.length,h=u>d?u:d,m=0;m<h;m++){var g=a[m],f=c[m];o+=1,g?p(g,f,n,o):f&&(r=y(r,new i(i.INSERT,null,f))),s(g)&&g.count&&(o+=g.count)}return l.moves&&(r=y(r,new i(i.ORDER,e,l.moves))),r}(e,t,n,c,r)}else c=y(c,new i(i.VNODE,e,t)),d=!0;else c=y(c,new i(i.VNODE,e,t)),d=!0;else o(t)?o(e)?e.text!==t.text&&(c=y(c,new i(i.VTEXT,e,t))):(c=y(c,new i(i.VTEXT,e,t)),d=!0):a(t)&&(a(e)||(d=!0),c=y(c,new i(i.WIDGET,e,t)));c&&(n[r]=c),d&&h(e,n,r)}}function h(e,t,n){f(e,t,n),m(e,t,n)}function m(e,t,n){if(a(e))"function"==typeof e.destroy&&(t[n]=y(t[n],new i(i.REMOVE,e,null)));else if(s(e)&&(e.hasWidgets||e.hasThunks))for(var r=e.children,o=r.length,c=0;c<o;c++){var u=r[c];m(u,t,n+=1),s(u)&&u.count&&(n+=u.count)}else l(e)&&g(e,null,t,n)}function g(e,t,n,r){var s=c(e,t),o=d(s.a,s.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(o)&&(n[r]=new i(i.THUNK,null,o))}function f(e,t,n){if(s(e)){if(e.hooks&&(t[n]=y(t[n],new i(i.PROPS,e,function(e){var t={};for(var n in e)t[n]=void 0;return t}(e.hooks)))),e.descendantHooks||e.hasThunks)for(var r=e.children,o=r.length,a=0;a<o;a++){var c=r[a];f(c,t,n+=1),s(c)&&c.count&&(n+=c.count)}}else l(e)&&g(e,null,t,n)}function b(e,t,n){return e.splice(t,1),{from:t,key:n}}function _(e){for(var t={},n=[],r=e.length,i=0;i<r;i++){var s=e[i];s.key?t[s.key]=i:n.push(i)}return{keys:t,free:n}}function y(e,t){return e?(r(e)?e.push(t):e=[e,t],e):t}e.exports=d},73358:e=>{"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,n,r=!0,i=this.parts,s=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<s;t++)"*"!==i[t]&&(r=t<n.length&&i[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r},e.exports=function(e,n,r){var i=new t(e,r||/[\/\.]/);return void 0!==n?i.match(n):i}},50496:e=>{var t=Array.isArray,n=Object.prototype.toString;e.exports=t||function(e){return"[object Array]"===n.call(e)}},5544:(e,t,n)=>{var r=n(22081).FilterCSS,i=n(22081).getDefaultWhiteList,s=n(94914);var o=new r;function a(e){return e.replace(l,"&lt;").replace(c,"&gt;")}var l=/</g,c=/>/g,u=/"/g,d=/&quot;/g,p=/&#([a-zA-Z0-9]*);?/gim,h=/&colon;?/gim,m=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,f=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b=/u\s*r\s*l\s*\(.*/gi;function _(e){return e.replace(u,"&quot;")}function y(e){return e.replace(d,'"')}function w(e){return e.replace(p,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function v(e){return e.replace(h,":").replace(m," ")}function k(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return s.trim(t)}function x(e){return k(e=v(e=w(e=y(e))))}function T(e){return a(e=_(e))}t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=function(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}},t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,r){if(n=x(n),"href"===t||"src"===t){if("#"===(n=s.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(g.lastIndex=0,g.test(n))return""}else if("style"===t){if(f.lastIndex=0,f.test(n))return"";if(b.lastIndex=0,b.test(n)&&(g.lastIndex=0,g.test(n)))return"";!1!==r&&(n=(r=r||o).process(n))}return T(n)},t.escapeHtml=a,t.escapeQuote=_,t.unescapeQuote=y,t.escapeHtmlEntities=w,t.escapeDangerHtml5Entities=v,t.clearNonPrintableCharacter=k,t.friendlyAttrValue=x,t.escapeAttrValue=T,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],i=!1;return{onIgnoreTag:function(o,a,l){if(function(t){return!!n||-1!==s.indexOf(e,t)}(o)){if(l.isClosing){var c=l.position+10;return r.push([!1!==i?i:l.position,c]),i=!1,"[/removed]"}return i||(i=l.position),"[removed]"}return t(o,a,l)},remove:function(e){var t="",n=0;return s.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return t},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)}))).join("")},t.cssFilter=o,t.getDefaultCSSWhiteList=i},11281:(e,t,n)=>{var r=n(5544),i=n(5623),s=n(4479);function o(e,t){return new s(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=s,function(){for(var e in r)t[e]=r[e];for(var n in i)t[n]=i[n]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},5623:(e,t,n)=>{var r=n(94914);function i(e){var t,n=r.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=r.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function s(e){return"</"===e.slice(0,2)}var o=/[^a-zA-Z0-9\\_:.-]/gim;function a(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function c(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function u(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var r="",o=0,a=!1,l=!1,c=0,u=e.length,d="",p="";e:for(c=0;c<u;c++){var h=e.charAt(c);if(!1===a){if("<"===h){a=c;continue}}else if(!1===l){if("<"===h){r+=n(e.slice(o,c)),a=c,o=c;continue}if(">"===h||c===u-1){r+=n(e.slice(o,a)),d=i(p=e.slice(a,c+1)),r+=t(a,r.length,d,p,s(p)),o=c+1,a=!1;continue}if('"'===h||"'"===h)for(var m=1,g=e.charAt(c-m);""===g.trim()||"="===g;){if("="===g){l=h;continue e}g=e.charAt(c-++m)}}else if(h===l){l=!1;continue}}return o<u&&(r+=n(e.substr(o))),r},t.parseAttr=function(e,t){"use strict";var n=0,i=0,s=[],d=!1,p=e.length;function h(e,n){if(!((e=(e=r.trim(e)).replace(o,"").toLowerCase()).length<1)){var i=t(e,n||"");i&&s.push(i)}}for(var m=0;m<p;m++){var g,f=e.charAt(m);if(!1!==d||"="!==f)if(!1===d||m!==i){if(/\s|\n|\t/.test(f)){if(e=e.replace(/\s|\n|\t/g," "),!1===d){if(-1===(g=a(e,m))){h(r.trim(e.slice(n,m))),d=!1,n=m+1;continue}m=g-1;continue}if(-1===(g=c(e,m-1))){h(d,u(r.trim(e.slice(n,m)))),d=!1,n=m+1;continue}}}else{if(-1===(g=e.indexOf(f,m+1)))break;h(d,r.trim(e.slice(i+1,g))),d=!1,n=(m=g)+1}else d=e.slice(n,m),n=m+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:l(e,m+1)}return n<e.length&&(!1===d?h(e.slice(n)):h(d,u(r.trim(e.slice(n))))),r.trim(s.join(" "))}},94914:e=>{e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}},4479:(e,t,n)=>{var r=n(22081).FilterCSS,i=n(5544),s=n(5623),o=s.parseTag,a=s.parseAttr,l=n(94914);function c(e){return null==e}function u(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=i.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=i.whiteList,e.onTag=e.onTag||i.onTag,e.onTagAttr=e.onTagAttr||i.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||i.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||i.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,e.escapeHtml=e.escapeHtml||i.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}u.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,s=t.onIgnoreTag,u=t.onTagAttr,d=t.onIgnoreTagAttr,p=t.safeAttrValue,h=t.escapeHtml,m=this.cssFilter;t.stripBlankChar&&(e=i.stripBlankChar(e)),t.allowCommentTag||(e=i.stripCommentTag(e));var g=!1;t.stripIgnoreTagBody&&(g=i.StripTagBody(t.stripIgnoreTagBody,s),s=g.onIgnoreTag);var f=o(e,(function(e,t,i,o,g){var f={sourcePosition:e,position:t,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(n,i)},b=r(i,o,f);if(!c(b))return b;if(f.isWhite){if(f.isClosing)return"</"+i+">";var _=function(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=l.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=l.trim(e.slice(0,-1))),{html:e,closing:n}}(o),y=n[i],w=a(_.html,(function(e,t){var n=-1!==l.indexOf(y,e),r=u(i,e,t,n);return c(r)?n?(t=p(i,e,t,m))?e+'="'+t+'"':e:c(r=d(i,e,t,n))?void 0:r:r}));return o="<"+i,w&&(o+=" "+w),_.closing&&(o+=" /"),o+">"}return c(b=s(i,o,f))?h(o):b}),h);return g&&(f=g.remove(f)),f},e.exports=u},54001:(e,t,n)=>{"use strict";function r(e,t,n,r,i){var s={};return Object.keys(r).forEach((function(e){s[e]=r[e]})),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),s),i&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(i):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(e,t,s),s=null),s}n.d(t,{Z:()=>r})},90272:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{Z:()=>r})},32758:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(90272);function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,(0,r.Z)(e,t,"get"))}},58255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(90272);function i(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,(0,r.Z)(e,t,"set"),n),n}},49246:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>i})},94664:(e,t,n)=>{"use strict";function r(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}n.d(t,{Z:()=>r})},67351:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>p,Qo:()=>m,RR:()=>c,US:()=>o,X5:()=>l,cv:()=>g,dp:()=>_,dr:()=>b,oo:()=>s,uY:()=>f,x7:()=>a});var r=n(70936);function i(e,t,n){let{reference:i,floating:s}=e;const o=(0,r.Qq)(t),a=(0,r.Wh)(t),l=(0,r.I4)(a),c=(0,r.k3)(t),u="y"===o,d=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,h=i[l]/2-s[l]/2;let m;switch(c){case"top":m={x:d,y:i.y-s.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:p};break;case"left":m={x:i.x-s.width,y:p};break;default:m={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":m[a]-=h*(n&&u?-1:1);break;case"end":m[a]+=h*(n&&u?-1:1)}return m}const s=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:d,y:p}=i(u,r,c),h=r,m={},g=0;for(let n=0;n<l.length;n++){const{name:o,fn:f}=l[n],{x:b,y:_,data:y,reset:w}=await f({x:d,y:p,initialPlacement:r,placement:h,strategy:s,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});d=null!=b?b:d,p=null!=_?_:p,m={...m,[o]:{...m[o],...y}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:s}):w.rects),({x:d,y:p}=i(u,h,c))),n=-1)}return{x:d,y:p,placement:h,strategy:s,middlewareData:m}};async function o(e,t){var n;void 0===t&&(t={});const{x:i,y:s,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=(0,r.ku)(t,e),g=(0,r.yd)(m),f=l[h?"floating"===p?"reference":"floating":p],b=(0,r.JB)(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(f)))||n?f:f.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),_="floating"===p?{...a.floating,x:i,y:s}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},v=(0,r.JB)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:y,strategy:c}):_);return{top:(b.top-v.top+g.top)/w.y,bottom:(v.bottom-b.bottom+g.bottom)/w.y,left:(b.left-v.left+g.left)/w.x,right:(v.right-b.right+g.right)/w.x}}const a=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=(0,r.ku)(e,t)||{};if(null==u)return{};const p=(0,r.yd)(d),h={x:n,y:i},m=(0,r.Wh)(s),g=(0,r.I4)(m),f=await a.getDimensions(u),b="y"===m,_=b?"top":"left",y=b?"bottom":"right",w=b?"clientHeight":"clientWidth",v=o.reference[g]+o.reference[m]-h[m]-o.floating[g],k=h[m]-o.reference[m],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let T=x?x[w]:0;T&&await(null==a.isElement?void 0:a.isElement(x))||(T=l.floating[w]||o.floating[g]);const S=v/2-k/2,C=T/2-f[g]/2-1,P=(0,r.VV)(p[_],C),O=(0,r.VV)(p[y],C),E=P,D=T-f[g]-O,I=T/2-f[g]/2+S,j=(0,r.uZ)(E,I,D),Z=!c.arrow&&null!=(0,r.hp)(s)&&I!==j&&o.reference[g]/2-(I<E?P:O)-f[g]/2<0,A=Z?I<E?I-E:I-D:0;return{[m]:h[m]+A,data:{[m]:j,centerOffset:I-j-A,...Z&&{alignmentOffset:A}},reset:Z}}}),l=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,s;const{rects:a,middlewareData:l,placement:c,platform:u,elements:d}=t,{crossAxis:p=!1,alignment:h,allowedPlacements:m=r.Ct,autoAlignment:g=!0,...f}=(0,r.ku)(e,t),b=void 0!==h||m===r.Ct?function(e,t,n){return(e?[...n.filter((t=>(0,r.hp)(t)===e)),...n.filter((t=>(0,r.hp)(t)!==e))]:n.filter((e=>(0,r.k3)(e)===e))).filter((n=>!e||(0,r.hp)(n)===e||!!t&&(0,r.Go)(n)!==n))}(h||null,g,m):m,_=await o(t,f),y=(null==(n=l.autoPlacement)?void 0:n.index)||0,w=b[y];if(null==w)return{};const v=(0,r.i8)(w,a,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(c!==w)return{reset:{placement:b[0]}};const k=[_[(0,r.k3)(w)],_[v[0]],_[v[1]]],x=[...(null==(i=l.autoPlacement)?void 0:i.overflows)||[],{placement:w,overflows:k}],T=b[y+1];if(T)return{data:{index:y+1,overflows:x},reset:{placement:T}};const S=x.map((e=>{const t=(0,r.hp)(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),C=(null==(s=S.filter((e=>e[2].slice(0,(0,r.hp)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:s[0])||S[0][0];return C!==c?{data:{index:y+1,overflows:x},reset:{placement:C}}:{}}}},c=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:a,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:b=!0,..._}=(0,r.ku)(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=(0,r.k3)(s),w=(0,r.k3)(c)===c,v=await(null==u.isRTL?void 0:u.isRTL(d.floating)),k=m||(w||!b?[(0,r.pw)(c)]:(0,r.gy)(c));m||"none"===f||k.push(...(0,r.KX)(c,b,f,v));const x=[c,...k],T=await o(t,_),S=[];let C=(null==(i=a.flip)?void 0:i.overflows)||[];if(p&&S.push(T[y]),h){const e=(0,r.i8)(s,l,v);S.push(T[e[0]],T[e[1]])}if(C=[...C,{placement:s,overflows:S}],!S.every((e=>e<=0))){var P,O;const e=((null==(P=a.flip)?void 0:P.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(O=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(g){case"bestFit":{var E;const e=null==(E=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}};function u(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function d(e){return r.mA.some((t=>e[t]>=0))}const p=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...s}=(0,r.ku)(e,t);switch(i){case"referenceHidden":{const e=u(await o(t,{...s,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:d(e)}}}case"escaped":{const e=u(await o(t,{...s,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:d(e)}}}default:return{}}}}};function h(e){const t=(0,r.VV)(...e.map((e=>e.left))),n=(0,r.VV)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,r.Fp)(...e.map((e=>e.right)))-t,height:(0,r.Fp)(...e.map((e=>e.bottom)))-n}}const m=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:i,rects:s,platform:o,strategy:a}=t,{padding:l=2,x:c,y:u}=(0,r.ku)(e,t),d=Array.from(await(null==o.getClientRects?void 0:o.getClientRects(i.reference))||[]),p=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let i=null;for(let e=0;e<t.length;e++){const r=t[e];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map((e=>(0,r.JB)(h(e))))}(d),m=(0,r.JB)(h(d)),g=(0,r.yd)(l),f=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=c&&null!=u)return p.find((e=>c>e.left-g.left&&c<e.right+g.right&&u>e.top-g.top&&u<e.bottom+g.bottom))||m;if(p.length>=2){if("y"===(0,r.Qq)(n)){const e=p[0],t=p[p.length-1],i="top"===(0,r.k3)(n),s=e.top,o=t.bottom,a=i?e.left:t.left,l=i?e.right:t.right;return{top:s,bottom:o,left:a,right:l,width:l-a,height:o-s,x:a,y:s}}const e="left"===(0,r.k3)(n),t=(0,r.Fp)(...p.map((e=>e.right))),i=(0,r.VV)(...p.map((e=>e.left))),s=p.filter((n=>e?n.left===i:n.right===t)),o=s[0].top,a=s[s.length-1].bottom;return{top:o,bottom:a,left:i,right:t,width:t-i,height:a-o,x:i,y:o}}return m}},floating:i.floating,strategy:a});return s.reference.x!==f.reference.x||s.reference.y!==f.reference.y||s.reference.width!==f.reference.width||s.reference.height!==f.reference.height?{reset:{rects:f}}:{}}}},g=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:o,placement:a,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:i,elements:s}=e,o=await(null==i.isRTL?void 0:i.isRTL(s.floating)),a=(0,r.k3)(n),l=(0,r.hp)(n),c="y"===(0,r.Qq)(n),u=["left","top"].includes(a)?-1:1,d=o&&c?-1:1,p=(0,r.ku)(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:s+c.x,y:o+c.y,data:{...c,placement:a}}}}},f=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,r.ku)(e,t),d={x:n,y:i},p=await o(t,u),h=(0,r.Qq)((0,r.k3)(s)),m=(0,r.Rn)(h);let g=d[m],f=d[h];if(a){const e="y"===m?"bottom":"right",t=g+p["y"===m?"top":"left"],n=g-p[e];g=(0,r.uZ)(t,g,n)}if(l){const e="y"===h?"bottom":"right",t=f+p["y"===h?"top":"left"],n=f-p[e];f=(0,r.uZ)(t,f,n)}const b=c.fn({...t,[m]:g,[h]:f});return{...b,data:{x:b.x-n,y:b.y-i}}}}},b=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=(0,r.ku)(e,t),d={x:n,y:i},p=(0,r.Qq)(s),h=(0,r.Rn)(p);let m=d[h],g=d[p];const f=(0,r.ku)(l,t),b="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(c){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+b.mainAxis,n=o.reference[h]+o.reference[e]-b.mainAxis;m<t?m=t:m>n&&(m=n)}if(u){var _,y;const e="y"===h?"width":"height",t=["top","left"].includes((0,r.k3)(s)),n=o.reference[p]-o.floating[e]+(t&&(null==(_=a.offset)?void 0:_[p])||0)+(t?0:b.crossAxis),i=o.reference[p]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[p])||0)-(t?b.crossAxis:0);g<n?g=n:g>i&&(g=i)}return{[h]:m,[p]:g}}}},_=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:i,platform:s,elements:a}=t,{apply:l=(()=>{}),...c}=(0,r.ku)(e,t),u=await o(t,c),d=(0,r.k3)(n),p=(0,r.hp)(n),h="y"===(0,r.Qq)(n),{width:m,height:g}=i.floating;let f,b;"top"===d||"bottom"===d?(f=d,b=p===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,f="end"===p?"top":"bottom");const _=g-u[f],y=m-u[b],w=!t.middlewareData.shift;let v=_,k=y;if(h){const e=m-u.left-u.right;k=p||w?(0,r.VV)(y,e):e}else{const e=g-u.top-u.bottom;v=p||w?(0,r.VV)(_,e):e}if(w&&!p){const e=(0,r.Fp)(u.left,0),t=(0,r.Fp)(u.right,0),n=(0,r.Fp)(u.top,0),i=(0,r.Fp)(u.bottom,0);h?k=m-2*(0!==e||0!==t?e+t:(0,r.Fp)(u.left,u.right)):v=g-2*(0!==n||0!==i?n+i:(0,r.Fp)(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:v});const x=await s.getDimensions(a.floating);return m!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}}},19325:(e,t,n)=>{"use strict";n.d(t,{Me:()=>v,Qo:()=>S,RR:()=>x,oo:()=>C,uY:()=>k,x7:()=>T});var r=n(70936),i=n(67351),s=n(19882);function o(e){const t=(0,s.Dx)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=(0,s.Re)(e),a=o?e.offsetWidth:n,l=o?e.offsetHeight:i,c=(0,r.NM)(n)!==a||(0,r.NM)(i)!==l;return c&&(n=a,i=l),{width:n,height:i,$:c}}function a(e){return(0,s.kK)(e)?e:e.contextElement}function l(e){const t=a(e);if(!(0,s.Re)(t))return(0,r.ze)(1);const n=t.getBoundingClientRect(),{width:i,height:l,$:c}=o(t);let u=(c?(0,r.NM)(n.width):n.width)/i,d=(c?(0,r.NM)(n.height):n.height)/l;return u&&Number.isFinite(u)||(u=1),d&&Number.isFinite(d)||(d=1),{x:u,y:d}}const c=(0,r.ze)(0);function u(e){const t=(0,s.Jj)(e);return(0,s.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:c}function d(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),c=a(e);let d=(0,r.ze)(1);t&&(i?(0,s.kK)(i)&&(d=l(i)):d=l(e));const p=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,s.Jj)(e))&&t}(c,n,i)?u(c):(0,r.ze)(0);let h=(o.left+p.x)/d.x,m=(o.top+p.y)/d.y,g=o.width/d.x,f=o.height/d.y;if(c){const e=(0,s.Jj)(c),t=i&&(0,s.kK)(i)?(0,s.Jj)(i):i;let n=e.frameElement;for(;n&&i&&t!==e;){const e=l(n),t=n.getBoundingClientRect(),r=(0,s.Dx)(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;h*=e.x,m*=e.y,g*=e.x,f*=e.y,h+=i,m+=o,n=(0,s.Jj)(n).frameElement}}return(0,r.JB)({width:g,height:f,x:h,y:m})}const p=[":popover-open",":modal"];function h(e){let t=!1,n=0,r=0;if(p.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch(e){}}(n)})),t){const t=(0,s.gQ)(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function m(e){return d((0,s.tF)(e)).left+(0,s.Lw)(e).scrollLeft}function g(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=(0,s.Jj)(e),r=(0,s.tF)(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const e=(0,s.Pf)();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l,y:c}}(e,n);else if("document"===t)i=function(e){const t=(0,s.tF)(e),n=(0,s.Lw)(e),i=e.ownerDocument.body,o=(0,r.Fp)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=(0,r.Fp)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let l=-n.scrollLeft+m(e);const c=-n.scrollTop;return"rtl"===(0,s.Dx)(i).direction&&(l+=(0,r.Fp)(t.clientWidth,i.clientWidth)-o),{width:o,height:a,x:l,y:c}}((0,s.tF)(e));else if((0,s.kK)(t))i=function(e,t){const n=d(e,!0,"fixed"===t),i=n.top+e.clientTop,o=n.left+e.clientLeft,a=(0,s.Re)(e)?l(e):(0,r.ze)(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:i*a.y}}(t,n);else{const n=u(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(i)}function f(e,t){const n=(0,s.Ow)(e);return!(n===t||!(0,s.kK)(n)||(0,s.Py)(n))&&("fixed"===(0,s.Dx)(n).position||f(n,t))}function b(e,t,n,i){const o=(0,s.Re)(t),a=(0,s.tF)(t),l="fixed"===n,c=d(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const p=(0,r.ze)(0);if(o||!o&&!l)if(("body"!==(0,s.wk)(t)||(0,s.ao)(a))&&(u=(0,s.Lw)(t)),o){const e=d(t,!0,l,t);p.x=e.x+t.clientLeft,p.y=e.y+t.clientTop}else a&&(p.x=m(a));let g=c.left+u.scrollLeft-p.x,f=c.top+u.scrollTop-p.y;const[b,_,y]=h(i);return b&&(g+=_,f+=y,o&&(g+=t.clientLeft,f+=t.clientTop)),{x:g,y:f,width:c.width,height:c.height}}function _(e,t){return(0,s.Re)(e)&&"fixed"!==(0,s.Dx)(e).position?t?t(e):e.offsetParent:null}function y(e,t){const n=(0,s.Jj)(e);if(!(0,s.Re)(e))return n;let r=_(e,t);for(;r&&(0,s.Ze)(r)&&"static"===(0,s.Dx)(r).position;)r=_(r,t);return r&&("html"===(0,s.wk)(r)||"body"===(0,s.wk)(r)&&"static"===(0,s.Dx)(r).position&&!(0,s.hT)(r))?n:r||(0,s.gQ)(e)||n}const w={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const a=(0,s.tF)(i),[c]=t?h(t.floating):[!1];if(i===a||c)return n;let u={scrollLeft:0,scrollTop:0},p=(0,r.ze)(1);const m=(0,r.ze)(0),g=(0,s.Re)(i);if((g||!g&&"fixed"!==o)&&(("body"!==(0,s.wk)(i)||(0,s.ao)(a))&&(u=(0,s.Lw)(i)),(0,s.Re)(i))){const e=d(i);p=l(i),m.x=e.x+i.clientLeft,m.y=e.y+i.clientTop}return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-u.scrollLeft*p.x+m.x,y:n.y*p.y-u.scrollTop*p.y+m.y}},getDocumentElement:s.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const a=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=(0,s.Kx)(e,[],!1).filter((e=>(0,s.kK)(e)&&"body"!==(0,s.wk)(e))),i=null;const o="fixed"===(0,s.Dx)(e).position;let a=o?(0,s.Ow)(e):e;for(;(0,s.kK)(a)&&!(0,s.Py)(a);){const t=(0,s.Dx)(a),n=(0,s.hT)(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||(0,s.ao)(a)&&!n&&f(e,a))?r=r.filter((e=>e!==a)):i=t,a=(0,s.Ow)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),i],l=a[0],c=a.reduce(((e,n)=>{const i=g(t,n,o);return e.top=(0,r.Fp)(i.top,e.top),e.right=(0,r.VV)(i.right,e.right),e.bottom=(0,r.VV)(i.bottom,e.bottom),e.left=(0,r.Fp)(i.left,e.left),e}),g(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:y,getElementRects:async function(e){const t=this.getOffsetParent||y,n=this.getDimensions;return{reference:b(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=o(e);return{width:t,height:n}},getScale:l,isElement:s.kK,isRTL:function(e){return"rtl"===(0,s.Dx)(e).direction}};function v(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:p=!1}=i,h=a(e),m=o||l?[...h?(0,s.Kx)(h):[],...(0,s.Kx)(t)]:[];m.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const g=h&&u?function(e,t){let n,i=null;const o=(0,s.tF)(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function s(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),a();const{left:u,top:d,width:p,height:h}=e.getBoundingClientRect();if(l||t(),!p||!h)return;const m={rootMargin:-(0,r.GW)(d)+"px "+-(0,r.GW)(o.clientWidth-(u+p))+"px "+-(0,r.GW)(o.clientHeight-(d+h))+"px "+-(0,r.GW)(u)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,c))||1};let g=!0;function f(e){const t=e[0].intersectionRatio;if(t!==c){if(!g)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}g=!1}try{i=new IntersectionObserver(f,{...m,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(f,m)}i.observe(e)}(!0),a}(h,n):null;let f,b=-1,_=null;c&&(_=new ResizeObserver((e=>{let[r]=e;r&&r.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=_)||e.observe(t)}))),n()})),h&&!p&&_.observe(h),_.observe(t));let y=p?d(e):null;return p&&function t(){const r=d(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n(),y=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach((e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==g||g(),null==(e=_)||e.disconnect(),_=null,p&&cancelAnimationFrame(f)}}const k=i.uY,x=i.RR,T=i.x7,S=i.Qo,C=(e,t,n)=>{const r=new Map,s={platform:w,...n},o={...s.platform,_c:r};return(0,i.oo)(e,t,{...s,platform:o})}},19882:(e,t,n)=>{"use strict";function r(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return e instanceof Node||e instanceof i(e).Node}function a(e){return e instanceof Element||e instanceof i(e).Element}function l(e){return e instanceof HTMLElement||e instanceof i(e).HTMLElement}function c(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function u(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=f(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function d(e){return["table","td","th"].includes(r(e))}function p(e){const t=m(),n=f(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function h(e){let t=_(e);for(;l(t)&&!g(t);){if(p(t))return t;t=_(t)}return null}function m(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(r(e))}function f(e){return i(e).getComputedStyle(e)}function b(e){return a(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||c(e)&&e.host||s(e);return c(t)?t.host:t}function y(e){const t=_(e);return g(t)?e.ownerDocument?e.ownerDocument.body:e.body:l(t)&&u(t)?t:y(t)}function w(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const s=y(e),o=s===(null==(r=e.ownerDocument)?void 0:r.body),a=i(s);return o?t.concat(a,a.visualViewport||[],u(s)?s:[],a.frameElement&&n?w(a.frameElement):[]):t.concat(s,w(s,[],n))}n.d(t,{Dx:()=>f,Jj:()=>i,Kx:()=>w,Lw:()=>b,Ow:()=>_,Pf:()=>m,Py:()=>g,Re:()=>l,Ze:()=>d,ao:()=>u,gQ:()=>h,hT:()=>p,kK:()=>a,tF:()=>s,wk:()=>r})},70936:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>s,Fp:()=>a,GW:()=>c,Go:()=>x,I4:()=>_,JB:()=>P,KX:()=>T,NM:()=>l,Qq:()=>y,Rn:()=>b,VV:()=>o,Wh:()=>w,gy:()=>k,hp:()=>f,i8:()=>v,k3:()=>g,ku:()=>m,mA:()=>r,pw:()=>S,uZ:()=>h,yd:()=>C,ze:()=>u});const r=["top","right","bottom","left"],i=["start","end"],s=r.reduce(((e,t)=>e.concat(t,t+"-"+i[0],t+"-"+i[1])),[]),o=Math.min,a=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function h(e,t,n){return a(e,o(t,n))}function m(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function b(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(g(e))?"y":"x"}function w(e){return b(y(e))}function v(e,t,n){void 0===n&&(n=!1);const r=f(e),i=w(e),s=_(i);let o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=S(o)),[o,S(o)]}function k(e){const t=S(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,(e=>p[e]))}function T(e,t,n,r){const i=f(e);let s=function(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}(g(e),"start"===n,r);return i&&(s=s.map((e=>e+"-"+i)),t&&(s=s.concat(s.map(x)))),s}function S(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function C(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function P(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},63825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ae});var r=n(48510),i=n(47672),s=n(1784),o=n(11490),a=n(75244),l=n(81210),c=n(24350);function u(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var d=0;function p(e){return"__private_"+d+++"_"+e}const h={getChunkSize:e=>Math.ceil(e.size/1e4),onProgress(){},onPartComplete(){},onSuccess(){},onError(e){throw e}},m=Symbol("pausing upload, not an actual error");var g=p("abortController"),f=p("chunks"),b=p("chunkState"),_=p("data"),y=p("file"),w=p("uploadPromise"),v=p("onError"),k=p("onSuccess"),x=p("onReject"),T=p("initChunks"),S=p("createUpload"),C=p("resumeUpload"),P=p("onPartProgress"),O=p("onPartComplete"),E=p("abortUpload");function D(){const e=this.options.getChunkSize(u(this,_)[_]),t=u(this,_)[_].size,n=Math.max(5242880,Math.ceil(t/1e4)),r=Math.max(e,n);if(0===u(this,_)[_].size)u(this,f)[f]=[u(this,_)[_]],u(this,_)[_].onProgress=u(this,P)[P](0),u(this,_)[_].onComplete=u(this,O)[O](0);else{const e=Math.ceil(t/r);u(this,f)[f]=Array(e);let n=0;for(let e=0;e<t;e+=r){const i=Math.min(t,e+r),s=u(this,_)[_].slice(e,i);s.onProgress=u(this,P)[P](n),s.onComplete=u(this,O)[O](n),u(this,f)[f][n++]=s}}u(this,b)[b]=u(this,f)[f].map((()=>({uploaded:0})))}function I(){u(this,w)[w]=this.options.companionComm.uploadFile(u(this,y)[y],u(this,f)[f],u(this,g)[g].signal).then(u(this,k)[k],u(this,x)[x])}function j(){u(this,w)[w]=this.options.companionComm.resumeUploadFile(u(this,y)[y],u(this,f)[f],u(this,g)[g].signal).then(u(this,k)[k],u(this,x)[x])}function Z(){u(this,g)[g].abort(),this.options.companionComm.abortFileUpload(u(this,y)[y]).catch((e=>this.options.log(e)))}const A=class{constructor(e,t){var n;Object.defineProperty(this,E,{value:Z}),Object.defineProperty(this,C,{value:j}),Object.defineProperty(this,S,{value:I}),Object.defineProperty(this,T,{value:D}),Object.defineProperty(this,g,{writable:!0,value:new c.AbortController}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,b,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:e=>(null==e?void 0:e.cause)===m?null:u(this,v)[v](e)}),Object.defineProperty(this,P,{writable:!0,value:e=>t=>{if(!t.lengthComputable)return;const n=t.loaded;u(this,b)[b][e].uploaded=function(e){if("string"==typeof e)return parseInt(e,10);if("number"==typeof e)return e;throw new TypeError("Expected a number")}(n);const r=u(this,b)[b].reduce(((e,t)=>e+t.uploaded),0);this.options.onProgress(r,u(this,_)[_].size)}}),Object.defineProperty(this,O,{writable:!0,value:e=>t=>{u(this,f)[f][e]=null,u(this,b)[b][e].etag=t,u(this,b)[b][e].done=!0;const n={PartNumber:e+1,ETag:t};this.options.onPartComplete(n)}}),this.options={...h,...t},null!=(n=this.options).getChunkSize||(n.getChunkSize=h.getChunkSize),u(this,_)[_]=e,u(this,y)[y]=t.file,u(this,k)[k]=this.options.onSuccess,u(this,v)[v]=this.options.onError,u(this,T)[T]()}start(){u(this,w)[w]?(u(this,g)[g].signal.aborted||u(this,g)[g].abort(m),u(this,g)[g]=new c.AbortController,u(this,C)[C]()):u(this,S)[S]()}pause(){u(this,g)[g].abort(m),u(this,g)[g]=new c.AbortController}abort(e){var t;void 0===e&&(e=void 0),null!=(t=e)&&t.really?u(this,E)[E]():this.pause()}get chunkState(){return u(this,b)[b]}};let M;function N(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var z=0;function L(e){return"__private_"+z+++"_"+e}function F(e){if(e&&e.error){const t=new Error(e.message);throw Object.assign(t,e.error),t}return e}function U(e){if(null!=e&&e.aborted)throw(0,c.createAbortError)("The operation was aborted",{cause:e.reason})}var R=L("abortMultipartUpload"),B=L("cache"),$=L("createMultipartUpload"),q=L("fetchSignature"),H=L("listParts"),W=L("previousRetryDelay"),K=L("requests"),V=L("retryDelayIterator"),G=L("sendCompletionRequest"),Y=L("setS3MultipartState"),Q=L("uploadPartBytes"),J=L("shouldRetry");class X{constructor(e,t,n){Object.defineProperty(this,J,{value:ee}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,B,{writable:!0,value:new WeakMap}),Object.defineProperty(this,$,{writable:!0,value:void 0}),Object.defineProperty(this,q,{writable:!0,value:void 0}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,W,{writable:!0,value:void 0}),Object.defineProperty(this,K,{writable:!0,value:void 0}),Object.defineProperty(this,V,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:void 0}),Object.defineProperty(this,Q,{writable:!0,value:void 0}),N(this,K)[K]=e,N(this,Y)[Y]=n,this.setOptions(t)}setOptions(e){const t=N(this,K)[K];var n;"abortMultipartUpload"in e&&(N(this,R)[R]=t.wrapPromiseFunction(e.abortMultipartUpload)),"createMultipartUpload"in e&&(N(this,$)[$]=t.wrapPromiseFunction(e.createMultipartUpload,{priority:-1})),"signPart"in e&&(N(this,q)[q]=t.wrapPromiseFunction(e.signPart)),"listParts"in e&&(N(this,H)[H]=t.wrapPromiseFunction(e.listParts)),"completeMultipartUpload"in e&&(N(this,G)[G]=t.wrapPromiseFunction(e.completeMultipartUpload)),"retryDelays"in e&&(N(this,V)[V]=null==(n=e.retryDelays)?void 0:n.values()),"uploadPartBytes"in e&&(N(this,Q)[Q]=t.wrapPromiseFunction(e.uploadPartBytes,{priority:1/0}))}async getUploadId(e,t){const n=N(this,B)[B].get(e.data);if(null!=n)return n;const r=N(this,$)[$](e,t),i=()=>{r.abort(t.reason),N(this,B)[B].delete(e.data)};return t.addEventListener("abort",i,{once:!0}),N(this,B)[B].set(e.data,r),r.then((async n=>{t.removeEventListener("abort",i),N(this,Y)[Y](e,n),N(this,B)[B].set(e.data,n)}),(()=>{t.removeEventListener("abort",i)})),r}async abortFileUpload(e){const t=N(this,B)[B].get(e.data);null!=t&&await N(this,R)[R](e,await t)}async uploadFile(e,t,n){U(n);const{uploadId:r,key:i}=await this.getUploadId(e,n);U(n);const s=await Promise.all(t.map(((t,r)=>this.uploadChunk(e,r+1,t,n))));return U(n),N(this,G)[G](e,{key:i,uploadId:r,parts:s,signal:n}).abortOn(n)}async resumeUploadFile(e,t,n){U(n);const{uploadId:r,key:i}=await this.getUploadId(e,n);U(n);const s=await N(this,H)[H](e,{uploadId:r,key:i,signal:n}).abortOn(n);U(n);const o=await Promise.all(t.map(((t,r)=>{const i=r+1,o=s.find((e=>{let{PartNumber:t}=e;return t===i}));return null==o?this.uploadChunk(e,i,t,n):{PartNumber:i,ETag:o.ETag}})));return U(n),N(this,G)[G](e,{key:i,uploadId:r,parts:o,signal:n}).abortOn(n)}async uploadChunk(e,t,n,r){U(r);const{uploadId:i,key:s}=await this.getUploadId(e,r);for(U(r);;){const o=await N(this,q)[q](e,{uploadId:i,key:s,partNumber:t,body:n,signal:r}).abortOn(r);U(r);try{return{PartNumber:t,...await N(this,Q)[Q](o,n,r).abortOn(r)}}catch(e){if(!await N(this,J)[J](e))throw e}}}}async function ee(e){var t;const n=N(this,K)[K],r=null==e||null==(t=e.source)?void 0:t.status;if(null==r)return!1;if(403===r&&"Request has expired"===e.message){if(!n.isPaused){if(1===n.limit||null==N(this,W)[W]){var i;const e=null==(i=N(this,V)[V])?void 0:i.next();if(null==e||e.done)return!1;N(this,W)[W]=e.value}n.rateLimit(0),await new Promise((e=>setTimeout(e,N(this,W)[W])))}}else if(429===r){if(!n.isPaused){var s;const e=null==(s=N(this,V)[V])?void 0:s.next();if(null==e||e.done)return!1;n.rateLimit(e.value)}}else{if(r>400&&r<500&&409!==r)return!1;if("undefined"!=typeof navigator&&!1===navigator.onLine)n.isPaused||(n.pause(),window.addEventListener("online",(()=>{n.resume()}),{once:!0}));else{var o;const e=null==(o=N(this,V)[V])?void 0:o.next();if(null==e||e.done)return!1;await new Promise((t=>setTimeout(t,e.value)))}}return!0}var te=L("queueRequestSocketToken"),ne=L("companionCommunicationQueue"),re=L("client"),ie=L("setS3MultipartState"),se=L("requestSocketToken"),oe=L("setCompanionHeaders");M=Symbol.for("uppy test: getClient");class ae extends r.Z{constructor(e,t){var n;super(e,t),Object.defineProperty(this,te,{writable:!0,value:void 0}),Object.defineProperty(this,ne,{writable:!0,value:void 0}),Object.defineProperty(this,re,{writable:!0,value:void 0}),Object.defineProperty(this,ie,{writable:!0,value:(e,t)=>{let{key:n,uploadId:r}=t;const i=this.uppy.getFile(e.id);this.uppy.setFileState(e.id,{s3Multipart:{...i.s3Multipart,key:n,uploadId:r}})}}),Object.defineProperty(this,se,{writable:!0,value:async e=>{const t=new(e.remote.providerOptions.provider?i.zt:i.C$)(this.uppy,e.remote.providerOptions),n={...this.opts};if(e.tus&&Object.assign(n,e.tus),null==e.remote.url)throw new Error("Cannot connect to an undefined URL");return(await t.post(e.remote.url,{...e.remote.body,protocol:"s3-multipart",size:e.data.size,metadata:e.meta})).token}}),Object.defineProperty(this,oe,{writable:!0,value:()=>{N(this,re)[re].setCompanionHeaders(this.opts.companionHeaders)}}),this.type="uploader",this.id=this.opts.id||"AwsS3Multipart",this.title="AWS S3 Multipart",N(this,re)[re]=new i.C$(e,t);const r={allowedMetaFields:null,limit:6,retryDelays:[0,1e3,3e3,5e3],createMultipartUpload:this.createMultipartUpload.bind(this),listParts:this.listParts.bind(this),abortMultipartUpload:this.abortMultipartUpload.bind(this),completeMultipartUpload:this.completeMultipartUpload.bind(this),signPart:this.signPart.bind(this),uploadPartBytes:ae.uploadPartBytes,companionHeaders:{}};this.opts={...r,...t},null!=(null==t?void 0:t.prepareUploadParts)&&null==t.signPart&&(this.opts.signPart=async(e,n)=>{let{uploadId:r,key:i,partNumber:s,body:o,signal:a}=n;const{presignedUrls:l,headers:c}=await t.prepareUploadParts(e,{uploadId:r,key:i,parts:[{number:s,chunk:o}],signal:a});return{url:null==l?void 0:l[s],headers:null==c?void 0:c[s]}}),this.upload=this.upload.bind(this),this.requests=null!=(n=this.opts.rateLimitedQueue)?n:new l.s(this.opts.limit),N(this,ne)[ne]=new X(this.requests,this.opts,N(this,ie)[ie]),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.uploaderSockets=Object.create(null),N(this,te)[te]=this.requests.wrapPromiseFunction(N(this,se)[se],{priority:-1})}[M](){return N(this,re)[re]}setOptions(e){return N(this,ne)[ne].setOptions(e),super.setOptions(e)}resetUploaderReferences(e,t){void 0===t&&(t={}),this.uploaders[e]&&(this.uploaders[e].abort({really:t.abort||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null),this.uploaderSockets[e]&&(this.uploaderSockets[e].close(),this.uploaderSockets[e]=null)}assertHost(e){if(!this.opts.companionUrl)throw new Error(`Expected a \`companionUrl\` option containing a Companion address, or if you are not using Companion, a custom \`${e}\` implementation.`)}createMultipartUpload(e,t){var n;this.assertHost("createMultipartUpload"),U(t);const r=e.meta?Object.fromEntries((null!=(n=this.opts.allowedMetaFields)?n:Object.keys(e.meta)).filter((t=>null!=e.meta[t])).map((t=>[t,String(e.meta[t])]))):{};return N(this,re)[re].post("s3/multipart",{filename:e.name,type:e.type,metadata:r},{signal:t}).then(F)}listParts(e,t,n){let{key:r,uploadId:i}=t;this.assertHost("listParts"),U(n);const s=encodeURIComponent(r);return N(this,re)[re].get(`s3/multipart/${i}?key=${s}`,{signal:n}).then(F)}completeMultipartUpload(e,t,n){let{key:r,uploadId:i,parts:s}=t;this.assertHost("completeMultipartUpload"),U(n);const o=encodeURIComponent(r),a=encodeURIComponent(i);return N(this,re)[re].post(`s3/multipart/${a}/complete?key=${o}`,{parts:s},{signal:n}).then(F)}signPart(e,t){let{uploadId:n,key:r,partNumber:i,signal:s}=t;if(this.assertHost("signPart"),U(s),null==n||null==r||null==i)throw new Error("Cannot sign without a key, an uploadId, and a partNumber");const o=encodeURIComponent(r);return N(this,re)[re].get(`s3/multipart/${n}/${i}?key=${o}`,{signal:s}).then(F)}abortMultipartUpload(e,t,n){let{key:r,uploadId:i}=t;this.assertHost("abortMultipartUpload");const s=encodeURIComponent(r),o=encodeURIComponent(i);return N(this,re)[re].delete(`s3/multipart/${o}?key=${s}`,void 0,{signal:n}).then(F)}static async uploadPartBytes(e,t,n){let{url:r,expires:i,headers:s}=e;if(U(n),null==r)throw new Error("Cannot upload to an undefined URL");return new Promise(((e,o)=>{const a=new XMLHttpRequest;function l(){a.abort()}function u(){n.removeEventListener("abort",l)}a.open("PUT",r,!0),s&&Object.keys(s).forEach((e=>{a.setRequestHeader(e,s[e])})),a.responseType="text","number"==typeof i&&(a.timeout=1e3*i),n.addEventListener("abort",l),a.upload.addEventListener("progress",t.onProgress),a.addEventListener("abort",(()=>{u(),o((0,c.createAbortError)())})),a.addEventListener("timeout",(()=>{u();const e=new Error("Request has expired");e.source={status:403},o(e)})),a.addEventListener("load",(n=>{if(u(),403===n.target.status&&n.target.responseText.includes("<Message>Request has expired</Message>")){const e=new Error("Request has expired");return e.source=n.target,void o(e)}if(n.target.status<200||n.target.status>=300){const e=new Error("Non 2xx");return e.source=n.target,void o(e)}null==t.onProgress||t.onProgress(t.size);const r=n.target.getResponseHeader("ETag");null!==r?(null==t.onComplete||t.onComplete(r),e({ETag:r})):o(new Error("AwsS3/Multipart: Could not read the ETag header. This likely means CORS is not configured correctly on the S3 Bucket. See https://uppy.io/docs/aws-s3-multipart#S3-Bucket-Configuration for instructions."))})),a.addEventListener("error",(e=>{u();const t=new Error("Unknown error");t.source=e.target,o(t)})),a.send(t)}))}uploadFile(e){var t=this;return new Promise(((n,r)=>{const i=new A(e.data,{companionComm:N(this,ne)[ne],log:function(){return t.uppy.log(...arguments)},getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):null,onProgress:(t,n)=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t,bytesTotal:n})},onError:t=>{this.uppy.log(t),this.uppy.emit("upload-error",e,t),this.resetUploaderReferences(e.id),r(t)},onSuccess:t=>{const r=i,s={body:{...t},uploadURL:t.location};this.resetUploaderReferences(e.id);const o=this.uppy.getFile(e.id);this.uppy.emit("upload-success",o||e,s),t.location&&this.uppy.log(`Download ${e.name} from ${t.location}`),n(r)},onPartComplete:t=>{const n=this.uppy.getFile(e.id);n&&this.uppy.emit("s3-multipart:part-uploaded",n,t)},file:e,...e.s3Multipart});this.uploaders[e.id]=i,this.uploaderEvents[e.id]=new s.default(this.uppy),this.onFileRemove(e.id,(t=>{i.abort(),this.resetUploaderReferences(e.id,{abort:!0}),n(`upload ${t.id} was removed`)})),this.onCancelAll(e.id,(function(r){let{reason:s}=void 0===r?{}:r;"user"===s&&(i.abort(),t.resetUploaderReferences(e.id,{abort:!0})),n(`upload ${e.id} was canceled`)})),this.onFilePause(e.id,(e=>{e?i.pause():i.start()})),this.onPauseAll(e.id,(()=>{i.pause()})),this.onResumeAll(e.id,(()=>{i.start()})),e.progress.uploadStarted&&e.isRestored||(i.start(),this.uppy.emit("upload-started",e))}))}async uploadRemote(e){this.resetUploaderReferences(e.id),e.progress.uploadStarted&&e.isRestored||this.uppy.emit("upload-started",e);try{if(e.serverToken)return await this.connectToServerSocket(e);const t=await N(this,te)[te](e);if(!this.uppy.getState().files[e.id])return;return this.uppy.setFileState(e.id,{serverToken:t}),await this.connectToServerSocket(this.uppy.getFile(e.id))}catch(t){throw this.uppy.setFileState(e.id,{serverToken:void 0}),this.uppy.emit("upload-error",e,t),t}}async connectToServerSocket(e){var t=this;return new Promise(((n,r)=>{let l;const c=e.serverToken,u=(0,a.Z)(e.remote.companionUrl),d=new i.sk({target:`${u}/api/${c}`,autoOpen:!1});this.uploaderSockets[e.id]=d,this.uploaderEvents[e.id]=new s.default(this.uppy),this.onFileRemove(e.id,(()=>{l.abort(),d.send("cancel",{}),this.resetUploaderReferences(e.id,{abort:!0}),n(`upload ${e.id} was removed`)})),this.onFilePause(e.id,(e=>{e?(l.abort(),d.send("pause",{})):(l.abort(),l=this.requests.run((()=>(d.open(),d.send("resume",{}),()=>d.close()))))})),this.onPauseAll(e.id,(()=>{l.abort(),d.send("pause",{})})),this.onCancelAll(e.id,(function(r){let{reason:i}=void 0===r?{}:r;"user"===i&&(l.abort(),d.send("cancel",{}),t.resetUploaderReferences(e.id)),n(`upload ${e.id} was canceled`)})),this.onResumeAll(e.id,(()=>{l.abort(),e.error&&d.send("pause",{}),l=this.requests.run((()=>(d.open(),d.send("resume",{}),()=>d.close())))})),this.onRetry(e.id,(()=>{d.isOpen&&(d.send("pause",{}),d.send("resume",{}))})),this.onRetryAll(e.id,(()=>{d.isOpen&&(d.send("pause",{}),d.send("resume",{}))})),d.on("progress",(t=>(0,o.Z)(this,t,e))),d.on("error",(t=>{this.uppy.emit("upload-error",e,new Error(t.error)),this.resetUploaderReferences(e.id),l.done(),r(new Error(t.error))})),d.on("success",(t=>{const r={uploadURL:t.url};this.uppy.emit("upload-success",e,r),this.resetUploaderReferences(e.id),l.done(),n()})),l=this.requests.run((()=>(e.isPaused?d.send("pause",{}):d.open(),()=>d.close())))}))}async upload(e){if(0===e.length)return;const t=e.map((e=>{const t=this.uppy.getFile(e);return t.isRemote?this.uploadRemote(t):this.uploadFile(t)}));return Promise.all(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onFilePause(e,t){this.uploaderEvents[e].on("upload-pause",((n,r)=>{e===n&&t(r)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onPauseAll(e,t){this.uploaderEvents[e].on("pause-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",(function(){n.uppy.getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.uploaderEvents[e].on("resume-all",(()=>{this.uppy.getFile(e)&&t()}))}install(){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,resumableUploads:!0}}),this.uppy.addPreProcessor(N(this,oe)[oe]),this.uppy.addUploader(this.upload)}uninstall(){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,resumableUploads:!1}}),this.uppy.removePreProcessor(N(this,oe)[oe]),this.uppy.removeUploader(this.upload)}}ae.VERSION="3.1.3"},18797:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>W});var r=n(48510),i=n(81210),s=n(47672),o=n(37644),a=n(11490),l=n(75244),c=n(1784),u=n(17580),d=n(9663),p=n(55506),h=n(49355);function m(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var g=0;function f(e){return"__private_"+g+++"_"+e}function b(e,t){if((0,h.Z)(e))return new p.Z(t,e);const n=new d.Z("Upload error",{cause:t});return n.request=e,n}var _=f("queueRequestSocketToken"),y=f("getOptions"),w=f("addEventHandlerForFile"),v=f("addEventHandlerIfFileStillExists"),k=f("uploadLocalFile"),x=f("requestSocketToken"),T=f("uploadRemoteFile");class S{constructor(e,t){Object.defineProperty(this,T,{value:D}),Object.defineProperty(this,k,{value:E}),Object.defineProperty(this,v,{value:O}),Object.defineProperty(this,w,{value:P}),Object.defineProperty(this,y,{value:C}),Object.defineProperty(this,_,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:async e=>{const t=m(this,y)[y](e),n=new(e.remote.providerOptions.provider?s.zt:s.C$)(this.uppy,e.remote.providerOptions),r=Array.isArray(t.allowedMetaFields)?t.allowedMetaFields:Object.keys(e.meta);return e.tus&&Object.assign(t,e.tus),(await n.post(e.remote.url,{...e.remote.body,protocol:"multipart",endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:Object.fromEntries(r.map((t=>[t,e.meta[t]]))),httpMethod:t.method,useFormData:t.formData,headers:t.headers})).token}}),this.uppy=e,this.opts={validateStatus:e=>e>=200&&e<300,...t},this.requests=t[i.B],this.uploaderEvents=Object.create(null),this.i18n=t.i18n,m(this,_)[_]=this.requests.wrapPromiseFunction(m(this,x)[x],{priority:-1})}uploadFile(e,t,n){const r=this.uppy.getFile(e);if(r.error)throw new Error(r.error);return r.isRemote?m(this,T)[T](r,t,n):m(this,k)[k](r,t,n)}async connectToServerSocket(e){return new Promise(((t,n)=>{const r=m(this,y)[y](e),i=e.serverToken,o=(0,l.Z)(e.remote.companionUrl);let u;const p=()=>{null==u&&(u=new s.sk({target:`${o}/api/${i}`}),u.on("progress",(t=>(0,a.Z)(this,t,e))),u.on("success",(n=>{const i=r.getResponseData(n.response.responseText,n.response),s=i[r.responseUrlFieldName],o={status:n.response.status,body:i,uploadURL:s,bytesUploaded:n.bytesUploaded};return this.uppy.emit("upload-success",e,o),h.done(),u.close(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),t()})),u.on("error",(t=>{const i=t.response,s=i?r.getResponseError(i.responseText,i):new d.Z(t.error.message,{cause:t.error});this.uppy.emit("upload-error",e,s),h.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(s)})))};this.uploaderEvents[e.id]=new c.default(this.uppy);let h=this.requests.run((()=>{var t;return e.isPaused?null==(t=u)||t.send("pause",{}):p(),()=>u.close()}));m(this,w)[w]("file-removed",e.id,(()=>{var n;null==(n=u)||n.send("cancel",{}),h.abort(),t(`upload ${e.id} was removed`)})),m(this,v)[v]("cancel-all",e.id,(function(n){let{reason:r}=void 0===n?{}:n;var i;"user"===r&&(null==(i=u)||i.send("cancel",{}),h.abort()),t(`upload ${e.id} was canceled`)}));const g=()=>{null==u?h.abort():(u.send("pause",{}),h.done()),h=this.requests.run((()=>(e.isPaused||(null==u?p():u.send("resume",{})),()=>u.close())))};m(this,w)[w]("upload-retry",e.id,g),m(this,v)[v]("retry-all",e.id,g)})).catch((t=>(this.uppy.emit("upload-error",e,t),Promise.reject(t))))}}function C(e){var t;const{uppy:n}=this,r=n.getState().xhrUpload;return{...this.opts,...r||{},...e.xhrUpload||{},headers:{...this.opts.headers,...null==r?void 0:r.headers,...null==(t=e.xhrUpload)?void 0:t.headers}}}function P(e,t,n){this.uploaderEvents[t].on(e,(e=>{var r;const i=null!=(r=null==e?void 0:e.id)?r:e;t===i&&n()}))}function O(e,t,n){var r=this;this.uploaderEvents[t].on(e,(function(){r.uppy.getFile(t)&&n(...arguments)}))}function E(e,t,n){const r=m(this,y)[y](e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{const i=r.formData?function(e,t){const n=new FormData;!function(e,t,n){(Array.isArray(n.allowedMetaFields)?n.allowedMetaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}(n,e.meta,t);const r=function(e){return e.data.slice(0,e.data.size,e.meta.type)}(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}(e,r):(e=>e.data)(e),s=new XMLHttpRequest;this.uploaderEvents[e.id]=new c.default(this.uppy);const a=new u.Z(r.timeout,(()=>{s.abort(),d.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),l=(0,o.x)();s.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[AwsS3/XHRUpload] ${l} started`)})),s.upload.addEventListener("progress",(t=>{this.uppy.log(`[AwsS3/XHRUpload] ${l} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),s.addEventListener("load",(i=>{if(this.uppy.log(`[AwsS3/XHRUpload] ${l} finished`),a.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.target.status,s.responseText,s)){const n=r.getResponseData(s.responseText,s),o=n[r.responseUrlFieldName],a={status:i.target.status,body:n,uploadURL:o};return this.uppy.emit("upload-success",e,a),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}const o=r.getResponseData(s.responseText,s),c=b(s,r.getResponseError(s.responseText,s)),u={status:i.target.status,body:o};return this.uppy.emit("upload-error",e,c,u),n(c)})),s.addEventListener("error",(()=>{this.uppy.log(`[AwsS3/XHRUpload] ${l} errored`),a.done(),d.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=b(s,r.getResponseError(s.responseText,s));return this.uppy.emit("upload-error",e,t),n(t)})),s.open(r.method.toUpperCase(),r.endpoint,!0),s.withCredentials=Boolean(r.withCredentials),""!==r.responseType&&(s.responseType=r.responseType),Object.keys(r.headers).forEach((e=>{s.setRequestHeader(e,r.headers[e])}));const d=this.requests.run((()=>(s.send(i),()=>{a.done(),s.abort()})),{priority:1});m(this,w)[w]("file-removed",e.id,(()=>{d.abort(),n(new Error("File removed"))})),m(this,v)[v]("cancel-all",e.id,(function(e){let{reason:t}=void 0===e?{}:e;"user"===t&&d.abort(),n(new Error("Upload cancelled"))}))}))}async function D(e){try{if(e.serverToken)return await this.connectToServerSocket(e);const t=await m(this,_)[_](e);if(!this.uppy.getState().files[e.id])return;return this.uppy.setFileState(e.id,{serverToken:t}),await this.connectToServerSocket(this.uppy.getFile(e.id))}catch(t){throw this.uppy.setFileState(e.id,{serverToken:void 0}),this.uppy.emit("upload-error",e,t),t}}const I=function(e,t){const n=t.headers?t.headers["content-type"]:t.getResponseHeader("Content-Type");if("string"==typeof n){const t=(r=n,r.replace(/;.*$/,"")).toLowerCase();if("application/xml"===t||"text/xml"===t)return!0;if("text/html"===t&&/^<\?xml /.test(e))return!0}var r;return!1},j={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};let Z;function A(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var M=0;function N(e){return"__private_"+M+++"_"+e}function z(e,t){const n=e.indexOf(`<${t}>`),r=e.indexOf(`</${t}>`,n);return-1!==n&&-1!==r?e.slice(n+t.length+2,r):""}function L(e){if(e&&e.error){const t=new Error(e.message);throw Object.assign(t,e.error),t}return e}function F(e,t){if(!I(e,t))return;const n=z(e,"Message");return new Error(n)}let U=!1;var R=N("client"),B=N("requests"),$=N("uploader"),q=N("handleUpload"),H=N("setCompanionHeaders");Z=Symbol.for("uppy test: getClient");class W extends r.Z{constructor(e,t){super(e,t),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,B,{writable:!0,value:void 0}),Object.defineProperty(this,$,{writable:!0,value:void 0}),Object.defineProperty(this,q,{writable:!0,value:e=>{const t=Object.create(null);function n(e){var n;const{id:r}=e;null==(n=t[r])||n.abort()}this.uppy.on("file-removed",n),e.forEach((e=>{const t=this.uppy.getFile(e);this.uppy.emit("upload-started",t)}));const r=A(this,B)[B].wrapPromiseFunction((e=>this.opts.getUploadParameters(e))),i=e.length;return Promise.allSettled(e.map(((e,n)=>(t[e]=r(this.uppy.getFile(e)),t[e].then((r=>{delete t[e];const s=this.uppy.getFile(e);!function(e,t){if(null==t||"string"!=typeof t.url||"object"!=typeof t.fields&&null!=t.fields)throw new TypeError(`AwsS3: got incorrect result from 'getUploadParameters()' for file '${e.name}', expected an object '{ url, method, fields, headers }' but got '${JSON.stringify(t)}' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.`);if(null!=t.method&&!/^p(u|os)t$/i.test(t.method))throw new TypeError(`AwsS3: got incorrect method from 'getUploadParameters()' for file '${e.name}', expected  'put' or 'post' but got '${t.method}' instead.\nSee https://uppy.io/docs/aws-s3/#getUploadParameters-file for more on the expected format.`)}(s,r);const{method:o="post",url:a,fields:l,headers:c}=r,u={method:o,formData:"post"===o.toLowerCase(),endpoint:a,allowedMetaFields:l?Object.keys(l):[]};return c&&(u.headers=c),this.uppy.setFileState(s.id,{meta:{...s.meta,...l},xhrUpload:u}),A(this,$)[$].uploadFile(s.id,n,i)})).catch((n=>{delete t[e];const r=this.uppy.getFile(e);return this.uppy.emit("upload-error",r,n),Promise.reject(n)})))))).finally((()=>{this.uppy.off("file-removed",n)}))}}),Object.defineProperty(this,H,{writable:!0,value:()=>(A(this,R)[R].setCompanionHeaders(this.opts.companionHeaders),Promise.resolve())}),this.type="uploader",this.id=this.opts.id||"AwsS3",this.title="AWS S3",this.defaultLocale=j;const n={timeout:3e4,limit:0,allowedMetaFields:[],getUploadParameters:this.getUploadParameters.bind(this),companionHeaders:{}};if(this.opts={...n,...t},void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");this.i18nInit(),A(this,R)[R]=new s.C$(e,t),A(this,B)[B]=new i.s(this.opts.limit)}[Z](){return A(this,R)[R]}get client(){return A(this,R)[R]}set client(e){A(this,R)[R]=e}getUploadParameters(e){if(!this.opts.companionUrl)throw new Error("Expected a `companionUrl` option containing a Companion address.");const t=e.meta.name,{type:n}=e.meta,r=Object.fromEntries(this.opts.allowedMetaFields.filter((t=>null!=e.meta[t])).map((t=>[`metadata[${t}]`,e.meta[t].toString()]))),i=new URLSearchParams({filename:t,type:n,...r});return A(this,R)[R].get(`s3/params?${i}`).then(L)}install(){const{uppy:e}=this;e.addPreProcessor(A(this,H)[H]),e.addUploader(A(this,q)[q]);const t={fieldName:"file",responseUrlFieldName:"location",timeout:this.opts.timeout,[i.B]:A(this,B)[B],responseType:"text",getResponseData:this.opts.getResponseData||function(t,n){return I(t,n)?{location:(r=n.responseURL,i=z(t,"Location"),r||i.startsWith("https://")||i.startsWith("http://")||(i=`https://${i}`),new URL(i,r||void 0).toString()),bucket:z(t,"Bucket"),key:z(t,"Key"),etag:z(t,"ETag")}:"POST"===this.method.toUpperCase()?(U||(e.log("[AwsS3] No response data found, make sure to set the success_action_status AWS SDK option to 201. See https://uppy.io/docs/aws-s3/#POST-Uploads","warning"),U=!0),{location:null}):n.responseURL?{location:n.responseURL.replace(/\?.*$/,"")}:{location:null};var r,i},getResponseError:F};t.i18n=this.i18n,A(this,$)[$]=new S(e,t)}uninstall(){this.uppy.removePreProcessor(A(this,H)[H]),this.uppy.removeUploader(A(this,q)[q])}}W.VERSION="3.0.6"},47672:(e,t,n)=>{"use strict";n.d(t,{zt:()=>k,C$:()=>f,sk:()=>A});var r={};n.r(r),n.d(r,{getItem:()=>w,removeItem:()=>v,setItem:()=>y});var i=n(55506),s=n(9663);class o extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}const a=o;let l;function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var u=0;function d(e){return"__private_"+u+++"_"+e}const p=new Map;var h=d("companionHeaders"),m=d("getUrl"),g=d("request");l=Symbol.for("uppy test: getCompanionHeaders");class f{constructor(e,t){Object.defineProperty(this,g,{value:_}),Object.defineProperty(this,m,{value:b}),Object.defineProperty(this,h,{writable:!0,value:void 0}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),c(this,h)[h]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){c(this,h)[h]=e}[l](){return c(this,h)[h]}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${f.VERSION}`,...c(this,h)[h]}}onReceiveResponse(e){let{headers:t}=e;const n=this.uppy.getState().companion||{},r=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:t.get("i-am")}})}async preflight(e){const t=p.get(this.hostname);if(null!=t)return t;const n=["accept","content-type","uppy-auth-token"],r=(async()=>{try{const t=(await fetch(c(this,m)[m](e),{method:"OPTIONS"})).headers.get("access-control-allow-headers");if(null==t||"*"===t)return p.set(this.hostname,n),n;this.uppy.log(`[CompanionClient] adding allowed preflight headers to companion cache: ${this.hostname} ${t}`);const r=t.split(",").map((e=>e.trim().toLowerCase()));return p.set(this.hostname,r),r}catch(e){return this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),p.delete(this.hostname),n}})();return p.set(this.hostname,r),r}async preflightAndHeaders(e){const[t,n]=await Promise.all([this.preflight(e),this.headers()]);return Object.fromEntries(Object.entries(n).filter((e=>{let[n]=e;return!!t.includes(n.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${n}`),!1)})))}async get(e,t){return void 0===t&&(t=void 0),"boolean"==typeof t&&(t={skipPostResponse:t}),c(this,g)[g]({...t,path:e})}async post(e,t,n){return void 0===n&&(n=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,g)[g]({...n,path:e,method:"POST",data:t})}async delete(e,t,n){return void 0===t&&(t=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,g)[g]({...n,path:e,method:"DELETE",data:t})}}function b(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function _(e){let{path:t,method:n="GET",data:r,skipPostResponse:o,signal:l}=e;try{const e=await this.preflightAndHeaders(t),s=await function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new i.Z(e)}))}(c(this,m)[m](t),{method:n,signal:l,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null});return o||this.onReceiveResponse(s),async function(e){if(401===e.status)throw new a;const t=e.json();if(e.ok)return t;let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}catch{}throw new Error(n)}(s)}catch(e){if(null!=e&&e.isAuthError)throw e;throw new s.Z(`Could not ${n} ${c(this,m)[m](t)}`,{cause:e})}}function y(e,t){return new Promise((n=>{localStorage.setItem(e,t),n()}))}function w(e){return Promise.resolve(localStorage.getItem(e))}function v(e){return new Promise((t=>{localStorage.removeItem(e),t()}))}f.VERSION="3.1.3";class k extends f{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}async headers(){const[e,t]=await Promise.all([super.headers(),this.getAuthToken()]),n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}}onReceiveResponse(e){super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw new Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});const t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{const e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||r}}var x=n(63539);let T,S;function C(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var P=0;function O(e){return"__private_"+P+++"_"+e}var E=O("queued"),D=O("emitter"),I=O("isOpen"),j=O("socket"),Z=O("handleMessage");T=Symbol.for("uppy test: getSocket"),S=Symbol.for("uppy test: getQueued");class A{constructor(e){Object.defineProperty(this,E,{writable:!0,value:[]}),Object.defineProperty(this,D,{writable:!0,value:x()}),Object.defineProperty(this,I,{writable:!0,value:!1}),Object.defineProperty(this,j,{writable:!0,value:void 0}),Object.defineProperty(this,Z,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return C(this,I)[I]}[T](){return C(this,j)[j]}[S](){return C(this,E)[E]}open(){null==C(this,j)[j]&&(C(this,j)[j]=new WebSocket(this.opts.target),C(this,j)[j].onopen=()=>{for(C(this,I)[I]=!0;C(this,E)[E].length>0&&C(this,I)[I];){const e=C(this,E)[E].shift();this.send(e.action,e.payload)}},C(this,j)[j].onclose=()=>{C(this,I)[I]=!1,C(this,j)[j]=null},C(this,j)[j].onmessage=C(this,Z)[Z])}close(){var e;null==(e=C(this,j)[j])||e.close()}send(e,t){C(this,I)[I]?C(this,j)[j].send(JSON.stringify({action:e,payload:t})):C(this,E)[E].push({action:e,payload:t})}on(e,t){C(this,D)[D].on(e,t)}emit(e,t){C(this,D)[D].emit(e,t)}once(e,t){C(this,D)[D].once(e,t)}}},48510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2159);class i{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new r.Z([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}},79338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BasePlugin:()=>Ke.Z,UIPlugin:()=>Xe,Uppy:()=>de,debugLogger:()=>k,default:()=>de});var r=n(2159),i=n(63539),s=n(37644),o=n(10121);function a(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var l=0;function c(e){return"__private_"+l+++"_"+e}var u=c("callbacks"),d=c("publish");class p{constructor(){Object.defineProperty(this,d,{value:h}),Object.defineProperty(this,u,{writable:!0,value:new Set}),this.state={}}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,a(this,d)[d](t,n,e)}subscribe(e){return a(this,u)[u].add(e),()=>{a(this,u)[u].delete(e)}}}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];a(this,u)[u].forEach((e=>{e(...t)}))}p.VERSION="3.0.3";const m=p;function g(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}const f={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function b(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}function _(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,i]=n.split(".");return r=parseInt(r,10),i=parseInt(i,10),r<15||15===r&&i<15063||r>18||18===r&&i>=18218}function y(e){return e<10?`0${e}`:e.toString()}function w(){const e=new Date;return`${y(e.getHours())}:${y(e.getMinutes())}:${y(e.getSeconds())}`}const v={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${w()}]`,...t)}},k={debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${w()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${w()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${w()}]`,...t)}};var x=n(35804),T=n(92078);const S={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class C extends Error{constructor(){super(...arguments),this.isRestriction=!0}}class P{constructor(e,t){this.i18n=t,this.getOpts=()=>{const t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:s,allowedFileTypes:o}=this.getOpts().restrictions;if(s){const e=t.filter((e=>!e.isGhost));if(e.length+1>s)throw new C(`${this.i18n("youCanOnlyUploadX",{smart_count:s})}`)}if(o&&!o.some((t=>t.includes("/")?!!e.type&&T(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const e=o.join(", ");throw new C(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size){const n=t.reduce(((e,t)=>e+t.size),e.size);if(n>i)throw new C(this.i18n("exceedsSize",{size:x(i),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new C(this.i18n("exceedsSize",{size:x(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new C(this.i18n("inferiorSize",{size:x(r)}))}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(Object.keys(e).length<t)throw new C(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new C(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:n}=this.getOpts().restrictions,r=[];for(const t of n)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||r.push(t);return{missingFields:r,error:t}}}const O={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};let E,D;function I(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var j=0;function Z(e){return"__private_"+j+++"_"+e}var A=Z("plugins"),M=Z("restricter"),N=Z("storeUnsubscribe"),z=Z("emitter"),L=Z("preProcessors"),F=Z("uploaders"),U=Z("postProcessors"),R=Z("informAndEmit"),B=Z("checkRequiredMetaFieldsOnFile"),$=Z("checkRequiredMetaFields"),q=Z("assertNewUploadAllowed"),H=Z("checkAndCreateFileStateObject"),W=Z("startIfAutoProceed"),K=Z("addListeners"),V=Z("updateOnlineStatus"),G=Z("createUpload"),Y=Z("getUpload"),Q=Z("removeUpload"),J=Z("runUpload");E=Symbol.for("uppy test: getPlugins"),D=Symbol.for("uppy test: createUpload");class X{constructor(e){Object.defineProperty(this,J,{value:ue}),Object.defineProperty(this,Q,{value:ce}),Object.defineProperty(this,Y,{value:le}),Object.defineProperty(this,G,{value:ae}),Object.defineProperty(this,K,{value:oe}),Object.defineProperty(this,W,{value:se}),Object.defineProperty(this,H,{value:ie}),Object.defineProperty(this,q,{value:re}),Object.defineProperty(this,$,{value:ne}),Object.defineProperty(this,B,{value:te}),Object.defineProperty(this,R,{value:ee}),Object.defineProperty(this,A,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,M,{writable:!0,value:void 0}),Object.defineProperty(this,N,{writable:!0,value:void 0}),Object.defineProperty(this,z,{writable:!0,value:i()}),Object.defineProperty(this,L,{writable:!0,value:new Set}),Object.defineProperty(this,F,{writable:!0,value:new Set}),Object.defineProperty(this,U,{writable:!0,value:new Set}),Object.defineProperty(this,V,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=O;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:S,meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new m,logger:v,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=k),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=o(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:_(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),I(this,M)[M]=new P((()=>this.opts),this.i18n),I(this,N)[N]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),I(this,K)[K]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];I(this,z)[z].emit(e,...n)}on(e,t){return I(this,z)[z].on(e,t),this}once(e,t){return I(this,z)[z].once(e,t),this}off(e,t){return I(this,z)[z].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new r.Z([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const i={...t[r]};i.progress={...i.progress,...e},n[r]=i})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){I(this,L)[L].add(e)}removePreProcessor(e){return I(this,L)[L].delete(e)}addPostProcessor(e){I(this,U)[U].add(e)}removePostProcessor(e){return I(this,U)[U].delete(e)}addUploader(e){I(this,F)[F].add(e)}removeUploader(e){return I(this,F)[F].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),s=r.filter((e=>!e.progress.uploadStarted)),o=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),a=r.filter((e=>e.progress.uploadStarted)),l=r.filter((e=>e.isPaused)),c=r.filter((e=>e.progress.uploadComplete)),u=r.filter((e=>e.error)),d=i.filter((e=>!e.isPaused)),p=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:s,startedFiles:o,uploadStartedFiles:a,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:a.length>0,isAllComplete:100===t&&c.length===r.length&&0===p.length,isAllErrored:!!n&&u.length===r.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{I(this,M)[M].validate(e,t)}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){I(this,q)[q](e);const{files:t}=this.getState();let n=I(this,H)[H](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),I(this,W)[W](),n.id}addFiles(e){I(this,q)[q]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=I(this,H)[H](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&I(this,W)[W](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),i={...n},s={...r},o=Object.create(null);function a(e){return void 0===o[e]}e.forEach((e=>{n[e]&&(o[e]=n[e],delete i[e])})),Object.keys(s).forEach((e=>{const t=r[e].fileIDs.filter(a);if(0===t.length)return void delete s[e];const{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw new Error("individualCancellation is disabled");s[e]={...r[e],fileIDs:t}}));const l={currentUploads:s,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(o);c.forEach((e=>{this.emit("file-removed",o[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=I(this,G)[G](t,{forceAllowNewUpload:!0});return I(this,J)[J](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=I(this,G)[G]([e],{forceAllowNewUpload:!0});return I(this,J)[J](t)}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),i=Math.round(r/t*100);return void this.setState({totalProgress:i})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const i=r/t.length;r+=i*n.length;let s=0;t.forEach((e=>{s+=e.progress.bytesUploaded})),n.forEach((e=>{s+=i*(e.progress.percentage||0)/100}));let o=0===r?0:Math.round(s/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit("progress",o)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(r);if(i){const e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in I(this,A)[A]?I(this,A)[A][n.type].push(n):I(this,A)[A][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(I(this,A)[A])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[E](e){return I(this,A)[A][e]}iteratePlugins(e){Object.values(I(this,A)[A]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=I(this,A)[A][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),I(this,N)[N](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",I(this,V)[V]),window.removeEventListener("offline",I(this,V)[V]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?I(this,J)[J](e):(I(this,Q)[Q](e),Promise.reject(new Error("Nonexistent upload")))}[D](){return I(this,G)[G](...arguments)}addResultData(e,t){if(!I(this,Y)[Y](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=I(this,A)[A].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>I(this,M)[M].validateMinNumberOfFiles(t))).catch((e=>{throw I(this,R)[R](e),e})).then((()=>{if(!I(this,$)[$](t))throw new C(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const i=I(this,G)[G](r);return I(this,J)[J](i)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function ee(e,t){const{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(`${n} ${r}`.trim(),"error")}function te(e){const{missingFields:t,error:n}=I(this,M)[M].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),1))}function ne(e){let t=!0;for(const n of Object.values(e))I(this,B)[B](n)||(t=!1);return t}function re(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new C(this.i18n("noMoreFilesAllowed"));throw I(this,R)[R](t,e),t}}function ie(e,t){t instanceof File&&(t={name:t.name,type:t.type,size:t.size,data:t});const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=g(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in f?f[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),i=g(r).extension,s=Boolean(t.isRemote),o=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${b(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${b(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(o)){const e=new C(this.i18n("noDuplicates",{fileName:r}));throw I(this,R)[R](e,t),e}const a=t.meta||{};a.name=r,a.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:o,name:r,extension:i||"",meta:{...this.getState().meta,...a},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:s,remote:t.remote||"",preview:t.preview};const u=this.opts.onBeforeFileAdded(c,e);if(!1===u){const e=new C("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof u&&null!==u&&(c=u);try{const t=Object.keys(e).map((t=>e[t]));I(this,M)[M].validate(c,t)}catch(e){throw I(this,R)[R](e,c),e}return c}function se(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function oe(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:null==t?void 0:t.name}),I(this,R)[R](e)}else I(this,R)[R](n)})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:I(this,U)[U].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&I(this,B)[B](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",I(this,V)[V]),window.addEventListener("offline",I(this,V)[V]),setTimeout(I(this,V)[V],3e3))}function ae(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=(0,s.x)();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function le(e){const{currentUploads:t}=this.getState();return t[e]}function ce(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function ue(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...I(this,L)[L],...I(this,F)[F],...I(this,U)[U]];try{for(let s=r;s<i.length&&n;s++){const r=i[s],o={...n,step:s};this.setState({currentUploads:{...t,[e]:o}}),await r(o.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw I(this,Q)[Q](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),i=r.filter((e=>!e.error)),s=r.filter((e=>e.error));await this.addResultData(e,{successful:i,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let s;return n&&(s=n.result,this.emit("complete",s),I(this,Q)[Q](e)),null==s&&this.log(`Not setting result for an upload that has been removed: ${e}`),s}X.VERSION="3.0.4";const de=X;var pe,he,me,ge,fe,be,_e,ye={},we=[],ve=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ke=Array.isArray;function xe(e,t){for(var n in t)e[n]=t[n];return e}function Te(e){var t=e.parentNode;t&&t.removeChild(e)}function Se(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++me:i};return null==i&&null!=he.vnode&&he.vnode(s),s}function Ce(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function Oe(e,t){if(null==t)return e.__?Oe(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Oe(e):null}function Ee(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Ee(e)}}function De(e){(!e.__d&&(e.__d=!0)&&ge.push(e)&&!Ie.__r++||fe!==he.debounceRendering)&&((fe=he.debounceRendering)||be)(Ie)}function Ie(){var e,t,n,r,i,s,o,a;for(ge.sort(_e);e=ge.shift();)e.__d&&(t=ge.length,r=void 0,i=void 0,o=(s=(n=e).__v).__e,(a=n.__P)&&(r=[],(i=xe({},s)).__v=s.__v+1,Ue(a,s,i,n.__n,void 0!==a.ownerSVGElement,null!=s.__h?[o]:null,r,null==o?Oe(s):o,s.__h),Re(r,s),s.__e!=o&&Ee(s)),ge.length>t&&ge.sort(_e));Ie.__r=0}function je(e,t,n,r,i,s,o,a,l,c){var u,d,p,h,m,g,f,b=r&&r.__k||we,_=b.length;for(n.__k=[],u=0;u<t.length;u++)if(null!=(h=n.__k[u]=null==(h=t[u])||"boolean"==typeof h||"function"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?Se(null,h,null,null,h):ke(h)?Se(Ce,{children:h},null,null,null):h.__b>0?Se(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=b[u])||p&&h.key==p.key&&h.type===p.type)b[u]=void 0;else for(d=0;d<_;d++){if((p=b[d])&&h.key==p.key&&h.type===p.type){b[d]=void 0;break}p=null}Ue(e,h,p=p||ye,i,s,o,a,l,c),m=h.__e,(d=h.ref)&&p.ref!=d&&(f||(f=[]),p.ref&&f.push(p.ref,null,h),f.push(d,h.__c||m,h)),null!=m?(null==g&&(g=m),"function"==typeof h.type&&h.__k===p.__k?h.__d=l=Ze(h,l,e):l=Ae(e,h,p,b,m,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=Oe(p))}for(n.__e=g,u=_;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=Me(r).nextSibling),qe(b[u],b[u]));if(f)for(u=0;u<f.length;u++)$e(f[u],f[++u],f[++u])}function Ze(e,t,n){for(var r,i=e.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=e,t="function"==typeof r.type?Ze(r,t,n):Ae(n,r,r,i,r.__e,t));return t}function Ae(e,t,n,r,i,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=s||null==i.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(i),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;e.insertBefore(i,s),o=s}return void 0!==o?o:i.nextSibling}function Me(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=Me(n)))return r;return null}function Ne(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||ve.test(t)?n:n+"px"}function ze(e,t,n,r,i){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ne(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ne(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?Fe:Le,s):e.removeEventListener(t,s?Fe:Le,s);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Le(e){return this.l[e.type+!1](he.event?he.event(e):e)}function Fe(e){return this.l[e.type+!0](he.event?he.event(e):e)}function Ue(e,t,n,r,i,s,o,a,l){var c,u,d,p,h,m,g,f,b,_,y,w,v,k,x,T=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(c=he.__b)&&c(t);try{e:if("function"==typeof T){if(f=t.props,b=(c=T.contextType)&&r[c.__c],_=c?b?b.props.value:c.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in T&&T.prototype.render?t.__c=u=new T(f,_):(t.__c=u=new Pe(f,_),u.constructor=T,u.render=He),b&&b.sub(u),u.props=f,u.state||(u.state={}),u.context=_,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=T.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=xe({},u.__s)),xe(u.__s,T.getDerivedStateFromProps(f,u.__s))),p=u.props,h=u.state,u.__v=t,d)null==T.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==T.getDerivedStateFromProps&&f!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(f,_),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(f,u.__s,_)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=f,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),y=0;y<u._sb.length;y++)u.__h.push(u._sb[y]);u._sb=[],u.__h.length&&o.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(f,u.__s,_),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(p,h,m)}))}if(u.context=_,u.props=f,u.__P=e,w=he.__r,v=0,"prototype"in T&&T.prototype.render){for(u.state=u.__s,u.__d=!1,w&&w(t),c=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do{u.__d=!1,w&&w(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++v<25);u.state=u.__s,null!=u.getChildContext&&(r=xe(xe({},r),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(m=u.getSnapshotBeforeUpdate(p,h)),je(e,ke(x=null!=c&&c.type===Ce&&null==c.key?c.props.children:c)?x:[x],t,n,r,i,s,o,a,l),u.base=t.__e,t.__h=null,u.__h.length&&o.push(u),g&&(u.__E=u.__=null),u.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Be(n.__e,t,n,r,i,s,o,l);(c=he.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=a,t.__h=!!l,s[s.indexOf(a)]=null),he.__e(e,t,n)}}function Re(e,t){he.__c&&he.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){he.__e(e,t.__v)}}))}function Be(e,t,n,r,i,s,o,a){var l,c,u,d=n.props,p=t.props,h=t.type,m=0;if("svg"===h&&(i=!0),null!=s)for(;m<s.length;m++)if((l=s[m])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,s[m]=null;break}if(null==e){if(null===h)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),s=null,a=!1}if(null===h)d===p||a&&e.data===p||(e.data=p);else{if(s=s&&pe.call(e.childNodes),c=(d=n.props||ye).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!a){if(null!=s)for(d={},m=0;m<e.attributes.length;m++)d[e.attributes[m].name]=e.attributes[m].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(function(e,t,n,r,i){var s;for(s in n)"children"===s||"key"===s||s in t||ze(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||ze(e,s,t[s],n[s],r)}(e,p,d,i,a),u)t.__k=[];else if(je(e,ke(m=t.props.children)?m:[m],t,n,r,i&&"foreignObject"!==h,s,o,s?s[0]:n.__k&&Oe(n,0),a),null!=s)for(m=s.length;m--;)null!=s[m]&&Te(s[m]);a||("value"in p&&void 0!==(m=p.value)&&(m!==e.value||"progress"===h&&!m||"option"===h&&m!==d.value)&&ze(e,"value",m,d.value,!1),"checked"in p&&void 0!==(m=p.checked)&&m!==e.checked&&ze(e,"checked",m,d.checked,!1))}return e}function $e(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){he.__e(e,n)}}function qe(e,t,n){var r,i;if(he.unmount&&he.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||$e(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){he.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&qe(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||Te(e.__e),e.__=e.__e=e.__d=void 0}function He(e,t,n){return this.constructor(e,n)}function We(e,t,n){var r,i,s;he.__&&he.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],Ue(t,e=(!r&&n||t).__k=function(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?pe.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return Se(e,o,r,i,null)}(Ce,null,[e]),i||ye,ye,void 0!==t.ownerSVGElement,!r&&n?[n]:i?null:t.firstChild?pe.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r),Re(s,e)}pe=we.slice,he={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},me=0,Pe.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=xe({},this.state),"function"==typeof e&&(e=e(xe({},n),this.props)),e&&xe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),De(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),De(this))},Pe.prototype.render=Ce,ge=[],be="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_e=function(e,t){return e.__v.__b-t.__v.__b},Ie.__r=0;var Ke=n(48510);function Ve(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ge=0;function Ye(e){return"__private_"+Ge+++"_"+e}var Qe=Ye("updateUI");class Je extends Ke.Z{constructor(){super(...arguments),Object.defineProperty(this,Qe,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("object"==typeof e&&e instanceof Je)t=e;else if("function"==typeof e){const n=e;this.uppy.iteratePlugins((e=>{e instanceof n&&(t=e)}))}return t}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Ve(this,Qe)[Qe]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=i,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(We(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),We(this.render(this.uppy.getState()),t),this.el=t,r.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}const i=this.getTargetPlugin(e);if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let s=`Invalid target option given to ${n}.`;throw s+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(s)}update(e){var t,n;null!=this.el&&(null==(t=(n=Ve(this,Qe))[Qe])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}const Xe=Je},35305:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(48510);function i(e,t,n,r){let{onSuccess:s}=r;e.readEntries((r=>{const o=[...t,...r];r.length?queueMicrotask((()=>{i(e,o,n,{onSuccess:s})})):s(o)}),(e=>{n(e),s(t)}))}function s(e,t){return null==e?e:{kind:e.isFile?"file":e.isDirectory?"directory":void 0,name:e.name,getFile:()=>new Promise(((t,n)=>e.file(t,n))),async*values(){const n=e.createReader(),r=await new Promise((e=>{i(n,[],t,{onSuccess:n=>e(n.map((e=>s(e,t))))})}));yield*r}}}function o(e,t,n){try{return void 0===n&&(n=void 0),async function*(){const r=()=>`${t}/${e.name}`;if("file"===e.kind){const i=await e.getFile();null!=i?(i.relativePath=t?r():null,yield i):null!=n&&(yield n)}else if("directory"===e.kind)for await(const n of e.values())yield*o(n,t?r():e.name);else null!=n&&(yield n)}()}catch(e){return Promise.reject(e)}}const a=Array.from;function l(e){var t,n;return null!=(t=null==(n=e.dataTransfer.types)?void 0:n.some((e=>"Files"===e)))&&t}class c extends r.Z{constructor(e,t){super(e,t),this.addFiles=e=>{const t=e.map((e=>({source:this.id,name:e.name,type:e.type,data:e,meta:{relativePath:e.relativePath||null}})));try{this.uppy.addFiles(t)}catch(e){this.uppy.log(e)}},this.handleDrop=async e=>{var t,n;if(!l(e))return;e.preventDefault(),e.stopPropagation(),clearTimeout(this.removeDragOverClassTimeout),e.currentTarget.classList.remove("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!1}),this.uppy.iteratePlugins((t=>{"acquirer"===t.type&&(null==t.handleRootDrop||t.handleRootDrop(e))}));let r=!1;const i=await async function(e,t){let{logDropError:n=(()=>{})}=void 0===t?{}:t;try{const t=[];for await(const r of async function*(e,t){const n=await Promise.all(Array.from(e.items,(async e=>{let n;return null!=n||(n=s("function"==typeof e.getAsEntry?e.getAsEntry():e.webkitGetAsEntry(),t)),{fileSystemHandle:n,lastResortFile:e.getAsFile()}})));for(const{lastResortFile:e,fileSystemHandle:r}of n)if(null!=r)try{yield*o(r,"",e)}catch(n){null!=e?yield e:t(n)}else null!=e&&(yield e)}(e,n))t.push(r);return t}catch{return function(e){const t=a(e.files);return Promise.resolve(t)}(e)}}(e.dataTransfer,{logDropError:e=>{this.uppy.log(e,"error"),r||(this.uppy.info(e.message,"error"),r=!0)}});i.length>0&&(this.uppy.log("[DropTarget] Files were dropped"),this.addFiles(i)),null==(t=(n=this.opts).onDrop)||t.call(n,e)},this.handleDragOver=e=>{var t,n;l(e)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",clearTimeout(this.removeDragOverClassTimeout),e.currentTarget.classList.add("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!0}),null==(t=(n=this.opts).onDragOver)||t.call(n,e))},this.handleDragLeave=e=>{var t,n;if(!l(e))return;e.preventDefault(),e.stopPropagation();const{currentTarget:r}=e;clearTimeout(this.removeDragOverClassTimeout),this.removeDragOverClassTimeout=setTimeout((()=>{r.classList.remove("uppy-is-drag-over"),this.setPluginState({isDraggingOver:!1})}),50),null==(t=(n=this.opts).onDragLeave)||t.call(n,e)},this.addListeners=()=>{const{target:e}=this.opts;if(e instanceof Element?this.nodes=[e]:"string"==typeof e&&(this.nodes=a(document.querySelectorAll(e))),!this.nodes&&!this.nodes.length>0)throw new Error(`"${e}" does not match any HTML elements`);this.nodes.forEach((e=>{e.addEventListener("dragover",this.handleDragOver,!1),e.addEventListener("dragleave",this.handleDragLeave,!1),e.addEventListener("drop",this.handleDrop,!1)}))},this.removeListeners=()=>{this.nodes&&this.nodes.forEach((e=>{e.removeEventListener("dragover",this.handleDragOver,!1),e.removeEventListener("dragleave",this.handleDragLeave,!1),e.removeEventListener("drop",this.handleDrop,!1)}))},this.type="acquirer",this.id=this.opts.id||"DropTarget",this.title="Drop Target",this.opts={target:null,...t},this.removeDragOverClassTimeout=null}install(){this.setPluginState({isDraggingOver:!1}),this.addListeners()}uninstall(){this.removeListeners()}}c.VERSION="2.0.1"},24350:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AbortController:()=>i,AbortSignal:()=>s,createAbortError:()=>o});var r=n(18424);const{AbortController:i}=globalThis,{AbortSignal:s}=globalThis,o=function(e,t){void 0===e&&(e="Aborted");const n=new DOMException(e,"AbortError");return null!=t&&(0,r.Z)(t,"cause")&&Object.defineProperty(n,"cause",{__proto__:null,configurable:!0,writable:!0,value:t.cause}),n}},9663:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(18424);class i extends Error{constructor(e,t){void 0===t&&(t={}),super(e),this.cause=t.cause,this.cause&&(0,r.Z)(this.cause,"isNetworkError")&&(this.isNetworkError=this.cause.isNetworkError)}}const s=i},1784:(e,t,n)=>{"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}n.r(t),n.d(t,{default:()=>l});var i=0;function s(e){return"__private_"+i+++"_"+e}var o=s("emitter"),a=s("events");class l{constructor(e){Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:[]}),r(this,o)[o]=e}on(e,t){return r(this,a)[a].push([e,t]),r(this,o)[o].on(e,t)}remove(){for(const[e,t]of r(this,a)[a].splice(0))r(this,o)[o].off(e,t)}}},55506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});class r extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}const i=r},17580:(e,t,n)=>{"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}n.d(t,{Z:()=>u});var i=0;function s(e){return"__private_"+i+++"_"+e}var o=s("aliveTimer"),a=s("isDone"),l=s("onTimedOut"),c=s("timeout");const u=class{constructor(e,t){Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:!1}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),r(this,c)[c]=e,r(this,l)[l]=t}progress(){r(this,a)[a]||r(this,c)[c]>0&&(clearTimeout(r(this,o)[o]),r(this,o)[o]=setTimeout(r(this,l)[l],r(this,c)[c]))}done(){r(this,a)[a]||(clearTimeout(r(this,o)[o]),r(this,o)[o]=null,r(this,a)[a]=!0)}}},81210:(e,t,n)=>{"use strict";function r(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}n.d(t,{B:()=>P,s:()=>v});var i=0;function s(e){return"__private_"+i+++"_"+e}function o(e){if(null!=e){var t;const n=()=>this.abort(e.reason);e.addEventListener("abort",n,{once:!0});const r=()=>{e.removeEventListener("abort",n)};null==(t=this.then)||t.call(this,r,r)}return this}var a=s("activeRequests"),l=s("queuedHandlers"),c=s("paused"),u=s("pauseTimer"),d=s("downLimit"),p=s("upperLimit"),h=s("rateLimitingTimer"),m=s("call"),g=s("queueNext"),f=s("next"),b=s("queue"),_=s("dequeue"),y=s("resume"),w=s("increaseLimit");class v{constructor(e){Object.defineProperty(this,_,{value:C}),Object.defineProperty(this,b,{value:S}),Object.defineProperty(this,f,{value:T}),Object.defineProperty(this,g,{value:x}),Object.defineProperty(this,m,{value:k}),Object.defineProperty(this,a,{writable:!0,value:0}),Object.defineProperty(this,l,{writable:!0,value:[]}),Object.defineProperty(this,c,{writable:!0,value:!1}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:1}),Object.defineProperty(this,p,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,w,{writable:!0,value:()=>{if(r(this,c)[c])r(this,h)[h]=setTimeout(r(this,w)[w],0);else{r(this,d)[d]=this.limit,this.limit=Math.ceil((r(this,p)[p]+r(this,d)[d])/2);for(let e=r(this,d)[d];e<=this.limit;e++)r(this,g)[g]();r(this,p)[p]-r(this,d)[d]>3?r(this,h)[h]=setTimeout(r(this,w)[w],2e3):r(this,d)[d]=Math.floor(r(this,d)[d]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!r(this,c)[c]&&r(this,a)[a]<this.limit?r(this,m)[m](e):r(this,b)[b](e,t)}wrapSyncFunction(e,t){var n=this;return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];const a=n.run((()=>(e(...i),queueMicrotask((()=>a.done())),()=>{})),t);return{abortOn:o,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];let a;const l=new Promise(((r,s)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...i))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?s(t):(a.done(),r(e))}),(e=>{t?s(t):(a.done(),s(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return l.abort=e=>{a.abort(e)},l.abortOn=o,l}}resume(){r(this,c)[c]=!1,clearTimeout(r(this,u)[u]);for(let e=0;e<this.limit;e++)r(this,g)[g]()}pause(e){void 0===e&&(e=null),r(this,c)[c]=!0,clearTimeout(r(this,u)[u]),null!=e&&(r(this,u)[u]=setTimeout(r(this,y)[y],e))}rateLimit(e){clearTimeout(r(this,h)[h]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(r(this,p)[p]=this.limit-1,this.limit=r(this,d)[d],r(this,h)[h]=setTimeout(r(this,w)[w],e))}get isPaused(){return r(this,c)[c]}}function k(e){r(this,a)[a]+=1;let t,n=!1;try{t=e()}catch(e){throw r(this,a)[a]-=1,e}return{abort:e=>{n||(n=!0,r(this,a)[a]-=1,t(e),r(this,g)[g]())},done:()=>{n||(n=!0,r(this,a)[a]-=1,r(this,g)[g]())}}}function x(){queueMicrotask((()=>r(this,f)[f]()))}function T(){if(r(this,c)[c]||r(this,a)[a]>=this.limit)return;if(0===r(this,l)[l].length)return;const e=r(this,l)[l].shift(),t=r(this,m)[m](e.fn);e.abort=t.abort,e.done=t.done}function S(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{r(this,_)[_](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},i=r(this,l)[l].findIndex((e=>n.priority>e.priority));return-1===i?r(this,l)[l].push(n):r(this,l)[l].splice(i,0,n),n}function C(e){const t=r(this,l)[l].indexOf(e);-1!==t&&r(this,l)[l].splice(t,1)}const P=Symbol("__queue")},2159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(18424);function i(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s=0;function o(e){return"__private_"+s+++"_"+e}function a(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,i)=>{""!==e&&r.push(e),t<i.length-1&&r.push(n)})))),r}function l(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let i=t[e];"string"==typeof i&&(i=n[Symbol.replace](i,"$$$$")),r=a(r,new RegExp(`%\\{${e}\\}`,"g"),i)}return r}var c=o("apply");class u{constructor(e){Object.defineProperty(this,c,{value:d}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(i(this,c)[c],this):i(this,c)[c](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(0,r.Z)(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return l(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return l(n,t)}}function d(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}},20987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(24350);function i(e,t){return new Promise(((n,i)=>{var s,o;if(null!=t&&null!=(s=t.signal)&&s.aborted)return i((0,r.createAbortError)());const a=setTimeout((()=>{c(),n()}),e);function l(){clearTimeout(a),c(),i((0,r.createAbortError)())}function c(){var e;null==t||null==(e=t.signal)||e.removeEventListener("abort",l)}null==t||null==(o=t.signal)||o.addEventListener("abort",l)}))}},11490:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(16891)((function(e,t,n){const{progress:r,bytesUploaded:i,bytesTotal:s}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:i,bytesTotal:s}))}),300,{leading:!0,trailing:!0})},75244:(e,t,n)=>{"use strict";function r(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}n.d(t,{Z:()=>r})},18424:(e,t,n)=>{"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.d(t,{Z:()=>r})},49355:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}},72603:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(48510),i=n(37644),s=n(47672),o=n(11490),a=n(75244),l=n(1784),c=n(17580),u=n(81210),d=n(55506),p=n(49355);const h={strings:{uploadStalled:"Upload has not made any progress for %{seconds} seconds. You may want to retry it."}};function m(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var g=0;function f(e){return"__private_"+g+++"_"+e}function b(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),(0,p.Z)(e)?(n=new d.Z(n,e),n):(n.request=e,n)}function _(e){return e.data.slice(0,e.data.size,e.meta.type)}var y=f("queueRequestSocketToken"),w=f("requestSocketToken");class v extends r.Z{constructor(e,t){super(e,t),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,w,{writable:!0,value:async e=>{const t=this.getOptions(e),n=new(e.remote.providerOptions.provider?s.zt:s.C$)(this.uppy,e.remote.providerOptions),r=Array.isArray(t.allowedMetaFields)?t.allowedMetaFields:Object.keys(e.meta);return(await n.post(e.remote.url,{...e.remote.body,protocol:"multipart",endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:Object.fromEntries(r.map((t=>[t,e.meta[t]]))),httpMethod:t.method,useFormData:t.formData,headers:t.headers})).token}}),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=h;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",allowedMetaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return(0,p.Z)(t)&&(n=new d.Z(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),u.B in this.opts?this.requests=this.opts[u.B]:this.requests=new u.s(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");if(void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");this.uploaderEvents=Object.create(null),m(this,y)[y]=this.requests.wrapPromiseFunction(m(this,w)[w],{priority:-1})}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.allowedMetaFields)?n.allowedMetaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=_(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=_(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const s=r.formData?this.createFormDataUpload(e,r):e.data,o=new XMLHttpRequest;let a;this.uploaderEvents[e.id]=new l.default(this.uppy);const u=new c.Z(r.timeout,(()=>{const t=new Error(this.i18n("uploadStalled",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-stalled",t,[e])})),d=(0,i.x)();o.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${d} started`)})),o.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${d} progress: ${t.loaded} / ${t.total}`),u.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),o.addEventListener("load",(()=>{if(this.uppy.log(`[XHRUpload] ${d} finished`),u.done(),a.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.status,o.responseText,o)){const n=r.getResponseData(o.responseText,o),i=n[r.responseUrlFieldName],s={status:o.status,body:n,uploadURL:i};return this.uppy.emit("upload-success",e,s),i&&this.uppy.log(`Download ${e.name} from ${i}`),t(e)}const i=r.getResponseData(o.responseText,o),s=b(o,r.getResponseError(o.responseText,o)),l={status:o.status,body:i};return this.uppy.emit("upload-error",e,s,l),n(s)})),o.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${d} errored`),u.done(),a.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=b(o,r.getResponseError(o.responseText,o));return this.uppy.emit("upload-error",e,t),n(t)})),o.open(r.method.toUpperCase(),r.endpoint,!0),o.withCredentials=r.withCredentials,""!==r.responseType&&(o.responseType=r.responseType),a=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{o.setRequestHeader(e,t.headers[e])})),o.send(s),()=>{u.done(),o.abort()}})),this.onFileRemove(e.id,(()=>{a.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(e=>{let{reason:t}=e;"user"===t&&a.abort(),n(new Error("Upload cancelled"))}))}))}async uploadRemote(e){try{if(this.uppy.emit("upload-started",e),e.serverToken)return await this.connectToServerSocket(e);const t=await m(this,y)[y](e);if(!this.uppy.getState().files[e.id])return;return this.uppy.setFileState(e.id,{serverToken:t}),await this.connectToServerSocket(this.uppy.getFile(e.id))}catch(t){throw this.uppy.setFileState(e.id,{serverToken:void 0}),this.uppy.emit("upload-error",e,t),t}}async connectToServerSocket(e){return new Promise(((t,n)=>{const r=this.getOptions(e),i=e.serverToken,c=(0,a.Z)(e.remote.companionUrl);let u;const d=()=>{null==u&&(u=new s.sk({target:`${c}/api/${i}`}),u.on("progress",(t=>(0,o.Z)(this,t,e))),u.on("success",(n=>{const i=r.getResponseData(n.response.responseText,n.response),s=i[r.responseUrlFieldName],o={status:n.response.status,body:i,uploadURL:s};return this.uppy.emit("upload-success",e,o),p.done(),u.close(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),t()})),u.on("error",(t=>{const i=t.response,s=i?r.getResponseError(i.responseText,i):Object.assign(new Error(t.error.message),{cause:t.error});this.uppy.emit("upload-error",e,s),p.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(s)})))};this.uploaderEvents[e.id]=new l.default(this.uppy);let p=this.requests.run((()=>{var t;return e.isPaused?null==(t=u)||t.send("pause",{}):d(),()=>u.close()}));this.onFileRemove(e.id,(()=>{var n;null==(n=u)||n.send("cancel",{}),p.abort(),t(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(function(n){let{reason:r}=void 0===n?{}:n;var i;"user"===r&&(null==(i=u)||i.send("cancel",{}),p.abort()),t(`upload ${e.id} was canceled`)}));const h=()=>{null==u?p.abort():(u.send("pause",{}),p.done()),p=this.requests.run((()=>(e.isPaused||(null==u?d():u.send("resume",{})),()=>u.close())))};this.onRetry(e.id,h),this.onRetryAll(e.id,h)})).catch((t=>(this.uppy.emit("upload-error",e,t),Promise.reject(t))))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:i}=this.opts,s=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,{...this.opts,...s||{}}),a=new XMLHttpRequest,l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))},u=new c.Z(this.opts.timeout,(()=>{const t=new Error(this.i18n("uploadStalled",{seconds:Math.ceil(this.opts.timeout/1e3)}));this.uppy.emit("upload-stalled",t,e)}));a.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()})),a.upload.addEventListener("progress",(t=>{u.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),a.addEventListener("load",(r=>{if(u.done(),this.opts.validateStatus(r.target.status,a.responseText,a)){const n=this.opts.getResponseData(a.responseText,a),i={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,i)})),t()}const i=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return i.request=a,l(i),n(i)})),a.addEventListener("error",(()=>{u.done();const e=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(function(e){let{reason:t}=void 0===e?{}:e;"user"===t&&(u.done(),a.abort())})),a.open(i.toUpperCase(),r,!0),a.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(a.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{a.setRequestHeader(e,this.opts.headers[e])})),a.send(o),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){return function(e){const t=[],n=[];function r(e){t.push(e)}function i(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,i)))).then((()=>({successful:t,failed:n})))}(e.map(((t,n)=>{const r=parseInt(n,10)+1,i=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,i):this.upload(t,r,i)})))}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",(function(){n.uppy.getFile(e)&&t(...arguments)}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[u.B]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}}v.VERSION="3.1.1"},19311:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(49246);const i=":not([inert]):not([inert] *)",s=':not([tabindex^="-"])',o=":not(:disabled)";var a=[`a[href]${i}${s}`,`area[href]${i}${s}`,`input:not([type="hidden"]):not([type="radio"])${i}${s}${o}`,`input[type="radio"]${i}${s}${o}`,`select${i}${s}${o}`,`textarea${i}${s}${o}`,`button${i}${s}${o}`,`details${i} > summary:first-of-type${s}`,`iframe${i}${s}`,`audio[controls]${i}${s}`,`video[controls]${i}${s}`,`[contenteditable]${i}${s}`,`[tabindex]${i}${s}`];function l(e){(e.querySelector("[autofocus]")||e).focus()}function c(e,t){if(t&&p(e))return e;if(!((n=e).shadowRoot&&"-1"===n.getAttribute("tabindex")||n.matches(":disabled,[hidden],[inert]")))if(e.shadowRoot){let n=u(e.shadowRoot,t);for(;n;){const e=c(n,t);if(e)return e;n=d(n,t)}}else if("slot"===e.localName){const n=e.assignedElements({flatten:!0});t||n.reverse();for(const e of n){const n=c(e,t);if(n)return n}}else{let n=u(e,t);for(;n;){const e=c(n,t);if(e)return e;n=d(n,t)}}var n;return!t&&p(e)?e:null}function u(e,t){return t?e.firstElementChild:e.lastElementChild}function d(e,t){return t?e.nextElementSibling:e.previousElementSibling}const p=e=>!e.shadowRoot?.delegatesFocus&&e.matches(a.join(","))&&!(e=>!(!e.matches("details:not([open]) *")||e.matches("details>summary:first-of-type"))||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e);function h(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?h(e.shadowRoot)||document.activeElement:e:null}class m{constructor(e){(0,r.Z)(this,"$el",void 0),(0,r.Z)(this,"id",void 0),(0,r.Z)(this,"previouslyFocused",void 0),(0,r.Z)(this,"shown",void 0),this.$el=e,this.id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0)),this.fire("destroy"),this}show(e){return this.shown||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=h(),"BODY"===this.previouslyFocused?.tagName&&e?.target&&(this.previouslyFocused=e.target),"focus"===e?.type?this.maintainFocus(e):l(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0),this.fire("show",e)),this}hide(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.fire("hide",e),this):this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){this.$el.dispatchEvent(new CustomEvent(e,{detail:t,cancelable:!0}))}handleTriggerClicks(e){const t=e.target;t.closest(`[data-a11y-dialog-show="${this.id}"]`)&&this.show(e),(t.closest(`[data-a11y-dialog-hide="${this.id}"]`)||t.closest("[data-a11y-dialog-hide]")&&t.closest('[aria-modal="true"]')===this.$el)&&this.hide(e)}bindKeypress(e){if(document.activeElement?.closest('[aria-modal="true"]')!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){const[n,r]=function(e){const t=c(e,!0);return[t,t?c(e,!1)||t:null]}(e);if(!n)return t.preventDefault();const i=h();t.shiftKey&&i===n?(r.focus(),t.preventDefault()):t.shiftKey||i!==r||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(e){e.target.closest('[aria-modal="true"], [data-a11y-dialog-ignore-focus-trap]')||l(this.$el)}}function g(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new m(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",g):g())},37644:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});let r=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e}}}]);
//# sourceMappingURL=chunk.2a7dad937b4a1f52dffa.d41d8cd9.js.map
//!
;