티스토리 수익 글 보기
(self.webpackChunkdiscourse=self.webpackChunkdiscourse||[]).push([[76],{71:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>l});var s=i(94004),n=i(71186),r=i(86791),a=i(31107),o=i(97677);class l extends a.default{userActionType=null;emptyState(){let e=this.modelFor(“user”),t=(0,o.i18n)(“user_activity.no_activity_title”),i=””;return this.isCurrentUser(e)&&(i=(0,s.htmlSafe)((0,o.i18n)(“user_activity.no_activity_body”,{topUrl:(0,n.default)(“/top”),categoriesUrl:(0,n.default)(“/categories”),preferencesUrl:(0,n.default)(“/my/preferences”),heartIcon:(0,r.iconHTML)(“heart”)}))),{title:t,body:i}}titleToken(){return(0,o.i18n)(“user.filters.all”)}}},113:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>h});var s=i(69209),n=i(22921),r=i(37108),a=i(13692),o=i(79463),l=i(82225),u=i(80558),d=i(2850),c=i(97677),p=i(56699);class h extends s.default{durationText(e){return(0,o.durationTextFromSeconds)(e)}static{dt7948.n(this.prototype,”durationText”,[(0,u.default)(“topic.slow_mode_seconds”)])}showSlowModeNotice(e,t){return e>0&&!t}static{dt7948.n(this.prototype,”showSlowModeNotice”,[(0,u.default)(“topic.slow_mode_seconds”,”topic.closed”)])}disableSlowMode(){d.default.setSlowMode(this.topic.id,0).catch(l.popupAjaxError).then(()=>this.set(“topic.slow_mode_seconds”,0))}static{dt7948.n(this.prototype,”disableSlowMode”,[n.action])}static{(0,s.setComponentTemplate)((0,p.createTemplateFactory)({id:”ebnr5iuq”,block:'[[[1,”\\n”],[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,[32,0],[“hourglass-start”],null]],[1,”\\n “],[1,[28,[32,1],[“topic.slow_mode_notice.duration”],[[“duration”],[[30,0,[“durationText”]]]]]],[1,”\\n “],[13],[1,”\\n\\n”],[41,[30,0,[“user”,”canManageTopic”]],[[[1,” “],[8,[32,2],[[24,0,”slow-mode-remove”]],[[“@action”,”@icon”],[[30,0,[“disableSlowMode”]],”trash-can”]],null],[1,”\\n”]],[]],null],[1,” “],[13],[1,”\\n “],[13],[1,”\\n”]],[]],null],[1,” “]],[],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/slow-mode-info.js”,scope:()=>[a.default,c.i18n,r.default],isStrictMode:!0}),this)}}},125:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{addSearchSuggestion:()=>f,default:()=>g});var s=i(91409),n=i(12322),r=i(72865),a=i(351),o=i(52920),l=i(65561),u=i(46333),d=i(97677),c=i(69209),p=i(56699);let h=[“in:title”,”in:pinned”,”status:open”,”status:closed”,”status:public”,”status:noreplies”,”order:latest”,”order:views”,”order:likes”,”order:latest_topic”],m={“+”:”tagIntersection”,”#”:”categoryOrTag”,”@”:”user”};class g extends s.default{static{dt7948.g(this.prototype,”router”,[r.service])}#e=void dt7948.i(this,”router”);static{dt7948.g(this.prototype,”currentUser”,[r.service])}#t=void dt7948.i(this,”currentUser”);static{dt7948.g(this.prototype,”siteSettings”,[r.service])}#i=void dt7948.i(this,”siteSettings”);static{dt7948.g(this.prototype,”search”,[r.service])}#s=void dt7948.i(this,”search”);constructor(){super(…arguments),this.currentUser&&(f(“in:likes”),f(“in:bookmarks”),f(“in:mine”),f(“in:messages”),f(“in:seen”),f(“in:tracking”),f(“in:unseen”),f(“in:watching”)),this.siteSettings.tagging_enabled&&(f(“in:tagged”),f(“in:untagged”))}get suggestionShortcuts(){let e=this.search.activeGlobalSearchTerm.split(” “).slice(-1);return h.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 m[this.args.suggestionKeyword]}}get prefix(){let e=””;return”+”!==this.args.suggestionKeyword?(e=this.args.slug?.split(this.args.suggestionKeyword)[0].trim()||””).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()||””).length&&(e=`${e} `)}),e}get fullSlugForCategoryMap(){let e={};return this.args.results.forEach(t=>{if(t.model){let i=t.model.parentCategory?`#${t.model.parentCategory.slug}:${t.model.slug}`:`#${t.model.slug}`;e[t.model.id]=`${this.prefix}${i}`}}),e}get user(){return this.args.results[0]}static{(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:”rlzgQ9f0″,block:'[[[1,”\\n “],[10,”ul”],[14,0,”search-menu-assistant”],[12],[1,”\\n”],[41,[28,[32,0],[[30,0,[“suggestionType”]],”tagIntersection”],null],[[[1,” “],[8,[32,1],null,[[“@name”],[“search-menu-results-assistant-tag-intersection-top”]],null],[1,”\\n”],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1,” “],[8,[32,2],null,[[“@tag”,”@additionalTags”,”@category”,”@slug”,”@withInLabel”,”@isIntersection”,”@searchAllTopics”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[[30,2,[“tagName”]],[30,2,[“additionalTags”]],[30,2,[“category”]],[30,3],[30,4],true,true,[30,5],[30,6],”tag-intersection”]],null],[1,”\\n”]],[2]],null]],[]],[[[41,[28,[32,0],[[30,0,[“suggestionType”]],”categoryOrTag”],null],[[[1,” “],[8,[32,1],null,[[“@name”],[“search-menu-results-assistant-category-or-tag-top”]],null],[1,”\\n”],[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[41,[30,7,[“model”]],[[[1,” “],[8,[32,2],null,[[“@category”,”@slug”,”@withInLabel”,”@searchAllTopics”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[[30,7,[“model”]],[28,[32,3],[[30,0,[“fullSlugForCategoryMap”]],[30,7,[“model”,”id”]]],null],[30,4],true,[30,5],[30,6],”category”]],null],[1,”\\n”]],[]],[[[1,” “],[8,[32,2],null,[[“@tag”,”@slug”,”@withInLabel”,”@searchAllTopics”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[[30,7,[“name”]],[28,[32,4],[[30,0,[“prefix”]],”#”,[30,7,[“name”]]],null],[30,4],true,[30,5],[30,6],”tag”]],null],[1,”\\n”]],[]]]],[7]],null]],[]],[[[41,[28,[32,0],[[30,0,[“suggestionType”]],”user”],null],[[[1,” “],[8,[32,1],null,[[“@name”],[“search-menu-results-assistant-user-top”]],null],[1,”\\n”],[41,[30,0,[“userMatchesInTopic”]],[[[1,” “],[8,[32,2],null,[[“@extraHint”,”@user”,”@slug”,”@suffix”,”@searchAllTopics”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[true,[30,0,[“user”]],[28,[32,4],[[30,0,[“prefix”]],”@”,[30,0,[“user”,”username”]]],null],[28,[32,5],[“search.in_topics_posts”],null],true,[30,5],[30,6],”user”]],null],[1,”\\n\\n “],[8,[32,2],null,[[“@user”,”@slug”,”@suffix”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[[30,0,[“user”]],[28,[32,4],[[30,0,[“prefix”]],”@”,[30,0,[“user”,”username”]]],null],[28,[32,5],[“search.in_this_topic”],null],[30,5],[30,6],”user”]],null],[1,”\\n”]],[]],[[[42,[28,[31,2],[[28,[31,2],[[30,1]],null]],null],null,[[[1,” “],[8,[32,2],null,[[“@user”,”@slug”,”@searchAllTopics”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[[30,8],[28,[32,4],[[30,0,[“prefix”]],”@”,[30,8,[“username”]]],null],true,[30,5],[30,6],”user”]],null],[1,”\\n”]],[8]],null]],[]]]],[]],[[[1,” “],[8,[32,1],null,[[“@name”,”@outletArgs”],[“search-menu-results-assistant-shortcut-top”,[28,[32,6],null,[[“suggestionShortcuts”],[[30,0,[“suggestionShortcuts”]]]]]]],null],[1,”\\n”],[42,[28,[31,2],[[28,[31,2],[[30,0,[“suggestionShortcuts”]]],null]],null],null,[[[1,” “],[8,[32,2],null,[[“@slug”,”@label”,”@searchAllTopics”,”@searchTermChanged”,”@suggestionKeyword”,”@typeClass”],[[28,[32,4],[[30,0,[“prefix”]],[30,9]],null],[30,9],true,[30,5],[30,6],”shortcut”]],null],[1,”\\n”]],[9]],null],[1,” “]],[]]]],[]]]],[]]],[1,” “],[8,[32,1],null,[[“@name”],[“search-menu-assistant-bottom”]],null],[1,”\\n “],[13],[1,”\\n “]],[“@results”,”result”,”@slug”,”@withInLabel”,”@searchTermChanged”,”@suggestionKeyword”,”result”,”result”,”item”],[“if”,”each”,”-track-array”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/results/assistant.js”,scope:()=>[a.eq,o.default,l.default,n.get,n.concat,d.i18n,u.default],isStrictMode:!0}),this)}}function f(e){h.includes(e)||h.push(e)}},127:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>c});var s=i(77283),n=i(33562),r=i.n(n),a=i(65650),o=i.n(a),l=i(19548),u=i(69209),d=i(56699);let c=dt7948.c(class extends l.default{isTag(e){return”no-tags”!==e.id&&”all-tags”!==e.id}static{dt7948.n(this.prototype,”isTag”,[o()(“item”)])}static{(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:”BpLnoZ0I”,block:'[[[1,”\\n”],[41,[30,0,[“isTag”]],[[[1,” “],[1,[28,[32,0],[[30,0,[“rowValue”]]],[[“noHref”,”description”,”count”],[true,[30,0,[“item”,”description”]],[30,0,[“item”,”count”]]]]]],[1,”\\n”]],[]],[[[1,” “],[10,1],[14,0,”name”],[12],[1,[30,0,[“item”,”name”]]],[13],[1,”\\n”]],[]]],[1,” “]],[],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/tag-row.js”,scope:()=>[r()],isStrictMode:!0}),this)}},[(0,s.classNames)(“tag-row”)])},130:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>u});var s=i(22921),n=i(94004),r=i(77283),a=i(19548),o=i(69209),l=i(56699);let u=dt7948.c(class extends a.default{get palettes(){return(0,n.htmlSafe)((this.item.colors||[]).filter(e=>”secondary”!==e.name).map(e=>`#${escape(e.hex)}`).map(e=>``).join(“”))}static{dt7948.n(this.prototype,”palettes”,[(0,s.computed)(“item.colors.[]”)])}get backgroundColor(){let e=(this.item.colors||[]).findBy(“name”,”secondary”);return e&&e.hex?(0,n.htmlSafe)(`background-color:#${escape(e.hex)}`):””}static{dt7948.n(this.prototype,”backgroundColor”,[(0,s.computed)(“item.colors.[]”)])}static{(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:”KZz8viYm”,block:'[[[1,”\\n “],[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],[1,” “]],[],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/color-palettes/color-palettes-row.js”,isStrictMode:!0}),this)}},[(0,r.classNames)(“color-palettes-row”)])},158:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>d});var s=i(43204),n=i(351),r=i(13692),a=i(97677),o=i(69209),l=i(56699),u=i(74934);let d=(0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:”uBDCqUqF”,block:'[[[1,”\\n “],[8,[32,0],[[24,0,”btn btn-flat back-button”]],[[“@route”],[[30,1]]],[[“default”],[[[[1,”\\n “],[1,[28,[32,1],[“chevron-left”],null]],[1,”\\n “],[1,[28,[32,2],[[28,[32,3],[[30,2],”back_button”],null]],null]],[1,”\\n “]],[]]]]],[1,”\\n”]],[“@route”,”@label”],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/back-button.js”,scope:()=>[s.LinkTo,r.default,a.i18n,n.or],isStrictMode:!0}),(0,u.default)(void 0,”back-button”))},173:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>m});var s=i(69209),n=i(22921),r=i(88821),a=i(93899),o=i(44595),l=i(77283),u=i(37108),d=i(80558),c=i(6825),p=i(97677),h=i(56699);let m=dt7948.c(class extends s.default{uppyUpload=new c.default((0,r.getOwner)(this),{id:”avatar-uploader”,type:”avatar”,validateUploadedFilesOptions:{imagesOnly:!0},uploadDone:e=>{this.setProperties({imageIsNotASquare:e.width!==e.height,uploadedAvatarTemplate:e.url,uploadedAvatarId:e.id}),this.done()},additionalParams:()=>({user_id:this.user_id})});imageIsNotASquare=!1;customAvatarUploaded(){return!this.uppyUpload.uploading&&!(0,o.isBlank)(this.uploadedAvatarId)}static{dt7948.n(this.prototype,”customAvatarUploaded”,[(0,d.default)(“uppyUpload.uploading”,”uploadedAvatarId”)])}uploadLabel(){return this.uppyUpload.uploading?`${(0,p.i18n)(“uploading”)} ${this.uppyUpload.uploadProgress}%`:(0,p.i18n)(“upload”)}static{dt7948.n(this.prototype,”uploadLabel”,[(0,d.default)(“uppyUpload.uploading”,”uppyUpload.uploadProgress”)])}chooseImage(){this.uppyUpload.openPicker()}static{dt7948.n(this.prototype,”chooseImage”,[n.action])}static{(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:”2nCEIXaL”,block:'[[[1,”\\n “],[11,”input”],[24,1,”custom-profile-upload”],[24,0,”hidden-upload-field”],[16,”disabled”,[30,0,[“uploading”]]],[24,”accept”,”image/*”],[24,”aria-hidden”,”true”],[24,4,”file”],[4,[32,0],[[30,0,[“uppyUpload”,”setup”]]],null],[12],[13],[1,”\\n “],[8,[32,1],[[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,[32,2],[“user.change_avatar.image_is_not_a_square”],null]],[13],[1,”\\n”]],[]],null],[1,” “]],[],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/avatar-uploader.js”,scope:()=>[a.default,u.default,p.i18n],isStrictMode:!0}),this)}},[(0,l.tagName)(“span”)])},187:(e,t,i)=>{var s=i(50219),n=i(24859);e.exports=function(e){return”symbol”==typeof e||n(e)&&”[object Symbol]”==s(e)}},239:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(45505),n=i(31107),r=i(97677);class a extends n.default{userActionType=s.default.TYPES.links;titleToken(){return(0,r.i18n)(“user_action_groups.17”)}}},319:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>h});var s=i(91409),n=i(4507),r=i(22921),a=i(93899),o=i(21743),l=i(94004),u=i(69209),d=i(56699);let c=”li a”,p=”selected”;class h extends s.default{isInitialRender=!0;get results(){return this.args.data.getResults?.()||[]}get selectedIndex(){return this.args.data.getSelectedIndex?.()||0}_applySelectedClass(e,t){let i=e.querySelectorAll(c);return e.querySelectorAll(“li a.selected”).forEach(e=>e.classList.remove(p)),t>=0&&i[t]&&i[t].classList.add(p),i}scrollToSelected(e){if(!e)return;let t=this._applySelectedClass(e,this.selectedIndex);t&&0!==t.length&&t[this.selectedIndex]&&t[this.selectedIndex].scrollIntoView({block:”nearest”,behavior:”smooth”})}handleInitialRender(){this.args.data.onRender?.(this.results)}static{dt7948.n(this.prototype,”handleInitialRender”,[r.action])}handleClick(e){if(this.args.data.template)try{e.preventDefault(),e.stopPropagation();let t=e.target.closest(c);if(!t)return;let i=e.currentTarget.querySelectorAll(c),s=Array.from(i).indexOf(t);if(s>=0){let t=this.args.data.onSelect(this.results[s],s,e);t&&”function”==typeof t.then&&t.catch(e=>{console.error(“[autocomplete] onSelect promise rejected: “,e)})}}catch(e){console.error(“[autocomplete] Click handler error: “,e)}}static{dt7948.n(this.prototype,”handleClick”,[r.action])}handleUpdate(e){this.isInitialRender=!1,this.scrollToSelected(e),this.args.data.onRender?.(this.results)}static{dt7948.n(this.prototype,”handleUpdate”,[r.action])}get templateHTML(){if(!this.args.data.template)return””;let e=this.args.data.template({options:this.results});if(!this.isInitialRender||this.selectedIndex<0)return(0,l.htmlSafe)(e);let t=document.createElement("div");return t.innerHTML=e,this._applySelectedClass(t,this.selectedIndex),(0,l.htmlSafe)(t.innerHTML)}static{(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:"OJC8Ueoh",block:'[[[1,"\\n "],[11,0],[24,"tabindex","-1"],[4,[32,0],[[30,0,["handleInitialRender"]]],null],[4,[32,1],[[30,0,["handleUpdate"]],[30,0,["selectedIndex"]],[30,0,["templateHTML"]]],null],[4,[32,2],["click",[30,0,["handleClick"]]],null],[12],[1,"\\n "],[1,[30,0,["templateHTML"]]],[1,"\\n "],[13],[1,"\\n "]],[],[]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/d-autocomplete-results.js",scope:()=>[a.default,o.default,n.on],isStrictMode:!0}),this)}}},345:(e,t,i)=>{“use strict”;function s(e){return e}function n(e){return e}i.r(t),i.d(t,{assertIsDeprecation:()=>s,assertIsDeprecations:()=>n}),i(20797),i(32550)},389:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>w});var s=i(91409),n=i(69680),r=i(12322),a=i(22921),o=i(93899),l=i(80350),u=i(37108),d=i(66207),c=i(82225),p=i(71186),h=i(32610),m=i(78238),g=i(62516),f=i(97677),_=i(8732),y=i(69209),b=i(56699);class w extends s.default{static{dt7948.g(this.prototype,”loading”,[n.tracked],function(){return!0})}#n=void dt7948.i(this,”loading”);static{dt7948.g(this.prototype,”saving”,[n.tracked],function(){return!1})}#r=void dt7948.i(this,”saving”);static{dt7948.g(this.prototype,”selectedBadgeId”,[n.tracked],function(){return null})}#a=void dt7948.i(this,”selectedBadgeId”);static{dt7948.g(this.prototype,”flash”,[n.tracked],function(){return null})}#o=void dt7948.i(this,”flash”);static{dt7948.g(this.prototype,”flashType”,[n.tracked],function(){return null})}#l=void dt7948.i(this,”flashType”);static{dt7948.g(this.prototype,”allBadges”,[n.tracked],function(){return[]})}#u=void dt7948.i(this,”allBadges”);static{dt7948.g(this.prototype,”userBadges”,[n.tracked],function(){return[]})}#d=void dt7948.i(this,”userBadges”);static{dt7948.g(this.prototype,”availableBadges”,[n.tracked],function(){return[]})}#c=void dt7948.i(this,”availableBadges”);get noAvailableBadges(){this.availableBadges.length}get post(){return this.args.model.selectedPost}get buttonDisabled(){return this.saving||!(0,h.isBadgeGrantable)(this.selectedBadgeId,this.availableBadges)}#p(){this.availableBadges=(0,h.grantableBadges)(this.allBadges,this.userBadges)}async loadBadges(){this.loading=!0;try{this.allBadges=await m.default.findAll(),this.userBadges=await g.default.findByUsername(this.post.username),this.#p()}catch(e){this.flash=(0,c.extractError)(e),this.flashType=”error”}finally{this.loading=!1}}static{dt7948.n(this.prototype,”loadBadges”,[a.action])}async performGrantBadge(){try{this.saving=!0;let e=this.post.username,t=await g.default.grant(this.selectedBadgeId,e,(0,p.default)(this.post.url));this.userBadges.pushObject(t),this.#p(),this.selectedBadgeId=null,this.flash=(0,f.i18n)(“badges.successfully_granted”,{username:e,badge:t.get(“badge.name”)}),this.flashType=”success”}catch(e){this.flash=(0,c.extractError)(e),this.flashType=”error”}finally{this.saving=!1}}static{dt7948.n(this.prototype,”performGrantBadge”,[a.action])}static{(0,y.setComponentTemplate)((0,b.createTemplateFactory)({id:”5JB0bK4y”,block:'[[[1,”\\n “],[8,[32,0],[[24,0,”grant-badge-modal”],[4,[32,2],[[30,0,[“loadBadges”]]],null]],[[“@bodyClass”,”@closeModal”,”@flash”,”@flashType”,”@title”],[“grant-badge”,[30,1],[30,0,[“flash”]],[30,0,[“flashType”]],[28,[32,1],[“admin.badges.grant_badge”],null]]],[[“body”,”footer”],[[[[1,”\\n “],[8,[32,3],null,[[“@condition”],[[30,0,[“loading”]]]],[[“default”],[[[[1,”\\n”],[41,[30,0,[“noAvailableBadges”]],[[[1,” “],[10,2],[12],[1,[28,[32,1],[“admin.badges.no_badges”],null]],[13],[1,”\\n”]],[]],[[[1,” “],[10,2],[12],[1,”\\n “],[8,[32,4],null,[[“@value”,”@content”,”@onChange”,”@options”],[[30,0,[“selectedBadgeId”]],[30,0,[“availableBadges”]],[28,[32,5],[[28,[31,1],[[30,0,[“selectedBadgeId”]]],null]],null],[28,[32,6],null,[[“filterable”,”none”],[true,”badges.none”]]]]],null],[1,”\\n “],[13],[1,”\\n”]],[]]],[1,” “]],[]]]]],[1,”\\n “]],[]],[[[1,”\\n “],[8,[32,7],[[24,0,”btn-primary”]],[[“@disabled”,”@action”,”@label”],[[30,0,[“buttonDisabled”]],[30,0,[“performGrantBadge”]],”admin.badges.grant”]],null],[1,”\\n “]],[]]]]],[1,”\\n “]],[“@closeModal”],[“if”,”mut”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/grant-badge.js”,scope:()=>[d.default,f.i18n,o.default,l.default,_.default,r.fn,r.hash,u.default],isStrictMode:!0}),this)}}},448:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(48465),n=i(58377),r=i(72865);class a extends s.default{static{dt7948.g(this.prototype,”sidebarState”,[r.service])}#h=void dt7948.i(this,”sidebarState”);constructor(){super(…arguments),(0,n.scheduleOnce)(“afterRender”,this,this.registerHider)}registerHider(){this.sidebarState.registerHider(this)}compute(){}}},632:function(e,t,i){(function(e){“use strict”;var t={1:”١”,2:”٢”,3:”٣”,4:”٤”,5:”٥”,6:”٦”,7:”٧”,8:”٨”,9:”٩”,0:”٠”},i={“١”:”1″,”٢”:”2″,”٣”:”3″,”٤”:”4″,”٥”:”5″,”٦”:”6″,”٧”:”7″,”٨”:”8″,”٩”:”9″,”٠”:”0″},s=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:[“أقل من ثانية”,”ثانية واحدة”,[“ثانيتان”,”ثانيتين”],”%d ثوان”,”%d ثانية”,”%d ثانية”],m:[“أقل من دقيقة”,”دقيقة واحدة”,[“دقيقتان”,”دقيقتين”],”%d دقائق”,”%d دقيقة”,”%d دقيقة”],h:[“أقل من ساعة”,”ساعة واحدة”,[“ساعتان”,”ساعتين”],”%d ساعات”,”%d ساعة”,”%d ساعة”],d:[“أقل من يوم”,”يوم واحد”,[“يومان”,”يومين”],”%d أيام”,”%d يومًا”,”%d يوم”],M:[“أقل من شهر”,”شهر واحد”,[“شهران”,”شهرين”],”%d أشهر”,”%d شهرا”,”%d شهر”],y:[“أقل من عام”,”عام واحد”,[“عامان”,”عامين”],”%d أعوام”,”%d عامًا”,”%d عام”]},r=function(e){return function(t,i,r,a){var o=s(t),l=n[e][s(t)];return 2===o&&(l=l[+!i]),l.replace(/%d/i,t)}},a=[“يناير”,”فبراير”,”مارس”,”أبريل”,”مايو”,”يونيو”,”يوليو”,”أغسطس”,”سبتمبر”,”أكتوبر”,”نوفمبر”,”ديسمبر”];e.defineLocale(“ar”,{months:a,monthsShort:a,weekdays:”الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت”.split(“_”),weekdaysShort:”أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت”.split(“_”),weekdaysMin:”ح_ن_ث_ر_خ_ج_س”.split(“_”),weekdaysParseExact:!0,longDateFormat:{LT:”HH:mm”,LTS:”HH:mm:ss”,L:”D/M/YYYY”,LL:”D MMMM YYYY”,LLL:”D MMMM YYYY HH:mm”,LLLL:”dddd D MMMM YYYY HH:mm”},meridiemParse:/ص|م/,isPM:function(e){return”م”===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})})(i(99526))},652:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>r});var s=i(89595),n=i(97677);class r extends s.default{get name(){return”filter”}get route(){return”discovery.filter”}get title(){return(0,n.i18n)(“sidebar.sections.community.links.filter.title”)}get text(){return(0,n.i18n)(`sidebar.sections.community.links.${this.overriddenName.toLowerCase()}.content`,{defaultValue:this.overriddenName})}get shouldDisplay(){return!0}get defaultPrefixValue(){return”filter”}}},779:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>d});var s=i(22921),n=i(77283),r=i(63193),a=i(43013),o=i.n(a),l=i(75638),u=i(59833);let d=dt7948.c(class extends l.default{mainTag=null;additionalTags=null;didReceiveAttrs(){super.didReceiveAttrs(…arguments),this.set(“value”,(0,r.makeArray)(this.mainTag).concat((0,r.makeArray)(this.additionalTags)))}onChange(e){if(e.includes(this.mainTag)){let t=e.filter(e=>e!==this.mainTag);t.length>=1?o().routeTo(`/tags/intersection/${this.mainTag}/${t.join(“/”)}`):o().routeTo(`/tag/${this.mainTag}`)}else e.length>=2?o().routeTo(`/tags/intersection/${e.join(“/”)}`):1===e.length?o().routeTo(`/tag/${e[0]}`):o().routeTo(“/tags”)}static{dt7948.n(this.prototype,”onChange”,[s.action])}},[(0,u.pluginApiIdentifiers)(“tags-intersection-chooser”),(0,n.classNames)(“tags-intersection-chooser”),(0,n.attributeBindings)(“selectKit.options.categoryId:category-id”)])},891:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o});var s=i(20797),n=i(83221);let r=!1,a=new Set,o={initialize(){r||((0,s.registerDeprecationHandler)((e,t,i)=>{if(“ember-this-fallback.this-property-fallback”!==t.id)return void i(e,t);let s=e.match(/\/plugins\/([\w-]+)\//)?.[1],r=e.match(/\/theme-(\d+)\//)?.[1];if(s||r){let i={type:s?”plugin”:”theme”,name:s||(0,n.getThemeInfo)(parseInt(r,10)).name,id:r};t.source=i,e=`${(0,n.consolePrefix)(null,i)} ${e}`}a.has(e)||(a.add(e),t.url=”https://meta.discourse.org/t/337276″,i(e,t))}),r=!0)}}},963:e=>{“use strict”;var t=”undefined”!=typeof window?window:”undefined”!=typeof global?global:{};e.exports=function(e,i){return e in t?t[e]:(t[e]=i,i)}},1024:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>f});var s=i(69209),n=i(4507),r=i(22921),a=i(43037),o=i(44595),l=i(77283),u=i(24628),d=i.n(u),c=i(65650),p=i.n(c),h=i(97677),m=i(16312),g=i(56699);let f=dt7948.c(class extends s.default{tabIndex=-1;static{dt7948.g(this.prototype,”isExpanded”,[(0,a.not)(“isHidden”)])}#m=void dt7948.i(this,”isExpanded”);get isHidden(){return!this.selectKit.options.filterable&&!this.selectKit.options.allowAny&&!this.selectKit.options.autoFilterable}static{dt7948.n(this.prototype,”isHidden”,[(0,r.computed)(“selectKit.options.{filterable,allowAny,autoFilterable}”,”content.[]”)])}placeholder(e,t){return(0,o.isPresent)(t)?t:(0,o.isPresent)(e)?(0,h.i18n)(e):(0,h.i18n)(this.selectKit.options.allowAny?”select_kit.filter_placeholder_with_any”:”select_kit.filter_placeholder”)}static{dt7948.n(this.prototype,”placeholder”,[p()(“selectKit.options.filterPlaceholder”,”selectKit.options.translatedFilterPlaceholder”,”selectKit.options.allowAny”)])}onPaste(){}static{dt7948.n(this.prototype,”onPaste”,[r.action])}onInput(e){return this.selectKit.onInput(e),!0}static{dt7948.n(this.prototype,”onInput”,[r.action])}onKeyup(e){return e.preventDefault(),e.stopImmediatePropagation(),!0}static{dt7948.n(this.prototype,”onKeyup”,[r.action])}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)?(this.element.querySelector(“input”).focus(),this.selectKit.enterDisabled&&(e.preventDefault(),e.stopImmediatePropagation()),!1):void this.selectKit.set(“highlighted”,null):(this.selectKit.deselectLast(),e.preventDefault(),!1)))}static{dt7948.n(this.prototype,”onKeydown”,[r.action])}static{(0,s.setComponentTemplate)((0,g.createTemplateFactory)({id:”eIKIe0jD”,block:'[[[1,”\\n”],[41,[51,[30,0,[“isHidden”]]],[[[1,”\\n “],[8,[32,0],[[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,[32,1],[“paste”,[30,0,[“onPaste”]]],null],[4,[32,1],[“keydown”,[30,0,[“onKeydown”]]],null],[4,[32,1],[“keyup”,[30,0,[“onKeyup”]]],null],[4,[32,1],[“input”,[30,0,[“onInput”]]],null]],[[“@value”,”@type”],[[28,[31,1],[[30,0,[“selectKit”,”filter”]]],null],”search”]],null],[1,”\\n\\n”],[41,[30,0,[“selectKit”,”options”,”filterIcon”]],[[[1,” “],[1,[28,[32,2],[[30,0,[“selectKit”,”options”,”filterIcon”]]],[[“class”],[“filter-icon”]]]],[1,”\\n”]],[]],null]],[]],null],[1,” “]],[],[“unless”,”readonly”,”if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/select-kit/select-kit-filter.js”,scope:()=>[s.Input,n.on,d()],isStrictMode:!0}),this)}},[m.default,(0,l.attributeBindings)(“role”),(0,l.classNameBindings)(“isExpanded:is-expanded”),(0,l.classNames)(“select-kit-filter”)])},1029:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>k});var s=i(91409),n=i(69680),r=i(22921),a=i(93899),o=i(72865),l=i(80350),u=i(37108),d=i(66207),c=i(94786),p=i(72881),h=i(15254),m=i(82225),g=i(62655),f=i(62806),_=i(97677),y=i(14692),b=i(69209),w=i(56699);class k extends s.default{static{dt7948.g(this.prototype,”dialog”,[o.service])}#g=void dt7948.i(this,”dialog”);static{dt7948.g(this.prototype,”showEditReason”,[n.tracked],function(){return!1})}#f=void dt7948.i(this,”showEditReason”);static{dt7948.g(this.prototype,”loading”,[n.tracked],function(){return!0})}#n=void dt7948.i(this,”loading”);spreadsheet=null;defaultColWidth=150;isEditingTable=!!this.args.model.tableTokens;alignments=null;constructor(){super(…arguments),this.loadJspreadsheet(),g.default.pause()}willDestroy(){super.willDestroy(…arguments),g.default.unpause()}get modalAttributes(){return this.isEditingTable?{title:”table_builder.edit.modal.title”,insertTable:{title:”table_builder.edit.modal.create”,icon:”pencil”}}:{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()}static{dt7948.n(this.prototype,”createSpreadsheet”,[r.action])}showEditReasonField(){this.showEditReason=!this.showEditReason}static{dt7948.n(this.prototype,”showEditReasonField”,[r.action])}interceptCloseModal(){this._hasChanges()?this.dialog.yesNoConfirm({message:(0,_.i18n)(“table_builder.modal.confirm_close”),didConfirm:()=>this.args.closeModal()}):this.args.closeModal()}static{dt7948.n(this.prototype,”interceptCloseModal”,[r.action])}insertTable(){let e=this.spreadsheet.getHeaders().split(“,”).map(e=>e.trim()),t=this.spreadsheet.getData(),i=this.buildTableMarkdown(e,t);return this.isEditingTable?this.updateTable(i):(this.args.model.toolbarEvent.addText(i),this.args.closeModal())}static{dt7948.n(this.prototype,”insertTable”,[r.action])}_hasChanges(){if(!this.isEditingTable)return this.spreadsheet.getData().flat().some(e=>””!==e);{let e=this.extractTableContent((0,f.tokenRange)(this.args.model.tableTokens,”tr_open”,”tr_close”)),t=this.spreadsheet.getHeaders().split(“,”),i=this.spreadsheet.getData();return JSON.stringify(t.concat(i.flat()))!==JSON.stringify(e)}}async loadJspreadsheet(){let[e]=await Promise.all([i.e(237).then(i.t.bind(i,90237,23)),i.e(798).then(i.bind(i,97798)),Promise.all([i.e(944),i.e(381)]).then(i.bind(i,3381))]);this.jspreadsheet=e.default,this.loading=!1}buildNewTable(){let e=[{title:(0,_.i18n)(“table_builder.default_header.col_1”),width:this.defaultColWidth},{title:(0,_.i18n)(“table_builder.default_header.col_2”),width:this.defaultColWidth},{title:(0,_.i18n)(“table_builder.default_header.col_3”),width:this.defaultColWidth},{title:(0,_.i18n)(“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)}extractTableAlignments(e){return e.flat().filter(e=>”td_open”===e.type).map(e=>{for(let t of e.attrs?.flat()??[])switch(t){case”text-align:left”:return”left”;case”text-align:center”:return”center”;case”text-align:right”:return”right”}return null})}buildPopulatedTable(e){let t,i=(0,f.tokenRange)(e,”tr_open”,”tr_close”),s=[];return i.forEach((e,i)=>{0===i?t=this.extractTableContent(e).map(e=>({title:e||” “,width:Math.max(8*e.length,this.defaultColWidth)})):(null==this.alignments&&(this.alignments=this.extractTableAlignments(e)),s.push(this.extractTableContent(e)))}),t.forEach((e,t)=>{e.align=this.alignments?.[t]??”left”}),this.buildSpreadsheet(s,t)}buildSpreadsheet(e,t,i={}){let s=this.args.model?.post_number,n=s?`post-${s}-table-export`:”post-table-export”;this.spreadsheet=this.jspreadsheet(this.spreadsheet,{data:e,columns:t,defaultColAlign:”left”,wordWrap:!0,csvFileName:n,text:this.localeMapping(),…i})}buildUpdatedPost(e,t,i){let s,n=t.match((0,f.findTableRegex)());return n.length?s=(s=t.replace(n[e],i)).replace(/\0/g,”�”):t}updateTable(e){let t=this.args.model.tableIndex,i=this.args.model.post.id,s=this.editReason||(0,_.i18n)(“table_builder.edit.default_edit_reason”),n=this.args.model.post.raw,r=this.buildUpdatedPost(t,n,e);return this.sendTableUpdate(i,r,s)}sendTableUpdate(e,t,i){return(0,h.ajax)(`/posts/${e}.json`,{type:”PUT”,data:{post:{raw:t,edit_reason:i}}}).catch(m.popupAjaxError).finally(()=>{this.args.closeModal()})}buildTableMarkdown(e,t){let i=[];return t.forEach(t=>{let s={};e.forEach((e,i)=>s[`col${i}`]=t[i]),i.push(s)}),(0,f.arrayToTable)(i,e,”col”,this.alignments)}localeMapping(){return{noRecordsFound:T(“no_records_found”),show:T(“show”),entries:T(“entries”),insertANewColumnBefore:T(“context_menu.col.before”),insertANewColumnAfter:T(“context_menu.col.after”),deleteSelectedColumns:T(“context_menu.col.delete”),renameThisColumn:T(“context_menu.col.rename”),orderAscending:T(“context_menu.order.ascending”),orderDescending:T(“context_menu.order.descending”),insertANewRowBefore:T(“context_menu.row.before”),insertANewRowAfter:T(“context_menu.row.after”),deleteSelectedRows:T(“context_menu.row.delete”),copy:T(“context_menu.copy”),paste:T(“context_menu.paste”),saveAs:T(“context_menu.save”),about:T(“about”),areYouSureToDeleteTheSelectedRows:T(“prompts.delete_selected_rows”),areYouSureToDeleteTheSelectedColumns:T(“prompts.delete_selected_cols”),thisActionWillDestroyAnyExistingMergedCellsAreYouSure:T(“prompts.will_destroy_merged_cells”),thisActionWillClearYourSearchResultsAreYouSure:T(“prompts.will_clear_search_results”),thereIsAConflictWithAnotherMergedCell:T(“prompts.conflict_with_merged_cells”),invalidMergeProperties:T(“invalid_merge_props”),cellAlreadyMerged:T(“cells_already_merged”),noCellsSelected:T(“no_cells_selected”)}}static{(0,b.setComponentTemplate)((0,w.createTemplateFactory)({id:”KHDNlxnh”,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”],[“circle-info”,”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”,”@arrow”],[“question”,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 “]],[],[“unless”,”if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/spreadsheet-editor.js”,scope:()=>[d.default,_.i18n,l.default,a.default,u.default,c.default,p.default,y.default],isStrictMode:!0}),this)}}function T(e){return(0,_.i18n)(`table_builder.spreadsheet.${e}`)}},1046:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>f});var s=i(12322),n=i(4507),r=i(94004),a=i(30597),o=i(37108),l=i(72222),u=i(27870),d=i(38954),c=i(3943),p=i(97677),h=i(69209),m=i(56699),g=i(74934);let f=(0,a.default)((0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:”SSl5AwMB”,block:'[[[1,”\\n “],[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,1,[“lockImageUrl”]]],[14,0,”password-reset-img”],[14,”alt”,””],[12],[13],[1,”\\n “],[13],[1,”\\n\\n “],[10,”form”],[12],[1,”\\n”],[41,[30,1,[“model”,”error”]],[[[1,” “],[10,0],[14,0,”error-info”],[12],[1,”\\n “],[1,[28,[32,0],[[30,1,[“model”,”error”]]],null]],[1,”\\n “],[13],[1,”\\n”]],[]],null],[1,”\\n”],[41,[30,1,[“model”,”can_login”]],[[[1,” “],[10,0],[14,0,”email-login-form”],[12],[1,”\\n”],[41,[30,1,[“secondFactorRequired”]],[[[41,[30,1,[“model”,”security_key_required”]],[[[1,” “],[8,[32,1],null,[[“@setShowSecurityKey”,”@setSecondFactorMethod”,”@backupEnabled”,”@totpEnabled”,”@otherMethodAllowed”,”@action”],[[28,[32,2],[[28,[31,1],[[30,1,[“model”,”security_key_required”]]],null]],null],[28,[32,2],[[28,[31,1],[[30,1,[“secondFactorMethod”]]],null]],null],[30,1,[“model”,”backup_codes_enabled”]],[30,1,[“model”,”totp_enabled”]],[30,1,[“secondFactorRequired”]],[30,1,[“authenticateSecurityKey”]]]],null],[1,”\\n”]],[]],[[[1,” “],[8,[32,3],null,[[“@secondFactorMethod”,”@secondFactorToken”,”@backupEnabled”,”@totpEnabled”,”@isLogin”],[[30,1,[“secondFactorMethod”]],[30,1,[“secondFactorToken”]],[30,1,[“model”,”backup_codes_enabled”]],[30,1,[“model”,”totp_enabled”]],true]],[[“default”],[[[[1,”\\n “],[8,[32,4],[[16,2,[30,1,[“secondFactorToken”]]],[4,[32,5],[“input”,[28,[32,6],[[28,[32,2],[[28,[31,1],[[30,1,[“secondFactorToken”]]],null]],null]],null]],null]],[[“@secondFactorMethod”],[[30,1,[“secondFactorMethod”]]]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]]]],[]],[[[1,” “],[10,”h2”],[12],[1,[28,[32,7],[“email_login.confirm_title”],[[“site_name”],[[30,1,[“siteSettings”,”title”]]]]]],[13],[1,”\\n “],[10,2],[12],[1,[28,[32,7],[“email_login.logging_in_as”],[[“email”],[[30,1,[“model”,”token_email”]]]]]],[13],[1,”\\n”]],[]]],[1,”\\n”],[41,[51,[30,1,[“model”,”security_key_required”]]],[[[1,” “],[8,[32,8],[[24,0,”btn-primary”],[24,4,”submit”]],[[“@label”,”@action”],[“email_login.confirm_button”,[30,1,[“finishLogin”]]]],null],[1,”\\n”]],[]],null],[1,” “],[13],[1,”\\n”]],[]],null],[1,” “],[13],[1,”\\n “],[13],[1,”\\n “],[13],[1,”\\n “]],[“@controller”],[“if”,”mut”,”unless”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/email-login.js”,scope:()=>[r.htmlSafe,d.default,s.fn,l.default,u.default,n.on,c.default,p.i18n,o.default],isStrictMode:!0}),(0,g.default)(void 0,void 0)))},1082:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(69209),n=i(56699),r=i(74934);let a=(0,s.setComponentTemplate)((0,n.createTemplateFactory)({id:”0WnwES7R”,block:'[[[1,”\\n “],[11,2],[24,0,”form-kit-text”],[17,1],[12],[1,”\\n “],[18,2,null],[1,”\\n “],[13],[1,”\\n”]],[“&attrs”,”&default”],[“yield”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/form-kit/components/fk/text.js”,isStrictMode:!0}),(0,r.default)(void 0,”text:FKText”))},1160:(e,t,i)=>{“use strict”;i.r(t);var s=i(97118),n=i(74272);(0,s.default)({workflow:n.default.emberWorkflowList})},1209:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>m});var s=i(69209),n=i(12322),r=i(4507),a=i(22921),o=i(26691),l=i(77283),u=i(24628),d=i.n(u),c=i(97677),p=i(16312),h=i(56699);let m=dt7948.c(class extends s.default{item=null;selectKit=null;extraClass=null;id=null;init(){super.init(…arguments),this.set(“id”,(0,o.B)(this))}get itemValue(){return this.getValue(this.item)}static{dt7948.n(this.prototype,”itemValue”,[(0,a.computed)(“item”)])}get itemName(){return this.getName(this.item)}static{dt7948.n(this.prototype,”itemName”,[(0,a.computed)(“item”)])}get mandatoryValuesArray(){return this.get(“mandatoryValues”)?.split(“|”)||[]}static{dt7948.n(this.prototype,”mandatoryValuesArray”,[(0,a.computed)(“item”)])}get readOnly(){return”string”==typeof this.item?this.mandatoryValuesArray.includes(this.item):this.mandatoryValuesArray.includes(this.item.id)}static{dt7948.n(this.prototype,”readOnly”,[(0,a.computed)(“item”)])}static{(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:”JsPrHeVe”,block:'[[[1,”\\n”],[41,[30,0,[“readOnly”]],[[[1,” “],[10,”button”],[14,0,”btn btn-default disabled”],[15,”title”,[28,[32,0],[“admin.site_settings.mandatory_group”],null]],[12],[1,[30,0,[“itemName”]]],[13],[1,”\\n”]],[]],[[[1,” “],[11,”button”],[16,”aria-label”,[28,[32,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,[32,1],[“click”,[28,[32,2],[[30,0,[“selectKit”,”deselect”]],[30,0,[“item”]]],null]],null],[12],[1,”\\n “],[1,[28,[32,3],[“xmark”],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”]],[]]],[1,” “],[13],[1,”\\n”]],[]]],[1,” “]],[“&default”],[“if”,”has-block”,”yield”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/select-kit.dd9a86fe/node_modules/select-kit/components/selected-choice.js”,scope:()=>[c.i18n,r.on,n.fn,d()],isStrictMode:!0}),this)}},[p.default,(0,l.tagName)(“”)])},1258:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>c});var s=i(69209),n=i(94004),r=i(94341),a=i(36141),o=i(52920),l=i(46333),u=i(97677),d=i(56699);class c extends s.default{static{(0,s.setComponentTemplate)((0,d.createTemplateFactory)({id:”pbddI9Eu”,block:'[[[1,”\\n”],[42,[28,[31,1],[[28,[31,1],[[30,0,[“categories”]]],null]],null],null,[[[41,[30,0,[“site”,”mobileView”]],[[[1,” “],[8,[32,0],null,[[“@name”,”@outletArgs”],[“mobile-subcategories-with-featured-topics-list”,[28,[32,1],null,[[“category”],[[30,1]]]]]],[[“default”],[[[[1,”\\n “],[10,0],[14,0,”category-list subcategory-list with-topics”],[12],[1,”\\n “],[10,0],[14,0,”parent-category”],[12],[1,”\\n “],[8,[32,2],null,[[“@category”],[[30,1]]],null],[1,”\\n “],[10,1],[14,0,”stat”],[15,”title”,[30,1,[“statTitle”]]],[12],[1,[28,[32,3],[[30,1,[“stat”]]],null]],[13],[1,”\\n “],[13],[1,”\\n “],[10,0],[14,0,”subcategories”],[12],[1,”\\n”],[42,[28,[31,1],[[28,[31,1],[[30,1,[“serializedSubcategories”]]],null]],null],null,[[[1,” “],[8,[32,4],null,[[“@category”,”@showTopics”],[[30,2],true]],null],[1,”\\n”]],[2]],[[[1,” “],[8,[32,4],null,[[“@category”,”@showTopics”],[[30,1],true]],null],[1,”\\n”]],[]]],[1,” “],[13],[1,”\\n “],[13],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],[[[1,” “],[8,[32,0],null,[[“@name”,”@outletArgs”],[“subcategories-with-featured-topics-list”,[28,[32,1],null,[[“category”],[[30,1]]]]]],[[“default”],[[[[1,”\\n “],[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,[32,2],null,[[“@category”],[[30,1]]],null],[1,”\\n “],[10,1],[14,0,”stat”],[15,”title”,[30,1,[“statTitle”]]],[12],[1,[28,[32,3],[[30,1,[“stat”]]],null]],[13],[1,”\\n “],[13],[1,”\\n “],[10,”th”],[14,0,”topics”],[12],[1,[28,[32,5],[“categories.topics”],null]],[13],[1,”\\n “],[10,”th”],[14,0,”latest”],[12],[1,[28,[32,5],[“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,[31,1],[[28,[31,1],[[30,1,[“serializedSubcategories”]]],null]],null],null,[[[1,” “],[8,[32,4],null,[[“@category”,”@showTopics”],[[30,3],true]],null],[1,”\\n”]],[3]],[[[1,” “],[8,[32,4],null,[[“@category”,”@showTopics”],[[30,1],true]],null],[1,”\\n”]],[]]],[1,” “],[13],[1,”\\n “],[13],[1,”\\n “]],[]]]]],[1,”\\n”]],[]]]],[1]],null],[1,” “]],[“category”,”subCategory”,”subCategory”],[“each”,”-track-array”,”if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/subcategories-with-featured-topics.js”,scope:()=>[o.default,l.default,r.default,n.htmlSafe,a.default,u.i18n],isStrictMode:!0}),this)}}},1292:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>n});var s=i(51398);class n extends s.default{_opts(){return{defaultDate:this.defaultDate||moment().add(1,”day”).toDate(),setDefaultDate:!!this.defaultDate,minDate:this.minDate||moment().toDate()}}}},1329:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>u});var s=i(69209),n=i(94004),r=i(77283),a=i(13692),o=i(80558),l=i(56699);let u=dt7948.c(class extends s.default{topicStatusIcon(e,t,i){return e?”thumbtack”:t||i?”category.restricted”:”far-file-lines”}static{dt7948.n(this.prototype,”topicStatusIcon”,[(0,o.default)(“topic.pinned”,”topic.closed”,”topic.archived”)])}static{(0,s.setComponentTemplate)((0,l.createTemplateFactory)({id:”d8redvnz”,block:'[[[1,”\\n “],[1,[28,[32,0],[[30,0,[“topicStatusIcon”]]],null]],[1,”\\n\\n “],[10,3],[15,6,[30,0,[“topic”,”lastUnreadUrl”]]],[14,0,”title”],[12],[1,”\\n “],[1,[28,[32,1],[[30,0,[“topic”,”fancyTitle”]]],null]],[1,”\\n “],[13],[1,”\\n “]],[],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/categories-boxes-topic.js”,scope:()=>[a.default,n.htmlSafe],isStrictMode:!0}),this)}},[(0,r.attributeBindings)(“topic.id:data-topic-id”),(0,r.tagName)(“li”)])},1415:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>s.default});var s=i(92250)},1476:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>h});var s=i(22921),n=i(43037),r=i(44595),a=i(3071),o=i(15254),l=i(82225),u=i(80558),d=i(9635),c=i(2850),p=i(3042);class h extends s.default{static create(){let e=super.create(…arguments);return e.user&&(e.user=p.default.create(e.user)),e}static findInvitedBy(e,t,i,n){e||a.Promise.resolve();let l={};return(0,r.isNone)(t)||(l.filter=t),(0,r.isNone)(i)||(l.search=i),l.offset=n||0,(0,o.ajax)((0,d.userPath)(`${e.username_lower}/invited.json`),{data:l}).then(e=>(e.invites=e.invites.map(e=>h.create(e)),s.default.create(e)))}static reinviteAll(){return(0,o.ajax)(“/invites/reinvite-all”,{type:”POST”})}static destroyAllExpired(e){return(0,o.ajax)(“/invites/destroy-all-expired”,{type:”POST”,data:{username:e.username}})}static{dt7948.g(this.prototype,”topicId”,[(0,n.alias)(“topics.firstObject.id”)])}#_=void dt7948.i(this,”topicId”);static{dt7948.g(this.prototype,”topicTitle”,[(0,n.alias)(“topics.firstObject.title”)])}#y=void dt7948.i(this,”topicTitle”);save(e){return(this.id?(0,o.ajax)(`/invites/${this.id}`,{type:”PUT”,data:e}):(0,o.ajax)(“/invites”,{type:”POST”,data:e})).then(e=>this.setProperties(e))}destroy(){return(0,o.ajax)(“/invites”,{type:”DELETE”,data:{id:this.id}}).then(()=>this.set(“destroyed”,!0))}reinvite(){return(0,o.ajax)(“/invites/reinvite”,{type:”POST”,data:{email:this.email}}).then(()=>this.set(“reinvited”,!0)).catch(l.popupAjaxError)}shortKey(e){return e.slice(0,4)+”…”}static{dt7948.n(this.prototype,”shortKey”,[(0,u.default)(“invite_key”)])}groupIds(e){return e?e.map(e=>e.id):[]}static{dt7948.n(this.prototype,”groupIds”,[(0,u.default)(“groups”)])}topic(e){return e?c.default.create(e):null}static{dt7948.n(this.prototype,”topic”,[(0,u.default)(“topics.firstObject”)])}emailOrDomain(e,t){return e||t}static{dt7948.n(this.prototype,”emailOrDomain”,[(0,u.default)(“email”,”domain”)])}}},1496:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(45505),n=i(31107),r=i(97677);class a extends n.default{userActionType=s.default.TYPES.likes_received;titleToken(){return(0,r.i18n)(“user_action_groups.1”)}}},1510:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>m});var s=i(69209),n=i(4507),r=i(22921),a=i(58377),o=i(77283),l=i(26029),u=i(3071),d=i(80558),c=i(99610),p=i(97677),h=i(56699);let m=dt7948.c(class extends s.default{date=null;useNativePicker=(function(){let e=document.createElement(“input”);return e.setAttribute(“type”,”date”),e.setAttribute(“value”,”a”),”a”!==e.value})();_picker=null;inputType(){return this.useNativePicker?”date”:”text”}static{dt7948.n(this.prototype,”inputType”,[(0,d.default)(“site.mobileView”)])}click(e){e.stopPropagation()}didInsertElement(){super.didInsertElement(…arguments),(0,a.schedule)(“afterRender”,()=>{if(!this.element||this.isDestroying||this.isDestroying)return;let e=document.getElementById(this.containerId);(this.useNativePicker?this._loadNativePicker(e):this._loadPikadayPicker(e)).then(e=>{if(this._picker=e,this._picker&&this.date){let e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}})})}didUpdateAttrs(){if(super.didUpdateAttrs(…arguments),this._picker&&this.date){let e=this.date instanceof moment?this.date:moment(this.date);this._picker.setDate(e,!0)}if(this._picker&&this.relativeDate){let 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:(0,p.i18n)(“dates.previous_month”),nextMonth:(0,p.i18n)(“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){let 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),u.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)}static{dt7948.n(this.prototype,”_destroy”,[(0,l.on)(“willDestroyElement”)])}get placeholder(){return this._placeholder||(0,p.i18n)(“dates.placeholder”)}static{dt7948.n(this.prototype,”placeholder”,[(0,r.computed)(“_placeholder”)])}set placeholder(e){this.set(“_placeholder”,e)}_opts(){return null}_toggleHasValueClass(e){let t=this.element.querySelector(“.date-picker”);t&&(e?t.classList.add(“–has-value”):t.classList.remove(“–has-value”))}onChangeDate(e){this._toggleHasValueClass(e.target.value),this._handleSelection(e.target.value)}static{dt7948.n(this.prototype,”onChangeDate”,[r.action])}static{(0,s.setComponentTemplate)((0,h.createTemplateFactory)({id:”xInsjEYc”,block:'[[[1,”\\n “],[8,[32,0],[[24,0,”date-picker”],[16,”placeholder”,[30,0,[“placeholder”]]],[16,1,[30,0,[“inputId”]]],[17,1],[4,[32,1],[“input”,[30,0,[“onChangeDate”]]],null]],[[“@type”,”@value”],[[30,0,[“inputType”]],[28,[31,0],[[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],[1,” “]],[“&attrs”],[“readonly”,”unless”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/date-input.js”,scope:()=>[s.Input,n.on],isStrictMode:!0}),this)}},[(0,o.classNames)(“d-date-input”)])},1513:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>d});var s=i(43204),n=i(30597),r=i(13692),a=i(97677),o=i(69209),l=i(56699),u=i(74934);let d=(0,n.default)((0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:”XR85hSo5″,block:'[[[1,”\\n “],[10,0],[14,0,”tag-group-content”],[12],[1,”\\n “],[10,”h3″],[12],[1,”\\n”],[41,[30,1,[“model”]],[[[1,” “],[1,[28,[32,0],[“tagging.groups.about_heading”],null]],[1,”\\n”]],[]],[[[1,” “],[1,[28,[32,0],[“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,[32,0],[“tagging.groups.about_description”],null]],[13],[1,”\\n “],[13],[1,”\\n “],[10,”section”],[12],[1,”\\n”],[41,[51,[30,1,[“model”]]],[[[1,” “],[8,[32,1],[[24,0,”btn btn-primary”]],[[“@route”],[“tagGroups.new”]],[[“default”],[[[[1,”\\n “],[1,[28,[32,2],[“plus”],null]],[1,”\\n “],[1,[28,[32,0],[“tagging.groups.new”],null]],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,” “],[13],[1,”\\n “],[13],[1,”\\n “]],[“@controller”],[“if”,”unless”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/tag-groups-index.js”,scope:()=>[a.i18n,s.LinkTo,r.default],isStrictMode:!0}),(0,u.default)(void 0,void 0)))},1557:(e,t,i)=>{“use strict”;function s(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError(“attempted to use private field on non-instance”);return e}i.d(t,{$:()=>M,i:()=>k});var n=0;function r(e){return”__private_”+n+++”_”+e}function a(e){if(null!=e){var t;let i=()=>this.abort(e.reason);e.addEventListener(“abort”,i,{once:!0});let s=()=>{e.removeEventListener(“abort”,i)};null==(t=this.then)||t.call(this,s,s)}return this}var o=r(“activeRequests”),l=r(“queuedHandlers”),u=r(“paused”),d=r(“pauseTimer”),c=r(“downLimit”),p=r(“upperLimit”),h=r(“rateLimitingTimer”),m=r(“call”),g=r(“queueNext”),f=r(“next”),_=r(“queue”),y=r(“dequeue”),b=r(“resume”),w=r(“increaseLimit”);class k{constructor(e){Object.defineProperty(this,y,{value:D}),Object.defineProperty(this,_,{value:A}),Object.defineProperty(this,f,{value:C}),Object.defineProperty(this,g,{value:S}),Object.defineProperty(this,m,{value:T}),Object.defineProperty(this,o,{writable:!0,value:0}),Object.defineProperty(this,l,{writable:!0,value:[]}),Object.defineProperty(this,u,{writable:!0,value:!1}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,c,{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,b,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,w,{writable:!0,value:()=>{if(s(this,u)[u]){s(this,h)[h]=setTimeout(s(this,w)[w],0);return}s(this,c)[c]=this.limit,this.limit=Math.ceil((s(this,p)[p]+s(this,c)[c])/2);for(let e=s(this,c)[c];e<=this.limit;e++)s(this,g)[g]();s(this,p)[p]-s(this,c)[c]>3?s(this,h)[h]=setTimeout(s(this,w)[w],2e3):s(this,c)[c]=Math.floor(s(this,c)[c]/2)}}),”number”!=typeof e||0===e?this.limit=1/0:this.limit=e}run(e,t){return!s(this,u)[u]&&s(this,o)[o](e(…n),queueMicrotask(()=>o.done()),()=>{}),t);return{abortOn:a,abort(){o.abort()}}}}wrapPromiseFunction(e,t){var i=this;return function(){let s;for(var n=arguments.length,r=Array(n),o=0;o{s=i.run(()=>{let t,i;try{i=Promise.resolve(e(…r))}catch(e){i=Promise.reject(e)}return i.then(e=>{t?a(t):(s.done(),n(e))},e=>{t?a(t):(s.done(),a(e))}),e=>{t=Error(“Cancelled”,{cause:e})}},t)});return l.abort=e=>{s.abort(e)},l.abortOn=a,l}}resume(){s(this,u)[u]=!1,clearTimeout(s(this,d)[d]);for(let e=0;e1&&Number.isFinite(this.limit)&&(s(this,p)[p]=this.limit-1,this.limit=s(this,c)[c],s(this,h)[h]=setTimeout(s(this,w)[w],e))}get isPaused(){return s(this,u)[u]}}function T(e){let t;s(this,o)[o]+=1;let i=!1;try{t=e()}catch(e){throw s(this,o)[o]-=1,e}return{abort:e=>{i||(i=!0,s(this,o)[o]-=1,null==t||t(e),s(this,g)[g]())},done:()=>{i||(i=!0,s(this,o)[o]-=1,s(this,g)[g]())}}}function S(){queueMicrotask(()=>s(this,f)[f]())}function C(){if(s(this,u)[u]||s(this,o)[o]>=this.limit||0===s(this,l)[l].length)return;let e=s(this,l)[l].shift();if(null==e)throw Error(“Invariant violation: next is null”);let t=s(this,m)[m](e.fn);e.abort=t.abort,e.done=t.done}function A(e,t){let i={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{s(this,y)[y](i)},done:()=>{throw Error(“Cannot mark a queued request as done: this indicates a bug”)}},n=s(this,l)[l].findIndex(e=>i.priority>e.priority);return -1===n?s(this,l)[l].push(i):s(this,l)[l].splice(n,0,i),i}function D(e){let t=s(this,l)[l].indexOf(e);-1!==t&&s(this,l)[l].splice(t,1)}let M=Symbol(“__queue”)},1609:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>c});var s=i(12322),n=i(94004),r=i(30597),a=i(38169),o=i(37108),l=i(69209),u=i(56699),d=i(74934);let c=(0,r.default)((0,l.setComponentTemplate)((0,u.createTemplateFactory)({id:”Qb8sTrCL”,block:'[[[1,”\\n “],[8,[32,0],null,[[“@action”],[[28,[32,1],[[30,1,[“closeMessage”]],[30,1,[“message”]]],null]]],null],[1,”\\n\\n “],[1,[28,[32,2],[[30,1,[“message”,”body”]]],null]],[1,”\\n\\n”],[41,[30,1,[“currentUser”,”can_invite_to_forum”]],[[[1,” “],[8,[32,3],[[24,0,”btn-primary”]],[[“@label”,”@icon”,”@action”],[“footer_nav.share”,”link”,[30,1,[“shareModal”]]]],null],[1,”\\n”]],[]],null],[1,” “]],[“@controller”],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/composer/dominating-topic.js”,scope:()=>[a.default,s.fn,n.htmlSafe,o.default],isStrictMode:!0}),(0,d.default)(void 0,void 0)))},1704:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>u});var s=i(30597),n=i(79813),r=i(52920),a=i(69209),o=i(56699),l=i(74934);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:”yh7GKvDx”,block:'[[[1,”\\n “],[8,[32,0],null,[[“@groups”,”@type”,”@filter”,”@onTypeChanged”,”@onFilterChanged”],[[30,1,[“groups”]],[30,2,[“type”]],[30,2,[“filter”]],[30,2,[“onTypeChanged”]],[30,2,[“onFilterChanged”]]]],null],[1,”\\n\\n “],[8,[32,1],null,[[“@name”,”@connectorTagName”],[“after-groups-index-container”,”div”]],null],[1,”\\n “]],[“@model”,”@controller”],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/groups/index.js”,scope:()=>[n.default,r.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},1714:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>u});var s=i(40126),n=i(22921),r=i(72865),a=i(82225),o=i(80558),l=i(61420);class u extends s.default{static{dt7948.g(this.prototype,”router”,[r.service])}#e=void dt7948.i(this,”router”);accountCreated;newEmail;submitDisabled(e,t){return e===t}static{dt7948.n(this.prototype,”submitDisabled”,[(0,o.default)(“newEmail”,”accountCreated.email”)])}updateNewEmail(e){this.set(“newEmail”,e)}static{dt7948.n(this.prototype,”updateNewEmail”,[n.action])}async changeEmail(){try{await (0,l.changeEmail)({email:this.newEmail}),this.set(“accountCreated.email”,this.newEmail),this.router.transitionTo(“account-created.resent”)}catch(e){(0,a.popupAjaxError)(e)}}static{dt7948.n(this.prototype,”changeEmail”,[n.action])}cancel(){this.router.transitionTo(“account-created.index”)}static{dt7948.n(this.prototype,”cancel”,[n.action])}}},1750:(e,t,i)=>{“use strict”;i.d(t,{A:()=>o});var s=i(40113),n=i(62270),r=i(52271),a=i(68807);function o(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var o=e.getBoundingClientRect(),l=1,u=1;t&&(0,s.sb)(e)&&(l=e.offsetWidth>0&&(0,n.LI)(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,n.LI)(o.height)/e.offsetHeight||1);var d=((0,s.vq)(e)?(0,r.A)(e):window).visualViewport,c=!(0,a.A)()&&i,p=(o.left+(c&&d?d.offsetLeft:0))/l,h=(o.top+(c&&d?d.offsetTop:0))/u,m=o.width/l,g=o.height/u;return{width:m,height:g,top:h,right:p+m,bottom:h+g,left:p,x:p,y:h}}},1864:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>r});var s=i(69680),n=i(72865);class r extends n.default{static{dt7948.g(this.prototype,”additionalProperties”,[s.tracked],function(){return[]})}#b=void dt7948.i(this,”additionalProperties”);addProperty(e){this.additionalProperties.push(e)}}},1866:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>l});var s=i(69209),n=i(43037),r=i(43204),a=i(94004),o=i(56699);class l extends s.default{static{dt7948.g(this.prototype,”showUsername”,[(0,n.gte)(“index”,1)])}#v=void dt7948.i(this,”showUsername”);static{(0,s.setComponentTemplate)((0,o.createTemplateFactory)({id:”wpVthcup”,block:'[[[1,”\\n”],[41,[30,0,[“post”]],[[[1,” “],[10,0],[14,0,”reviewable-conversation-post”],[12],[1,”\\n”],[41,[30,0,[“showUsername”]],[[[1,” “],[8,[32,0],[[24,0,”username”]],[[“@route”,”@model”],[“user”,[30,0,[“post”,”user”]]]],[[“default”],[[[[1,”@”],[1,[30,0,[“post”,”user”,”username”]]]],[]]]]],[1,”\\n”]],[]],null],[1,” “],[1,[28,[32,1],[[30,0,[“post”,”excerpt”]]],null]],[1,”\\n “],[13],[1,”\\n”]],[]],null],[1,” “]],[],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/reviewable-conversation-post.js”,scope:()=>[r.LinkTo,a.htmlSafe],isStrictMode:!0}),this)}}},1922:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>s});let s={offset:function(e){let t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX}},position:function(e){return{top:e.offsetTop,left:e.offsetLeft}}}},1924:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>s.A});var s=i(57438)},1937:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>r});var s=i(72865),n=i(33726);let r=dt7948.c(class extends s.default{static{dt7948.g(this.prototype,”router”,[s.service])}#e=void dt7948.i(this,”router”);get onDiscoveryRoute(){let{currentRouteName:e}=this.router;return e?.startsWith(“discovery.”)||e?.startsWith(“tags.show”)||”tag.show”===e}get category(){if(this.onDiscoveryRoute)return this.#w?.category}get tag(){if(this.onDiscoveryRoute)return this.#w?.tag}get currentTopicList(){if(this.onDiscoveryRoute)return this.#w?.list}get #w(){return this.router.currentRoute.attributes}},[n.disableImplicitInjections])},1956:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>g});var s=i(91409),n=i(88821),r=i(58377),a=i(72865),o=i(2239),l=i(31454),u=i(56747),d=i(86791),c=i(97677),p=i(59663),h=i(69209),m=i(56699);class g extends s.default{static{dt7948.g(this.prototype,”userTips”,[a.service])}#k=void dt7948.i(this,”userTips”);static{dt7948.g(this.prototype,”tooltip”,[a.service])}#T=void dt7948.i(this,”tooltip”);registerTip=(0,u.default)((e,t)=>{let i={id:this.args.id,priority:this.args.priority??0};this.userTips.addAvailableTip(i),t.cleanup(()=>{this.userTips.removeAvailableTip(i)})});tip=(0,o.modifier)(e=>{let t;return(0,r.schedule)(“afterRender”,()=>{let i=this.args.triggerSelector&&document.querySelector(this.args.triggerSelector),s=(0,c.i18n)(this.args.buttonLabel||”user_tips.button”);this.args.buttonIcon&&(s=`${(0,d.iconHTML)(this.args.buttonIcon)} ${s}`),(t=new p.default((0,n.getOwner)(this),{identifier:”user-tip”,interactive:!0,closeOnScroll:!1,closeOnClickOutside:!0,placement:this.args.placement,component:l.default,data:{id:this.args.id,titleText:this.args.titleText,contentHtml:this.args.contentHtml||null,contentText:this.args.contentText||null,buttonText:s,buttonSkipText:(0,c.i18n)(“user_tips.skip”),showSkipButton:this.args.showSkipButton}})).trigger=i||e,t.detachedTrigger=!0,this.tooltip.show(t),this.shouldRenderTip&&this.userTips.markAsSeen(this.args.id)}),()=>{t?.destroy()}});get shouldRenderTip(){return this.userTips.shouldRender(this.args.id)}static{(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:”7jtcUDP4″,block:'[[[1,”\\n “],[1,[30,0,[“registerTip”]]],[1,”\\n”],[41,[30,0,[“shouldRenderTip”]],[[[1,” “],[11,1],[4,[30,0,[“tip”]],null,null],[12],[13],[1,”\\n”]],[]],null],[1,” “]],[],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-tip.js”,isStrictMode:!0}),this)}}},1980:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o});var s=i(72865),n=i(15254),r=i(80558),a=i(11774);class o extends a.default{static{dt7948.g(this.prototype,”messageBus”,[s.service])}#S=void dt7948.i(this,”messageBus”);constructor(){super(…arguments),this.messageBus.subscribe(“/refresh-sidebar-sections”,this._refresh)}willDestroy(){super.willDestroy(…arguments),this.messageBus.unsubscribe(“/refresh-sidebar-sections”)}async _refresh(){let e=await (0,n.ajax)(“/sidebar_sections.json”,{});this.currentUser.set(“sidebar_sections”,e.sidebar_sections)}static{dt7948.n(this.prototype,”_refresh”,[r.bind])}}},2043:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o});var s=i(72865),n=i(15254),r=i(9635),a=i(61340);class o extends a.default{static{dt7948.g(this.prototype,”router”,[s.service])}#e=void dt7948.i(this,”router”);async model(e,t){let i=t.intent.url;if(!this.currentUser&&this.siteSettings.login_required)return;let s=i&&(0,r.rewritePath)(i);if(s!==i)return void this.router.transitionTo(s);let a=await (0,n.ajax)(“/permalink-check.json”,{data:{path:i}});if(!a.found)return a.html;{t.abort();let e=a.target_url;return t._discourse_anchor&&(e=e.split(“#”)[0]+`#${t._discourse_anchor}`),r.default.routeTo(e),””}}}},2047:function(e,t,i){(function(e){“use strict”;var t={ss:”sekundė_sekundžių_sekundes”,m:”minutė_minutės_minutę”,mm:”minutės_minučių_minutes”,h:”valanda_valandos_valandą”,hh:”valandos_valandų_valandas”,d:”diena_dienos_dieną”,dd:”dienos_dienų_dienas”,M:”mėnuo_mėnesio_mėnesį”,MM:”mėnesiai_mėnesių_mėnesius”,y:”metai_metų_metus”,yy:”metai_metų_metus”};function i(e,t,i,s){return t?n(i)[0]:s?n(i)[1]:n(i)[2]}function s(e){return e%10==0||e>10&&e<20}function n(e){return t[e].split("_")}function r(e,t,r,a){var o=e+" ";return 1===e?o+i(e,t,r[0],a):t?o+(s(e)?n(r)[1]:n(r)[0]):a?o+n(r)[1]:o+(s(e)?n(r)[1]:n(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,i,s){return t?"kelios sekundės":s?"kelių sekundžių":"kelias sekundes"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})(i(99526))},2106:function(e,t,i){(function(e){"use strict";function t(e,t,i){var s,n,r;return"m"===i?t?"минута":"минуту":e+" "+(s=({ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"})[i],n=+e,r=s.split("_"),n%10==1&&n%100!=11?r[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?r[1]:r[2])}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale(“ru”,{months:{format:”января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря”.split(“_”),standalone:”январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь”.split(“_”)},monthsShort:{format:”янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.”.split(“_”),standalone:”янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.”.split(“_”)},weekdays:{standalone:”воскресенье_понедельник_вторник_среда_четверг_пятница_суббота”.split(“_”),format:”воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу”.split(“_”),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:”вс_пн_вт_ср_чт_пт_сб”.split(“_”),weekdaysMin:”вс_пн_вт_ср_чт_пт_сб”.split(“_”),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:”H:mm”,LTS:”H:mm:ss”,L:”DD.MM.YYYY”,LL:”D MMMM YYYY г.”,LLL:”D MMMM YYYY г., H:mm”,LLLL:”dddd, D MMMM YYYY г., H:mm”},calendar:{sameDay:”[Сегодня, в] LT”,nextDay:”[Завтра, в] LT”,lastDay:”[Вчера, в] LT”,nextWeek:function(e){if(e.week()!==this.week())switch(this.day()){case 0:return”[В следующее] dddd, [в] LT”;case 1:case 2:case 4:return”[В следующий] dddd, [в] LT”;case 3:case 5:case 6:return”[В следующую] dddd, [в] LT”}else if(2===this.day())return”[Во] dddd, [в] LT”;else return”[В] dddd, [в] LT”},lastWeek:function(e){if(e.week()!==this.week())switch(this.day()){case 0:return”[В прошлое] dddd, [в] LT”;case 1:case 2:case 4:return”[В прошлый] dddd, [в] LT”;case 3:case 5:case 6:return”[В прошлую] dddd, [в] LT”}else if(2===this.day())return”[Во] dddd, [в] LT”;else return”[В] dddd, [в] LT”},sameElse:”L”},relativeTime:{future:”через %s”,past:”%s назад”,s:”несколько секунд”,ss:t,m:t,mm:t,h:”час”,hh:t,d:”день”,dd:t,w:”неделя”,ww:t,M:”месяц”,MM:t,y:”год”,yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})})(i(99526))},2110:(e,t,i)=>{var s=i(76137);e.exports=function(e,t){“;”!==(e=s.trimRight(e))[e.length-1]&&(e+=”;”);var i=e.length,n=!1,r=0,a=0,o=””;function l(){if(!n){var i=s.trim(e.slice(r,a)),l=i.indexOf(“:”);if(-1!==l){var u=s.trim(i.slice(0,l)),d=s.trim(i.slice(l+1));if(u){var c=t(r,o.length,u,d,i);c&&(o+=c+”; “)}}}r=a+1}for(;a{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(49661),n=i(76232);function r(e,t,i,s,n=[]){return{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,initializer:()=>s(…n)}}function a(e){return function(…t){return(0,n.default)(t[t.length-1])?r(…t,e):((0,s.default)(`Importing ${e.name} from ‘discourse/lib/decorators’ is deprecated. You should instead import it from ‘@ember/object/computed’ directly.`,{id:”discourse.utils-decorators-import”}),function(i,s,n){return r(i,s,n,e,t)})}}},2141:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>n});class s{constructor(){this.updateRect()}updateRect(){let e=document.getSelection();if(this.range=e?.rangeCount&&e?.getRangeAt?.(0),this.range){if(this.range.collapsed){let e=document.createElement(“span”);e.textContent=””,this.range.insertNode(e),this.rect=e.getBoundingClientRect(),e.parentNode.removeChild(e)}else this.rect=this.range.getBoundingClientRect();return this.rect}}getBoundingClientRect(){return this.rect}getClientRects(){return this.range.getClientRects()}get clientWidth(){return this.rect.width}get clientHeight(){return this.rect.height}}function n(){return new s}},2153:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>C});var s=i(91409),n=i(69680),r=i(4507),a=i(22921),o=i(58377),l=i(44595),u=i(37108),d=i(66207),c=i(20421),p=i(27675),h=i(15283),m=i(58855),g=i(27084),f=i(93059),_=i(75239),y=i(97032),b=i(9635),w=i(97677),k=i(69209),T=i(56699);let S=(0,i(8022).A)(i(69680)).cached;class C extends s.default{static{dt7948.g(this.prototype,”selectedRow”,[n.tracked],function(){return -1})}#C=void dt7948.i(this,”selectedRow”);static{dt7948.g(this.prototype,”searchResults”,[n.tracked],function(){return[]})}#A=void dt7948.i(this,”searchResults”);static{dt7948.g(this.prototype,”searchLoading”,[n.tracked],function(){return!1})}#D=void dt7948.i(this,”searchLoading”);#M;#x;willDestroy(){super.willDestroy(…arguments),(0,o.cancel)(this.#M)}get data(){return{linkUrl:this.args.model.linkUrl??””,linkText:this.args.model.linkText??””}}static{dt7948.n(this.prototype,”data”,[S])}highlightRow(e,t){let i=”down”===t?this.selectedRow+1:this.selectedRow-1;i>-1&&i-1){let e=document.querySelectorAll(“.internal-link-results .search-link”)[this.selectedRow];this.selectLink(e)}”INPUT”===e.target.tagName&&this.formApi.submit(),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())}}static{dt7948.n(this.prototype,”keyDown”,[a.action])}mouseDown(e){e.target.closest(“.inputs”)||(this.searchResults=[])}static{dt7948.n(this.prototype,”mouseDown”,[a.action])}onFormSubmit(e){let t=e.linkUrl,i=(0,b.prefixProtocol)(t);if(“string”==typeof i)try{i=encodeURI(decodeURI(i))}catch{try{let e=i.replace(/%(?![0-9A-Fa-f]{2})/g,”%25″);i=encodeURI(decodeURI(e))}catch{i=encodeURI(i)}}if((0,l.isEmpty)(i))return;let s=this.args.model.toolbarEvent.selected,n=e.linkText||s.value||t||””;this.args.model.toolbarEvent.addText(`[${n.trim()}](${i})`),this.args.closeModal()}static{dt7948.n(this.prototype,”onFormSubmit”,[a.action])}linkClick(e){e.metaKey||e.ctrlKey||(e.preventDefault(),e.stopPropagation(),this.selectLink(e.target.closest(“.search-link”)))}static{dt7948.n(this.prototype,”linkClick”,[a.action])}registerApi(e){this.formApi=e}static{dt7948.n(this.prototype,”registerApi”,[a.action])}search(e){this.formApi.set(“linkUrl”,e),this.#M=(0,_.default)(this,this.triggerSearch,e,400)}static{dt7948.n(this.prototype,”search”,[a.action])}static{(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:”6iEpEhNp”,block:'[[[1,”\\n”],[1,” “],[8,[32,0],[[24,0,”upsert-hyperlink-modal”],[4,[32,2],[“keydown”,[30,0,[“keyDown”]]],null],[4,[32,2],[“mousedown”,[30,0,[“mouseDown”]]],null]],[[“@closeModal”,”@title”,”@bodyClass”],[[30,1],[28,[32,1],[[52,[30,2,[“editing”]],”composer.link_edit_title”,”composer.link_dialog_title”]],null],”insert-link”]],[[“body”,”footer”],[[[[1,”\\n “],[10,0],[14,0,”inputs”],[12],[1,”\\n “],[8,[32,3],null,[[“@data”,”@onSubmit”,”@onRegisterApi”],[[30,0,[“data”]],[30,0,[“onFormSubmit”]],[30,0,[“registerApi”]]]],[[“default”],[[[[1,”\\n “],[8,[30,3,[“Field”]],null,[[“@name”,”@title”,”@format”,”@validation”,”@onSet”],[“linkUrl”,[28,[32,1],[“composer.link_url_label”],null],”full”,”required”,[30,0,[“search”]]]],[[“default”],[[[[1,”\\n “],[8,[30,4,[“Input”]],[[16,”placeholder”,[28,[32,1],[“composer.link_url_placeholder”],null]],[24,0,”link-url”],[24,”autofocus”,”autofocus”]],null,null],[1,”\\n “]],[4]]]]],[1,”\\n\\n”],[41,[30,0,[“searchLoading”]],[[[1,” “],[1,[32,4]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[30,0,[“searchResults”]],[[[1,” “],[10,0],[14,0,”internal-link-results”],[12],[1,”\\n”],[42,[28,[31,2],[[28,[31,2],[[30,0,[“searchResults”]]],null]],null],null,[[[1,” “],[11,3],[16,6,[30,5,[“url”]]],[16,”data-title”,[30,5,[“fancy_title”]]],[24,0,”search-link”],[4,[32,2],[“click”,[30,0,[“linkClick”]]],null],[12],[1,”\\n “],[8,[32,5],null,[[“@topic”,”@disableActions”],[[30,5],true]],null],[1,”\\n “],[1,[28,[32,6],[[30,5,[“title”]]],null]],[1,”\\n “],[10,0],[14,0,”search-category”],[12],[1,”\\n”],[41,[30,5,[“category”,”parentCategory”]],[[[1,” “],[1,[28,[32,7],[[30,5,[“category”,”parentCategory”]]],null]],[1,”\\n”]],[]],null],[1,” “],[1,[28,[32,7],[[30,5,[“category”]]],[[“hideParent”],[true]]]],[1,”\\n “],[1,[28,[32,8],[[30,5]],null]],[1,”\\n “],[13],[1,”\\n “],[13],[1,”\\n”]],[5]],null],[1,” “],[13],[1,”\\n”]],[]],null],[1,”\\n “],[8,[30,3,[“Field”]],null,[[“@name”,”@title”,”@format”],[“linkText”,[28,[32,1],[“composer.link_text_label”],null],”full”]],[[“default”],[[[[1,”\\n “],[8,[30,6,[“Input”]],[[16,”placeholder”,[28,[32,1],[“composer.link_optional_text”],null]],[24,0,”link-text”]],null,null],[1,”\\n “]],[6]]]]],[1,”\\n “]],[3]]]]],[1,”\\n “],[13],[1,”\\n “]],[]],[[[1,”\\n “],[8,[32,9],[[24,0,”btn-primary”],[24,4,”submit”]],[[“@action”,”@label”],[[30,0,[“formApi”,”submit”]],[52,[30,2,[“editing”]],”composer.link_edit_action”,”composer.link_dialog_action”]]],null],[1,”\\n\\n “],[8,[32,9],[[24,0,”btn-transparent”]],[[“@action”,”@label”],[[30,1],”composer.cancel”]],null],[1,”\\n “]],[]]]]],[1,”\\n “]],[“@closeModal”,”@model”,”form”,”field”,”result”,”field”],[“if”,”each”,”-track-array”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/upsert-hyperlink.js”,scope:()=>[d.default,w.i18n,r.on,c.default,g.default,p.default,f.default,h.default,m.default,u.default],isStrictMode:!0}),this)}}},2159:function(e,t,i){(function(e){“use strict”;var t=”pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut”.split(“_”);function i(e,i,s,n){var r,a,o,l,u,d=(a=Math.floor((r=e)%1e3/100),o=Math.floor(r%100/10),l=r%10,u=””,a>0&&(u+=t[a]+”vatlh”),o>0&&(u+=(“”!==u?” “:””)+t[o]+”maH”),l>0&&(u+=(“”!==u?” “:””)+t[l]),””===u?”pagh”:u);switch(s){case”ss”:return d+” lup”;case”mm”:return d+” tup”;case”hh”:return d+” rep”;case”dd”:return d+” jaj”;case”MM”:return d+” jar”;case”yy”:return d+” DIS”}}e.defineLocale(“tlh”,{months:”tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’”.split(“_”),monthsShort:”jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’”.split(“_”),monthsParseExact:!0,weekdays:”lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj”.split(“_”),weekdaysShort:”lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj”.split(“_”),weekdaysMin:”lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj”.split(“_”),longDateFormat:{LT:”HH:mm”,LTS:”HH:mm:ss”,L:”DD.MM.YYYY”,LL:”D MMMM YYYY”,LLL:”D MMMM YYYY HH:mm”,LLLL:”dddd, D MMMM YYYY HH:mm”},calendar:{sameDay:”[DaHjaj] LT”,nextDay:”[wa’leS] LT”,nextWeek:”LLL”,lastDay:”[wa’Hu’] LT”,lastWeek:”LLL”,sameElse:”L”},relativeTime:{future:function(e){var t=e;return -1!==e.indexOf(“jaj”)?t.slice(0,-3)+”leS”:-1!==e.indexOf(“jar”)?t.slice(0,-3)+”waQ”:-1!==e.indexOf(“DIS”)?t.slice(0,-3)+”nem”:t+” pIq”},past:function(e){var t=e;return -1!==e.indexOf(“jaj”)?t.slice(0,-3)+”Hu’”:-1!==e.indexOf(“jar”)?t.slice(0,-3)+”wen”:-1!==e.indexOf(“DIS”)?t.slice(0,-3)+”ben”:t+” ret”},s:”puS lup”,ss:i,m:”wa’ tup”,mm:i,h:”wa’ rep”,hh:i,d:”wa’ jaj”,dd:i,M:”wa’ jar”,MM:i,y:”wa’ DIS”,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:”%d.”,week:{dow:1,doy:4}})})(i(99526))},2164:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>_});var s=i(91409),n=i(69680),r=i(4507),a=i(22921),o=i(21743),l=i(44595),u=i(351),d=i(97677),c=i(8732),p=i(69209),h=i(56699);function m(e){let t=parseFloat(e.toFixed(1));return(t=Math.round(2*t)/2)%1==0?t.toFixed(0):t}function g(e){if(!e)return null;if(e>525600)return m(e/525600);if(e>43200)return m(e/43200);if(e>1440)return m(e/1440);if(e>60)return m(e/60);else return e}function f(e){return e>525600?”years”:e>43200?”months”:e>1440?”days”:e>60?”hours”:”mins”}class _ extends s.default{static{dt7948.g(this.prototype,”inputValue”,[n.tracked])}#E=void dt7948.i(this,”inputValue”);static{dt7948.g(this.prototype,”duration”,[n.tracked])}#L=void dt7948.i(this,”duration”);static{dt7948.g(this.prototype,”interval”,[n.tracked])}#P=void dt7948.i(this,”interval”);constructor(){super(…arguments),this.initValues()}get intervals(){let e=this.duration?parseFloat(this.duration):0;return[{id:”mins”,name:(0,d.i18n)(“relative_time_picker.minutes”,{count:e})},{id:”hours”,name:(0,d.i18n)(“relative_time_picker.hours”,{count:e})},{id:”days”,name:(0,d.i18n)(“relative_time_picker.days”,{count:e})},{id:”months”,name:(0,d.i18n)(“relative_time_picker.months”,{count:e})},{id:”years”,name:(0,d.i18n)(“relative_time_picker.years”,{count:e})}].filter(e=>!this.args.hiddenIntervals?.includes(e.id))}minutesFromInputValueAndInterval(e,t){if(isNaN(e))return null;switch(t){case”mins”:return Math.ceil(e);case”hours”:return 60*e;case”days”:return 1440*e;case”months”:return 43200*e;case”years”:return 525600*e}}initValues(){let e=this.args.durationMinutes;this.args.durationHours&&(e??=60*this.args.durationHours),this.inputValue=g(e),void 0!==this.args.durationMinutes?this.interval=f(this.args.durationMinutes):null===this.args.durationHours?this.interval=”hours”:void 0!==this.args.durationHours?this.interval=f(60*this.args.durationHours):this.interval=”mins”,this.duration=this.minutesFromInputValueAndInterval(this.inputValue,this.interval)}static{dt7948.n(this.prototype,”initValues”,[a.action])}onChangeDuration(e){if((0,l.isBlank)(e.target.value))this.duration=null,this.inputValue=null;else{let t=this.minutesFromInputValueAndInterval(parseFloat(e.target.value),this.interval);t>this.duration&&(525600===this.duration||43200===this.duration||1440===this.duration||60===this.duration)&&(t=this.minutesFromInputValueAndInterval(1.5*parseFloat(e.target.value),this.interval)),this.duration=t,this.interval=f(this.duration),this.inputValue=g(this.duration)}this.args.onChange?.(this.duration)}static{dt7948.n(this.prototype,”onChangeDuration”,[a.action])}onChangeInterval(e){this.interval=e;let t=this.minutesFromInputValueAndInterval(this.inputValue,this.interval);t!==this.duration&&(this.duration=t,this.args.onChange?.(this.duration))}static{dt7948.n(this.prototype,”onChangeInterval”,[a.action])}static{(0,p.setComponentTemplate)((0,h.createTemplateFactory)({id:”yg0xbMB9″,block:'[[[1,”\\n “],[11,0],[24,0,”relative-time-picker”],[17,1],[12],[1,”\\n “],[11,”input”],[16,”min”,[52,[28,[32,0],[[30,0,[“interval”]],”mins”],null],1,0.5]],[16,”step”,[52,[28,[32,0],[[30,0,[“interval”]],”mins”],null],1,0.5]],[16,2,[30,0,[“inputValue”]]],[16,1,[30,2]],[24,0,”relative-time-duration”],[24,4,”number”],[4,[32,1],[[30,0,[“initValues”]],[30,3],[30,4]],null],[4,[32,2],[“change”,[30,0,[“onChangeDuration”]]],null],[12],[13],[1,”\\n “],[8,[32,3],[[24,0,”relative-time-intervals”]],[[“@content”,”@value”,”@onChange”],[[30,0,[“intervals”]],[30,0,[“interval”]],[30,0,[“onChangeInterval”]]]],null],[1,”\\n “],[13],[1,”\\n “]],[“&attrs”,”@id”,”@durationMinutes”,”@durationHours”],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/relative-time-picker.js”,scope:()=>[u.eq,o.default,r.on,c.default],isStrictMode:!0}),this)}}},2239:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o,modifier:()=>d});var s=i(52381),n=i(4507),r=i(41196);class a{capabilities=(0,n.capabilities)(“3.22”);constructor(e){this.owner=e}createModifier(e,t){return{instance:new e(this.owner,t),element:null}}installModifier(e,t,i){(e.element=t,e).instance.modify(t,i.positional,i.named)}updateModifier(e,t){e.instance.modify(e.element,t.positional,t.named)}destroyModifier({instance:e}){(0,r.destroy)(e)}}class o{constructor(e,t){(0,s.setOwner)(this,e)}modify(e,t,i){}}(0,n.setModifierManager)(e=>new a(e),o);class l{capabilities=(0,n.capabilities)(“3.22”);createModifier(e){return{element:null,instance:e}}installModifier(e,t,i){let s=(e.element=t,e),{positional:n,named:r}=i,a=e.instance(t,n,r);”function”==typeof a&&(s.teardown=a)}updateModifier(e,t){“function”==typeof e.teardown&&e.teardown();let i=e.instance(e.element,t.positional,t.named);”function”==typeof i&&(e.teardown=i)}destroyModifier(e){“function”==typeof e.teardown&&e.teardown()}getDebugName(e){return e.instance.toString()}getDebugInstance(e){return e}}let u=new l;function d(e,t){return e.toString=()=>t?.name||e.name,(0,n.setModifierManager)(()=>u,e)}},2250:(e,t,i)=>{“use strict”;i.d(t,{i:()=>r,s:()=>a});var s=i(82490);let n=new WeakSet;function r(e){return!!(0,s.e)(e)&&n.has(e)}function a(e){(0,s.e)(e)&&n.add(e)}},2289:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{hidePopover:()=>r,showPopover:()=>n});var s=i(49661);function n(){(0,s.default)(“`showPopover` is deprecated. Use tooltip service instead.”,{id:”discourse.show-popover”})}function r(){(0,s.default)(“`hidePopover` is deprecated. Use tooltip service instead.”,{id:”discourse.hide-popover”})}},2292:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o});var s=i(4507),n=i(69209),r=i(56699),a=i(74934);let o=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:”a9NdGTU+”,block:'[[[1,”\\n “],[10,”td”],[14,0,”bulk-select topic-list-data”],[12],[1,”\\n “],[10,”label”],[15,”for”,[29,[“bulk-select-“,[30,1,[“id”]]]]],[12],[1,”\\n “],[11,”input”],[16,”checked”,[30,2]],[16,1,[29,[“bulk-select-“,[30,1,[“id”]]]]],[24,0,”bulk-select”],[24,4,”checkbox”],[4,[32,0],[“click”,[30,3]],null],[12],[13],[1,”\\n “],[13],[1,”\\n “],[13],[1,”\\n”]],[“@topic”,”@isSelected”,”@onBulkSelectToggle”],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-list/item/bulk-select-cell.js”,scope:()=>[s.on],isStrictMode:!0}),(0,a.default)(void 0,”bulk-select-cell:BulkSelectCell”))},2306:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>g});var s=i(91409),n=i(88821),r=i(72865),a=i(72261),o=i.n(a),l=i(2239),u=i(96634),d=i(24887),c=i(80558),p=i(26488),h=i(69209),m=i(56699);class g extends s.default{static{dt7948.g(this.prototype,”currentUser”,[r.service])}#t=void dt7948.i(this,”currentUser”);textarea;registerTextarea=(0,l.modifier)(e=>{for(let[t,i]of(this.textarea=e,this.#F=new(o())(e),this.textManipulation=new p.default((0,n.getOwner)(this),{markdownOptions:this.args.markdownOptions,textarea:e}),Object.entries(this.args.keymap)))this.#F.bind(t,i);let t=this.args.onSetup(this.textManipulation);return this.setupSmartList(),()=>{this.destroySmartList(),t?.(),this.#F?.destroy(),this.#F=null}});#F;#I=!1;#j=!1;onInputSmartList(){this.#I&&this.textManipulation.maybeContinueList(),this.#I=!1}static{dt7948.n(this.prototype,”onInputSmartList”,[c.bind])}onBeforeInputSmartListShiftDetect(e){this.#j=e.shiftKey}static{dt7948.n(this.prototype,”onBeforeInputSmartListShiftDetect”,[c.bind])}onBeforeInputSmartList(e){this.#j||(this.#I=”insertLineBreak”===e.inputType)}static{dt7948.n(this.prototype,”onBeforeInputSmartList”,[c.bind])}setupSmartList(){this.currentUser.user_option.enable_smart_lists&&(this.textarea.addEventListener(“beforeinput”,this.onBeforeInputSmartList),this.textarea.addEventListener(“keydown”,this.onBeforeInputSmartListShiftDetect),this.textarea.addEventListener(“input”,this.onInputSmartList))}destroySmartList(){this.currentUser.user_option.enable_smart_lists&&(this.textarea.removeEventListener(“beforeinput”,this.onBeforeInputSmartList),this.textarea.removeEventListener(“keydown”,this.onBeforeInputSmartListShiftDetect),this.textarea.removeEventListener(“input”,this.onInputSmartList))}static{(0,h.setComponentTemplate)((0,m.createTemplateFactory)({id:”13Hj8gHR”,block:'[[[1,”\\n “],[8,[32,0],[[16,0,[28,[32,1],[[30,1],[52,[30,0,[“currentUser”,”user_option”,”enable_markdown_monospace_font”]],”–markdown-monospace”]],null]],[4,[30,0,[“registerTextarea”]],null,null]],[[“@autocomplete”,”@value”,”@placeholder”,”@aria-label”,”@disabled”,”@input”,”@focusIn”,”@focusOut”,”@id”],[“off”,[30,2],[30,3],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8]]],null],[1,”\\n “]],[“@class”,”@value”,”@placeholder”,”@disabled”,”@change”,”@focusIn”,”@focusOut”,”@id”],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/composer/textarea-editor.js”,scope:()=>[u.default,d.default],isStrictMode:!0}),this)}}},2342:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>c});var s=i(91409),n=i(22921),r=i(93899),a=i(72865),o=i(94004),l=i(14063),u=i(69209),d=i(56699);class c extends s.default{static{dt7948.g(this.prototype,”search”,[a.service])}#s=void dt7948.i(this,”search”);highlight(e){(0,l.default)(e,this.search.activeGlobalSearchTerm)}static{dt7948.n(this.prototype,”highlight”,[n.action])}static{(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:”hSU6TJF2″,block:'[[[1,”\\n “],[11,1],[4,[32,0],[[30,0,[“highlight”]]],null],[12],[1,”\\n “],[1,[28,[32,1],[[30,1]],null]],[1,”\\n “],[13],[1,”\\n “]],[“@string”],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/search-menu/highlighted-search.js”,scope:()=>[r.default,o.htmlSafe],isStrictMode:!0}),this)}}},2353:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>c});var s=i(91409),n=i(69680),r=i(22921),a=i(20562),o=i(37108),l=i(97677),u=i(69209),d=i(56699);class c extends s.default{static{dt7948.g(this.prototype,”expanded”,[n.tracked],function(){return!1})}#N=void dt7948.i(this,”expanded”);get users(){let e=this.args.users;return this.showViewMoreButton&&!this.expanded&&(e=e.slice(0,this.args.truncateAt)),e}get showViewMoreButton(){return this.args.truncateAt>0&&this.args.users.length>this.args.truncateAt}toggleExpanded(){this.expanded=!this.expanded}static{dt7948.n(this.prototype,”toggleExpanded”,[r.action])}static{(0,u.setComponentTemplate)((0,d.createTemplateFactory)({id:”ThYIZfoz”,block:'[[[1,”\\n “],[10,0],[14,0,”about-page-users-list”],[12],[1,”\\n”],[42,[28,[31,1],[[28,[31,1],[[30,0,[“users”]]],null]],null],null,[[[1,” “],[8,[32,0],null,[[“@user”],[[30,1]]],null],[1,”\\n”]],[1]],null],[1,” “],[13],[1,”\\n”],[41,[30,0,[“showViewMoreButton”]],[[[1,” “],[8,[32,1],[[24,0,”btn-flat about-page-users-list__expand-button”]],[[“@action”,”@icon”,”@translatedLabel”],[[30,0,[“toggleExpanded”]],[52,[30,0,[“expanded”]],”chevron-up”,”chevron-down”],[52,[30,0,[“expanded”]],[28,[32,2],[“about.view_less”],null],[28,[32,2],[“about.view_more”],null]]]],null],[1,”\\n”]],[]],null],[1,” “]],[“user”],[“each”,”-track-array”,”if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/about-page-users.js”,scope:()=>[a.default,o.default,l.i18n],isStrictMode:!0}),this)}}},2436:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o});var s=i(37108),n=i(69209),r=i(56699),a=i(74934);let o=(0,n.setComponentTemplate)((0,r.createTemplateFactory)({id:”uhJWHdwF”,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”],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/passkey-login-button.js”,scope:()=>[s.default],isStrictMode:!0}),(0,a.default)(void 0,”passkey-login-button:PasskeyLoginButton”))},2475:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{camelize:()=>M,capitalize:()=>L,classify:()=>x,dasherize:()=>D,decamelize:()=>A,getString:()=>o,getStrings:()=>a,setStrings:()=>r,underscore:()=>E,w:()=>C});class s{constructor(e,t,i){this.limit=e,this.func=t,this.store=i,this.size=0,this.misses=0,this.hits=0,this.store=i||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)))}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}}let n={};function r(e){n=e}function a(){return n}function o(e){return n[e]}let l=/[ _]/g,u=new s(1e3,e=>A(e).replace(l,”-“)),d=/(\-|\_|\.|\s)+(.)?/g,c=/(^|\/)([A-Z])/g,p=new s(1e3,e=>e.replace(d,(e,t,i)=>i?i.toUpperCase():””).replace(c,e=>e.toLowerCase())),h=/^(\-|_)+(.)?/,m=/(.)(\-|\_|\.|\s)+(.)?/g,g=/(^|\/|\.)([a-z])/g,f=new s(1e3,e=>{let t=(e,t,i)=>i?`_${i.toUpperCase()}`:””,i=(e,t,i,s)=>t+(s?s.toUpperCase():””),s=e.split(“/”);for(let e=0;ee.toUpperCase())}),_=/([a-z\d])([A-Z]+)/g,y=/\-|\s+/g,b=new s(1e3,e=>e.replace(_,”$1_$2″).replace(y,”_”).toLowerCase()),w=/(^|\/)([a-z\u00C0-\u024F])/g,k=new s(1e3,e=>e.replace(w,e=>e.toUpperCase())),T=/([a-z\d])([A-Z])/g,S=new s(1e3,e=>e.replace(T,”$1_$2″).toLowerCase());function C(e){return e.split(/\s+/)}function A(e){return S.get(e)}function D(e){return u.get(e)}function M(e){return p.get(e)}function x(e){return f.get(e)}function E(e){return b.get(e)}function L(e){return k.get(e)}},2481:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>l});var s=i(91409),n=i(46569),r=i(96009),a=i(69209),o=i(56699);class l extends s.default{get title(){let e=this.args.badge?.description;if(e)return(0,r.default)(`=l++?null:r[n.to])}(t,C),t;case r.PROPS:return s(t,C,S.properties),t;case r.THUNK:return w=t,k=i.patch(t,C,i),w&&k&&w!==k&&w.parentNode&&w.parentNode.replaceChild(k,w),k;default:return t}}},2676:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>l});var s=i(91409),n=i(4507),r=i(13692),a=i(69209),o=i(56699);class l extends s.default{get isActive(){return this.args.tab.id===this.args.currentTabId}get classNames(){let 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}`}static{(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:”pOsAB75I”,block:'[[[1,”\\n “],[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-label”,[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,[32,0],[“click”,[30,2]],null],[4,[32,0],[“keydown”,[30,2]],null],[12],[1,”\\n “],[1,[28,[32,1],[[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],[1,”\\n “]],[“@tab”,”@onTabClick”,”&default”],[“if”,”yield”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-menu/menu-tab.js”,scope:()=>[n.on,r.default],isStrictMode:!0}),this)}}},2679:function(e,t,i){i(99526).defineLocale(“sq”,{months:”Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor”.split(“_”),monthsShort:”Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj”.split(“_”),weekdays:”E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë”.split(“_”),weekdaysShort:”Die_Hën_Mar_Mër_Enj_Pre_Sht”.split(“_”),weekdaysMin:”D_H_Ma_Më_E_P_Sh”.split(“_”),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return”M”===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},2742:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>S,getAndClearUnhandledThemeErrors:()=>b,loadThemes:()=>f}),i(1160),i(68117);var s=i(24310);globalThis.dt7948=s.r,i(14280),i(83106),i(66142);var n=i(33726),r=i(52381),a=i(88109),o=i(721),l=i.n(o),u=i(35639),d=i(41043),c=i(64078),p=i(93390);(0,n.registerDiscourseImplicitInjections)();let h=[],m=[];async function g(e){let t=e.dataset.themeId;try{let i=(await import(e.href)).default;for(let[e,s]of Object.entries(i))define(`discourse/theme-${t}/${e}`,()=>s)}catch(t){console.error(`Failed to load theme ${e.dataset.themeId} from ${e.href}`,String(t)),y({themeId:e.dataset.themeId,error:t})}}async function f(){let e=[…document.querySelectorAll(“link[rel=modulepreload][data-theme-id]”)].map(g);await Promise.all(e)}window.moduleBroker={lookup:async e=>l()(e)};class _ extends r.default{modulePrefix=”discourse”;rootElement=”#main”;customEvents={paste:”paste”};Resolver=(0,p.buildResolver)(“discourse”);start(){(function(){if(T)return;let e=”ℹ️ “,t=document.querySelector(“meta[name=generator]”)?.content,i=t?.split(” “);if(i){let t=i[1],s=i[5]?.substr(0,10);e+=`Discourse v${t} — https://github.com/discourse/discourse/commits/${s} — `}console.log(e+=`Ember v${a.A}`),T=!0})(),document.querySelectorAll(“noscript”).forEach(e=>e.remove()),(0,u.normalizeEmberEventHandling)(this),Error.stackTraceLimit&&(Error.stackTraceLimit=1/0),window.history.scrollRestoration=”manual”,function(e){let t=[],i=[],s=[],n=[];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/”))i.push(e);else{let t=function(e){let t=e.match(/^discourse\/theme\-(-?\d+)\//);if(t)return parseInt(t[1],10)}(e);(void 0!==t||e.startsWith(“discourse/plugins/”))&&(e.includes(“/pre-initializers/”)?s.push([e,t]):(e.includes(“/initializers/”)||e.includes(“/api-initializers/”))&&n.push([e,t]))}for(let i of t)e.initializer(w(i));for(let t of i)e.instanceInitializer(w(t));for(let[t,i]of s)e.initializer(k(t,i));for(let[t,i]of n)e.instanceInitializer(k(t,i));for(let[t,i]of h.entries())e.instanceInitializer({name:`_discourse_plugin_${t}`,after:”inject-objects”,initialize:()=>(0,c.withPluginApi)(i.version,i.code)})}(this)}_registerPluginCode(e,t){h.push({version:e,code:t})}ready(){performance.mark(“discourse-ready”),document.querySelector(“#d-splash”)?.remove()}}function y({themeId:e,error:t}){let i=new CustomEvent(“discourse-error”,{cancelable:!0,detail:{themeId:e,error:t}});document.dispatchEvent(i)&&m.push(i)}function b(){let e=m;return m=[],e}function w(e){let t=l()(e,null,null,!0);if(!t)throw Error(e+” must export an initializer.”);let i=t.default;if(!i)throw Error(e+” must have a default export”);return i.name||(i.name=e.slice(e.lastIndexOf(“/”)+1)),i}function k(e,t){let i;try{i=w(e)}catch(e){if(!(!t||(0,d.isTesting)()))return void y({themeId:t,error:e});throw e}let s=i.initialize;return i.initialize=e=>{try{return s.call(i,e.__container__,e)}catch(e){if(!t||(0,d.isTesting)())throw e;y({themeId:t,error:e})}},i}let T=!1,S=_},2800:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>d});var s=i(69209),n=i(12322),r=i(94004),a=i(94655),o=i(97677),l=i(69666),u=i(56699);class d extends l.default{static{(0,s.setComponentTemplate)((0,u.createTemplateFactory)({id:”ALTKiE7X”,block:'[[[1,”\\n “],[10,0],[14,0,”controls”],[12],[1,”\\n “],[8,[32,0],[[16,1,[28,[32,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,[32,1],[“user-“,[30,0,[“elementId”]]],null]],[12],[1,”\\n “],[1,[30,0,[“field”,”name”]]],[41,[51,[30,0,[“field”,”required”]]],[[[1,” “],[1,[28,[32,2],[“user_fields.optional”],null]]],[]],null],[13],[1,”\\n”],[41,[30,0,[“validation”,”failed”]],[[[1,” “],[8,[32,3],null,[[“@validation”],[[30,0,[“validation”]]]],null],[1,”\\n”]],[]],[[[1,” “],[10,0],[14,0,”instructions”],[12],[1,[28,[32,4],[[30,0,[“field”,”description”]]],null]],[13],[1,”\\n”]],[]]],[1,” “],[13],[1,”\\n “]],[],[“unless”,”if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/user-fields/text.js”,scope:()=>[s.Input,n.concat,o.i18n,a.default,r.htmlSafe],isStrictMode:!0}),this)}}},2850:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{ID_CONSTRAINT:()=>j,clearCustomLastUnreadUrlCallbacks:()=>H,default:()=>O,loadTopicView:()=>I,mergeTopic:()=>B,movePosts:()=>U,registerCustomLastUnreadUrlCallback:()=>Y});var s=i(69680),n=i(22921),r=i(57539),a=i(43037),o=i(72865),l=i(3071),u=i(89767),d=i(15254),c=i(82225),p=i(14455),h=i(23699),m=i(80558),g=i(49661),f=i(41940),_=i(71186),y=i(93768),b=i(88671),w=i(92167),k=i(46803),T=i(97898),S=i(9635),C=i(54038),A=i(98225),D=i(32267),M=i(6262),x=i(87013),E=i(53766),L=i(97677),P=i(64569);let F=(0,i(8022).A)(i(69680)).cached;function I(e,t){let i=(0,b.deepMerge)({},t),s=`/t/${e.id}`,n=(i.nearPost?`${s}/${i.nearPost}`:s)+”.json”;return delete i.nearPost,delete i.__type,delete i.store,w.default.getAndRemove(`topic_${e.id}`,()=>(0,d.ajax)(n,{data:i})).then(async t=>(t.categories?.forEach(t=>e.site.updateCategory(t)),e.updateFromJson(t),await O.applyTransformations([e]),t))}let j=/^\d+$/,N=[];class O extends D.default{static NotificationLevel={WATCHING:3,TRACKING:2,REGULAR:1,MUTED:0};static munge(e){return delete e.category,e.bookmarks=e.bookmarks||[],e}static createActionSummary(e){if(e.actions_summary){let t=n.default.create();e.actions_summary=e.actions_summary.map(i=>{i.post=e,i.actionType=M.default.current().postActionTypeById(i.id);let s=C.default.create(i);return t.set(i.actionType.get(“name_key”),s),s}),e.set(“actionByName”,t)}}static update(e,t,i={}){void 0!==t.categoryId&&(t.category_id=t.categoryId,delete t.categoryId),e.get(“isPrivateMessage”)&&delete t.category_id;let s={…t};return i.fastEdit&&(s.keep_existing_draft=!0),(0,d.ajax)(e.get(“url”),{type:”PUT”,data:JSON.stringify(s),contentType:”application/json”}).then(i=>{t.title=i.basic_topic.title,t.fancy_title=i.basic_topic.fancy_title,e.is_shared_draft&&(t.destination_category_id=t.category_id,delete t.category_id),e.setProperties(t)})}static create(){let e=super.create.apply(this,arguments);return this.createActionSummary(e),e}static find(e,t){let i=(0,_.default)(“/t/”)+e;t.nearPost&&(i+=`/${t.nearPost}`);let s={};return t.postsAfter&&(s.posts_after=t.postsAfter),t.postsBefore&&(s.posts_before=t.postsBefore),t.trackVisit&&(s.track_visit=!0),t.userFilters&&t.userFilters.length>0&&(s.username_filters=[],t.userFilters.forEach(function(e){s.username_filters.push(e)})),!0===t.summary&&(s.summary=!0),(0,d.ajax)(`${i}.json`,{data:s})}static changeOwners(e,t){let i=(0,d.ajax)(`/t/${e}/change-owner`,{type:”POST”,data:t}).then(e=>{if(e.success)return e;i.reject(Error(“error changing ownership of posts”))});return i}static changeTimestamp(e,t){let i=(0,d.ajax)(`/t/${e}/change-timestamp`,{type:”PUT”,data:{timestamp:t}}).then(e=>{if(e.success)return e;i.reject(Error(“error updating timestamp of topic”))});return i}static bulkOperation(e,t,i,s){let n={topic_ids:e.mapBy(“id”),operation:t,tracked:s};return i&&i.silent&&(n.silent=!0),(0,d.ajax)(“/topics/bulk”,{type:”PUT”,data:n})}static bulkOperationByFilter(e,t,i,s){let n={filter:e,operation:t,tracked:s};return i&&(i.categoryId&&(n.category_id=i.categoryId),i.includeSubcategories&&(n.include_subcategories=!0),i.tagName&&(n.tag_name=i.tagName),i.private_message_inbox&&(n.private_message_inbox=i.private_message_inbox,i.group_name&&(n.group_name=i.group_name))),(0,d.ajax)(“/topics/bulk”,{type:”PUT”,data:n})}static resetNew(e,t,i={}){let{tracked:s,tag:n,topicIds:r}={tracked:!1,tag:null,topicIds:null,…i},a={tracked:s};return e&&(a.category_id=e.id,a.include_subcategories=t),n&&(a.tag_id=n.id),r&&(a.topic_ids=r),i.dismissPosts&&(a.dismiss_posts=i.dismissPosts),i.dismissTopics&&(a.dismiss_topics=i.dismissTopics),i.untrack&&(a.untrack=i.untrack),(0,d.ajax)(“/topics/reset-new”,{type:”PUT”,data:a})}static pmResetNew(e={}){let t={};return e.topicIds&&(t.topic_ids=e.topicIds),e.inbox&&(t.inbox=e.inbox,e.groupName&&(t.group_name=e.groupName)),(0,d.ajax)(“/topics/pm-reset-new”,{type:”PUT”,data:t})}static idForSlug(e){return(0,d.ajax)(`/t/id_for/${e}`)}static setSlowMode(e,t,i){let s={seconds:t};return s.enabled_until=i,(0,d.ajax)(`/t/${e}/slow_mode`,{type:”PUT”,data:s})}static async applyTransformations(e){await (0,y.applyModelTransformations)(“topic”,e)}static{dt7948.g(this.prototype,”currentUser”,[o.service])}#t=void dt7948.i(this,”currentUser”);static{dt7948.g(this.prototype,”siteSettings”,[o.service])}#i=void dt7948.i(this,”siteSettings”);static{dt7948.g(this.prototype,”deleted_by”,[s.tracked])}#R=void dt7948.i(this,”deleted_by”);static{dt7948.g(this.prototype,”deleted_at”,[s.tracked])}#U=void dt7948.i(this,”deleted_at”);message=null;errorLoading=!1;static{dt7948.g(this.prototype,”lastPosterUser”,[(0,a.alias)(“lastPoster.user”)])}#B=void dt7948.i(this,”lastPosterUser”);static{dt7948.g(this.prototype,”lastPosterGroup”,[(0,a.alias)(“lastPoster.primary_group”)])}#Y=void dt7948.i(this,”lastPosterGroup”);static{dt7948.g(this.prototype,”allowedGroups”,[(0,a.alias)(“details.allowed_groups”)])}#H=void dt7948.i(this,”allowedGroups”);static{dt7948.g(this.prototype,”deleted”,[(0,a.notEmpty)(“deleted_at”)])}#q=void dt7948.i(this,”deleted”);static{dt7948.g(this.prototype,”printUrl”,[(0,p.fmt)(“url”,”%@/print”)])}#z=void dt7948.i(this,”printUrl”);static{dt7948.g(this.prototype,”isPrivateMessage”,[(0,a.equal)(“archetype”,”private_message”)])}#$=void dt7948.i(this,”isPrivateMessage”);static{dt7948.g(this.prototype,”isBanner”,[(0,a.equal)(“archetype”,”banner”)])}#V=void dt7948.i(this,”isBanner”);static{dt7948.g(this.prototype,”bookmarkCount”,[(0,a.alias)(“bookmarks.length”)])}#W=void dt7948.i(this,”bookmarkCount”);static{dt7948.g(this.prototype,”isPinnedUncategorized”,[(0,a.and)(“pinned”,”category.isUncategorizedCategory”)])}#K=void dt7948.i(this,”isPinnedUncategorized”);static{dt7948.g(this.prototype,”hasExcerpt”,[(0,a.notEmpty)(“excerpt”)])}#G=void dt7948.i(this,”hasExcerpt”);static{dt7948.g(this.prototype,”readLastPost”,[(0,p.propertyEqual)(“last_read_post_number”,”highest_post_number”)])}#Q=void dt7948.i(this,”readLastPost”);static{dt7948.g(this.prototype,”canClearPin”,[(0,a.and)(“pinned”,”readLastPost”)])}#J=void dt7948.i(this,”canClearPin”);static{dt7948.g(this.prototype,”canEditTags”,[(0,a.or)(“details.can_edit”,”details.can_edit_tags”)])}#X=void dt7948.i(this,”canEditTags”);static{dt7948.g(this.prototype,”_details”,[s.tracked],function(){return this.store.createRecord(“topicDetails”,{id:this.id,topic:this})})}#Z=void dt7948.i(this,”_details”);visited(e,t){return e>=t}static{dt7948.n(this.prototype,”visited”,[(0,m.default)(“last_read_post_number”,”highest_post_number”)])}creator(e){return e&&e.user}static{dt7948.n(this.prototype,”creator”,[(0,m.default)(“posters.firstObject”)])}lastPoster(e){if(e&&e.length>0)return e.filter(e=>e.extras?.includes(“latest”))[0]||e.firstObject}static{dt7948.n(this.prototype,”lastPoster”,[(0,m.default)(“posters.[]”)])}featuredUsers(e,t,i){let s=e.length;if(this.isPrivateMessage&&t&&s<5){let i=0;if(s>1){let t=e[s-1];t.extras&&t.extras.includes(“latest”)&&(i=1)}let n=e.map(e=>e.user&&e.user.id).filter(e=>e);t.some(t=>!n.includes(t.user_id)&&(e.splice(e.length-i,0,t),5===e.length)||!1)}return this.isPrivateMessage&&i>5&&(e.splice(3,1),e.push({moreCount:`+${i-5+1}`})),e}static{dt7948.n(this.prototype,”featuredUsers”,[(0,m.default)(“posters.[]”,”participants.[]”,”allowed_user_count”)])}fancyTitle(e){return(0,T.fancyTitle)(e,this.siteSettings.support_mixed_text_direction)}static{dt7948.n(this.prototype,”fancyTitle”,[(0,m.default)(“fancy_title”)])}bumpedAt(e,t){return e?new Date(e):t}static{dt7948.n(this.prototype,”bumpedAt”,[(0,m.default)(“bumped_at”,”createdAt”)])}bumpedAtTitle(e,t){let i=”YYYY-MM-DDTHH:mm:ss”;if(moment(e).isValid()&&moment(t).isValid())return moment(e).format(i)!==moment(t).format(i)?`${(0,L.i18n)(“topic.created_at”,{date:(0,f.longDate)(t)})}
${(0,L.i18n)(“topic.bumped_at”,{date:(0,f.longDate)(e)})}`:(0,L.i18n)(“topic.created_at”,{date:(0,f.longDate)(t)})}static{dt7948.n(this.prototype,”bumpedAtTitle”,[(0,m.default)(“bumpedAt”,”createdAt”)])}createdAt(e){return new Date(e)}static{dt7948.n(this.prototype,”createdAt”,[(0,m.default)(“created_at”)])}postStream(){return this.store.createRecord(“postStream”,{id:this.id,topic:this})}static{dt7948.n(this.prototype,”postStream”,[m.default])}visibleListTags(e){if(!e||!this.siteSettings.suppress_overlapping_tags_in_list)return e;let t=this.title.toLowerCase(),i=[];return e.forEach(function(e){t.includes(e.toLowerCase())||i.push(e)}),i}static{dt7948.n(this.prototype,”visibleListTags”,[(0,m.default)(“tags”)])}get relatedMessages(){return this.get(“related_messages”)?.map(e=>this.store.createRecord(“topic”,e))}static{dt7948.n(this.prototype,”relatedMessages”,[F,r.dependentKeyCompat])}get suggestedTopics(){return this.get(“suggested_topics”)?.map(e=>this.store.createRecord(“topic”,e))}static{dt7948.n(this.prototype,”suggestedTopics”,[F,r.dependentKeyCompat])}replyCount(e){return e-1}static{dt7948.n(this.prototype,”replyCount”,[(0,m.default)(“posts_count”)])}get details(){return this._details}set details(e){if(e instanceof x.default){this._details=e;return}this._details=this.store.createRecord(“topicDetails”,e)}invisible(e){return void 0!==e?!e:void 0}static{dt7948.n(this.prototype,”invisible”,[(0,m.default)(“visible”)])}visibilityReasonTranslated(){if(this.visibility_reason_id&&this.visibility_reason_id!==h.TOPIC_VISIBILITY_REASONS.unknown){let e=Object.keys(h.TOPIC_VISIBILITY_REASONS).find(e=>h.TOPIC_VISIBILITY_REASONS[e]===this.visibility_reason_id);return(0,L.i18n)(`topic_statuses.visibility_reasons.${e}`)}return””}static{dt7948.n(this.prototype,”visibilityReasonTranslated”,[(0,m.default)(“visibility_reason_id”)])}searchContext(e){return{type:”topic”,id:e}}static{dt7948.n(this.prototype,”searchContext”,[(0,m.default)(“id”)])}get category(){return P.default.findById(this.category_id)}static{dt7948.n(this.prototype,”category”,[(0,n.computed)(“category_id”,”site.categoriesById.[]”)])}set category(e){this.set(“category_id”,e?.id)}shareUrl(e){return(0,u.resolveShareUrl)(e,this.currentUser)}static{dt7948.n(this.prototype,”shareUrl”,[(0,m.default)(“url”)])}url(e,t){return 0===(t=t||””).trim().length&&(t=”topic”),`${(0,_.default)(“/t/”)}${t}/${e}`}static{dt7948.n(this.prototype,”url”,[(0,m.default)(“id”,”slug”)])}urlForPostNumber(e){let t=this.url;return e>0&&(t+=`/${e}`),t}totalUnread(e,t){return(0,g.default)(“The totalUnread property of the topic model is deprecated”,{id:”discourse.topic.totalUnread”}),e||t}static{dt7948.n(this.prototype,”totalUnread”,[(0,m.default)(“unread_posts”,”new_posts”)])}displayNewPosts(e,t){return(0,g.default)(“The displayNewPosts property of the topic model is deprecated”,{id:”discourse.topic.totalUnread”}),e||t}static{dt7948.n(this.prototype,”displayNewPosts”,[(0,m.default)(“unread_posts”,”new_posts”)])}lastReadUrl(e){return this.urlForPostNumber(e)}static{dt7948.n(this.prototype,”lastReadUrl”,[(0,m.default)(“last_read_post_number”,”url”)])}lastUnreadUrl(e,t){let i=null;if(N.some(e=>{let t=e(this);if(t)return i=t,!0}),i)return i;if(e>=t&&this.get(“category.navigate_to_first_post_after_read”))return this.urlForPostNumber(1);let s=e+1;return s>t&&(s=t),this.urlForPostNumber(s)}static{dt7948.n(this.prototype,”lastUnreadUrl”,[(0,m.default)(“last_read_post_number”,”highest_post_number”,”url”)])}lastPostUrl(e){return this.urlForPostNumber(e)}static{dt7948.n(this.prototype,”lastPostUrl”,[(0,m.default)(“highest_post_number”,”url”)])}firstPostUrl(){return this.urlForPostNumber(1)}static{dt7948.n(this.prototype,”firstPostUrl”,[(0,m.default)(“url”)])}summaryUrl(){let e=this.has_summary?”?filter=summary”:””;return`${this.urlForPostNumber(1)}${e}`}static{dt7948.n(this.prototype,”summaryUrl”,[(0,m.default)(“url”)])}lastPosterUrl(e){return(0,S.userPath)(e)}static{dt7948.n(this.prototype,”lastPosterUrl”,[(0,m.default)(“last_poster.username”)])}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}static{dt7948.n(this.prototype,”viewsHeat”,[(0,m.default)(“views”)])}archetypeObject(e){return M.default.currentProp(“archetypes”).findBy(“id”,e)}static{dt7948.n(this.prototype,”archetypeObject”,[(0,m.default)(“archetype”)])}toggleStatus(e){return this.toggleProperty(e),this.saveStatus(e,!!this.get(e))}saveStatus(e,t,i){return”closed”===e&&this.incrementProperty(“posts_count”),(0,d.ajax)(`${this.url}/status`,{type:”PUT”,data:{status:e,enabled:!!t,until:i}})}makeBanner(){return(0,d.ajax)(`/t/${this.id}/make-banner`,{type:”PUT”}).then(()=>this.set(“archetype”,”banner”))}removeBanner(){return(0,d.ajax)(`/t/${this.id}/remove-banner`,{type:”PUT”}).then(()=>this.set(“archetype”,”regular”))}afterPostBookmarked(e){e.set(“bookmarked”,!0)}firstPost(){let e=this.postStream,t=e.get(“posts.firstObject”);if(t&&1===t.post_number)return l.Promise.resolve(t);let i=e.findPostIdForPostNumber(1);return i?this.postById(i):this.postStream.loadPostByPostNumber(1)}postById(e){let t=this.postStream.findLoadedPost(e);return t?l.Promise.resolve(t):this.postStream.loadPost(e)}deleteBookmarks(){return(0,d.ajax)(`/t/${this.id}/remove_bookmarks`,{type:”PUT”})}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”);let e=this.bookmarks.filterBy(“bookmarkable_type”,”Post”).mapBy(“bookmarkable_id”);return e.forEach(e=>{let t=this.postStream.findLoadedPost(e);t&&t.clearBookmark()}),this.set(“bookmarks”,[]),e}createGroupInvite(e){return(0,d.ajax)(`/t/${this.id}/invite-group`,{type:”POST”,data:{group:e}})}createInvite(e,t,i){return(0,d.ajax)(`/t/${this.id}/invite`,{type:”POST”,data:{user:e,group_ids:t,custom_message:i}})}generateInviteLink(e,t,i){return(0,d.ajax)(“/invites”,{type:”POST”,data:{email:e,skip_email:!0,group_ids:t,topic_id:i}})}destroy(e,t={}){return(0,d.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=>this.category?.moderating_group_ids?.includes(e.id))||e.can_delete_all_posts_and_topics)||S.default.redirectTo(“/”)}).catch(c.popupAjaxError)}recover(){return this.setProperties({deleted_at:null,deleted_by:null,”details.can_delete”:!0,”details.can_recover”:!1}),(0,d.ajax)(`/t/${this.id}/recover`,{data:{context:window.location.pathname},type:”PUT”})}updateFromJson(e){let 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=>A.default.create(e))),this}reload(e={}){let t=e.post_number?`/t/${this.id}?post_number=${e.post_number}`:`/t/${this.id}`;return(0,d.ajax)(t,{type:”GET”}).then(e=>{this.updateFromJson(e)})}clearPin(){this.setProperties({pinned:!1,unpinned:!0}),(0,d.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,d.ajax)(`/t/${this.id}/re-pin`,{type:”PUT”}).then(null,()=>{this.setProperties({pinned:!0,unpinned:!1})})}escapedExcerpt(e){return(0,k.emojiUnescape)(e)}static{dt7948.n(this.prototype,”escapedExcerpt”,[(0,m.default)(“excerpt”)])}excerptTruncated(e){return e&&”…”===e.slice(-8)}static{dt7948.n(this.prototype,”excerptTruncated”,[(0,m.default)(“excerpt”)])}archiveMessage(){this.set(“archiving”,!0);let e=(0,d.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);let e=(0,d.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,d.ajax)(`/t/${this.id}/publish`,{type:”PUT”,data:this.getProperties(“destination_category_id”)}).then(()=>this.set(“destination_category_id”,null)).catch(c.popupAjaxError)}updateDestinationCategory(e){return this.set(“destination_category_id”,e),(0,d.ajax)(`/t/${this.id}/shared-draft`,{type:”PUT”,data:{category_id:e}})}convertTopic(e,t){let i={type:”PUT”};return t&&t.categoryId&&(i.data={category_id:t.categoryId}),(0,d.ajax)(`/t/${this.id}/convert-topic/${e}`,i)}resetBumpDate(){return(0,d.ajax)(`/t/${this.id}/reset-bump-date`,{type:”PUT”}).catch(c.popupAjaxError)}updateTags(e){return e&&0!==e.length||(e=[“”]),(0,d.ajax)(`/t/${this.id}/tags`,{type:”PUT”,data:{tags:e}})}}function R(e){if(e.success)return(0,E.flushMap)(),e;throw Error(“error moving posts topic”)}function U(e,t){return(0,d.ajax)(`/t/${e}/move-posts`,{type:”POST”,data:t}).then(R)}function B(e,t){return(0,d.ajax)(`/t/${e}/merge-topic`,{type:”POST”,data:t}).then(R)}function Y(e){N.push(e)}function H(){N.clear()}},2867:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(69209),n=i(49661),r=i(5897);let a={after:[“populate-template-map”],initialize(e){for(let[t,i]of r.default.templates.entries()){if(!t.startsWith(“components/”))continue;let r=t.slice(11),a=e.resolveRegistration(`component:${r}`);a||(a=class extends s.default{},e.register(`component:${r}`,a)),(0,n.default)(`[${i}] Storing component templates in the ‘templates/components/’ directory is deprecated. Move them to the ‘components/’ directory instead.`,{id:”discourse.component-template-resolving”,url:”https://meta.discourse.org/t/370019″}),(0,s.setComponentTemplate)(window.require(i).default,a)}}}},3042:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{MAX_SECOND_FACTOR_NAME_LENGTH:()=>K,SECOND_FACTOR_METHODS:()=>W,addSaveableUserField:()=>Z,addSaveableUserOptionField:()=>et,default:()=>en,extendTextSizeCookie:()=>Q});var s=i(69680),n=i(42535),r=i(22921),a=i(57539),o=i(43037),l=i(33300),u=i(88821),d=i(58377),c=i(72865),p=i(2475),h=i(94004),m=i(44595),g=i(3071),f=i(15254),_=i(14455),y=i(23699),b=i(43654),w=i(80558),k=i(49661),T=i(41043),S=i(41940),C=i(21884),A=i(71186),D=i(16068),M=i(12255),x=i(92167),E=i(90695),L=i(46803),P=i(9635),F=i(62806),I=i(78238),j=i(98225),N=i(64569),O=i(25618),R=i(32267),U=i(6262),B=i(45505),Y=i(70248),H=i(62516),q=i(88440),z=i(97153),$=i(37299),V=i(97677);let W={TOTP:1,BACKUP_CODE:2,SECURITY_KEY:3},K=300,G=”text_size”;function Q(){let e=(0,b.default)(G);e&&(0,b.default)(G,e,{path:”/”,expires:365})}let J=e=>-100>moment().diff(e,”years”),X=[“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 Z(e){X.push(e)}let ee=[“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”,”interface_color_mode”,”dynamic_favicon”,”enable_quoting”,”enable_smart_lists”,”enable_defer”,”enable_markdown_monospace_font”,”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”,”hide_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”,”topics_unread_when_closed”,”composition_mode”];function et(e){ee.push(e)}function ei(e){return(0,r.computed)(`user_option.${e}`,{get(e){return(0,k.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,k.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)}})}let es=dt7948.c(class e extends R.default.extend(l.default){static createCurrent(){let e=x.default.get(“currentUser”);if(e){if(e.isCurrent=!0,e.primary_group_id){let 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));let t=(0,C.getOwnerWithFallback)(this).lookup(“service:store”).createRecord(“user”,e);return t.statusManager.trackStatus(),t}return null}static{dt7948.g(this.prototype,”appEvents”,[c.service])}#ee=void dt7948.i(this,”appEvents”);static{dt7948.g(this.prototype,”userTips”,[c.service])}#k=void dt7948.i(this,”userTips”);static{dt7948.g(this.prototype,”do_not_disturb_until”,[s.tracked])}#et=void dt7948.i(this,”do_not_disturb_until”);static{dt7948.g(this.prototype,”status”,[s.tracked])}#ei=void dt7948.i(this,”status”);static{dt7948.g(this.prototype,”dismissed_banner_key”,[s.tracked])}#es=void dt7948.i(this,”dismissed_banner_key”);static{dt7948.g(this.prototype,”mailing_list_mode”,[ei(“mailing_list_mode”)])}#en=void dt7948.i(this,”mailing_list_mode”);static{dt7948.g(this.prototype,”external_links_in_new_tab”,[ei(“external_links_in_new_tab”)])}#er=void dt7948.i(this,”external_links_in_new_tab”);static{dt7948.g(this.prototype,”enable_quoting”,[ei(“enable_quoting”)])}#ea=void dt7948.i(this,”enable_quoting”);static{dt7948.g(this.prototype,”enable_smart_lists”,[ei(“enable_smart_lists”)])}#eo=void dt7948.i(this,”enable_smart_lists”);static{dt7948.g(this.prototype,”enable_markdown_monospace_font”,[ei(“enable_markdown_monospace_font”)])}#el=void dt7948.i(this,”enable_markdown_monospace_font”);static{dt7948.g(this.prototype,”dynamic_favicon”,[ei(“dynamic_favicon”)])}#eu=void dt7948.i(this,”dynamic_favicon”);static{dt7948.g(this.prototype,”automatically_unpin_topics”,[ei(“automatically_unpin_topics”)])}#ed=void dt7948.i(this,”automatically_unpin_topics”);static{dt7948.g(this.prototype,”likes_notifications_disabled”,[ei(“likes_notifications_disabled”)])}#ec=void dt7948.i(this,”likes_notifications_disabled”);static{dt7948.g(this.prototype,”hide_profile”,[ei(“hide_profile”)])}#ep=void dt7948.i(this,”hide_profile”);static{dt7948.g(this.prototype,”hide_presence”,[ei(“hide_presence”)])}#eh=void dt7948.i(this,”hide_presence”);static{dt7948.g(this.prototype,”title_count_mode”,[ei(“title_count_mode”)])}#em=void dt7948.i(this,”title_count_mode”);static{dt7948.g(this.prototype,”enable_defer”,[ei(“enable_defer”)])}#eg=void dt7948.i(this,”enable_defer”);static{dt7948.g(this.prototype,”timezone”,[ei(“timezone”)])}#ef=void dt7948.i(this,”timezone”);static{dt7948.g(this.prototype,”skip_new_user_tips”,[ei(“skip_new_user_tips”)])}#e_=void dt7948.i(this,”skip_new_user_tips”);static{dt7948.g(this.prototype,”default_calendar”,[ei(“default_calendar”)])}#ey=void dt7948.i(this,”default_calendar”);static{dt7948.g(this.prototype,”bookmark_auto_delete_preference”,[ei(“bookmark_auto_delete_preference”)])}#eb=void dt7948.i(this,”bookmark_auto_delete_preference”);static{dt7948.g(this.prototype,”seen_popups”,[ei(“seen_popups”)])}#ev=void dt7948.i(this,”seen_popups”);static{dt7948.g(this.prototype,”should_be_redirected_to_top”,[ei(“should_be_redirected_to_top”)])}#ew=void dt7948.i(this,”should_be_redirected_to_top”);static{dt7948.g(this.prototype,”redirected_to_top”,[ei(“redirected_to_top”)])}#ek=void dt7948.i(this,”redirected_to_top”);static{dt7948.g(this.prototype,”treat_as_new_topic_start_date”,[ei(“treat_as_new_topic_start_date”)])}#eT=void dt7948.i(this,”treat_as_new_topic_start_date”);static{dt7948.g(this.prototype,”composition_mode”,[ei(“composition_mode”)])}#eS=void dt7948.i(this,”composition_mode”);static{dt7948.g(this.prototype,”hasPMs”,[(0,o.gt)(“private_messages_stats.all”,0)])}#eC=void dt7948.i(this,”hasPMs”);static{dt7948.g(this.prototype,”hasStartedPMs”,[(0,o.gt)(“private_messages_stats.mine”,0)])}#eA=void dt7948.i(this,”hasStartedPMs”);static{dt7948.g(this.prototype,”hasUnreadPMs”,[(0,o.gt)(“private_messages_stats.unread”,0)])}#eD=void dt7948.i(this,”hasUnreadPMs”);static{dt7948.g(this.prototype,”adminPath”,[(0,_.url)(“id”,”username_lower”,”/admin/users/%@1/%@2″)])}#eM=void dt7948.i(this,”adminPath”);static{dt7948.g(this.prototype,”isBasic”,[(0,o.equal)(“trust_level”,0)])}#ex=void dt7948.i(this,”isBasic”);static{dt7948.g(this.prototype,”isRegular”,[(0,o.equal)(“trust_level”,3)])}#eE=void dt7948.i(this,”isRegular”);static{dt7948.g(this.prototype,”isLeader”,[(0,o.equal)(“trust_level”,4)])}#eL=void dt7948.i(this,”isLeader”);static{dt7948.g(this.prototype,”canManageTopic”,[(0,o.or)(“staff”,”isLeader”)])}#eP=void dt7948.i(this,”canManageTopic”);static{dt7948.g(this.prototype,”sidebarCategoryIds”,[(0,o.alias)(“sidebar_category_ids”)])}#eF=void dt7948.i(this,”sidebarCategoryIds”);static{dt7948.g(this.prototype,”sidebarSections”,[(0,o.alias)(“sidebar_sections”)])}#eI=void dt7948.i(this,”sidebarSections”);static{dt7948.g(this.prototype,”sidebarTagNames”,[(0,o.mapBy)(“sidebarTags”,”name”)])}#ej=void dt7948.i(this,”sidebarTagNames”);static{dt7948.g(this.prototype,”groupsWithMessages”,[(0,o.filterBy)(“groups”,”has_messages”,!0)])}#eN=void dt7948.i(this,”groupsWithMessages”);static{dt7948.g(this.prototype,”canPickThemeWithCustomHomepage”,[(0,o.alias)(“can_pick_theme_with_custom_homepage”)])}#eO=void dt7948.i(this,”canPickThemeWithCustomHomepage”);static{dt7948.g(this.prototype,”canEditTags”,[(0,o.alias)(“can_edit_tags”)])}#X=void dt7948.i(this,”canEditTags”);numGroupsToDisplay=2;statusManager=new er(this);useRichEditor(e){return e===y.USER_OPTION_COMPOSITION_MODES.rich}static{dt7948.n(this.prototype,”useRichEditor”,[(0,w.default)(“user_option.composition_mode”)])}canBeDeleted(e,t){let i=this.siteSettings.delete_all_posts_max;return e&&t<=i}static{dt7948.n(this.prototype,"canBeDeleted",[(0,w.default)("can_be_deleted","post_count")])}stream(){return $.default.create({user:this})}static{dt7948.n(this.prototype,"stream",[(0,w.default)()])}bookmarks(){return j.default.create({user:this})}static{dt7948.n(this.prototype,"bookmarks",[(0,w.default)()])}postsStream(){return z.default.create({user:this})}static{dt7948.n(this.prototype,"postsStream",[(0,w.default)()])}userDraftsStream(){return q.default.create({user:this})}static{dt7948.n(this.prototype,"userDraftsStream",[(0,w.default)()])}get staff(){return this.admin||this.moderator}static{dt7948.n(this.prototype,"staff",[(0,r.computed)("admin","moderator")])}set staff(e){}get hasUnseenFeatures(){return this.staff&&this.get("has_unseen_features")}static{dt7948.n(this.prototype,"hasUnseenFeatures",[(0,r.computed)("has_unseen_features")])}destroySession(){return(0,f.ajax)(`/session/${this.username}`,{type:"DELETE"})}searchContext(e){return{type:"user",id:e,user:this}}static{dt7948.n(this.prototype,"searchContext",[(0,w.default)("username_lower")])}displayName(e,t){return this.siteSettings.enable_names&&!(0,m.isEmpty)(t)?t:e}static{dt7948.n(this.prototype,"displayName",[(0,w.default)("username","name")])}profileBackgroundUrl(e){return(0,m.isEmpty)(e)||!this.siteSettings.allow_profile_backgrounds?(0,h.htmlSafe)(""):(0,h.htmlSafe)("background-image: url("+(0,A.getURLWithCDN)(e)+")")}static{dt7948.n(this.prototype,"profileBackgroundUrl",[(0,w.default)("profile_background_upload_url")])}path(){return(0,P.userPath)(this.username_lower)}static{dt7948.n(this.prototype,"path",[(0,w.default)()])}userApiKeys(){let e=this.user_api_keys;if(e)return e.map(e=>{let t=r.default.create(e);return t.revoke=()=>{this.revokeApiKey(t)},t.undoRevoke=()=>{this.undoRevokeApiKey(t)},t})}static{dt7948.n(this.prototype,”userApiKeys”,[(0,w.default)()])}revokeApiKey(e){return(0,f.ajax)(“/user-api-key/revoke”,{type:”POST”,data:{id:e.get(“id”)}}).then(()=>{e.set(“revoked”,!0)})}undoRevokeApiKey(e){return(0,f.ajax)(“/user-api-key/undo-revoke”,{type:”POST”,data:{id:e.get(“id”)}}).then(()=>{e.set(“revoked”,!1)})}pmPath(e){let t=this.username_lower,i=e.details,s=i?.allowed_users,n=i?.allowed_groups;if(!n||s?.findBy(“id”,this.id))return(0,P.userPath)(`${t}/messages`);if(n){let e=n.find(e=>this.groups.some(t=>t.id===e.id));if(e)return(0,P.userPath)(`${t}/messages/group/${e.name}`)}}mutedTopicsPath(){return”latest”===(0,F.defaultHomepage)()?(0,A.default)(“/?state=muted”):(0,A.default)(“/latest?state=muted”)}static{dt7948.n(this.prototype,”mutedTopicsPath”,[(0,w.default)()])}watchingTopicsPath(){return”latest”===(0,F.defaultHomepage)()?(0,A.default)(“/?state=watching”):(0,A.default)(“/latest?state=watching”)}static{dt7948.n(this.prototype,”watchingTopicsPath”,[(0,w.default)()])}trackingTopicsPath(){return”latest”===(0,F.defaultHomepage)()?(0,A.default)(“/?state=tracking”):(0,A.default)(“/latest?state=tracking”)}static{dt7948.n(this.prototype,”trackingTopicsPath”,[(0,w.default)()])}username_lower(e){return e.toLowerCase()}static{dt7948.n(this.prototype,”username_lower”,[(0,w.default)(“username”)])}trustLevel(e){return U.default.currentProp(“trustLevels”).findBy(“id”,parseInt(e,10))}static{dt7948.n(this.prototype,”trustLevel”,[(0,w.default)(“trust_level”)])}previousVisitAt(e){return new Date(e)}static{dt7948.n(this.prototype,”previousVisitAt”,[(0,w.default)(“previous_visit_at”)])}suspended(e){return e&&moment(e).isAfter()}static{dt7948.n(this.prototype,”suspended”,[(0,w.default)(“suspended_till”)])}suspendedForever(e){return J(e)}static{dt7948.n(this.prototype,”suspendedForever”,[(0,w.default)(“suspended_till”)])}silenced(e){return e&&moment(e).isAfter()}static{dt7948.n(this.prototype,”silenced”,[(0,w.default)(“silenced_till”)])}silencedForever(e){return J(e)}static{dt7948.n(this.prototype,”silencedForever”,[(0,w.default)(“silenced_till”)])}suspendedTillDate(e){return(0,S.longDate)(e)}static{dt7948.n(this.prototype,”suspendedTillDate”,[(0,w.default)(“suspended_till”)])}silencedTillDate(e){return(0,S.longDate)(e)}static{dt7948.n(this.prototype,”silencedTillDate”,[(0,w.default)(“silenced_till”)])}sidebarTags(e){return e&&0!==e.length?e.sort((e,t)=>e.name.localeCompare(t.name)):[]}static{dt7948.n(this.prototype,”sidebarTags”,[(0,w.default)(“sidebar_tags.[]”)])}changeUsername(e){return(0,f.ajax)((0,P.userPath)(`${this.username_lower}/preferences/username`),{type:”PUT”,data:{new_username:e}})}addEmail(e){return(0,f.ajax)((0,P.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,f.ajax)((0,P.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){let t=this.getProperties(X.filter(t=>!e||e.includes(t)));(e?ee.filter(t=>e.includes(t)):ee).forEach(e=>{t[e]=this.get(`user_option.${e}`)});let i={};return[“muted”,”regular”,”watched”,”tracked”,”watched_first_post”].forEach(s=>{if(void 0===e||e.includes(`${s}_category_ids`)){let e=this.get(`${(0,p.camelize)(s)}Categories`);if(e){let n=e.map(e=>e.get(“id”));i[`${s}_category_ids`]=n,t[`${s}_category_ids`]=0===n.length?[-1]:n}}}),[“muted_tags”,”tracked_tags”,”watched_tags”,”watching_first_post_tags”].forEach(i=>{(void 0===e||e.includes(i))&&(t[i]=this.get(i)?this.get(i).join(“,”):””)}),[“sidebar_category_ids”,”sidebar_tag_names”].forEach(e=>{t[e]?.length===0&&(t[e]=null)}),this.set(“isSaving”,!0),(0,f.ajax)((0,P.userPath)(`${this.username_lower}.json`),{data:t,type:”PUT”}).then(e=>(this.setProperties(i),this.setProperties((0,r.getProperties)(e.user,”bio_excerpt”)),e)).finally(()=>{this.set(“isSaving”,!1)})}setPrimaryEmail(e){return(0,f.ajax)((0,P.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,f.ajax)((0,P.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,f.ajax)(“/session/forgot_password.json”,{data:{login:this.email||this.username},type:”POST”})}async removePassword(){return(0,f.ajax)((0,P.userPath)(`${this.username}/remove-password`),{type:”PUT”})}loadSecondFactorCodes(){return(0,f.ajax)(“/u/second_factors.json”,{type:”POST”})}requestSecurityKeyChallenge(){return(0,f.ajax)(“/u/create_second_factor_security_key.json”,{type:”POST”})}registerSecurityKey(e){return(0,f.ajax)(“/u/register_second_factor_security_key.json”,{data:e,type:”POST”})}trustedSession(){return(0,f.ajax)(“/u/trusted-session.json”)}createPasskey(){return(0,f.ajax)(“/u/create_passkey.json”,{type:”POST”})}registerPasskey(e){return(0,f.ajax)(“/u/register_passkey.json”,{data:e,type:”POST”})}deletePasskey(e){return(0,f.ajax)(`/u/delete_passkey/${e}`,{type:”DELETE”})}createSecondFactorTotp(){return(0,f.ajax)(“/u/create_second_factor_totp.json”,{type:”POST”})}enableSecondFactorTotp(e,t){return(0,f.ajax)(“/u/enable_second_factor_totp.json”,{data:{second_factor_token:e,name:t},type:”POST”})}disableAllSecondFactors(){return(0,f.ajax)(“/u/disable_second_factor.json”,{type:”PUT”})}updateSecondFactor(e,t,i,s){return(0,f.ajax)(“/u/second_factor.json”,{data:{second_factor_target:s,name:t,disable:i,id:e},type:”PUT”})}updateSecurityKey(e,t,i){return(0,f.ajax)(“/u/security_key.json”,{data:{name:t,disable:i,id:e},type:”PUT”})}toggleSecondFactor(e,t,i,s){return(0,f.ajax)(“/u/second_factor.json”,{data:{second_factor_token:e,second_factor_method:t,second_factor_target:i,enable:s},type:”PUT”})}generateSecondFactorCodes(){return(0,f.ajax)(“/u/second_factors_backup.json”,{type:”PUT”})}revokeAssociatedAccount(e){return(0,f.ajax)((0,P.userPath)(`${this.username}/preferences/revoke-account`),{data:{provider_name:e},type:”POST”})}async loadUserAction(e){let t=await (0,f.ajax)(`/user_actions/${e}.json`);if(!t?.user_action)return;let i=t.user_action;if((this.get(“stream.filter”)||i.action_type)!==i.action_type||!this.get(“stream.filter”)&&!this.inAllStream(i))return;i.title=(0,L.emojiUnescape)((0,F.escapeExpression)(i.title));let s=B.default.collapseStream([B.default.create(i)]);this.stream.set(“itemsLoaded”,this.stream.get(“itemsLoaded”)+1),this.stream.get(“content”).insertAt(0,s[0])}inAllStream(e){return e.action_type===B.default.TYPES.posts||e.action_type===B.default.TYPES.topics}filteredGroups(){return(this.groups||[]).filter(e=>!e.automatic||”moderators”===e.name)}static{dt7948.n(this.prototype,”filteredGroups”,[(0,w.default)(“groups.[]”)])}displayGroups(e,t){let i=e.slice(0,t);return 0===i.length?null:i}static{dt7948.n(this.prototype,”displayGroups”,[(0,w.default)(“filteredGroups”,”numGroupsToDisplay”)])}statsCountNonPM(){if((0,m.isEmpty)(this.statsExcludingPms))return 0;let e=0;return this.statsExcludingPms.forEach(t=>{this.inAllStream(t)&&(e+=t.count)}),e}static{dt7948.n(this.prototype,”statsCountNonPM”,[(0,w.default)(“statsExcludingPms.@each.count”)])}statsExcludingPms(){return(0,m.isEmpty)(this.stats)?[]:this.stats.rejectBy(“isPM”)}static{dt7948.n(this.prototype,”statsExcludingPms”,[(0,w.default)(“stats.@each.isPM”)])}findDetails(t){let i=this;return x.default.getAndRemove(`user_${i.get(“username”)}`,()=>{if(t&&t.existingRequest)return t.existingRequest;let e=t&&t.forCard;t&&delete t.forCard;let s=e?`${i.get(“username”)}/card.json`:`${i.get(“username”)}.json`;return(0,f.ajax)((0,P.userPath)(s),{data:t})}).then(t=>{if((0,m.isEmpty)(t.user.stats)||(t.user.stats=e.groupStats(t.user.stats.map(e=>(e.count&&(e.count=parseInt(e.count,10)),Y.default.create(e))))),!(0,m.isEmpty)(t.user.groups)&&!(0,m.isEmpty)(t.user.group_users)){let e=[];for(let i=0;i{e[t.get(“id”)]=t}),t.user.featured_user_badges=t.user.featured_user_badge_ids.map(t=>e[t])}return t.user.card_badge&&(t.user.card_badge=I.default.create(t.user.card_badge)),i.setProperties(t.user),i})}findStaffInfo(){return e.currentProp(“staff”)?(0,f.ajax)((0,P.userPath)(`${this.username_lower}/staff-info.json`)).then(e=>{this.setProperties(e)}):g.Promise.resolve(null)}pickAvatar(e,t){return(0,f.ajax)((0,P.userPath)(`${this.username_lower}/preferences/avatar/pick`),{type:”PUT”,data:{upload_id:e,type:t}})}selectAvatar(e){return(0,f.ajax)((0,P.userPath)(`${this.username_lower}/preferences/avatar/select`),{type:”PUT”,data:{url:e}})}isAllowedToUploadAFile(e){return this.staff||this.trust_level>0||this.siteSettings[`newuser_max_${“image”===e?”embedded_media”:”attachments”}`]>0}createInvite(e,t,i){return(0,f.ajax)(“/invites”,{type:”POST”,data:{email:e,group_ids:t,custom_message:i}})}generateInviteLink(e,t,i){return(0,f.ajax)(“/invites”,{type:”POST”,data:{email:e,skip_email:!0,group_ids:t,topic_id:i}})}get mutedCategories(){return this.site.lazy_load_categories&&this.muted_category_ids&&!N.default.hasAsyncFoundAll(this.muted_category_ids)&&N.default.asyncFindByIds(this.muted_category_ids).then(()=>this.notifyPropertyChange(“muted_category_ids”)),N.default.findByIds(this.get(“muted_category_ids”))}static{dt7948.n(this.prototype,”mutedCategories”,[a.dependentKeyCompat])}set mutedCategories(e){this.set(“muted_category_ids”,e.map(e=>e.id))}get regularCategories(){return this.site.lazy_load_categories&&this.regular_category_ids&&!N.default.hasAsyncFoundAll(this.regular_category_ids)&&N.default.asyncFindByIds(this.regular_category_ids).then(()=>this.notifyPropertyChange(“regular_category_ids”)),N.default.findByIds(this.get(“regular_category_ids”))}static{dt7948.n(this.prototype,”regularCategories”,[a.dependentKeyCompat])}set regularCategories(e){this.set(“regular_category_ids”,e.map(e=>e.id))}get trackedCategories(){return this.site.lazy_load_categories&&this.tracked_category_ids&&!N.default.hasAsyncFoundAll(this.tracked_category_ids)&&N.default.asyncFindByIds(this.tracked_category_ids).then(()=>this.notifyPropertyChange(“tracked_category_ids”)),N.default.findByIds(this.get(“tracked_category_ids”))}static{dt7948.n(this.prototype,”trackedCategories”,[a.dependentKeyCompat])}set trackedCategories(e){this.set(“tracked_category_ids”,e.map(e=>e.id))}get watchedCategories(){return this.site.lazy_load_categories&&this.watched_category_ids&&!N.default.hasAsyncFoundAll(this.watched_category_ids)&&N.default.asyncFindByIds(this.watched_category_ids).then(()=>this.notifyPropertyChange(“watched_category_ids”)),N.default.findByIds(this.get(“watched_category_ids”))}static{dt7948.n(this.prototype,”watchedCategories”,[a.dependentKeyCompat])}set watchedCategories(e){this.set(“watched_category_ids”,e.map(e=>e.id))}get watchedFirstPostCategories(){return this.site.lazy_load_categories&&this.watched_first_post_category_ids&&!N.default.hasAsyncFoundAll(this.watched_first_post_category_ids)&&N.default.asyncFindByIds(this.watched_first_post_category_ids).then(()=>this.notifyPropertyChange(“watched_first_post_category_ids”)),N.default.findByIds(this.get(“watched_first_post_category_ids”))}static{dt7948.n(this.prototype,”watchedFirstPostCategories”,[a.dependentKeyCompat])}set watchedFirstPostCategories(e){this.set(“watched_first_post_category_ids”,e.map(e=>e.id))}canDeleteAccount(e){return!this.siteSettings.enable_discourse_connect&&e}static{dt7948.n(this.prototype,”canDeleteAccount”,[(0,w.default)(“can_delete_account”)])}get sidebarLinkToFilteredList(){return this.get(“user_option.sidebar_link_to_filtered_list”)}static{dt7948.n(this.prototype,”sidebarLinkToFilteredList”,[a.dependentKeyCompat])}get sidebarShowCountOfNewItems(){return this.get(“user_option.sidebar_show_count_of_new_items”)}static{dt7948.n(this.prototype,”sidebarShowCountOfNewItems”,[a.dependentKeyCompat])}delete(){return this.can_delete_account?(0,f.ajax)((0,P.userPath)(this.username+”.json”),{type:”DELETE”,data:{context:window.location.pathname}}):g.Promise.reject((0,V.i18n)(“user.delete_yourself_not_allowed”))}updateNotificationLevel({level:t,expiringAt:i=null,actingUser:s=null}){return s||=e.current(),(0,f.ajax)(`${(0,P.userPath)(this.username)}/notification_level.json`,{type:”PUT”,data:{notification_level:t,expiring_at:i,acting_user_id:s.id}}).then(()=>{s.ignored_users||(s.ignored_users=[]),”normal”===t||”mute”===t?s.ignored_users.removeObject(this.username):”ignore”===t&&s.ignored_users.addObject(this.username)})}dismissBanner(e){this.set(“dismissed_banner_key”,e),(0,f.ajax)((0,P.userPath)(this.username+”.json”),{type:”PUT”,data:{dismissed_banner_key:e}})}checkEmail(){return(0,f.ajax)((0,P.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(){let e=(0,C.getOwnerWithFallback)(this).lookup(“service:store”);return(0,f.ajax)((0,P.userPath)(`${this.username_lower}/summary.json`)).then(t=>{let i=t.user_summary,s={},n={};return t.topics.forEach(t=>s[t.id]=e.createRecord(“topic”,t)),I.default.createFromJson(t).forEach(e=>n[e.id]=e),i.topics=i.topic_ids.map(e=>s[e]),i.replies.forEach(e=>{e.topic=s[e.topic_id],e.url=e.topic.urlForPostNumber(e.post_number),e.createdAt=new Date(e.created_at)}),i.links.forEach(e=>{e.topic=s[e.topic_id],e.post_url=e.topic.urlForPostNumber(e.post_number)}),i.badges&&(i.badges=i.badges.map(e=>{let t=n[e.badge_id];return t.count=e.count,t})),i.top_categories&&i.top_categories.forEach(e=>{e.parent_category_id&&(e.parentCategory=N.default.findById(e.parent_category_id))}),i})}canManageGroup(e){return e.get(“can_admin_group”)||e.get(“is_group_owner”)}availableTitles(){let e=[];return(this.groups||[]).forEach(t=>{(0,r.get)(t,”title”)&&e.push((0,r.get)(t,”title”))}),(this.badges||[]).forEach(t=>{(0,r.get)(t,”allow_title”)&&e.push((0,r.get)(t,”name”))}),e.uniq().sort().map(e=>({name:(0,F.escapeExpression)(e),id:e}))}static{dt7948.n(this.prototype,”availableTitles”,[(0,w.default)(“groups.@each.title”,”badges.[]”)])}availableFlairs(){let 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}static{dt7948.n(this.prototype,”availableFlairs”,[(0,w.default)(“groups.[]”)])}currentTextSize(e,t){if((0,b.default)(G)){let[t,i]=(0,b.default)(G).split(“|”);if(i>=e)return t}return t}static{dt7948.n(this.prototype,”currentTextSize”,[(0,w.default)(“user_option.text_size_seq”,”user_option.text_size”)])}updateTextSizeCookie(e){if(e){let t=this.get(“user_option.text_size_seq”);(0,b.default)(G,`${e}|${t}`,{path:”/”,expires:365})}else(0,b.removeCookie)(G,{path:”/”})}enforcedSecondFactor(e,t){let i=this.siteSettings.enforce_second_factor;return!e&&(“all”===i||”staff”===i&&t)}static{dt7948.n(this.prototype,”enforcedSecondFactor”,[(0,w.default)(“second_factor_enabled”,”staff”)])}resolvedTimezone(){return(0,k.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,i){let s=this.get(i);return e===M.NotificationLevels.MUTED?s.concat(t).uniq():s.filter(e=>e!==t)}setPrimaryGroup(e){return(0,f.ajax)(`/admin/users/${this.id}/primary_group`,{type:”PUT”,data:{primary_group_id:e}})}enterDoNotDisturbFor(e){return(0,f.ajax)({url:”/do-not-disturb.json”,type:”POST”,data:{duration:e}}).then(e=>this.updateDoNotDisturbStatus(e.ends_at))}leaveDoNotDisturb(){return(0,f.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),(0,u.getOwner)(this).lookup(“service:notifications”)._checkDoNotDisturb()}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(){if(this!==(0,u.getOwner)(this).lookup(“service:current-user”))throw”isInDoNotDisturb is only supported for currentUser”;return(0,u.getOwner)(this).lookup(“service:notifications”).isInDoNotDisturb}trackedTags(e,t,i){return[…e,…t,…i]}static{dt7948.n(this.prototype,”trackedTags”,[(0,w.default)(“tracked_tags.[]”,”watched_tags.[]”,”watching_first_post_tags.[]”)])}get prefersLightColor(){return this.user_option?.interface_color_mode===y.INTERFACE_COLOR_MODES.LIGHT}get prefersDarkColor(){return this.user_option?.interface_color_mode===y.INTERFACE_COLOR_MODES.DARK}get prefersAutoColor(){return this.user_option?.interface_color_mode===y.INTERFACE_COLOR_MODES.AUTODARK}},[E.default]),en=es;es.reopenClass({findByUsername:(e,t)=>es.create({username:e}).findDetails(t),checkUsername:(e,t,i)=>(0,f.ajax)((0,P.userPath)(“check_username”),{data:{username:e,email:t,for_user_id:i}}),checkEmail:e=>(0,f.ajax)((0,P.userPath)(“check_email”),{data:{email:e}}),loadRecentSearches:()=>(0,f.ajax)(“/u/recent-searches”),resetRecentSearches:()=>(0,f.ajax)(“/u/recent-searches”,{type:”DELETE”}),groupStats(e){let t=Y.default.create({count:0,action_type:B.default.TYPES.replies});e.filterBy(“isResponse”).forEach(e=>{t.set(“count”,t.get(“count”)+e.get(“count”))});let i=(0,n.A)();i.pushObjects(e.rejectBy(“isResponse”));let s=0;return i.forEach((e,t)=>{(e.action_type===B.default.TYPES.topics||e.action_type===B.default.TYPES.posts)&&(s=t+1)}),t.count>0&&i.insertAt(s,t),i},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,f.ajax)((0,P.userPath)(),{data:t,type:”POST”})},_saveTimezone(e){(0,f.ajax)((0,P.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}});class er{static{dt7948.g(this.prototype,”appEvents”,[c.service])}#ee=void dt7948.i(this,”appEvents”);user;_subscribersCount=0;_clearStatusTimerId=null;constructor(e){this.user=e,(0,u.setOwner)(this,(0,u.getOwner)(e))}trackStatus(){this.user.id||(0,T.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.user.addObserver(“status”,this,”_statusChanged”),this.appEvents.on(“user-status:changed”,this,this._updateStatus),this.user.status?.ends_at&&this._scheduleStatusClearing(this.user.status.ends_at)),this._subscribersCount++}stopTrackingStatus(){0!==this._subscribersCount&&(1===this._subscribersCount&&(this.user.removeObserver(“status”,this,”_statusChanged”),this.appEvents.off(“user-status:changed”,this,this._updateStatus),this._unscheduleStatusClearing()),this._subscribersCount–)}isTrackingStatus(){return this._subscribersCount>0}_statusChanged(){this.user.trigger(“status-changed”,this.user);let e=this.user.status;e&&e.ends_at?this._scheduleStatusClearing(e.ends_at):this._unscheduleStatusClearing()}_scheduleStatusClearing(e){if((0,T.isTesting)())return;this._clearStatusTimerId&&this._unscheduleStatusClearing();let t=moment.utc(),i=moment.utc(e).diff(t,”milliseconds”);this._clearStatusTimerId=(0,D.default)(this,”_autoClearStatus”,i)}_unscheduleStatusClearing(){(0,d.cancel)(this._clearStatusTimerId),this._clearStatusTimerId=null}_autoClearStatus(){this.user.status=null}_updateStatus(e){e.hasOwnProperty(this.user.id)&&(this.user.status=e[this.user.id])}}if(“undefined”!=typeof Discourse){let e=!1;Object.defineProperty(Discourse,”User”,{get:()=>(e||((0,k.default)(“Import the User class instead of using Discourse.User”,{since:”2.4.0″,id:”discourse.globals.user”}),e=!0),es)})}},3064:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>C});var s=i(91409),n=i(12322),r=i(4507),a=i(22921),o=i(88821),l=i(72865),u=i(97351),d=i(2239),c=i(351),p=i(22690),h=i.n(p),m=i(91855),g=i.n(m),f=i(72423),_=i.n(f),y=i(56665),b=i(27594),w=i(7620),k=i(30889),T=i(69209),S=i(56699);class C extends s.default{static{dt7948.g(this.prototype,”site”,[l.service])}#eR=void dt7948.i(this,”site”);menuInstance=new k.default((0,o.getOwner)(this),{…this.allowedProperties,autoUpdate:!0,listeners:!0});registerTrigger=(0,d.modifier)(e=>(this.menuInstance.trigger=e,this.options.onRegisterApi?.(this.menuInstance),()=>{this.menuInstance.destroy()}));registerFloatBody=(0,d.modifier)(e=>(this.body=e,()=>{this.body=null}));teardownFloatBody(){this.body=null}static{dt7948.n(this.prototype,”teardownFloatBody”,[a.action])}forwardTabToContent(e){let t=this.args.onKeydown?.(e);if(!this.body)return t;if(“Tab”===e.key){e.preventDefault();let t=this.body.querySelector(‘button, a, input:not([type=”hidden”]), select, textarea, [tabindex]:not([tabindex=”-1″])’);return t?.focus()||this.body.focus(),!0}return t}static{dt7948.n(this.prototype,”forwardTabToContent”,[a.action])}get options(){return this.menuInstance?.options??{}}get componentArgs(){return{close:this.menuInstance.close,show:this.menuInstance.show,data:this.options.data}}get triggerComponent(){let e=this;return this.args.triggerComponent||(0,u.default)(h(),{get icon(){return e.args.icon},get translatedLabel(){return e.args.label},get translatedAriaLabel(){return e.args.ariaLabel},get translatedTitle(){return e.args.title},get disabled(){return e.args.disabled},get isLoading(){return e.args.isLoading}},(0,o.getOwner)(this))}get allowedProperties(){let e={};for(let[t,i]of Object.entries(w.MENU.options))e[t]=this.args[t]??i;return e}static{(0,T.setComponentTemplate)((0,S.createTemplateFactory)({id:”UfbLPbwC”,block:'[[[1,”\\n “],[8,[30,0,[“triggerComponent”]],[[16,0,[28,[32,0],[“fk-d-menu__trigger”,[52,[30,0,[“menuInstance”,”expanded”]],”-expanded”],[28,[32,1],[[30,0,[“options”,”identifier”]],”-trigger”],null],[30,1],[30,2]],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,3],[4,[30,0,[“registerTrigger”]],null,null],[4,[32,2],[“keydown”,[30,0,[“forwardTabToContent”]]],null]],[[“@componentArgs”],[[30,0,[“componentArgs”]]]],[[“default”],[[[[1,”\\n”],[41,[48,[30,5]],[[[1,” “],[18,5,[[30,0,[“componentArgs”]]]],[1,”\\n”]],[]],null],[1,” “]],[]]]]],[1,”\\n\\n”],[41,[30,0,[“menuInstance”,”expanded”]],[[[41,[28,[32,3],[[30,0,[“site”,”mobileView”]],[30,0,[“options”,”modalForMobile”]]],null],[[[1,” “],[8,[32,4],[[16,0,[28,[32,0],[“fk-d-menu-modal”,[28,[32,1],[[30,0,[“options”,”identifier”]],”-content”],null],[30,4],[30,2]],null]],[16,”data-identifier”,[30,0,[“options”,”identifier”]]],[24,”data-content”,””]],[[“@closeModal”,”@hideHeader”,”@autofocus”,”@inline”],[[30,0,[“menuInstance”,”close”]],true,[30,0,[“options”,”autofocus”]],[28,[32,5],null,null]]],[[“default”],[[[[1,”\\n “],[10,0],[14,0,”fk-d-menu-modal__grip”],[14,”aria-hidden”,”true”],[12],[13],[1,”\\n”],[41,[48,[30,6]],[[[1,” “],[18,6,[[30,0,[“componentArgs”]]]],[1,”\\n”]],[]],[[[41,[48,[30,7]],[[[1,” “],[18,7,[[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”]],[]],[[[1,” “],[8,[32,6],[[4,[30,0,[“registerFloatBody”]],null,null]],[[“@instance”,”@trapTab”,”@mainClass”,”@innerClass”,”@role”,”@inline”],[[30,0,[“menuInstance”]],[30,0,[“options”,”trapTab”]],[28,[32,0],[“fk-d-menu”,[28,[32,1],[[30,0,[“options”,”identifier”]],”-content”],null],[30,2],[30,4]],null],”fk-d-menu__inner-content”,”dialog”,[30,0,[“options”,”inline”]]]],[[“default”],[[[[1,”\\n”],[41,[48,[30,6]],[[[1,” “],[18,6,[[30,0,[“componentArgs”]]]],[1,”\\n”]],[]],[[[41,[48,[30,7]],[[[1,” “],[18,7,[[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,” “]],[“@triggerClass”,”@class”,”&attrs”,”@contentClass”,”&trigger”,”&default”,”&content”],[“if”,”has-block”,”yield”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/float-kit.d0433c99/node_modules/float-kit/components/d-menu.js”,scope:()=>[_(),n.concat,r.on,c.and,g(),y.isTesting,b.default],isStrictMode:!0}),this)}}},3071:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{EventTarget:()=>s.E,Promise:()=>s.P,all:()=>s.e,allSettled:()=>s.f,asap:()=>s.b,async:()=>s.q,cast:()=>s.d,configure:()=>s.c,default:()=>s.a,defer:()=>s.j,denodeify:()=>s.k,filter:()=>s.s,hash:()=>s.h,hashSettled:()=>s.g,map:()=>s.p,off:()=>s.l,on:()=>s.o,race:()=>s.r,reject:()=>s.n,resolve:()=>s.m,rethrow:()=>s.i});var s=i(19127)},3097:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>r});var s=i(40126),n=i(43037);class r extends s.default{static{dt7948.g(this.prototype,”faqOverridden”,[(0,n.gt)(“siteSettings.faq_url.length”,0)])}#eU=void dt7948.i(this,”faqOverridden”);static{dt7948.g(this.prototype,”renameFaqToGuidelines”,[(0,n.alias)(“siteSettings.experimental_rename_faq_to_guidelines”)])}#eB=void dt7948.i(this,”renameFaqToGuidelines”)}},3142:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>e4});var s=i(48727);let n=class extends Error{constructor(){super(…arguments),this.name=”UserFacingApiError”}};var r=i(19207);let a=Object.prototype.toString,o=new Set([“network error”,”Failed to fetch”,”NetworkError when attempting to fetch resource.”,”The Internet connection appears to be offline.”,”Load failed”,”Network request failed”,”fetch failed”,”terminated”]);class l extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name=”AbortError”,this.message=e}}let u=(e,t,i)=>{let s=i.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=s,e};async function d(e,t){return new Promise((i,s)=>{t={onFailedAttempt(){},retries:10,shouldRetry:()=>!0,…t};let n=r.operation(t),d=()=>{n.stop(),s(t.signal?.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener(“abort”,d,{once:!0});let c=()=>{t.signal?.removeEventListener(“abort”,d),n.stop()};n.attempt(async r=>{try{let t=await e(r);c(),i(t)}catch(e){try{if(!(e instanceof Error))throw TypeError(`Non-error was thrown: “${e}”. You should only throw errors.`);if(e instanceof l)throw e.originalError;if(e instanceof TypeError&&!(e&&”[object Error]”===a.call(e)&&”TypeError”===e.name&&”string”==typeof e.message&&(“Load failed”===e.message?void 0===e.stack:o.has(e.message))))throw e;if(u(e,r,t),await t.shouldRetry(e)||(n.stop(),s(e)),await t.onFailedAttempt(e),!n.retry(e))throw n.mainError()}catch(e){u(e,r,t),c(),s(e)}}})})}var c=i(53898),p=i(93813);let h=class extends Error{constructor(e,t){super(e),this.cause=null==t?void 0:t.cause,this.cause&&(0,p.A)(this.cause,”isNetworkError”)?this.isNetworkError=this.cause.isNetworkError:this.isNetworkError=!1}},m=i(40411)(function(e,t,i){let{progress:s,bytesUploaded:n,bytesTotal:r}=t;if(s){var a;e.uppy.log(`Upload progress: ${s}`),e.uppy.emit(“upload-progress”,i,{uploadStarted:null!=(a=i.progress.uploadStarted)?a:0,bytesUploaded:n,bytesTotal:r})}},300,{leading:!0,trailing:!0}),g=class extends Error{constructor(){super(“Authorization required”),this.name=”AuthError”,this.isAuthError=!0}};function f(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError(“attempted to use private field on non-instance”);return e}var _=0;function y(e){return”__private_”+_+++”_”+e}class b extends Error{constructor(e){let{statusCode:t,message:i}=e;super(i),this.name=”HttpError”,this.statusCode=t}}async function w(e){let t;if(401===e.status)throw new g;if(e.ok)return e.json();let i=`Failed request with status: ${e.status}. ${e.statusText}`;try{(t=await e.json()).message&&(i=`${i} message: ${t.message}`),t.requestId&&(i=`${i} request-Id: ${t.requestId}`)}catch(e){throw Error(i,{cause:e})}if(e.status>=400&&e.status<=499&&t.message)throw new n(t.message);throw new b({statusCode:e.status,message:i})}var k=y("companionHeaders"),T=y("getUrl"),S=y("requestSocketToken"),C=y("awaitRemoteFileUpload");class A{constructor(e,t){Object.defineProperty(this,C,{value:M}),Object.defineProperty(this,T,{value:D}),Object.defineProperty(this,k,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:async e=>{var t;let{file:i,postBody:s,signal:n}=e;if((null==(t=i.remote)?void 0:t.url)==null)throw Error(“Cannot connect to an undefined URL”);return(await this.post(i.remote.url,{…i.remote.body,…s},{signal:n})).token}}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),f(this,k)[k]=t.companionHeaders}setCompanionHeaders(e){f(this,k)[k]=e}[Symbol.for(“uppy test: getCompanionHeaders”)](){return f(this,k)[k]}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,””)}async headers(e){return void 0===e&&(e=!1),{Accept:”application/json”,…e?void 0:{“Content-Type”:”application/json”},…f(this,k)[k]}}onReceiveResponse(e){let{headers:t}=e,i=this.uppy.getState().companion||{},s=this.opts.companionUrl;t.has(“i-am”)&&t.get(“i-am”)!==i[s]&&this.uppy.setState({companion:{…i,[s]:t.get(“i-am”)}})}async request(e){let{path:t,method:i=”GET”,data:s,skipPostResponse:n,signal:r}=e;try{let e=await this.headers(!s),a=await function(){return fetch(…arguments).catch(e=>{if(“AbortError”===e.name)throw e;throw new c.A(e)})}(f(this,T)[T](t),{method:i,signal:r,headers:e,credentials:this.opts.companionCookiesRule||”same-origin”,body:s?JSON.stringify(s):null});return n||this.onReceiveResponse(a),await w(a)}catch(e){if(e.isAuthError||”UserFacingApiError”===e.name||”AbortError”===e.name)throw e;throw new h(`Could not ${i} ${f(this,T)[T](t)}`,{cause:e})}}async get(e,t){return this.request({…t,path:e})}async post(e,t,i){return this.request({…i,path:e,method:”POST”,data:t})}async delete(e,t,i){return this.request({…i,path:e,method:”DELETE”,data:t})}async uploadRemoteFile(e,t,i){var s=this;try{let{signal:n,getQueue:r}=i||{};return await d(async()=>{var i;let a=null==(i=this.uppy.getFile(e.id))?void 0:i.serverToken;if(null!=a)return this.uppy.log(`Connecting to exiting websocket ${a}`),f(this,C)[C]({file:e,queue:r(),signal:n});let o=r().wrapPromiseFunction(async function(){try{return await f(s,S)[S](…arguments)}catch(t){if(t.isAuthError)throw new l(t);if(null==t.cause)throw t;let e=t.cause;if(“HttpError”===e.name&&!([408,409,429,418,423].includes(e.statusCode)||e.statusCode>=500&&e.statusCode<=599&&![501,505].includes(e.statusCode)))throw new l(e);throw e}},{priority:-1}),u=await o({file:e,postBody:t,signal:n}).abortOn(n);if(this.uppy.getFile(e.id))return this.uppy.setFileState(e.id,{serverToken:u}),f(this,C)[C]({file:this.uppy.getFile(e.id),queue:r(),signal:n})},{retries:10,signal:n,onFailedAttempt:e=>this.uppy.log(`Retrying upload due to: ${e.message}`,”warning”)})}catch(t){if(“AbortError”===t.name)return;throw this.uppy.emit(“upload-error”,e,t),t}}}function D(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function M(e){let t,{file:i,queue:s,signal:n}=e,{capabilities:r}=this.uppy.getState();try{return await new Promise((e,a)=>{let o,l,u,c=i.serverToken,p=function(e){var t;let i=null==(t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e))?void 0:t[1],s=/^http:\/\//i.test(e)?”ws”:”wss”;return`${s}://${i}`}(i.remote.companionUrl),{isPaused:h}=i,g=(e,t)=>{if(null==o||o.readyState!==o.OPEN){var s;this.uppy.log(`Cannot send “${e}” to socket ${i.id} because the socket state was ${String(null==(s=o)?void 0:s.readyState)}`,”warning”);return}o.send(JSON.stringify({action:e,payload:null!=t?t:{}}))};function f(){r.resumableUploads&&(h?g(“pause”):g(“resume”))}let _=async()=>{l&&l.abort(),l=new AbortController;let t=e=>{var t;this.uppy.setFileState(i.id,{serverToken:null}),null==(t=l)||null==t.abort||t.abort(),a(e)};function n(){clearTimeout(u),h||(u=setTimeout(()=>t(Error(“Timeout waiting for message from Companion socket”)),3e5))}try{await s.wrapPromiseFunction(async()=>{let s=async()=>new Promise((s,r)=>{o=new WebSocket(`${p}/api/${c}`),n(),o.addEventListener(“close”,()=>{o=void 0,r(Error(“Socket closed unexpectedly”))}),o.addEventListener(“error”,e=>{var t;this.uppy.log(`Companion socket error ${JSON.stringify(e)}, closing socket`,”warning”),null==(t=o)||t.close()}),o.addEventListener(“open”,()=>{f()}),o.addEventListener(“message”,s=>{n();try{let{action:t,payload:n}=JSON.parse(s.data);switch(t){case”progress”:m(this,n,this.uppy.getFile(i.id));break;case”success”:{var r,a,o,u;let t=null==(r=n.response)?void 0:r.responseText;this.uppy.emit(“upload-success”,this.uppy.getFile(i.id),{uploadURL:n.url,status:null!=(a=null==(o=n.response)?void 0:o.status)?a:200,body:t?JSON.parse(t):void 0}),null==(u=l)||null==u.abort||u.abort(),e();break}case”error”:{let{message:e}=n.error;throw Object.assign(Error(e),{cause:n.error})}default:this.uppy.log(`Companion socket unknown action ${t}`,”warning”)}}catch(e){t(e)}});let a=()=>{this.uppy.log(`Closing socket ${i.id}`,”info”),clearTimeout(u),o&&o.close(),o=void 0};l.signal.addEventListener(“abort”,()=>{a()})});await d(s,{retries:10,signal:l.signal,onFailedAttempt:()=>{l.signal.aborted||this.uppy.log(`Retrying websocket ${i.id}`,”info”)}})})().abortOn(l.signal)}catch(e){if(l.signal.aborted)return;t(e)}},y=e=>{r.resumableUploads&&(h=e,o&&f())},b=t=>{var s;r.individualCancellation&&t.id===i.id&&(g(“cancel”),null==(s=l)||null==s.abort||s.abort(),this.uppy.log(`upload ${i.id} was removed`,”info”),e())},w=()=>{var t;g(“cancel”),null==(t=l)||null==t.abort||t.abort(),this.uppy.log(`upload ${i.id} was canceled`,”info”),e()},k=(e,t)=>{(null==e?void 0:e.id)===i.id&&y(t)},T=()=>y(!0),S=()=>y(!1);this.uppy.on(“file-removed”,b),this.uppy.on(“cancel-all”,w),this.uppy.on(“upload-pause”,k),this.uppy.on(“pause-all”,T),this.uppy.on(“resume-all”,S),t=()=>{this.uppy.off(“file-removed”,b),this.uppy.off(“cancel-all”,w),this.uppy.off(“upload-pause”,k),this.uppy.off(“pause-all”,T),this.uppy.off(“resume-all”,S)},n.addEventListener(“abort”,()=>{var e;null==(e=l)||e.abort()}),_()})}finally{null==t||t()}}A.VERSION=”4.1.0″;var x=i(50202),E=i(1557),L=i(88373),P=i(59830),F=i(65290);function I(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError(“attempted to use private field on non-instance”);return e}var j=0;function N(e){return”__private_”+j+++”_”+e}let O={getChunkSize:e=>Math.ceil(e.size/1e4),onProgress(){},onPartComplete(){},onSuccess(){},onError(e){throw e}},R=Symbol(“pausing upload, not an actual error”);var U=N(“abortController”),B=N(“chunks”),Y=N(“chunkState”),H=N(“data”),q=N(“file”),z=N(“uploadHasStarted”),$=N(“onError”),V=N(“onSuccess”),W=N(“shouldUseMultipart”),K=N(“isRestoring”),G=N(“onReject”),Q=N(“maxMultipartParts”),J=N(“minPartSize”),X=N(“initChunks”),Z=N(“createUpload”),ee=N(“resumeUpload”),et=N(“onPartProgress”),ei=N(“onPartComplete”),es=N(“abortUpload”);class en{constructor(e,t){var i;Object.defineProperty(this,es,{value:el}),Object.defineProperty(this,ee,{value:eo}),Object.defineProperty(this,Z,{value:ea}),Object.defineProperty(this,X,{value:er}),Object.defineProperty(this,U,{writable:!0,value:new P.AbortController}),Object.defineProperty(this,B,{writable:!0,value:[]}),Object.defineProperty(this,Y,{writable:!0,value:[]}),Object.defineProperty(this,H,{writable:!0,value:void 0}),Object.defineProperty(this,q,{writable:!0,value:void 0}),Object.defineProperty(this,z,{writable:!0,value:!1}),Object.defineProperty(this,$,{writable:!0,value:void 0}),Object.defineProperty(this,V,{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,G,{writable:!0,value:e=>(null==e?void 0:e.cause)===R?null:I(this,$)[$](e)}),Object.defineProperty(this,Q,{writable:!0,value:1e4}),Object.defineProperty(this,J,{writable:!0,value:5242880}),Object.defineProperty(this,et,{writable:!0,value:e=>t=>{if(!t.lengthComputable)return;I(this,Y)[Y][e].uploaded=function(e){if(“string”==typeof e)return parseInt(e,10);if(“number”==typeof e)return e;throw TypeError(“Expected a number”)}(t.loaded);let i=I(this,Y)[Y].reduce((e,t)=>e+t.uploaded,0);this.options.onProgress(i,I(this,H)[H].size)}}),Object.defineProperty(this,ei,{writable:!0,value:e=>t=>{I(this,B)[B][e]=null,I(this,Y)[Y][e].etag=t,I(this,Y)[Y][e].done=!0,this.options.onPartComplete({PartNumber:e+1,ETag:t})}}),this.options={…O,…t},null!=(i=this.options).getChunkSize||(i.getChunkSize=O.getChunkSize),I(this,H)[H]=e,I(this,q)[q]=t.file,I(this,V)[V]=this.options.onSuccess,I(this,$)[$]=this.options.onError,I(this,W)[W]=this.options.shouldUseMultipart,I(this,K)[K]=t.uploadId&&t.key,I(this,X)[X]()}start(){I(this,z)[z]?(I(this,U)[U].signal.aborted||I(this,U)[U].abort(R),I(this,U)[U]=new P.AbortController,I(this,ee)[ee]()):I(this,K)[K]?(this.options.companionComm.restoreUploadFile(I(this,q)[q],{uploadId:this.options.uploadId,key:this.options.key}),I(this,ee)[ee]()):I(this,Z)[Z]()}pause(){I(this,U)[U].abort(R),I(this,U)[U]=new P.AbortController}abort(e){null!=e&&e.really?I(this,es)[es]():this.pause()}[Symbol.for(“uppy test: getChunkState”)](){return I(this,Y)[Y]}}function er(){let e=I(this,H)[H].size,t=”function”==typeof I(this,W)[W]?I(this,W)[W](I(this,q)[q]):!!I(this,W)[W];if(t&&e>I(this,J)[J]){let i=Math.max(this.options.getChunkSize(I(this,H)[H]),I(this,J)[J]),s=Math.floor(e/i);s>I(this,Q)[Q]&&(s=I(this,Q)[Q],i=e/I(this,Q)[Q]),I(this,B)[B]=Array(s);for(let s=0,n=0;s{let e=s;return I(this,H)[H].slice(e,r)};if(I(this,B)[B][n]={getData:a,onProgress:I(this,et)[et](n),onComplete:I(this,ei)[ei](n),shouldUseMultipart:t},I(this,K)[K]){let t=s+i>e?e-s:i;I(this,B)[B][n].setAsUploaded=()=>{I(this,B)[B][n]=null,I(this,Y)[Y][n].uploaded=t}}}}else I(this,B)[B]=[{getData:()=>I(this,H)[H],onProgress:I(this,et)[et](0),onComplete:I(this,ei)[ei](0),shouldUseMultipart:t}];I(this,Y)[Y]=I(this,B)[B].map(()=>({uploaded:0}))}function ea(){this.options.companionComm.uploadFile(I(this,q)[q],I(this,B)[B],I(this,U)[U].signal).then(I(this,V)[V],I(this,G)[G]),I(this,z)[z]=!0}function eo(){this.options.companionComm.resumeUploadFile(I(this,q)[q],I(this,B)[B],I(this,U)[U].signal).then(I(this,V)[V],I(this,G)[G])}function el(){I(this,U)[U].abort(),this.options.companionComm.abortFileUpload(I(this,q)[q]).catch(e=>this.options.log(e))}function eu(e){if(null!=e&&e.aborted)throw(0,P.createAbortError)(“The operation was aborted”,{cause:e.reason})}let ed=new TextEncoder,ec={name:”HMAC”,hash:”SHA-256″};async function ep(e){let{subtle:t}=globalThis.crypto;return t.digest(ec.hash,ed.encode(e))}async function eh(e){let{subtle:t}=globalThis.crypto;return t.importKey(“raw”,”string”==typeof e?ed.encode(e):e,ec,!1,[“sign”])}function em(e){let t=new Uint8Array(e),i=””;for(let e=0;e`%${e.charCodeAt(0).toString(16).toUpperCase()}`)}`,p=”UNSIGNED-PAYLOAD”,h=new Date().toISOString().replace(/[-:]|\.\d+/g,””),m=h.slice(0,8),g=`${m}/${a}/s3/aws4_request`,f=new URL(`https://${d}${c}`);f.searchParams.set(“X-Amz-Algorithm”,”AWS4-HMAC-SHA256″),f.searchParams.set(“X-Amz-Content-Sha256”,p),f.searchParams.set(“X-Amz-Credential”,`${t}/${g}`),f.searchParams.set(“X-Amz-Date”,h),f.searchParams.set(“X-Amz-Expires”,o),f.searchParams.set(“X-Amz-Security-Token”,s),f.searchParams.set(“X-Amz-SignedHeaders”,”host”),u&&f.searchParams.set(“partNumber”,u),l&&f.searchParams.set(“uploadId”,l),f.searchParams.set(“x-id”,u&&l?”UploadPart”:”PutObject”);let _=function(e){let{method:t=”PUT”,CanonicalUri:i=”/”,CanonicalQueryString:s=””,SignedHeaders:n,HashedPayload:r}=e,a=Object.keys(n).map(e=>e.toLowerCase()).sort();return[t,i,s,…a.map(e=>`${e}:${n[e]}`),””,a.join(“;”),r].join(`
`)}({CanonicalUri:c,CanonicalQueryString:f.search.slice(1),SignedHeaders:{host:d},HashedPayload:p}),y=[“AWS4-HMAC-SHA256″,h,g,em(await ep(_))].join(`
`),b=await eg(`AWS4${i}`,m),w=await eg(b,a),k=await eg(w,”s3″),T=await eg(k,”aws4_request”),S=em(await eg(T,y));return f.searchParams.set(“X-Amz-Signature”,S),f}function e_(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError(“attempted to use private field on non-instance”);return e}var ey=0;function eb(e){return”__private_”+ey+++”_”+e}var ev=eb(“abortMultipartUpload”),ew=eb(“cache”),ek=eb(“createMultipartUpload”),eT=eb(“fetchSignature”),eS=eb(“getUploadParameters”),eC=eb(“listParts”),eA=eb(“previousRetryDelay”),eD=eb(“requests”),eM=eb(“retryDelays”),ex=eb(“sendCompletionRequest”),eE=eb(“setS3MultipartState”),eL=eb(“uploadPartBytes”),eP=eb(“getFile”),eF=eb(“shouldRetry”),eI=eb(“nonMultipartUpload”);class ej{constructor(e,t,i,s){Object.defineProperty(this,eI,{value:eO}),Object.defineProperty(this,eF,{value:eN}),Object.defineProperty(this,ev,{writable:!0,value:void 0}),Object.defineProperty(this,ew,{writable:!0,value:new WeakMap}),Object.defineProperty(this,ek,{writable:!0,value:void 0}),Object.defineProperty(this,eT,{writable:!0,value:void 0}),Object.defineProperty(this,eS,{writable:!0,value:void 0}),Object.defineProperty(this,eC,{writable:!0,value:void 0}),Object.defineProperty(this,eA,{writable:!0,value:void 0}),Object.defineProperty(this,eD,{writable:!0,value:void 0}),Object.defineProperty(this,eM,{writable:!0,value:void 0}),Object.defineProperty(this,ex,{writable:!0,value:void 0}),Object.defineProperty(this,eE,{writable:!0,value:void 0}),Object.defineProperty(this,eL,{writable:!0,value:void 0}),Object.defineProperty(this,eP,{writable:!0,value:void 0}),e_(this,eD)[eD]=e,e_(this,eE)[eE]=i,e_(this,eP)[eP]=s,this.setOptions(t)}setOptions(e){let t=e_(this,eD)[eD];if(“abortMultipartUpload”in e&&(e_(this,ev)[ev]=t.wrapPromiseFunction(e.abortMultipartUpload,{priority:1})),”createMultipartUpload”in e&&(e_(this,ek)[ek]=t.wrapPromiseFunction(e.createMultipartUpload,{priority:-1})),”signPart”in e&&(e_(this,eT)[eT]=t.wrapPromiseFunction(e.signPart)),”listParts”in e&&(e_(this,eC)[eC]=t.wrapPromiseFunction(e.listParts)),”completeMultipartUpload”in e&&(e_(this,ex)[ex]=t.wrapPromiseFunction(e.completeMultipartUpload,{priority:1})),”retryDelays”in e){var i;e_(this,eM)[eM]=null!=(i=e.retryDelays)?i:[]}”uploadPartBytes”in e&&(e_(this,eL)[eL]=t.wrapPromiseFunction(e.uploadPartBytes,{priority:1/0})),”getUploadParameters”in e&&(e_(this,eS)[eS]=t.wrapPromiseFunction(e.getUploadParameters))}async getUploadId(e,t){let i;for(;null!=(i=e_(this,ew)[ew].get(e.data));)try{return await i}catch{}let s=e_(this,ek)[ek](e_(this,eP)[eP](e),t),n=()=>{s.abort(t.reason),e_(this,ew)[ew].delete(e.data)};return t.addEventListener(“abort”,n,{once:!0}),e_(this,ew)[ew].set(e.data,s),s.then(async i=>{t.removeEventListener(“abort”,n),e_(this,eE)[eE](e,i),e_(this,ew)[ew].set(e.data,i)},()=>{t.removeEventListener(“abort”,n),e_(this,ew)[ew].delete(e.data)}),s}async abortFileUpload(e){let t,i=e_(this,ew)[ew].get(e.data);if(null!=i){e_(this,ew)[ew].delete(e.data),e_(this,eE)[eE](e,Object.create(null));try{t=await i}catch{return}await e_(this,ev)[ev](e_(this,eP)[eP](e),t)}}async uploadFile(e,t,i){if(eu(i),1===t.length&&!t[0].shouldUseMultipart)return e_(this,eI)[eI](e,t[0],i);let{uploadId:s,key:n}=await this.getUploadId(e,i);eu(i);try{let r=await Promise.all(t.map((t,s)=>this.uploadChunk(e,s+1,t,i)));return eu(i),await e_(this,ex)[ex](e_(this,eP)[eP](e),{key:n,uploadId:s,parts:r,signal:i},i).abortOn(i)}catch(t){throw(null==t?void 0:t.cause)!==R&&(null==t?void 0:t.name)!==”AbortError”&&this.abortFileUpload(e),t}}restoreUploadFile(e,t){e_(this,ew)[ew].set(e.data,t)}async resumeUploadFile(e,t,i){if(eu(i),1===t.length&&null!=t[0]&&!t[0].shouldUseMultipart)return e_(this,eI)[eI](e,t[0],i);let{uploadId:s,key:n}=await this.getUploadId(e,i);eu(i);let r=await e_(this,eC)[eC](e_(this,eP)[eP](e),{uploadId:s,key:n,signal:i},i).abortOn(i);eu(i);let a=await Promise.all(t.map((t,s)=>{let n=s+1,a=r.find(e=>{let{PartNumber:t}=e;return t===n});return null==a?this.uploadChunk(e,n,t,i):(null==t||null==t.setAsUploaded||t.setAsUploaded(),{PartNumber:n,ETag:a.ETag})}));return eu(i),e_(this,ex)[ex](e_(this,eP)[eP](e),{key:n,uploadId:s,parts:a,signal:i},i).abortOn(i)}async uploadChunk(e,t,i,s){eu(s);let{uploadId:n,key:r}=await this.getUploadId(e,s),a=e_(this,eM)[eM].values(),o=e_(this,eM)[eM].values(),l=()=>{let e=a.next();return null==e||e.done?null:e.value};for(;;){let a;eu(s);let u=i.getData(),{onProgress:d,onComplete:c}=i;try{a=await e_(this,eT)[eT](e_(this,eP)[eP](e),{uploadId:n,key:r,partNumber:t,body:u,signal:s}).abortOn(s)}catch(t){let e=l();if(null==e||s.aborted)throw t;await new Promise(t=>setTimeout(t,e));continue}eu(s);try{return{PartNumber:t,…await e_(this,eL)[eL]({signature:a,body:u,size:u.size,onProgress:d,onComplete:c,signal:s}).abortOn(s)}}catch(e){if(!await e_(this,eF)[eF](e,o))throw e}}}}async function eN(e,t){var i;let s=e_(this,eD)[eD],n=null==e||null==(i=e.source)?void 0:i.status;if(null==n)return!1;if(403===n&&”Request has expired”===e.message){if(!s.isPaused){if(1===s.limit||null==e_(this,eA)[eA]){let e=t.next();if(null==e||e.done)return!1;e_(this,eA)[eA]=e.value}s.rateLimit(0),await new Promise(e=>setTimeout(e,e_(this,eA)[eA]))}}else if(429===n){if(!s.isPaused){let e=t.next();if(null==e||e.done)return!1;s.rateLimit(e.value)}}else if(n>400&&n<500&&409!==n)return!1;else if("undefined"!=typeof navigator&&!1===navigator.onLine)s.isPaused||(s.pause(),window.addEventListener("online",()=>{s.resume()},{once:!0}));else{let e=t.next();if(null==e||e.done)return!1;await new Promise(t=>setTimeout(t,e.value))}return!0}async function eO(e,t,i){let s,{method:n=”POST”,url:r,fields:a,headers:o}=await e_(this,eS)[eS](e_(this,eP)[eP](e),{signal:i}).abortOn(i),l=t.getData();if(“POST”===n.toUpperCase()){let e=new FormData;Object.entries(a).forEach(t=>{let[i,s]=t;return e.set(i,s)}),e.set(“file”,l),s=e}else s=l;let{onProgress:u,onComplete:d}=t,c=await e_(this,eL)[eL]({signature:{url:r,headers:o,method:n},body:s,size:l.size,onProgress:u,onComplete:d,signal:i}).abortOn(i);return”location”in c?c:{location:function(e){let t=new URL(e);return t.search=””,t.hash=””,t.href}(r),…c}}function eR(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError(“attempted to use private field on non-instance”);return e}var eU=0;function eB(e){return”__private_”+eU+++”_”+e}function eY(e){if(null!=e&&e.error){let t=Error(e.message);throw Object.assign(t,e.error),t}return e}function eH(e){let t=e.Expiration;if(t){let e=Math.floor((new Date(t)-Date.now())/1e3);if(e>9)return e}}function eq(e){let{meta:t,allowedMetaFields:i,querify:s=!1}=e,n=null!=i?i:Object.keys(t);return t?Object.fromEntries(n.filter(e=>null!=t[e]).map(e=>[s?`metadata[${e}]`:e,String(t[e])])):{}}let ez={allowedMetaFields:!0,limit:6,getTemporarySecurityCredentials:!1,shouldUseMultipart:e=>e.size>>10>>10>100,retryDelays:[0,1e3,3e3,5e3]};var e$=eB(“companionCommunicationQueue”),eV=eB(“client”),eW=eB(“setClient”),eK=eB(“assertHost”),eG=eB(“cachedTemporaryCredentials”),eQ=eB(“getTemporarySecurityCredentials”),eJ=eB(“setS3MultipartState”),eX=eB(“getFile”),eZ=eB(“uploadLocalFile”),e1=eB(“getCompanionClientArgs”),e0=eB(“upload”),e3=eB(“setCompanionHeaders”),e2=eB(“setResumableUploadsCapability”),e8=eB(“resetResumableCapability”);class e4 extends s.A{constructor(e,t){var i;super(e,{…ez,uploadPartBytes:e4.uploadPartBytes,createMultipartUpload:null,listParts:null,abortMultipartUpload:null,completeMultipartUpload:null,signPart:null,getUploadParameters:null,…t}),Object.defineProperty(this,e1,{value:te}),Object.defineProperty(this,eZ,{value:e5}),Object.defineProperty(this,eQ,{value:e6}),Object.defineProperty(this,eK,{value:e7}),Object.defineProperty(this,eW,{value:e9}),Object.defineProperty(this,e$,{writable:!0,value:void 0}),Object.defineProperty(this,eV,{writable:!0,value:void 0}),Object.defineProperty(this,eG,{writable:!0,value:void 0}),Object.defineProperty(this,eJ,{writable:!0,value:(e,t)=>{let{key:i,uploadId:s}=t,n=this.uppy.getFile(e.id);null!=n&&this.uppy.setFileState(e.id,{s3Multipart:{…n.s3Multipart,key:i,uploadId:s}})}}),Object.defineProperty(this,eX,{writable:!0,value:e=>this.uppy.getFile(e.id)||e}),Object.defineProperty(this,e0,{writable:!0,value:async e=>{if(0===e.length)return;let t=this.uppy.getFilesByIds(e),i=(0,L.Y)(t),s=(0,L.S)(i);this.uppy.emit(“upload-start”,s);let n=i.map(e=>{if(e.isRemote){let t=()=>this.requests;eR(this,e2)[e2](!1);let i=new AbortController,s=t=>{t.id===e.id&&i.abort()};this.uppy.on(“file-removed”,s);let n=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,eR(this,e1)[e1](e),{signal:i.signal,getQueue:t});return this.requests.wrapSyncFunction(()=>{this.uppy.off(“file-removed”,s)},{priority:-1})(),n}return eR(this,eZ)[eZ](e)}),r=await Promise.all(n);return eR(this,e2)[e2](!0),r}}),Object.defineProperty(this,e3,{writable:!0,value:()=>{var e;null==(e=eR(this,eV)[eV])||e.setCompanionHeaders(this.opts.headers)}}),Object.defineProperty(this,e2,{writable:!0,value:e=>{let{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{…t,resumableUploads:e}})}}),Object.defineProperty(this,e8,{writable:!0,value:()=>{eR(this,e2)[e2](!0)}}),this.type=”uploader”,this.id=this.opts.id||”AwsS3Multipart”,eR(this,eW)[eW](t);let s={createMultipartUpload:this.createMultipartUpload,listParts:this.listParts,abortMultipartUpload:this.abortMultipartUpload,completeMultipartUpload:this.completeMultipartUpload,signPart:null!=t&&t.getTemporarySecurityCredentials?this.createSignedURL:this.signPart,getUploadParameters:null!=t&&t.getTemporarySecurityCredentials?this.createSignedURL:this.getUploadParameters};for(let e of Object.keys(s))null==this.opts[e]&&(this.opts[e]=s[e].bind(this));this.requests=null!=(i=this.opts.rateLimitedQueue)?i:new E.i(this.opts.limit),eR(this,e$)[e$]=new ej(this.requests,this.opts,eR(this,eJ)[eJ],eR(this,eX)[eX]),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null)}[Symbol.for(“uppy test: getClient”)](){return eR(this,eV)[eV]}setOptions(e){eR(this,e$)[e$].setOptions(e),super.setOptions(e),eR(this,eW)[eW](e)}resetUploaderReferences(e,t){this.uploaders[e]&&(this.uploaders[e].abort({really:(null==t?void 0:t.abort)||!1}),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}createMultipartUpload(e,t){eR(this,eK)[eK](“createMultipartUpload”),eu(t);let i=(0,F.A)(this.opts.allowedMetaFields,e.meta),s=eq({meta:e.meta,allowedMetaFields:i});return eR(this,eV)[eV].post(“s3/multipart”,{filename:e.name,type:e.type,metadata:s},{signal:t}).then(eY)}listParts(e,t,i){let{key:s,uploadId:n,signal:r}=t;null!=r||(r=i),eR(this,eK)[eK](“listParts”),eu(r);let a=encodeURIComponent(s);return eR(this,eV)[eV].get(`s3/multipart/${encodeURIComponent(n)}?key=${a}`,{signal:r}).then(eY)}completeMultipartUpload(e,t,i){let{key:s,uploadId:n,parts:r,signal:a}=t;null!=a||(a=i),eR(this,eK)[eK](“completeMultipartUpload”),eu(a);let o=encodeURIComponent(s),l=encodeURIComponent(n);return eR(this,eV)[eV].post(`s3/multipart/${l}/complete?key=${o}`,{parts:r.map(e=>{let{ETag:t,PartNumber:i}=e;return{ETag:t,PartNumber:i}})},{signal:a}).then(eY)}async createSignedURL(e,t){let i=await eR(this,eQ)[eQ](t),s=eH(i.credentials)||604800,{uploadId:n,key:r,partNumber:a}=t;return{method:”PUT”,expires:s,fields:{},url:`${await ef({accountKey:i.credentials.AccessKeyId,accountSecret:i.credentials.SecretAccessKey,sessionToken:i.credentials.SessionToken,expires:s,bucketName:i.bucket,Region:i.region,Key:null!=r?r:`${crypto.randomUUID()}-${e.name}`,uploadId:n,partNumber:a})}`,headers:{“Content-Type”:e.type}}}signPart(e,t){let{uploadId:i,key:s,partNumber:n,signal:r}=t;if(eR(this,eK)[eK](“signPart”),eu(r),null==i||null==s||null==n)throw Error(“Cannot sign without a key, an uploadId, and a partNumber”);let a=encodeURIComponent(s);return eR(this,eV)[eV].get(`s3/multipart/${encodeURIComponent(i)}/${n}?key=${a}`,{signal:r}).then(eY)}abortMultipartUpload(e,t){let{key:i,uploadId:s,signal:n}=t;eR(this,eK)[eK](“abortMultipartUpload”);let r=encodeURIComponent(i),a=encodeURIComponent(s);return eR(this,eV)[eV].delete(`s3/multipart/${a}?key=${r}`,void 0,{signal:n}).then(eY)}getUploadParameters(e,t){eR(this,eK)[eK](“getUploadParameters”);let{meta:i}=e,{type:s,name:n}=i,r=new URLSearchParams({filename:n,type:s,…eq({meta:i,allowedMetaFields:(0,F.A)(this.opts.allowedMetaFields,e.meta),querify:!0})});return eR(this,eV)[eV].get(`s3/params?${r}`,t)}static async uploadPartBytes(e){let{signature:{url:t,expires:i,headers:s,method:n=”PUT”},body:r,size:a=r.size,onProgress:o,onComplete:l,signal:u}=e;if(eu(u),null==t)throw Error(“Cannot upload to an undefined URL”);return new Promise((e,d)=>{let c=new XMLHttpRequest;function p(){c.abort()}function h(){null==u||u.removeEventListener(“abort”,p)}c.open(n,t,!0),s&&Object.keys(s).forEach(e=>{c.setRequestHeader(e,s[e])}),c.responseType=”text”,”number”==typeof i&&(c.timeout=1e3*i),null==u||u.addEventListener(“abort”,p),c.upload.addEventListener(“progress”,e=>{o(e)}),c.addEventListener(“abort”,()=>{h(),d((0,P.createAbortError)())}),c.addEventListener(“timeout”,()=>{h();let e=Error(“Request has expired”);e.source={status:403},d(e)}),c.addEventListener(“load”,()=>{if(h(),403===c.status&&c.responseText.includes(“Request has expired “)){let e=Error(“Request has expired”);e.source=c,d(e);return}if(c.status<200||c.status>=300){let e=Error(“Non 2xx”);e.source=c,d(e);return}null==o||o({loaded:a,lengthComputable:!0});let t=c.getAllResponseHeaders().trim().split(/[\r\n]+/),i={__proto__:null};for(let e of t){let t=e.split(“: “),s=t.shift(),n=t.join(“: “);i[s]=n}let{etag:s,location:r}=i;if(“POST”===n.toUpperCase()&&null===r&&console.warn(“AwsS3/Multipart: Could not read the Location 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.”),null===s)return void d(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.”));null==l||l(s),e({…i,ETag:s})}),c.addEventListener(“error”,e=>{h();let t=Error(“Unknown error”);t.source=e.target,d(t)}),c.send(r)})}install(){eR(this,e2)[e2](!0),this.uppy.addPreProcessor(eR(this,e3)[e3]),this.uppy.addUploader(eR(this,e0)[e0]),this.uppy.on(“cancel-all”,eR(this,e8)[e8])}uninstall(){this.uppy.removePreProcessor(eR(this,e3)[e3]),this.uppy.removeUploader(eR(this,e0)[e0]),this.uppy.off(“cancel-all”,eR(this,e8)[e8])}}function e9(e){null!=e&&(“endpoint”in e||”companionUrl”in e||”headers”in e||”companionHeaders”in e||”cookiesRule”in e||”companionCookiesRule”in e)&&(“companionUrl”in e&&!(“endpoint”in e)&&this.uppy.log(“`companionUrl` option has been removed in @uppy/aws-s3, use `endpoint` instead.”,”warning”),”companionHeaders”in e&&!(“headers”in e)&&this.uppy.log(“`companionHeaders` option has been removed in @uppy/aws-s3, use `headers` instead.”,”warning”),”companionCookiesRule”in e&&!(“cookiesRule”in e)&&this.uppy.log(“`companionCookiesRule` option has been removed in @uppy/aws-s3, use `cookiesRule` instead.”,”warning”),”endpoint”in e?eR(this,eV)[eV]=new A(this.uppy,{pluginId:this.id,provider:”AWS”,companionUrl:this.opts.endpoint,companionHeaders:this.opts.headers,companionCookiesRule:this.opts.cookiesRule}):(“headers”in e&&eR(this,e3)[e3](),”cookiesRule”in e&&(eR(this,eV)[eV].opts.companionCookiesRule=e.cookiesRule)))}function e7(e){if(!eR(this,eV)[eV])throw Error(`Expected a \`endpoint\` option containing a URL, or if you are not using Companion, a custom \`${e}\` implementation.`)}async function e6(e){if(eu(null==e?void 0:e.signal),null==eR(this,eG)[eG]){let{getTemporarySecurityCredentials:t}=this.opts;!0===t?(eR(this,eK)[eK](“getTemporarySecurityCredentials”),eR(this,eG)[eG]=eR(this,eV)[eV].get(“s3/sts”,e).then(eY)):eR(this,eG)[eG]=t(e),eR(this,eG)[eG]=await eR(this,eG)[eG],setTimeout(()=>{eR(this,eG)[eG]=null},500*(eH(eR(this,eG)[eG].credentials)||0))}return eR(this,eG)[eG]}function e5(e){var t=this;return new Promise((i,s)=>{let n=(t,i)=>{var s;let n=this.uppy.getFile(e.id);this.uppy.emit(“upload-progress”,n,{uploadStarted:null!=(s=n.progress.uploadStarted)?s:0,bytesUploaded:t,bytesTotal:i})},r=t=>{this.uppy.log(t),this.uppy.emit(“upload-error”,e,t),this.resetUploaderReferences(e.id),s(t)},a=t=>{let s={body:{…t},status:200,uploadURL:t.location};this.resetUploaderReferences(e.id),this.uppy.emit(“upload-success”,eR(this,eX)[eX](e),s),t.location&&this.uppy.log(`Download ${e.name} from ${t.location}`),i()},o=new en(e.data,{companionComm:eR(this,e$)[e$],log:function(){return t.uppy.log(…arguments)},getChunkSize:this.opts.getChunkSize?this.opts.getChunkSize.bind(this):void 0,onProgress:n,onError:r,onSuccess:a,onPartComplete:t=>{this.uppy.emit(“s3-multipart:part-uploaded”,eR(this,eX)[eX](e),t)},file:e,shouldUseMultipart:this.opts.shouldUseMultipart,…e.s3Multipart});this.uploaders[e.id]=o;let l=new x.A(this.uppy);this.uploaderEvents[e.id]=l,l.onFileRemove(e.id,t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!0}),i(`upload ${t} was removed`)}),l.onCancelAll(e.id,()=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!0}),i(`upload ${e.id} was canceled`)}),l.onFilePause(e.id,e=>{e?o.pause():o.start()}),l.onPauseAll(e.id,()=>{o.pause()}),l.onResumeAll(e.id,()=>{o.start()}),o.start()})}function te(e){var t;return{…null==(t=e.remote)?void 0:t.body,protocol:”s3-multipart”,size:e.data.size,metadata:e.meta}}e4.VERSION=”4.1.0″},3177:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>n});var s=i(87962);let n={initialize(e){let t=e.lookup(“service:session”);t.svgSpritePath&&(0,s.loadSprites)(t.svgSpritePath,”fontawesome”)}}},3186:function(e,t,i){(function(e){“use strict”;function t(e,t,i,s){var n={s:[“thoddea sekondamni”,”thodde sekond”],ss:[e+” sekondamni”,e+” sekond”],m:[“eka mintan”,”ek minut”],mm:[e+” mintamni”,e+” mintam”],h:[“eka voran”,”ek vor”],hh:[e+” voramni”,e+” voram”],d:[“eka disan”,”ek dis”],dd:[e+” disamni”,e+” dis”],M:[“eka mhoinean”,”ek mhoino”],MM:[e+” mhoineamni”,e+” mhoine”],y:[“eka vorsan”,”ek voros”],yy:[e+” vorsamni”,e+” vorsam”]};return s?n[i][0]:n[i][1]}e.defineLocale(“gom-latn”,{months:{standalone:”Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr”.split(“_”),format:”Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea”.split(“_”),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:”Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.”.split(“_”),monthsParseExact:!0,weekdays:”Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son’var”.split(“_”),weekdaysShort:”Ait._Som._Mon._Bud._Bre._Suk._Son.”.split(“_”),weekdaysMin:”Ai_Sm_Mo_Bu_Br_Su_Sn”.split(“_”),weekdaysParseExact:!0,longDateFormat:{LT:”A h:mm [vazta]”,LTS:”A h:mm:ss [vazta]”,L:”DD-MM-YYYY”,LL:”D MMMM YYYY”,LLL:”D MMMM YYYY A h:mm [vazta]”,LLLL:”dddd, MMMM Do, YYYY, A h:mm [vazta]”,llll:”ddd, D MMM YYYY, A h:mm [vazta]”},calendar:{sameDay:”[Aiz] LT”,nextDay:”[Faleam] LT”,nextWeek:”[Fuddlo] dddd[,] LT”,lastDay:”[Kal] LT”,lastWeek:”[Fattlo] dddd[,] LT”,sameElse:”L”},relativeTime:{future:”%s”,past:”%s adim”,s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return”D”===t?e+”er”:e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return(12===e&&(e=0),”rati”===t)?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:”sanje”===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})})(i(99526))},3195:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>s});class s{static forever=”3000-01-01T00:00:00.000Z”;static isEternal(e){return moment.utc(e).isSame(s.forever,”day”)}}},3257:(e,t,i)=>{var s=i(6815);t.operation=function(e){return new s(t.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in e)t[i]=e[i];if(t.minTimeout>t.maxTimeout)throw Error(“minTimeout is greater than maxTimeout”);for(var s=[],n=0;n{“use strict”;var s=i(38583);function n(e){if(!(this instanceof n))return new n(e);this.value=e}e.exports=n,n.prototype.hook=function(e,t){s(e)[t.substr(3)]=this.value},n.prototype.unhook=function(e,t){s(e)[t.substr(3)]=void 0}},3272:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{addComposerSaveErrorCallback:()=>r.addComposerSaveErrorCallback,addPopupMenuOption:()=>s.addPopupMenuOption,clearComposerSaveErrorCallback:()=>r.clearComposerSaveErrorCallback,clearPopupMenuOptions:()=>s.clearPopupMenuOptions,clearPopupMenuOptionsCallback:()=>o,default:()=>a});var s=i(87758),n=i(49661),r=i(67401);let a=r.default;function o(){(0,n.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,s.clearPopupMenuOptions)()}},3325:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>h});var s=i(91409),n=i(22921),r=i(93899),a=i(44782),o=i(41156),l=i(49002),u=i(32485),d=i(97677),c=i(69209),p=i(56699);class h extends s.default{table;setupTable(e){this.table=e.querySelector(“.directory-table”);let t=this.args.showTimeRead?this.args.columns.length+1:this.args.columns.length;this.table.style.gridTemplateColumns=`minmax(15em, 3fr) repeat(${t}, minmax(max-content, 1fr))`}static{dt7948.n(this.prototype,”setupTable”,[n.action])}updateOrderAndAsc(e,t){this.args.updateOrder(e),this.args.updateAsc(t)}static{dt7948.n(this.prototype,”updateOrderAndAsc”,[n.action])}static{(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:”7LXu2E0w”,block:'[[[1,”\\n “],[8,[32,0],[[4,[32,1],[[30,0,[“setupTable”]]],null]],null,[[“header”,”body”],[[[[1,”\\n “],[8,[32,2],null,[[“@field”,”@order”,”@asc”],[“username”,[30,1],[30,2]]],null],[1,”\\n”],[42,[28,[31,1],[[28,[31,1],[[30,3]],null]],null],null,[[[1,” “],[8,[32,2],null,[[“@onToggle”,”@field”,”@icon”,”@order”,”@asc”,”@automatic”,”@translated”],[[30,0,[“updateOrderAndAsc”]],[30,4,[“name”]],[30,4,[“icon”]],[30,1],[30,2],[28,[32,3],null,[[“column”],[[30,4]]]],[30,4,[“user_field_id”]]]],null],[1,”\\n”]],[4]],null],[1,”\\n”],[41,[30,5],[[[1,” “],[10,0],[14,0,”directory-table__column-header”],[12],[1,”\\n “],[10,0],[14,0,”header-contents”],[12],[1,”\\n “],[1,[28,[32,4],[“directory.time_read”],null]],[1,”\\n “],[13],[1,”\\n “],[13],[1,”\\n”]],[]],null],[1,” “]],[]],[[[1,”\\n”],[42,[28,[31,1],[[28,[31,1],[[30,6]],null]],null],null,[[[1,” “],[8,[32,5],null,[[“@item”,”@columns”,”@showTimeRead”],[[30,7],[30,3],[30,5]]],null],[1,”\\n”]],[7]],null],[1,” “]],[]]]]],[1,”\\n “]],[“@order”,”@asc”,”@columns”,”column”,”@showTimeRead”,”@items”,”item”],[“each”,”-track-array”,”if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/directory-table.js”,scope:()=>[o.default,r.default,l.default,u.default,d.i18n,a.default],isStrictMode:!0}),this)}}},3328:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>l});var s=i(69209),n=i(88821),r=i(46192),a=i(49661),o=i(56699);class l extends s.default{triggerAppEvent=null;init(){super.init(…arguments);let e=this.name,t=(0,r.getCustomHTML)(e);if(t)this.set(“html”,t),this.set(“layout”,(0,o.createTemplateFactory)({id:”a2d4Xfo6″,block:'[[[1,[30,0,[“html”]]]],[],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/custom-html.js”,isStrictMode:!1}));else{let t=(0,n.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(){super.didInsertElement(…arguments),”true”===this.triggerAppEvent&&this.appEvents.trigger(`inserted-custom-html:${this.name}`)}willDestroyElement(){super.willDestroyElement(…arguments),”true”===this.triggerAppEvent&&this.appEvents.trigger(`destroyed-custom-html:${this.name}`)}}},3408:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(55087),n=i(9635),r=i(97677);let a=class extends s.default{get description(){return(0,r.i18n)(“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,n.userPath)(`${this.notification.data.username}/messages/group/${this.notification.data.group_name}`)}}},3492:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>h});var s=i(91409),n=i(22921),r=i(43037),a=i(94004),o=i(37108),l=i(30073),u=i(12255),d=i(97677),c=i(69209),p=i(56699);class h extends s.default{notificationLevelId=null;static{dt7948.g(this.prototype,”disabled”,[(0,r.empty)(“notificationLevelId”)])}#eY=void dt7948.i(this,”disabled”);get notificationLevels(){return u.topicLevels.map(e=>({id:e.id.toString(),name:(0,d.i18n)(`topic.notifications.${e.key}.title`),description:(0,d.i18n)(`topic.notifications.${e.key}.description`)}))}changeNotificationLevel(){this.args.performAndRefresh({type:”change_notification_level”,notification_level_id:this.notificationLevelId})}static{dt7948.n(this.prototype,”changeNotificationLevel”,[n.action])}static{(0,c.setComponentTemplate)((0,p.createTemplateFactory)({id:”Ohv9YF/G”,block:'[[[1,”\\n “],[10,0],[14,0,”bulk-notification-list”],[12],[1,”\\n”],[42,[28,[31,1],[[28,[31,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,[32,0],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,[32,1],[[30,1,[“description”]]],null]],[13],[1,”\\n “],[13],[1,”\\n “],[13],[1,”\\n”]],[1]],null],[1,” “],[13],[1,”\\n\\n “],[8,[32,2],null,[[“@disabled”,”@action”,”@label”],[[30,0,[“disabled”]],[30,0,[“changeNotificationLevel”]],”topics.bulk.change_notification_level”]],null],[1,”\\n “]],[“level”],[“each”,”-track-array”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/bulk-actions/notification-level.js”,scope:()=>[l.default,a.htmlSafe,o.default],isStrictMode:!0}),this)}}},3671:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>S});var s=i(91409),n=i(69680),r=i(4507),a=i(22921),o=i(72865),l=i(94004),u=i(351),d=i(37108),c=i(66207),p=i(56253),h=i(21154),m=i(52920),g=i(73769),f=i(46333),_=i(46527),y=i(64775),b=i(3042),w=i(97677),k=i(69209),T=i(56699);class S extends s.default{static{dt7948.g(this.prototype,”adminTools”,[o.service])}#eH=void dt7948.i(this,”adminTools”);static{dt7948.g(this.prototype,”currentUser”,[o.service])}#t=void dt7948.i(this,”currentUser”);static{dt7948.g(this.prototype,”siteSettings”,[o.service])}#i=void dt7948.i(this,”siteSettings”);static{dt7948.g(this.prototype,”appEvents”,[o.service])}#ee=void dt7948.i(this,”appEvents”);static{dt7948.g(this.prototype,”site”,[o.service])}#eR=void dt7948.i(this,”site”);static{dt7948.g(this.prototype,”userDetails”,[n.tracked])}#eq=void dt7948.i(this,”userDetails”);static{dt7948.g(this.prototype,”selected”,[n.tracked])}#ez=void dt7948.i(this,”selected”);static{dt7948.g(this.prototype,”message”,[n.tracked])}#e$=void dt7948.i(this,”message”);static{dt7948.g(this.prototype,”isConfirmed”,[n.tracked],function(){return!1})}#eV=void dt7948.i(this,”isConfirmed”);static{dt7948.g(this.prototype,”isWarning”,[n.tracked],function(){return!1})}#eW=void dt7948.i(this,”isWarning”);static{dt7948.g(this.prototype,”spammerDetails”,[n.tracked])}#eK=void dt7948.i(this,”spammerDetails”);constructor(){super(…arguments),this.adminTools?.checkSpammer(this.args.model.flagModel.user_id).then(e=>this.spammerDetails=e),1===this.flagsAvailable.length&&(this.selected=this.flagsAvailable[0])}get flagActions(){return{icon:”gavel”,label:(0,w.i18n)(“flagging.take_action”),actions:[{id:”agree_and_hide”,icon:”thumbs-up”,label:(0,w.i18n)(“flagging.take_action_options.default.title”),description:(0,w.i18n)(“flagging.take_action_options.default.details”)},{id:”agree_and_suspend”,icon:”ban”,label:(0,w.i18n)(“flagging.take_action_options.suspend.title”),description:(0,w.i18n)(“flagging.take_action_options.suspend.details”),client_action:”suspend”},{id:”agree_and_silence”,icon:”microphone-slash”,label:(0,w.i18n)(“flagging.take_action_options.silence.title”),description:(0,w.i18n)(“flagging.take_action_options.silence.details”),client_action:”silence”}]}}get canSendWarning(){return!this.args.model.flagTarget.targetsTopic()&&this.currentUser.staff&&this.selected?.name_key===”notify_user”}get showDeleteSpammer(){return this.spammerDetails?.canDelete&&this.selected?.name_key===”spam”}get submitLabel(){return this.selected?.require_message?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).filterBy(“enabled”)}get staffFlagsAvailable(){return this.flagsAvailable.length>1}get submitEnabled(){if(!this.selected)return!1;if(!this.selected.require_message)return!0;if(this.selected.isIllegal&&!this.isConfirmed)return!1;let e=this.message?.length||0;return e>=this.siteSettings.min_personal_message_post_length&&e<=y.MAX_MESSAGE_LENGTH}get notifyModeratorsFlag(){return this.flagsAvailable.find(e=>“notify_moderators”===e.id)}get canTakeAction(){return!this.args.model.flagTarget.targetsTopic()&&!this.selected?.require_message&&this.currentUser.staff}onKeydown(e){if(this.submitEnabled&&”Enter”===e.key&&(e.ctrlKey||e.metaKey))return this.createFlag(),!1}static{dt7948.n(this.prototype,”onKeydown”,[a.action])}async penalize(e,t){if(!this.adminTools)return;let i=await b.default.findByUsername(this.args.model.flagModel.username),s={before:t};return this.args.model.flagTarget.editable()&&(s.postId=this.args.model.flagModel.id,s.postEdit=this.args.model.flagModel.cooked),this.adminTools[e](i,s)}static{dt7948.n(this.prototype,”penalize”,[a.action])}async deleteSpammer(){this.spammerDetails&&(await this.spammerDetails.deleteUser(),(0,_.reload)())}static{dt7948.n(this.prototype,”deleteSpammer”,[a.action])}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}))}static{dt7948.n(this.prototype,”takeAction”,[a.action])}createFlag(e={}){this.selected.require_message&&(e.message=this.message),this.args.model.flagTarget.create(this,e),this.appEvents.trigger(“flag:created”,{message:e.message,postId:this.args.model.flagModel.id})}static{dt7948.n(this.prototype,”createFlag”,[a.action])}createFlagAsWarning(){this.createFlag({isWarning:!0}),this.args.model.setHidden()}static{dt7948.n(this.prototype,”createFlagAsWarning”,[a.action])}flagForReview(){this.selected||=this.notifyModeratorsFlag,this.createFlag({queue_for_review:!0}),this.args.model.setHidden()}static{dt7948.n(this.prototype,”flagForReview”,[a.action])}changePostActionType(e){this.selected=e}static{dt7948.n(this.prototype,”changePostActionType”,[a.action])}static{(0,k.setComponentTemplate)((0,T.createTemplateFactory)({id:”U401nv6m”,block:'[[[1,”\\n “],[8,[32,0],[[24,0,”flag-modal”],[4,[32,2],[“keydown”,[30,0,[“onKeydown”]]],null]],[[“@bodyClass”,”@title”,”@submitOnEnter”,”@closeModal”],[“flag-modal-body”,[28,[32,1],[[30,0,[“title”]]],null],false,[30,1]]],[[“body”,”footer”],[[[[1,”\\n “],[10,2],[12],[1,[28,[32,3],[[28,[32,1],[“flagging.review_process_description”],null]],null]],[13],[1,”\\n “],[8,[32,4],null,[[“@name”,”@connectorTagName”,”@outletArgs”],[“after-flag-modal-review-process-description”,”div”,[28,[32,5],null,[[“post”],[[30,2,[“flagModel”]]]]]]],null],[1,”\\n “],[10,”form”],[12],[1,”\\n “],[8,[32,6],null,[[“@nameKey”,”@flags”],[[30,0,[“selected”,”name_key”]],[30,0,[“flagsAvailable”]]]],[[“default”],[[[[1,”\\n “],[8,[32,7],null,[[“@flag”,”@message”,”@isConfirmed”,”@isWarning”,”@selectedFlag”,”@username”,”@staffFlagsAvailable”,”@changePostActionType”],[[30,3],[30,0,[“message”]],[30,0,[“isConfirmed”]],[30,0,[“isWarning”]],[30,0,[“selected”]],[30,2,[“flagModel”,”username”]],[30,0,[“staffFlagsAvailable”]],[30,0,[“changePostActionType”]]]],null],[1,”\\n “]],[3]]]]],[1,”\\n “],[13],[1,”\\n “],[8,[32,4],null,[[“@name”,”@connectorTagName”,”@outletArgs”],[“flag-modal-bottom”,”div”,[28,[32,5],null,[[“post”],[[30,2,[“flagModel”]]]]]]],null],[1,”\\n “]],[]],[[[1,”\\n “],[8,[32,8],[[24,0,”btn-primary flag-modal__create-flag”]],[[“@action”,”@disabled”,”@title”,”@icon”,”@label”],[[30,0,[“createFlag”]],[28,[32,9],[[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,[32,8],[[24,0,”btn-danger flag-modal__send-warning”]],[[“@action”,”@disabled”,”@icon”,”@label”],[[30,0,[“createFlagAsWarning”]],[28,[32,9],[[30,0,[“submitEnabled”]]],null],”triangle-exclamation”,”flagging.official_warning”]],null],[1,”\\n”]],[]],null],[1,”\\n”],[41,[30,0,[“canTakeAction”]],[[[1,” “],[8,[32,10],[[24,0,”flag-modal__take-action”]],[[“@bundle”,”@performAction”,”@reviewableUpdating”],[[30,0,[“flagActions”]],[30,0,[“takeAction”]],[28,[32,9],[[30,0,[“submitEnabled”]]],null]]],null],[1,”\\n\\n “],[8,[32,8],[[24,0,”btn-danger flag-modal__flag-for-review”]],[[“@action”,”@disabled”,”@icon”,”@label”],[[30,0,[“flagForReview”]],[28,[32,9],[[30,0,[“submitEnabled”]],[30,0,[“notifyModeratorsFlag”]]],null],”triangle-exclamation”,”flagging.flag_for_review”]],null],[1,”\\n”]],[]],null],[1,”\\n”],[41,[30,0,[“showDeleteSpammer”]],[[[1,” “],[8,[32,8],[[24,0,”btn-danger delete-spammer flag-modal__delete-spammer”]],[[“@action”,”@disabled”,”@icon”,”@label”],[[30,0,[“deleteSpammer”]],[28,[32,9],[[30,0,[“submitEnabled”]]],null],”triangle-exclamation”,”flagging.delete_spammer”]],null],[1,”\\n”]],[]],null],[1,” “]],[]]]]],[1,”\\n “]],[“@closeModal”,”@model”,”f”],[“if”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/modal/flag.js”,scope:()=>[c.default,w.i18n,r.on,l.htmlSafe,m.default,f.default,h.default,p.default,d.default,u.not,g.default],isStrictMode:!0}),this)}}},3689:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>a});var s=i(77283),n=i(19171),r=i(59833);let a=dt7948.c(class extends n.default{},[(0,r.pluginApiIdentifiers)(“group-notifications-button”),(0,r.selectKitOptions)({i18nPrefix:”groups.notifications”}),(0,s.classNames)(“group-notifications-button”)])},3734:function(e,t,i){i(99526).defineLocale(“id”,{months:”Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember”.split(“_”),monthsShort:”Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des”.split(“_”),weekdays:”Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu”.split(“_”),weekdaysShort:”Min_Sen_Sel_Rab_Kam_Jum_Sab”.split(“_”),weekdaysMin:”Mg_Sn_Sl_Rb_Km_Jm_Sb”.split(“_”),longDateFormat:{LT:”HH.mm”,LTS:”HH.mm.ss”,L:”DD/MM/YYYY”,LL:”D MMMM YYYY”,LLL:”D MMMM YYYY [pukul] HH.mm”,LLLL:”dddd, D MMMM YYYY [pukul] HH.mm”},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return(12===e&&(e=0),”pagi”===t)?e:”siang”===t?e>=11?e:e+12:”sore”===t||”malam”===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})},3763:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>d});var s=i(43204),n=i(30597),r=i(74858),a=i(97677),o=i(69209),l=i(56699),u=i(74934);let d=(0,n.default)((0,o.setComponentTemplate)((0,l.createTemplateFactory)({id:”aQPF6znB”,block:'[[[1,”\\n “],[10,”section”],[14,0,”user-secondary-navigation”],[12],[1,”\\n “],[8,[32,0],[[24,0,”activity-nav”]],null,[[“default”],[[[[1,”\\n”],[42,[28,[31,1],[[28,[31,1],[[30,1,[“tabs”]]],null]],null],null,[[[1,” “],[10,”li”],[12],[1,”\\n “],[8,[32,1],null,[[“@route”,”@model”],[[30,2,[“route”]],[30,1,[“model”,”name”]]]],[[“default”],[[[[1,”\\n “],[1,[28,[32,2],[[30,2,[“title”]]],null]],[1,”\\n “]],[]]]]],[1,”\\n “],[13],[1,”\\n”]],[2]],null],[1,” “]],[]]]]],[1,”\\n “],[13],[1,”\\n “],[10,”section”],[14,0,”user-content”],[14,1,”user-content”],[12],[1,”\\n “],[46,[28,[31,3],null,null],null,null,null],[1,”\\n “],[13],[1,”\\n “]],[“@controller”,”tab”],[“each”,”-track-array”,”component”,”-outlet”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/group/manage.js”,scope:()=>[r.default,s.LinkTo,a.i18n],isStrictMode:!0}),(0,u.default)(void 0,void 0)))},3766:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>u});var s=i(30597),n=i(50729),r=i(51827),a=i(69209),o=i(56699),l=i(74934);let u=(0,s.default)((0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:”AMwIZFXR”,block:'[[[1,”\\n “],[8,[32,0],null,[[“@model”,”@selectedTags”,”@save”,”@siteSettings”],[[30,1,[“model”]],[30,1,[“selectedTags”]],[30,1,[“save”]],[30,1,[“siteSettings”]]]],null],[1,”\\n\\n “],[8,[32,1],null,[[“@model”,”@action”,”@saved”],[[30,1,[“model”]],[30,1,[“save”]],[30,1,[“saved”]]]],null],[1,”\\n “]],[“@controller”],[]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/templates/preferences/tags.js”,scope:()=>[r.default,n.default],isStrictMode:!0}),(0,l.default)(void 0,void 0)))},3810:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{BasePlugin:()=>U.A,UIPlugin:()=>z,Uppy:()=>h.A,debugLogger:()=>$.w,default:()=>h.A});var s,n,r,a,o,l,u,d,c,p,h=i(36894),m={},g=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function y(e,t){for(var i in t)e[i]=t[i];return e}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function w(e,t,i,s,a){var o={type:e,props:t,key:i,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=n.vnode&&n.vnode(o),o}function k(e){return e.children}function T(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var i;tt&&a.sort(u));A.__r=0}function D(e,t,i,s,n,r,a,o,l,u,d){var c,p,h,f,y,b=s&&s.__k||g,T=t.length;for(i.__d=l,function(e,t,i){var s,n,r,a,o,l=t.length,u=i.length,d=u,c=0;for(e.__k=[],s=0;s0?w(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)?(n.__=e,n.__b=e.__b+1,o=function(e,t,i,s){var n=e.key,r=e.type,a=i-1,o=i+1,l=t[i];if(null===l||l&&n==l.key&&r===l.type&&0==(131072&l.__u))return i;if(s>+(null!=l&&0==(131072&l.__u)))for(;a>=0||o=0){if((l=t[a])&&0==(131072&l.__u)&&n==l.key&&r===l.type)return a;a–}if(oa?d>l-a?c+=o-a:c–:o2&&(o.children=arguments.length>3?s.call(arguments,2):i),”function”==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return w(e,o,n,r,null)}(k,null,[e]),a||m,m,t.namespaceURI,!r&&i?[i]:a?null:t.firstChild?s.call(t.childNodes):null,o,!r&&i?i:a?a.__e:t.firstChild,r,l),P(o,e,l)}s=g.slice,n={__e:function(e,t,i,s){for(var n,r,a;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,s||{}),a=n.__d),a)return n.__E=n}catch(t){e=t}throw e}},r=0,T.prototype.setState=function(e,t){var i;i=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),”function”==typeof e&&(e=e(y({},i),this.props)),e&&y(i,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},T.prototype.render=k,a=[],l=”function”==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},A.__r=0,d=0,c=E(!1),p=E(!0);let O=function(e,t){return(void 0===t&&(t=document),”string”==typeof e)?t.querySelector(e):”object”==typeof e&&null!==e&&”nodeType”in e&&e.nodeType===Node.ELEMENT_NODE?e:null},R=function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir};var U=i(48727);function B(e,t){if(!({}).hasOwnProperty.call(e,t))throw TypeError(“attempted to use private field on non-instance”);return e}var Y=0,H=”__private_”+Y+++”_updateUI”;class q extends U.A{constructor(){super(…arguments),Object.defineProperty(this,H,{writable:!0,value:void 0})}getTargetPlugin(e){let t;return”function”==typeof(null==e?void 0:e.addTarget)?(t=e)instanceof q||console.warn(Error(“The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.”,{cause:{targetPlugin:t,UIPlugin:q}})):”function”==typeof e&&this.uppy.iteratePlugins(i=>{i instanceof e&&(t=i)}),t}mount(e,t){let i=t.id,s=O(e);if(s){var n;let t,r;this.isTargetDOMEl=!0;let a=document.createElement(“div”);return a.classList.add(“uppy-Root”),B(this,H)[H]=(n=e=>{this.uppy.getPlugin(this.id)&&(N(this.render(e,a),a),this.afterUpdate())},r=null,function(){for(var e=arguments.length,i=Array(e),s=0;s(r=null,n(…t)))),r}),this.uppy.log(`Installing ${i} to a DOM element ‘${e}’`),this.opts.replaceTargetContent&&(s.innerHTML=””),N(this.render(this.uppy.getState(),a),a),this.el=a,s.appendChild(a),a.dir=this.opts.direction||R(a)||”ltr”,this.onMount(),this.el}let r=this.getTargetPlugin(e);if(r)return this.uppy.log(`Installing ${i} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let a=`Invalid target option given to ${i}.`;throw”function”==typeof e?a+=” 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.”:a+=`If you meant to target an HTML element, please make sure that the element exists. Check that the
${e}
`)[0].innerText}get showName(){return this.args.showName??!0}static{(0,a.setComponentTemplate)((0,o.createTemplateFactory)({id:”yFTTRaR8″,block:'[[[1,”\\n “],[11,1],[16,”title”,[30,0,[“title”]]],[16,”data-badge-name”,[30,1,[“name”]]],[16,0,[29,[“user-badge\\n “,[30,1,[“badgeTypeClassName”]],”\\n “,[52,[51,[30,1,[“enabled”]]],”disabled”]]]],[17,2],[12],[1,”\\n “],[1,[28,[32,0],[[30,1]],null]],[1,”\\n”],[41,[30,0,[“showName”]],[[[1,” “],[10,1],[14,0,”badge-display-name”],[12],[1,[30,1,[“name”]]],[13],[1,”\\n”]],[]],null],[1,” “],[18,3,null],[1,”\\n “],[13],[1,”\\n “]],[“@badge”,”&attrs”,”&default”],[“unless”,”if”,”yield”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/badge-button.js”,scope:()=>[n.default],isStrictMode:!0}),this)}}},2517:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>o});var s=i(40126),n=i(22921),r=i(82225),a=i(97677);class o extends s.default{subpageTitle=(0,a.i18n)(“user.preferences_nav.notifications”);init(){super.init(…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:(0,a.i18n)(“user.like_notification_frequency.always”),value:0},{name:(0,a.i18n)(“user.like_notification_frequency.first_time_and_daily”),value:1},{name:(0,a.i18n)(“user.like_notification_frequency.first_time”),value:2},{name:(0,a.i18n)(“user.like_notification_frequency.never”),value:3}]}save(){return this.set(“saved”,!1),this.model.save(this.saveAttrNames).then(()=>{this.set(“saved”,!0)}).catch(r.popupAjaxError)}static{dt7948.n(this.prototype,”save”,[n.action])}}},2551:(e,t,i)=>{“use strict”;i.d(t,{P:()=>r,u:()=>n});var s=i(62270);function n(e,t,i){return(0,s.T9)(e,(0,s.jk)(t,i))}function r(e,t,i){var s=n(e,t,i);return s>i?i:s}},2560:(e,t,i)=>{“use strict”;i.r(t),i.d(t,{default:()=>f});var s=i(91409),n=i(12322),r=i(22921),a=i(72865),o=i(351),l=i(37108),u=i(7672),d=i(24887),c=i(13692),p=i(71186),h=i(3064),m=i(69209),g=i(56699);class f extends s.default{static{dt7948.g(this.prototype,”adminTopicMenuButtons”,[a.service])}#O=void dt7948.i(this,”adminTopicMenuButtons”);static{dt7948.g(this.prototype,”currentUser”,[a.service])}#t=void dt7948.i(this,”currentUser”);onRegisterApi(e){this.dMenu=e}static{dt7948.n(this.prototype,”onRegisterApi”,[r.action])}async onButtonAction(e){await this.dMenu.close(),this.args[e]?.()}static{dt7948.n(this.prototype,”onButtonAction”,[r.action])}async onExtraButtonAction(e){await this.dMenu.close(),e?.()}static{dt7948.n(this.prototype,”onExtraButtonAction”,[r.action])}get extraButtons(){return this.adminTopicMenuButtons.callbacks.map(e=>e(this.args.topic)).filter(Boolean)}get details(){return this.args.topic.get(“details”)}get isPrivateMessage(){return this.args.topic.get(“isPrivateMessage”)}get featured(){return!!this.args.topic.get(“pinned_at”)||this.args.topic.get(“isBanner”)}get visible(){return this.args.topic.get(“visible”)}get canDelete(){return this.details.get(“can_delete”)}get canRecover(){return this.details.get(“can_recover”)}get archived(){return this.args.topic.get(“archived”)}get topicModerationHistoryUrl(){return(0,p.default)(`/review?topic_id=${this.args.topic.id}&status=all`)}get showAdminButton(){return this.currentUser?.canManageTopic||this.details?.can_archive_topic||this.details?.can_close_topic||this.details?.can_split_merge_topic}static{(0,m.setComponentTemplate)((0,g.createTemplateFactory)({id:”f/Xp2ekt”,block:'[[[1,”\\n”],[41,[30,0,[“showAdminButton”]],[[[1,” “],[8,[32,0],null,[[“@identifier”,”@onRegisterApi”,”@modalForMobile”,”@autofocus”,”@triggerClass”],[“topic-admin-menu”,[30,0,[“onRegisterApi”]],true,true,[29,[“btn-default btn-icon toggle-admin-menu “,[30,1]]]]],[[“trigger”,”content”],[[[[1,”\\n “],[1,[28,[32,1],[“wrench”],null]],[1,”\\n “]],[]],[[[1,”\\n “],[8,[32,2],null,null,[[“default”],[[[[1,”\\n”],[41,[28,[32,3],[[30,0,[“currentUser”,”canManageTopic”]],[30,0,[“details”,”can_split_merge_topic”]]],null],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-multi-select”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[“topic.actions.multi_select”,[28,[32,5],[[30,0,[“onButtonAction”]],”toggleMultiSelect”],null],”list-check”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[28,[32,3],[[30,0,[“currentUser”,”canManageTopic”]],[30,0,[“details”,”can_moderate_category”]]],null],[[[41,[30,0,[“canDelete”]],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-delete”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],[[24,0,”popup-menu-btn-danger btn-danger”]],[[“@label”,”@action”,”@icon”],[“topic.actions.delete”,[28,[32,5],[[30,0,[“onButtonAction”]],”deleteTopic”],null],”trash-can”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],[[[41,[30,0,[“canRecover”]],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-recover”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[“topic.actions.recover”,[28,[32,5],[[30,0,[“onButtonAction”]],”recoverTopic”],null],”arrow-rotate-left”]],null],[1,”\\n “]],[]]]]],[1,”\\n “]],[]],null]],[]]]],[]],null],[1,”\\n”],[41,[30,0,[“details”,”can_close_topic”]],[[[1,” “],[8,[30,2,[“item”]],[[16,0,[52,[30,3,[“closed”]],”topic-admin-open”,”topic-admin-close”]]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[[52,[30,3,[“closed”]],”topic.actions.open”,”topic.actions.close”],[28,[32,5],[[30,0,[“onButtonAction”]],”toggleClosed”],null],[52,[30,3,[“closed”]],”topic.opened”,”topic.closed”]]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[28,[32,6],[[30,0,[“details”,”can_pin_unpin_topic”]],[28,[32,7],[[30,0,[“isPrivateMessage”]]],null],[28,[32,3],[[30,0,[“visible”]],[30,0,[“featured”]]],null]],null],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-pin”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[[52,[30,0,[“featured”]],”topic.actions.unpin”,”topic.actions.pin”],[28,[32,5],[[30,0,[“onButtonAction”]],”showFeatureTopic”],null],”thumbtack”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[28,[32,6],[[30,0,[“details”,”can_archive_topic”]],[28,[32,7],[[30,0,[“isPrivateMessage”]]],null]],null],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-archive”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[[52,[30,0,[“archived”]],”topic.actions.unarchive”,”topic.actions.archive”],[28,[32,5],[[30,0,[“onButtonAction”]],”toggleArchived”],null],”folder”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[30,0,[“details”,”can_toggle_topic_visibility”]],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-visible”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[[52,[30,0,[“visible”]],”topic.actions.invisible”,”topic.actions.visible”],[28,[32,5],[[30,0,[“onButtonAction”]],”toggleVisibility”],null],[52,[30,0,[“visible”]],”far-eye-slash”,”far-eye”]]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[28,[32,6],[[30,0,[“details”,”can_convert_topic”]]],null],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-convert”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[[52,[30,0,[“isPrivateMessage”]],”topic.actions.make_public”,”topic.actions.make_private”],[28,[32,5],[[30,0,[“onButtonAction”]],[52,[30,0,[“isPrivateMessage”]],”convertToPublicTopic”,”convertToPrivateMessage”]],null],[52,[30,0,[“isPrivateMessage”]],”comment”,”envelope”]]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n “],[8,[30,2,[“divider”]],null,null,null],[1,”\\n\\n”],[41,[30,0,[“currentUser”,”canManageTopic”]],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”admin-topic-timer-update”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[“topic.actions.timed_update”,[28,[32,5],[[30,0,[“onButtonAction”]],”showTopicTimerModal”],null],”far-clock”]],null],[1,”\\n “]],[]]]]],[1,”\\n\\n”],[41,[30,0,[“currentUser”,”staff”]],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-change-timestamp”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[“topic.change_timestamp.title”,[28,[32,5],[[30,0,[“onButtonAction”]],”showChangeTimestamp”],null],”calendar-days”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n “],[8,[30,2,[“item”]],[[24,0,”topic-admin-reset-bump-date”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[“topic.actions.reset_bump_date”,[28,[32,5],[[30,0,[“onButtonAction”]],”resetBumpDate”],null],”anchor”]],null],[1,”\\n “]],[]]]]],[1,”\\n\\n “],[8,[30,2,[“item”]],[[24,0,”topic-admin-slow-mode”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@action”,”@icon”],[“topic.actions.slow_mode”,[28,[32,5],[[30,0,[“onButtonAction”]],”showTopicSlowModeUpdate”],null],”hourglass-start”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[41,[28,[32,3],[[30,0,[“currentUser”,”staff”]],[30,0,[“extraButtons”,”length”]]],null],[[[1,” “],[8,[30,2,[“divider”]],null,null,null],[1,”\\n\\n”],[41,[30,0,[“currentUser”,”staff”]],[[[1,” “],[8,[30,2,[“item”]],[[24,0,”topic-admin-moderation-history”]],null,[[“default”],[[[[1,”\\n “],[8,[32,4],null,[[“@label”,”@href”,”@icon”],[“review.moderation_history”,[30,0,[“topicModerationHistoryUrl”]],”list”]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,”\\n”],[42,[28,[31,2],[[28,[31,2],[[30,0,[“extraButtons”]]],null]],null],null,[[[1,” “],[8,[30,2,[“item”]],null,null,[[“default”],[[[[1,”\\n “],[8,[32,4],[[16,0,[28,[32,8],[“btn-transparent”,[30,4,[“className”]]],null]]],[[“@label”,”@translatedLabel”,”@icon”,”@action”],[[30,4,[“label”]],[30,4,[“translatedLabel”]],[30,4,[“icon”]],[28,[32,5],[[30,0,[“onExtraButtonAction”]],[30,4,[“action”]]],null]]],null],[1,”\\n “]],[]]]]],[1,”\\n”]],[4]],null]],[]],null],[1,” “]],[2]]]]],[1,”\\n “]],[]]]]],[1,”\\n”]],[]],null],[1,” “]],[“@buttonClasses”,”dropdown”,”@topic”,”button”],[“if”,”each”,”-track-array”]]’,moduleName:”/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/components/topic-admin-menu.js”,scope:()=>[h.default,c.default,u.default,o.or,l.default,n.fn,o.and,o.not,d.default],isStrictMode:!0}),this)}}},2583:(e,t,i)=>{var s=i(96339),n=i(17488),r=i(74483),a=i(20625);function o(e,t){“function”==typeof t.destroy&&n(t)&&t.destroy(e)}e.exports=function(e,t,i){var n,l,u,d,c,p,h,m,g,f,_,y,b,w,k,T=e.type,S=e.vNode,C=e.patch;switch(T){case r.REMOVE:return A=t,D=S,(M=A.parentNode)&&M.removeChild(A),o(A,D),null;case r.INSERT:return x=t,E=C,P=(L=i).render(E,L),x&&x.appendChild(P),x;case r.VTEXT:var A,D,M,x,E,L,P,F,I=t,j=C,N=i;if(3===I.nodeType)I.replaceData(0,I.length,j.text),F=I;else{var O=I.parentNode;F=N.render(j,N),O&&F!==I&&O.replaceChild(F,I)}return F;case r.WIDGET:return n=t,l=S,u=C,d=i,c=(p=a(l,u))?u.update(l,n)||n:d.render(u,d),(h=n.parentNode)&&c!==n&&h.replaceChild(c,n),p||o(n,l),c;case r.VNODE:return m=t,g=0,f=C,_=i,y=m.parentNode,b=_.render(f,_),y&&b!==m&&y.replaceChild(b,m),b;case r.ORDER:return function(e,t){for(var i,s,n,r=e.childNodes,a={},o=0;o